/* ─── Design Tokens ─── */
:root {
  --primary: #0EA5E9;
  --primary-light: #38BDF8;
  --primary-dark: #0284C7;
  --secondary: #00193F;
  --secondary-light: #002560;
  --accent: #38BDF8;
  --bg-light: #F8FAFC;
  --bg-dark: #00193F;
  --text-light: #F1F5F9;
  --text-dark: #0F172A;
  --text-muted: #94A3B8;
  --glass-bg: rgba(0, 25, 63, 0.85);
  --glass-border: rgba(14, 165, 233, 0.15);
  --card-bg: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1080px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--text-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  background: rgba(14, 165, 233, 0.1);
}
.nav-links .nav-cta {
  color: var(--secondary);
  background: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}
.nav-links .nav-cta:hover {
  background: var(--primary-light);
  color: var(--secondary);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px;
  margin-left: 8px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.lang-switch button:hover { color: var(--text-light); }
.lang-switch button.active {
  background: var(--primary);
  color: var(--secondary);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Mobile Drawer ─── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--secondary);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.drawer-brand span { color: var(--text-light); }
.drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.drawer-close:hover,
.drawer-close:active { background: rgba(255, 255, 255, 0.12); color: var(--text-light); }
.drawer-nav {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 500;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.drawer-link i {
  font-size: 1.25rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}
.drawer-link:hover,
.drawer-link:active {
  background: rgba(14, 165, 233, 0.1);
}
.drawer-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.drawer-cta:hover,
.drawer-cta:active { background: rgba(255, 255, 255, 0.12); }
.drawer-cta-primary {
  background: var(--primary);
  color: var(--secondary);
}
.drawer-cta-primary:hover,
.drawer-cta-primary:active { background: var(--primary-light); }
.drawer-lang {
  justify-content: center;
  margin-top: 4px;
}
.drawer-lang button {
  font-size: 0.85rem;
  padding: 8px 14px;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14, 165, 233, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(56, 189, 248, 0.08), transparent),
    linear-gradient(170deg, var(--secondary) 0%, #001A40 40%, #002B5C 70%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title .dot { color: var(--primary); }
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.75;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ─── Sections ─── */
.section {
  padding: 100px 24px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-dark {
  background: var(--secondary);
  color: var(--text-light);
}
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}
.section-gradient {
  background: linear-gradient(170deg, var(--secondary) 0%, #002B5C 100%);
  color: var(--text-light);
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 48px;
  line-height: 1.2;
}
.section-dark .section-title,
.section-gradient .section-title { color: #FFFFFF; }
.section-light .section-title { color: var(--secondary); }

/* ─── Story ─── */
.story-content {
  max-width: 720px;
}
.story-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 28px;
  color: rgba(241, 245, 249, 0.85);
}
.story-content p:last-child { margin-bottom: 0; }
.story-highlight {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-left: 0;
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Super Agent ─── */
.super-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.super-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.super-text p:last-child { margin-bottom: 0; }
.super-visual {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 2;
  position: relative;
  overflow: hidden;
}
.super-visual::before {
  content: '>_';
  position: absolute;
  top: 16px; left: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.super-visual code {
  display: block;
  margin-top: 16px;
  white-space: pre-wrap;
}

/* ─── Built by AI ─── */
.built-content {
  max-width: 720px;
}
.built-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.built-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─── Visual Showcase ─── */
.showcase-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.showcase-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.showcase-agent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(14, 165, 233, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.showcase-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.showcase-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.showcase-prompt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  background: rgba(14, 165, 233, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--primary);
}

/* Renderer output inside showcase cards */
.showcase-visual pre {
  margin: 0;
  background: transparent;
}
.showcase-visual pre code {
  display: none;
}
.showcase-visual .renderer-placeholder {
  text-align: center;
}

@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .showcase-visual { min-height: 180px; }
}

/* ─── Mid CTA ─── */
.mid-cta-section {
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}
.mid-cta-title {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.mid-cta-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

/* ─── Social Proof ─── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.proof-num {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
.proof-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 576px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(14, 165, 233, 0.12), transparent),
    linear-gradient(170deg, #001A40, var(--secondary));
}
.cta-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cta-pricing {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
.footer {
  background: var(--secondary);
  border-top: 1px solid var(--glass-border);
  padding: 32px 24px;
  text-align: center;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.footer-text a {
  color: var(--primary);
  transition: color var(--transition);
}
.footer-text a:hover { color: var(--primary-light); }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }

/* Hero stagger */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.5s; }
.hero-content > *:nth-child(3) { animation-delay: 0.8s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Accessibility Section ─── */
.a11y-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(241, 245, 249, 0.85);
  max-width: 720px;
  margin-bottom: 36px;
}
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin-bottom: 36px;
}
.a11y-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.a11y-item strong {
  color: var(--primary-light);
  font-size: 0.9rem;
}
.a11y-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.a11y-langs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.a11y-closing {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .a11y-grid { grid-template-columns: repeat(2, 1fr); }
  .super-content { grid-template-columns: 1fr; }
  .built-stats { gap: 32px; }
  .section { padding: 80px 24px; }

  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
  .a11y-grid { grid-template-columns: 1fr; }
  .built-stats { gap: 24px; }

  .hero { padding: 100px 20px 60px; }
  .hero-title { letter-spacing: -1px; }
  .section { padding: 60px 20px; }
}
