/* ─── GOOGLE FONTS ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─── TOKENS ────────────────────────────────────────── */
:root {
  --teal:          #0DB5A0;
  --teal-light:    #5FDED0;
  --teal-dim:      #0A9387;
  --purple:        #A88BFF;

  --bg-hero:       #070C18;
  --bg-mid:        #060B15;
  --bg-alt:        #080F1C;
  --bg-docs:       #0D1B2A;
  --bg-sidebar:    #0A1520;

  --text:          #FFFFFF;
  --text-70:       rgba(255,255,255,0.70);
  --text-60:       rgba(255,255,255,0.60);
  --text-50:       rgba(255,255,255,0.50);
  --text-40:       rgba(255,255,255,0.40);
  --text-30:       rgba(255,255,255,0.30);

  --glass:         rgba(255,255,255,0.030);
  --glass-hover:   rgba(255,255,255,0.055);
  --border:        rgba(13,181,160,0.10);
  --border-hover:  rgba(13,181,160,0.28);
  --glow:          rgba(13,181,160,0.08);
  --glow-intense:  rgba(13,181,160,0.22);
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-hero);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── TOPBAR / NAV (landing) ─────────────────────────
   Existing class: .topbar, .nav-inner, .nav-logo,
   .nav-logo-text, .nav-links, .nav-toggle
   ─────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(7,12,24,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(13,181,160,0.08);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
/* Replace old logo text style with new brand icon + Poppins */
.nav-logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(13,181,160,0.22), rgba(13,181,160,0.06));
  border: 1px solid rgba(13,181,160,0.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon::after {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal), 0 0 16px rgba(13,181,160,0.4);
}
.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem; color: #fff;
}
.nav-logo-text span { color: var(--teal); }
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-60); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px; gap: 5px;
  background: transparent; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-60);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, rgba(13,181,160,0.18), rgba(13,181,160,0.06));
  border: 1px solid rgba(13,181,160,0.5);
  border-radius: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 0 24px rgba(13,181,160,0.12), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(13,181,160,0.26), rgba(13,181,160,0.12));
  border-color: rgba(13,181,160,0.75);
  box-shadow: 0 0 40px rgba(13,181,160,0.22), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  color: #fff;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text-60);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff; transform: translateY(-2px);
}
/* Nav CTA / demo button */
.btn-demo {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, rgba(13,181,160,0.15), rgba(13,181,160,0.05));
  border: 1px solid rgba(13,181,160,0.4);
  border-radius: 8px;
  color: var(--teal);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: all 0.25s;
}
.btn-demo:hover {
  background: linear-gradient(135deg, rgba(13,181,160,0.22), rgba(13,181,160,0.1));
  border-color: rgba(13,181,160,0.6);
  box-shadow: 0 0 20px rgba(13,181,160,0.18);
}
/* Button icon sizing — all btn-* classes */
.btn-primary svg, .btn-primary img,
.btn-secondary svg, .btn-secondary img,
.btn-demo svg, .btn-demo img,
.btn-appsource svg, .btn-appsource img { width: 16px; height: 16px; flex-shrink: 0; }
/* AppSource button (docs nav) */
.btn-appsource {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, rgba(13,181,160,0.15), rgba(13,181,160,0.05));
  border: 1px solid rgba(13,181,160,0.4);
  border-radius: 8px;
  color: var(--teal);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-appsource:hover {
  background: linear-gradient(135deg, rgba(13,181,160,0.22), rgba(13,181,160,0.1));
  border-color: rgba(13,181,160,0.6);
}

/* ─── SECTION SEPARATOR ──────────────────────────────── */
.sep {
  position: relative; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,181,160,0.25) 40%, rgba(13,181,160,0.25) 60%, transparent);
}
.sep::after {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 80px;
  background: radial-gradient(ellipse, rgba(13,181,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── SECTION SHARED ─────────────────────────────────── */
.section-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 0 2.5rem;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600;
  color: var(--teal); letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.8;
  margin-bottom: 0.85rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 0.95rem; color: var(--text-60);
  line-height: 1.75; max-width: 520px;
  margin-bottom: 3.5rem;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── SCROLL REVEAL ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Initial hidden state — JS adds .visible via IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger transition-delays for grid children (apply before .visible added) */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.10s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.20s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.25s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.30s; }
.features-grid .feature-card:nth-child(7) { transition-delay: 0.35s; }
.features-grid .feature-card:nth-child(8) { transition-delay: 0.40s; }
.features-grid .feature-card:nth-child(9) { transition-delay: 0.45s; }
.roadmap-cards .roadmap-card:nth-child(1) { transition-delay: 0.05s; }
.roadmap-cards .roadmap-card:nth-child(2) { transition-delay: 0.10s; }
.roadmap-cards .roadmap-card:nth-child(3) { transition-delay: 0.15s; }
.roadmap-cards .roadmap-card:nth-child(4) { transition-delay: 0.20s; }
.roadmap-cards .roadmap-card:nth-child(5) { transition-delay: 0.25s; }
.roadmap-cards .roadmap-card:nth-child(6) { transition-delay: 0.30s; }
/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer, .site-footer {
  background: var(--bg-mid);
  border-top: 1px solid rgba(13,181,160,0.08);
  padding: 3.5rem 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem; color: #fff;
  margin-bottom: 0.6rem;
}
.footer-logo-text span { color: var(--teal); }
.footer-contact {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem; color: var(--text-40);
}
.footer-contact a {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-40); text-decoration: none; transition: color 0.2s;
}
.footer-contact a:hover { color: var(--teal); }
.footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 600;
  color: var(--text-30); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem; color: var(--text-50);
  text-decoration: none; margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.7rem;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.footer-bottom:hover { opacity: 0.7; }
.footer-bottom a { text-decoration: none !important; }
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-30);
  letter-spacing: 0.04em;
}
.footer-h2-logo { height: 20px; opacity: 0.4; filter: brightness(10); }

/* ─── RESPONSIVE NAV ────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7,12,24,0.97);
    border-bottom: 1px solid rgba(13,181,160,0.1);
    flex-direction: column; gap: 0; padding: 1rem 0;
    backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
