:root {
  --bg-primary: #0a0b0e;
  --bg-card: rgba(18, 20, 26, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 214, 0, 0.35);
  --text-main: #f0f2f5;
  --text-muted: #8a909d;
  --text-dim: #5c6270;
  
  --brand-yellow: #ffd600;
  --brand-orange: #ff6d00;
  --brand-gradient: linear-gradient(135deg, #ffd600 0%, #ff8f00 50%, #ff3d00 100%);
  --brand-glow: rgba(255, 214, 0, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient glow accents */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.08) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 109, 0, 0.06) 0%, transparent 70%);
  top: 500px;
  right: 5%;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  text-align: center;
}

.speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.22);
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffca28;
  margin-bottom: 0.6rem;
}
.speed-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.hero-interactive-prompt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero-interactive-prompt kbd {
  padding: 0.15rem 0.45rem;
  margin: 0 0.2rem;
}

.headline {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.subtitle strong {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.shortcut-inline {
  white-space: nowrap;
}
kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #ffca28;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  vertical-align: baseline;
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #ffca28;
}

/* CTA Group */
.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.primary-btn, .secondary-btn {
  height: 58px;
  box-sizing: border-box;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: var(--brand-gradient);
  color: #000;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0 1.85rem;
  box-shadow: 0 10px 25px rgba(255, 143, 0, 0.3);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 143, 0, 0.45);
}
.primary-btn .btn-main-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-sub {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 600;
  line-height: 1;
}
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.02rem;
  padding: 0 1.85rem;
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* Interactive Demo Card */
.demo-wrapper {
  margin: 0 auto 0.25rem;
  max-width: 820px;
}
.headline-cta-section {
  padding-top: 0.25rem;
  margin-bottom: 2.5rem;
  min-height: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  pointer-events: none;
}
.headline-cta-section.revealed {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.demo-card {
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.traffic-light.red { background: #ff5f56; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #27c93f; }
.demo-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.latency-hud {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 999px;
  color: #00E676;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.latency-hud.flash {
  background: rgba(255, 214, 0, 0.2);
  border-color: #FFD600;
  color: #FFD600;
  transform: scale(1.06);
}
.latency-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 6px #00E676;
}
.latency-tag {
  color: var(--text-muted);
  font-weight: 500;
}

/* Electric Shockwave on active-app-box */
@keyframes electricShockwave {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.7), 0 10px 30px rgba(0,0,0,0.5);
    border-color: #FFD600;
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 214, 0, 0), 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--border-hover);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: var(--border-hover);
  }
}
.active-app-display.shockwave {
  animation: electricShockwave 0.45s ease-out;
}

.screen-preview {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 214, 0, 0.05) 0%, transparent 70%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}
.active-app-display {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.active-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.active-icon .app-svg {
  width: 100%;
  height: 100%;
}
.active-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--brand-yellow);
}
.active-title {
  font-size: 1.4rem;
  font-weight: 700;
}
.active-key-indicator {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  background: var(--brand-yellow);
  color: #000;
  font-weight: 700;
  border-radius: 6px;
}

/* Simulated Dock */
.dock-shelf {
  display: flex;
  justify-content: center;
}
.dock-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}
.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease;
}
.dock-item:hover {
  transform: translateY(-6px) scale(1.08);
  background: rgba(255, 255, 255, 0.08);
}
@keyframes dockSpringBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-14px) scale(1.18); }
  65% { transform: translateY(-2px) scale(0.96); }
  100% { transform: translateY(-5px) scale(1.05); }
}
.dock-item.bounce {
  animation: dockSpringBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dock-item.active {
  background: rgba(255, 214, 0, 0.15);
  border-color: var(--brand-yellow);
  transform: translateY(-5px) scale(1.05);
}
.dock-item-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.app-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dock-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand-yellow);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.press-hint {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* 3 Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
  text-align: left;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison */
.comparison-section {
  margin-bottom: 5rem;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}
.compare-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.vite-cell {
  color: #ffca28;
  font-weight: 600;
}

/* Install Steps */
.install-section {
  margin-bottom: 5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-yellow);
  line-height: 1;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  background: rgba(10, 11, 14, 0.95);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-right a:hover {
  color: var(--text-main);
}
