/* ═══════════════════════════════════════════════════════
   Neironex — main.css
   Fonts: Space Grotesk (headings) + Inter (body)
   ═══════════════════════════════════════════════════════ */

/* ─── Fonts ──────────────────────────────────────────── */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/space-grotesk-700.woff2') format('woff2'); }

/* ─── Variables ──────────────────────────────────────── */
:root {
  --bg:         #08090D;
  --bg-1:       #0D0F1A;
  --bg-card:    #0F1018;
  --bg-card2:   #13151F;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --accent:     #5B6EF5;
  --accent2:    #7C8FFF;
  --cyan:       #00D4FF;
  --purple:     #8B5CF6;
  --grad:       linear-gradient(90deg, #00D4FF 0%, #5B6EF5 50%, #8B5CF6 100%);
  --grad-135:   linear-gradient(135deg, #00D4FF 0%, #5B6EF5 50%, #8B5CF6 100%);
  --text:       #FFFFFF;
  --muted:      #8A8FA8;
  --subtle:     #1C1F2E;
  --green:      #22C55E;

  --f-head:     'Space Grotesk', sans-serif;
  --f-body:     'Inter', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   clamp(1.75rem, 3vw, 2.375rem);
  --fs-2xl:  clamp(2.2rem, 5vw, 3.5rem);
  --fs-3xl:  clamp(2.8rem, 7vw, 5rem);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── Typography helpers ──────────────────────────────── */
.h-display {
  font-family: var(--f-head);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h1 {
  font-family: var(--f-head);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--f-head);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--f-head);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.text-muted { color: var(--muted); }
.text-grad {
  background: var(--grad-135);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(8,9,13,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-logo-text {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-btn {
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: #fff;
  border: none;
  transition: opacity 0.18s, transform 0.15s;
  display: inline-block;
}
.nav-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(91,110,245,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); transform: translateY(-1px); }
.btn-sm {
  font-size: var(--fs-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
}

/* ─── Section base ───────────────────────────────────── */
.section { padding: 96px 5%; }
.section-sm { padding: 64px 5%; }
.section-header { margin-bottom: 3.5rem; }
.section-header .label { margin-bottom: 0.75rem; }
.section-header .h2 { margin-bottom: 0.75rem; }
.container { max-width: 1160px; margin: 0 auto; }

/* ─── Pill badge ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(91,110,245,0.1);
  border: 1px solid rgba(91,110,245,0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.badge-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.card:hover { border-color: rgba(91,110,245,0.35); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(91,110,245,0.1);
  border: 1px solid rgba(91,110,245,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ─── Feature row ────────────────────────────────────── */
.feature-row {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-row-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.feature-row strong { display: block; font-size: var(--fs-base); font-weight: 600; margin-bottom: 0.2rem; }
.feature-row span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* ─── Pricing cards ──────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pricing-card:hover { border-color: rgba(91,110,245,0.4); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: rgba(91,110,245,0.45);
  background: linear-gradient(160deg, #0F1120 0%, #111326 100%);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-name {
  font-family: var(--f-head);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.pricing-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.pricing-price .amount {
  font-family: var(--f-head);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-price .period { font-size: var(--fs-sm); color: var(--muted); margin-left: 0.25rem; }
.pricing-price .setup { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 0.3rem; }
.pricing-features { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.pricing-feature {
  font-size: var(--fs-sm);
  color: var(--muted);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-feature.off { color: rgba(138,143,168,0.5); }
.pricing-feature.off::before { content: '—'; color: rgba(138,143,168,0.4); }
.pricing-btn {
  display: block; width: 100%; text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius);
  font-size: var(--fs-base); font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: var(--f-body);
}
.pricing-btn-primary { background: var(--grad); color: #fff; }
.pricing-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,110,245,0.35); }
.pricing-btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.pricing-btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

/* ─── Chips ──────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: var(--fs-xs); font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: rgba(91,110,245,0.4); }

/* ─── Stats strip ────────────────────────────────────── */
.stats {
  display: flex; justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stat {
  flex: 1; min-width: 160px;
  padding: 1.75rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
  font-family: var(--f-head);
  font-size: 2rem; font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-val .accent { color: var(--accent2); }
.stat-label { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.2rem; }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-col-title {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: var(--fs-sm);
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--muted);
}
.footer-bottom a { color: var(--muted); transition: color 0.18s; }
.footer-bottom a:hover { color: var(--text); }

/* ─── Glow effect ────────────────────────────────────── */
.glow {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.09) 0%, rgba(91,110,245,0.13) 45%, transparent 70%);
}

/* ─── Divider ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Mobile burger nav ──────────────────────────────────── */
.nav-burger {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  font-size: 1.1rem; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-burger:hover { background: rgba(255,255,255,0.05); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none !important;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8,9,13,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 5%;
    gap: 0.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a { padding: 0.65rem 0; font-size: 1rem; }
  .nav-right .nav-btn { display: none; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  footer, .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
