:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.7);
  --bg-card-hover: rgba(30, 36, 46, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(0, 120, 212, 0.6);
  --accent-blue: #0078d4;
  --accent-blue-hover: #1084d8;
  --accent-glow: rgba(0, 120, 212, 0.35);
  --accent-teal: #00b7c3;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-sub: #c9d1d9;
  --success: #238636;
  --success-glow: rgba(46, 160, 67, 0.3);
  --warning: #d29922;
  --warning-glow: rgba(210, 153, 34, 0.3);
  --danger: #da3633;
  --danger-glow: rgba(218, 54, 51, 0.3);
  --font-stack: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dynamic Mica Backdrop Gradients */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-orb-1 {
  top: -100px;
  left: 20%;
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, #0078d4 0%, rgba(0, 120, 212, 0) 70%);
}

.glow-orb-2 {
  top: 350px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
}

.glow-orb-3 {
  bottom: 10%;
  left: 10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, #00b7c3 0%, rgba(0, 183, 195, 0) 70%);
}

/* Layout Wrapper */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 17, 23, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue), #00b7c3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-btn-mini {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
  font-size: 0.88rem !important;
}

.nav-btn-mini:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 120, 212, 0.12);
  border: 1px solid rgba(0, 120, 212, 0.3);
  color: #79c0ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-sub);
  max-width: 780px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

/* Call to Action Container */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.btn-primary-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #0086ea 0%, #006ec4 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow), 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.btn-primary-install:hover {
  background: linear-gradient(180deg, #1094f8 0%, #0078d4 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 120, 212, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5);
}

.btn-primary-install:active {
  transform: translateY(0);
}

.btn-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.btn-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.btn-dropdown-toggle:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #1c2128;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: none;
  text-align: left;
}

.dropdown-menu.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cta-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick CLI Snippet */
.quick-cli {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 6px 4px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #a5d6ff;
  gap: 12px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Live System Compatibility Checker Card */
.compatibility-card {
  max-width: 820px;
  margin: 0 auto 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-title-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.status-badge.status-checking {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  border: 1px solid var(--border-color);
}

.status-badge.status-compatible {
  background: rgba(35, 134, 54, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.4);
  box-shadow: 0 0 16px var(--success-glow);
}

.status-badge.status-warning {
  background: rgba(210, 153, 34, 0.15);
  color: #e3b341;
  border: 1px solid rgba(227, 179, 65, 0.4);
  box-shadow: 0 0 16px var(--warning-glow);
}

.status-badge.status-incompatible {
  background: rgba(218, 54, 51, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
  box-shadow: 0 0 16px var(--danger-glow);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-checking .pulse-dot {
  background: var(--text-muted);
  animation: pulse 1.2s infinite ease-in-out;
}

.status-compatible .pulse-dot {
  background: #3fb950;
  box-shadow: 0 0 8px #3fb950;
}

.status-warning .pulse-dot {
  background: #e3b341;
  box-shadow: 0 0 8px #e3b341;
}

.status-incompatible .pulse-dot {
  background: #f85149;
  box-shadow: 0 0 8px #f85149;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Requirements Diagnostics Grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.req-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.req-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.req-detected {
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-check-icon {
  font-weight: bold;
}

/* Feature Grid */
.features-section {
  padding: 60px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 120, 212, 0.15);
  border: 1px solid rgba(0, 120, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #60a5fa;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Install Guide Section */
.guide-section {
  padding: 60px 0 100px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
  user-select: none;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(13, 17, 23, 0.9);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .compatibility-card {
    padding: 20px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary-install, .btn-dropdown-toggle {
    width: 100%;
    justify-content: center;
  }
  .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    width: 100%;
  }
}

/* Install Guide Modal */
.install-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.install-modal-overlay.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.install-modal-card {
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), 0 0 32px var(--accent-glow);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.modal-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
