/* Tradelyxa — base styles */
:root {
  --bg-0: #04060B;
  --bg-1: #070A12;
  --bg-2: #0B1020;
  --ink-0: #F5F7FF;
  --ink-1: rgba(245, 247, 255, 0.72);
  --ink-2: rgba(245, 247, 255, 0.52);
  --ink-3: rgba(245, 247, 255, 0.32);
  --ink-4: rgba(245, 247, 255, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.025);
  --glass-2: rgba(255, 255, 255, 0.045);
  --blue: oklch(0.72 0.18 244);
  --blue-soft: oklch(0.72 0.18 244 / 0.18);
  --blue-glow: oklch(0.72 0.22 244 / 0.55);
  --cyan: oklch(0.82 0.13 220);
  --green: oklch(0.78 0.15 156);
  --red: oklch(0.68 0.21 22);
  --amber: oklch(0.82 0.16 78);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

body {
  overflow-x: hidden;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }

/* —— Cosmic backdrop —— */
.cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% -10%, oklch(0.32 0.13 244 / 0.32), transparent 60%),
    radial-gradient(900px 700px at 90% 8%, oklch(0.28 0.10 260 / 0.22), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, oklch(0.32 0.12 244 / 0.22), transparent 60%),
    var(--bg-0);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: drift linear infinite;
  opacity: 0;
}
@keyframes drift {
  0% { transform: translateY(20vh); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-110vh); opacity: 0; }
}

/* —— Layout —— */
main { position: relative; z-index: 2; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }

/* —— Nav —— */
.nav-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(1320px, calc(100vw - 32px));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 18px;
  background: rgba(8, 10, 18, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.04em; }
.nav-brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 14px var(--blue-glow)); }
.nav-brand .name { font-size: 14px; letter-spacing: 0.18em; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms, background 160ms;
}
.nav-links a:hover { color: var(--ink-0); background: rgba(255,255,255,0.04); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, oklch(0.78 0.18 244), oklch(0.62 0.20 244));
  color: white;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid oklch(0.85 0.12 244);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 10px 28px -8px var(--blue-glow);
  cursor: pointer;
  transition: transform 180ms, box-shadow 180ms;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 14px 36px -8px var(--blue-glow); }

/* —— Eyebrow chip —— */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.chip .pill { background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.14em; }

/* —— Section base —— */
section { position: relative; padding: 104px 0; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--blue);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h1 {
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h3 { font-size: 18px; font-weight: 500; }
p { color: var(--ink-1); line-height: 1.55; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, oklch(0.78 0.18 244), oklch(0.58 0.20 244));
  color: white;
  border-color: oklch(0.85 0.12 244);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 18px 40px -12px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 24px 50px -12px var(--blue-glow); }
.btn-ghost {
  background: var(--glass);
  color: var(--ink-0);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: var(--line-2); }

/* —— Glass card —— */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* corner ticks */
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink-4);
}
.ticks i:nth-child(1) { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.ticks i:nth-child(2) { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.ticks i:nth-child(3) { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.ticks i:nth-child(4) { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* —— Footer —— */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  margin-top: 80px;
}

/* —— Misc —— */
.kbd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-1);
  background: rgba(255,255,255,0.03);
}

/* fade-in reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

::selection { background: var(--blue-soft); color: white; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* =====================================================
   RESPONSIVE LAYOUT HELPERS
   Replace inline grid/flex styles in JSX with these
   classes so media queries can override them cleanly.
   ===================================================== */

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.hero-dashboard { display: block; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}
.stats-cell {
  padding: 26px 28px;
  position: relative;
}

/* Execution Gap */
.gap-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.gap-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Features */
.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 48px;
}
.feature-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Pipeline */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.how-connector {
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.72 0.18 244 / 0.6), transparent);
}

/* Vision */
.vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms;
}
.nav-hamburger:hover { border-color: var(--line-2); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
}
/* open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-down nav menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  z-index: 58;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: menuSlide 220ms cubic-bezier(.2,.7,.2,1);
}
.nav-mobile-menu.open { display: flex; }
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-menu a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  transition: background 160ms, color 160ms;
  letter-spacing: 0.01em;
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--ink-0); }
.nav-mobile-menu .mob-cta {
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(0.78 0.18 244), oklch(0.62 0.20 244));
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid oklch(0.85 0.12 244);
  box-shadow: 0 8px 24px -8px var(--blue-glow);
  cursor: pointer;
  transition: opacity 160ms;
}
.nav-mobile-menu .mob-cta:hover { opacity: 0.88; }

/* Waitlist form stacking */
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}

/* ── Tablet  ≤ 900px ── */
@media (max-width: 900px) {
  .wrap { padding: 0 32px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-dashboard { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-cell:nth-child(1),
  .stats-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats-cell:nth-child(odd)  { border-right: 1px solid var(--line) !important; }
  .stats-cell:nth-child(even) { border-right: none !important; }

  .gap-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .gap-cards  { grid-template-columns: 1fr; }

  .feature-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .feature-grid-layout { grid-template-columns: repeat(2, 1fr); }

  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how-connector { display: none; }

  .vision-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-meta { flex-direction: column; gap: 14px; text-align: center; }
}

/* ── Mobile  ≤ 600px ── */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }

  /* nav: hide links, show burger */
  .nav-links  { display: none !important; }
  .nav-cta    { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav { border-radius: 18px; }

  h1 { font-size: clamp(34px, 9vw, 52px); }
  h2 { font-size: clamp(26px, 7.5vw, 40px); }

  .hero-grid { gap: 32px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .gap-cards { grid-template-columns: 1fr; }

  .feature-grid-layout { grid-template-columns: 1fr; }

  .how-grid { grid-template-columns: 1fr; gap: 20px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  .waitlist-form { flex-direction: column; border-radius: 18px; }
  .waitlist-form input { padding: 14px 16px; }
  .waitlist-form button { border-radius: 12px !important; justify-content: center; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-meta { margin-top: 40px; }
}

/* Gap card internals on mobile */
.gap-card-content {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 18px;
  align-items: center;
}
.gap-card-viz { display: block; }

@media (max-width: 600px) {
  .gap-card-content { grid-template-columns: 1fr; gap: 0; }
  .gap-card-viz { display: none; }
}

/* ── Small mobile  ≤ 400px ── */
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* stats stay 2-col even on small phones — numbers are readable */
}
