/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0f1e;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --teal:     #00d4aa;
  --teal-dim: #00a882;
  --navy:     #0a0f1e;
  --navy-2:   #0f1629;
  --navy-3:   #162040;
  --card:     #111827;
  --border:   rgba(255,255,255,0.08);
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; white-space: nowrap;
}
.logo-icon { color: var(--teal); font-size: 1.4rem; }
.logo-text { background: linear-gradient(135deg, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.btn-nav {
  padding: 8px 20px; background: var(--teal); color: #000;
  border-radius: 8px; font-weight: 600; font-size: 0.875rem;
  white-space: nowrap; transition: background 0.2s;
}
.btn-nav:hover { background: var(--teal-dim); }
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.mobile-menu {
  display: none; flex-direction: column; gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); font-size: 0.95rem; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--teal); color: #000;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--teal-dim); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,212,170,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: transparent; color: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-large { padding: 14px 36px; font-size: 1rem; }

/* ── Gradients & Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, #60a5fa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,170,0.07) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px; margin-bottom: 28px;
  background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.25);
  border-radius: 100px; font-size: 0.8rem; color: var(--teal); font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { max-width: 640px; color: var(--muted); font-size: 1.125rem; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.hero-code {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 32px; max-width: 560px; text-align: left; margin-bottom: 48px;
  font-family: 'JetBrains Mono', monospace;
}
.code-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.code-block { font-size: 0.85rem; line-height: 1.8; }
.code-comment { color: #4b5563; }
.code-key { color: #93c5fd; }
.code-str { color: var(--teal); }
.hero-stats { display: flex; gap: 0; align-items: center; flex-wrap: wrap; justify-content: center; }
.stat-item { text-align: center; padding: 0 32px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 56px; }
section { padding: 100px 0; }

/* ── Pipeline ── */
.pipeline-section { background: var(--navy-2); }
.pipeline-visual {
  display: flex; align-items: flex-start; gap: 8px; overflow-x: auto;
  padding: 8px 0 16px;
}
.pipeline-arrow { color: var(--teal); font-size: 1.5rem; flex-shrink: 0; padding-top: 48px; }
.pipeline-group { flex-shrink: 0; }
.pipeline-group-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-align: center; padding: 4px 8px; border-radius: 4px;
  margin-bottom: 8px;
}
.pipeline-ingress .pipeline-group-label { background: rgba(96,165,250,0.15); color: #60a5fa; }
.pipeline-compliance .pipeline-group-label { background: rgba(0,212,170,0.15); color: var(--teal); }
.pipeline-optimization .pipeline-group-label { background: rgba(167,139,250,0.15); color: #a78bfa; }
.pipeline-execution .pipeline-group-label { background: rgba(251,191,36,0.15); color: #fbbf24; }
.pipeline-stages { display: flex; flex-direction: column; gap: 6px; }
.stage-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.8rem; white-space: nowrap; min-width: 170px;
}
.stage-num { color: var(--teal); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; }
.stage-name { font-weight: 500; }
.pipeline-cta { text-align: center; margin-top: 40px; }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-2px); }
.feature-highlight {
  background: linear-gradient(135deg, rgba(0,212,170,0.05), var(--card));
  border-color: rgba(0,212,170,0.2);
  grid-column: 1 / -1;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px; background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2); border-radius: 100px;
  font-size: 0.7rem; color: var(--teal); font-weight: 600; letter-spacing: 0.05em;
}
.phi-demo { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.phi-before, .phi-after {
  padding: 12px 16px; border-radius: 8px; font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
}
.phi-before { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.phi-after { background: rgba(0,212,170,0.08); border: 1px solid rgba(0,212,170,0.2); }
.phi-label { display: block; font-size: 0.65rem; color: var(--muted); margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.1em; }
.phi-text { color: var(--text); }
.phi-arrow { text-align: center; color: var(--teal); font-size: 1.2rem; }
mark { background: rgba(0,212,170,0.2); color: var(--teal); border-radius: 3px; padding: 0 3px; }

/* ── Architecture ── */
.architecture-section { background: var(--navy-2); }
.arch-diagram { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding: 8px 0 24px; }
.arch-col {
  flex-shrink: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.arch-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); text-align: center; margin-bottom: 16px; }
.arch-clients .arch-item, .arch-providers .arch-col-title { min-width: 160px; }
.arch-item { padding: 8px 0; color: var(--muted); font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.arch-item:last-child { border-bottom: none; }
.arch-gateway { flex: 1; min-width: 280px; }
.arch-stages-mini { display: flex; flex-direction: column; gap: 6px; }
.stage-mini { padding: 8px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; text-align: center; }
.stage-ingress { background: rgba(96,165,250,0.1); color: #93c5fd; }
.stage-compliance { background: rgba(0,212,170,0.1); color: var(--teal); }
.stage-opt { background: rgba(167,139,250,0.1); color: #c4b5fd; }
.stage-exec { background: rgba(251,191,36,0.1); color: #fcd34d; }
.arch-arrow-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.arch-arrow-line { width: 48px; height: 2px; background: linear-gradient(to right, var(--border), var(--teal)); }
.arch-arrow-label { font-size: 0.65rem; color: var(--muted); text-align: center; max-width: 80px; }
.arch-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.provider-chip {
  padding: 6px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-align: center;
  background: var(--navy-3); border: 1px solid var(--border); color: var(--muted);
}
.provider-openai { color: #74aa9c; border-color: rgba(116,170,156,0.3); }
.provider-anthropic { color: #d97706; border-color: rgba(217,119,6,0.3); }
.provider-azure { color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.provider-bedrock { color: #f97316; border-color: rgba(249,115,22,0.3); }
.provider-google { color: #4285f4; border-color: rgba(66,133,244,0.3); }
.provider-groq { color: #a78bfa; border-color: rgba(167,139,250,0.3); }
.arch-infra {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 28px; margin-top: 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.infra-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.infra-items { display: flex; gap: 16px; flex-wrap: wrap; }
.infra-item { font-size: 0.82rem; color: var(--text); white-space: nowrap; }

/* ── Use Cases ── */
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.usecase-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s;
}
.usecase-card:hover { border-color: rgba(0,212,170,0.3); }
.usecase-icon { font-size: 2rem; margin-bottom: 12px; }
.usecase-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.usecase-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 16px; line-height: 1.7; }
.usecase-list li { color: var(--muted); font-size: 0.85rem; padding: 4px 0; padding-left: 20px; position: relative; }
.usecase-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); }

/* ── Demo CTA ── */
.demo-cta-section { background: var(--navy-2); }
.demo-cta-inner { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.demo-cta-content { flex: 1; min-width: 280px; }
.demo-cta-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.demo-cta-content p { color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.demo-cta-preview { flex-shrink: 0; }
.demo-preview-card {
  background: #0d1117; border: 1px solid rgba(0,212,170,0.25);
  border-radius: var(--radius); padding: 20px; min-width: 240px;
  box-shadow: 0 0 40px rgba(0,212,170,0.08);
}
.demo-preview-header { font-size: 0.75rem; font-weight: 700; color: var(--teal); margin-bottom: 14px; letter-spacing: 0.05em; }
.demo-preview-stages { display: flex; flex-direction: column; gap: 6px; }
.dp-stage { font-size: 0.8rem; padding: 6px 10px; border-radius: 6px; }
.dp-done { background: rgba(0,212,170,0.08); color: var(--teal); }
.dp-active { background: rgba(251,191,36,0.12); color: #fbbf24; animation: pulse 1.5s infinite; }
.dp-pending { color: #374151; }
.demo-preview-footer { font-size: 0.7rem; color: var(--muted); margin-top: 14px; text-align: center; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.6 } }

/* ── Pricing Preview ── */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 32px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s;
}
.pricing-card-featured {
  border-color: var(--teal); position: relative;
  background: linear-gradient(135deg, rgba(0,212,170,0.04), var(--card));
  box-shadow: 0 0 40px rgba(0,212,170,0.1);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #000; padding: 4px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.pricing-tier { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.pricing-price { font-size: 2.5rem; font-weight: 800; }
.pricing-period { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-desc { color: var(--muted); font-size: 0.875rem; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-features li { font-size: 0.875rem; color: var(--text); }
.pricing-link { text-align: center; color: var(--teal); font-weight: 600; }
.pricing-link a:hover { text-decoration: underline; }

/* ── Footer ── */
.footer { background: #060912; border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-inner { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 1rem; }
.footer-tagline { color: var(--muted); font-size: 0.875rem; margin-bottom: 16px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  padding: 3px 10px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.7rem; color: var(--muted); font-weight: 600;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-hamburger { display: block; margin-left: auto; }
  .pipeline-visual { flex-direction: column; align-items: stretch; }
  .pipeline-arrow { display: none; }
  .arch-diagram { flex-direction: column; }
  .demo-cta-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
  section { padding: 64px 0; }
}

/* ── Page-specific (Pricing, Terms, etc.) ── */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,212,170,0.06) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 100px; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; color: var(--text); }
.prose p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.prose ul { margin-bottom: 16px; padding-left: 20px; }
.prose ul li { color: var(--muted); line-height: 1.8; font-size: 0.95rem; list-style: disc; }
.prose a { color: var(--teal); }
.prose a:hover { text-decoration: underline; }
.prose .last-updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 40px; display: block; }

/* ── Pricing Page ── */
.pricing-full { padding: 0 0 100px; }
.pricing-full .section-title { padding-top: 60px; }
.pricing-full-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-bottom: 60px; }
.pricing-full-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-full-card.featured { border-color: var(--teal); box-shadow: 0 0 60px rgba(0,212,170,0.1); }
.pricing-full-card .pricing-tier { font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.pricing-full-card .pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.pricing-full-card .pricing-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-full-card .pricing-features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-full-card .pricing-features li { font-size: 0.875rem; display: flex; gap: 10px; }
.pricing-full-card .pricing-features li::before { content: '✓'; color: var(--teal); flex-shrink: 0; }
.pricing-full-card .pricing-features li.no::before { content: '✗'; color: #4b5563; }
.pricing-full-card .btn-primary, .pricing-full-card .btn-outline { text-align: center; justify-content: center; }

.faq-section { padding: 80px 0; background: var(--navy-2); }
.faq-grid { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer;
}
.faq-question { font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin-top: 12px; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-toggle { color: var(--teal); font-size: 1.2rem; transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.contact-section { padding: 80px 0; }
.contact-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.contact-form-col { flex: 1; min-width: 280px; }
.contact-info-col { flex-shrink: 0; min-width: 240px; }
.contact-form-col h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--card); }
.contact-info-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon { font-size: 1.2rem; }
.contact-detail-text { font-size: 0.875rem; color: var(--muted); }
.contact-detail-text a { color: var(--teal); }

/* ── Demo Page ── */
.demo-page-hero { padding: 100px 24px 40px; text-align: center; }
.demo-page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.demo-page-hero p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.demo-frame-wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
  border-radius: var(--radius); overflow: hidden;
}
.demo-frame-wrap iframe {
  width: 100%; height: 800px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #0d1117;
}
