/* ============================================================
   TELLUCO — Liquid Glass Design System
   Dark, premium, glassmorphism. Brand: #864ffe
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #f4f2fe;
  --brand-200: #dcd4ff;
  --brand-300: #c3b1ff;
  --brand-400: #a585ff;
  --brand-500: #864ffe;
  --brand-600: #7c31f6;
  --brand-700: #6a1fe0;
  --indigo:    #4f46e5;
  --violet:    #7c3aed;
  --cyan:      #4dd6f0;

  /* Surfaces (dark) */
  --bg-0: #05060b;
  --bg-1: #080a13;
  --bg-2: #0b0e1a;

  /* Text */
  --text-1: #f5f6fb;
  --text-2: #b6bacb;
  --text-3: #7f849a;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.55);

  /* Effects */
  --blur: 20px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --shadow-glow: 0 0 0 1px rgba(134, 79, 254, 0.18), 0 20px 60px -20px rgba(134, 79, 254, 0.45);
  --shadow-soft: 0 24px 70px -30px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);

  --grad-brand: linear-gradient(120deg, var(--indigo) 0%, var(--brand-500) 48%, var(--brand-400) 100%);
  --grad-text: linear-gradient(120deg, #ffffff 0%, #cbb9ff 55%, var(--brand-400) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% -5%, rgba(124, 49, 246, 0.22), transparent 60%),
    radial-gradient(55% 45% at 95% 0%, rgba(79, 70, 229, 0.18), transparent 55%),
    radial-gradient(50% 60% at 50% 110%, rgba(134, 79, 254, 0.14), transparent 60%),
    var(--bg-0);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.03;
}
html.light body::after { opacity: 0.02; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-500); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.6;
}
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 90px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-xl { max-width: 720px; }
.maxw-lg { max-width: 620px; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(134, 79, 254, 0.10);
  border: 1px solid rgba(134, 79, 254, 0.24);
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 12px 2px var(--brand-400);
}
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Glass primitives ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow-soft);
}
/* Liquid top highlight */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--glass-hi), transparent 35%, transparent 70%, rgba(134,79,254,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.glass-strong { background: var(--glass-bg-strong); border-color: var(--glass-border-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: 0 12px 34px -10px rgba(134, 79, 254, 0.7), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -12px rgba(134, 79, 254, 0.85), inset 0 1px 0 rgba(255,255,255,0.28); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  color: var(--text-1);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--glass-bg-strong); border-color: rgba(134,79,254,0.4); }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  z-index: 100;
  transition: top 0.4s var(--ease);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.9);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled .nav-shell {
  background: rgba(8, 10, 18, 0.82);
  box-shadow: 0 24px 60px -26px rgba(0,0,0,0.95), var(--shadow-glow);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text-1); background: rgba(134,79,254,0.16); }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
}
.nav-burger span { width: 20px; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-drawer.open { visibility: visible; opacity: 1; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(3,4,8,0.7); backdrop-filter: blur(6px); }
.mobile-panel {
  position: relative;
  width: min(86%, 380px);
  height: 100%;
  padding: 28px 26px;
  background: rgba(9, 11, 20, 0.92);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer.open .mobile-panel { transform: translateX(0); }
.mobile-panel .drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-panel .drawer-top img { height: 28px; }
.drawer-close {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  display: grid; place-items: center; color: var(--text-1);
}
.mobile-panel a.m-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--text-1);
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.25s;
}
.mobile-panel a.m-link:hover { color: var(--brand-300); padding-left: 12px; }
.mobile-panel .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy .display { margin-top: 26px; }
.hero-copy .lead { margin-top: 24px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .stat .num { font-family: 'Space Grotesk'; font-size: 1.7rem; font-weight: 700; color: var(--text-1); }
.hero-trust .stat .lbl { font-size: 0.82rem; color: var(--text-3); }
.hero-trust .divider { width: 1px; height: 38px; background: rgba(255,255,255,0.1); }

/* Hero visual — floating glass stack */
.hero-visual { position: relative; min-height: 420px; perspective: 1400px; }
.orb {
  position: absolute;
  top: 50%; left: 50%;
  width: min(360px, 74%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--indigo), var(--brand-500), var(--violet), var(--cyan), var(--brand-400), var(--indigo));
  filter: blur(38px);
  opacity: 0.55;
  animation: spin 22s linear infinite;
  will-change: transform;
  transform: translate(-50%, -50%) translateZ(0);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.float-card {
  position: absolute;
  border-radius: var(--radius);
  background: rgba(14, 16, 28, 0.62);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  will-change: transform;
}
.float-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; pointer-events: none;
}
.fc-main { top: 26%; left: 8%; width: 60%; z-index: 3; }
.fc-mini { top: 6%; right: 4%; width: 46%; z-index: 4; }
.fc-badge { bottom: 8%; left: 20%; width: 52%; z-index: 5; display: flex; align-items: center; gap: 12px; }

.fc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fc-row:last-child { margin-bottom: 0; }
.fc-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); flex-shrink: 0; box-shadow: 0 0 18px -2px var(--brand-500); }
.fc-line { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.12); flex: 1; }
.fc-line.short { width: 40%; flex: none; }
.fc-chart { display: flex; align-items: flex-end; gap: 7px; height: 74px; margin-top: 4px; }
.fc-chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); opacity: 0.85; }
.fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(134,79,254,0.18); border: 1px solid rgba(134,79,254,0.32); color: var(--brand-300); flex-shrink: 0; }
.fc-ico svg { width: 20px; height: 20px; }
.fc-badge .t { font-family: 'Space Grotesk'; font-weight: 600; color: var(--text-1); font-size: 0.95rem; }
.fc-badge .s { font-size: 0.78rem; color: var(--text-3); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk'; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--text-3); white-space: nowrap; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .orb { animation: none; } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 140px at var(--mx, 50%) var(--my, 0%), rgba(134,79,254,0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(134,79,254,0.4); background: var(--glass-bg-strong); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(134, 79, 254, 0.14);
  border: 1px solid rgba(134, 79, 254, 0.3);
  color: var(--brand-300);
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--brand-300); font-weight: 600; font-size: 0.92rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.card-feature { padding: 34px; }
.card-feature ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.card-feature li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-2); font-size: 0.96rem; }
.card-feature li svg { width: 20px; height: 20px; color: var(--brand-400); flex-shrink: 0; margin-top: 1px; }

/* Spanning card */
.card-wide { grid-column: 1 / -1; }
@media (min-width: 992px) { .col-2 { grid-column: span 2; } }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); }
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stats-band .stat { padding: 34px 26px; text-align: center; background: rgba(10,12,22,0.5); backdrop-filter: blur(12px); }
.stats-band .num { font-family: 'Space Grotesk'; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; }
.stats-band .lbl { color: var(--text-3); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(134,79,254,0.5), transparent);
}
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.tl-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
@media (min-width: 768px) {
  .tl-step { grid-template-columns: 1fr 56px 1fr; }
  .tl-step:nth-child(even) { direction: rtl; }
  .tl-step:nth-child(even) .tl-body { direction: ltr; }
  .tl-step .tl-spacer { display: block; }
}
.tl-spacer { display: none; }
.tl-node {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.2rem; color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 0 0 6px rgba(134,79,254,0.12), 0 12px 30px -8px rgba(134,79,254,0.6);
  position: relative; z-index: 2;
}
.tl-body { direction: ltr; }
.tl-body h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  padding: clamp(44px, 7vw, 84px);
  border-radius: var(--radius-xl);
  background: rgba(12, 14, 26, 0.6);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(24px);
  overflow: hidden;
  text-align: center;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 20% 0%, rgba(124,49,246,0.4), transparent 60%),
    radial-gradient(50% 80% at 85% 100%, rgba(79,70,229,0.35), transparent 60%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid .two { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--text-2); }
.field label .req { color: var(--brand-400); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23b6bacb' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px,
    rgba(255, 255, 255, 0.04);
  padding-right: 44px;
}
.field select::-ms-expand { display: none; }
.field select option { background: var(--bg-2); color: var(--text-1); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-500);
  background: rgba(134,79,254,0.06);
  box-shadow: 0 0 0 4px rgba(134,79,254,0.14);
}
.field select:focus {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23b6bacb' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px,
    rgba(134, 79, 254, 0.06);
}
.field .err { color: #ff9b8a; font-size: 0.82rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff7a63; }
.alert-success {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(102, 224, 150, 0.1); border: 1px solid rgba(102,224,150,0.3);
  color: #a7f3c9; font-size: 0.95rem; margin-bottom: 22px;
}
.alert-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.contact-split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .contact-split { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.info-item .ii-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(134,79,254,0.14); border: 1px solid rgba(134,79,254,0.3); color: var(--brand-300); flex-shrink: 0; }
.info-item .ii-ico svg { width: 22px; height: 22px; }
.info-item .k { font-size: 0.8rem; color: var(--text-3); }
.info-item .v { font-family: 'Space Grotesk'; color: var(--text-1); font-size: 1.05rem; margin-top: 2px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; gap: clamp(30px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.rev .split-media { order: -1; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: rgba(10,12,22,0.5); border: 1px solid var(--glass-border); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { padding: 9px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); }

/* ---------- Value list (checks) ---------- */
.check-list { display: grid; gap: 16px; margin-top: 10px; }
.check-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; }
.check-list .ck { width: 26px; height: 26px; border-radius: 8px; background: rgba(134,79,254,0.16); border: 1px solid rgba(134,79,254,0.32); display: grid; place-items: center; color: var(--brand-300); flex-shrink: 0; }
.check-list .ck svg { width: 15px; height: 15px; }
.check-list strong { color: var(--text-1); font-family: 'Space Grotesk'; font-weight: 600; display: block; margin-bottom: 3px; }
.check-list span { font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 50% 0%, rgba(124,49,246,0.12), transparent 60%);
}
.footer-top { display: grid; gap: 44px; grid-template-columns: 1fr; padding-block: clamp(56px, 8vw, 88px); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; font-size: 0.94rem; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-2); transition: all 0.3s var(--ease); }
.footer-social a:hover { color: #fff; border-color: rgba(134,79,254,0.5); transform: translateY(-3px); background: rgba(134,79,254,0.14); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 18px; font-family: 'Inter'; font-weight: 600; }
.footer-col a { display: block; padding: 7px 0; color: var(--text-2); font-size: 0.95rem; transition: color 0.2s, padding-left 0.25s; }
.footer-col a:hover { color: var(--brand-300); padding-left: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.07); color: var(--text-3); font-size: 0.88rem; }

/* ---------- Reveal animation (fallback + JS) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-card { animation: none !important; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(150px, 20vh, 210px); padding-bottom: clamp(30px, 5vw, 60px); text-align: center; position: relative; }
.page-hero .display { margin-top: 22px; }
.page-hero .lead { margin: 22px auto 0; max-width: 620px; }

/* utilities */
.flex { display: flex; }
.g-14 { gap: 14px; }
.wrap { flex-wrap: wrap; }
.jc { justify-content: center; }
.hidden { display: none; }

/* ============================================================
   THEME TOGGLE + LOGO SWAP (dark = default)
   ============================================================ */
.logo-light { display: none; }   /* dark-colored logo, shown in light theme */
.logo-dark  { display: block; }   /* light-colored logo, shown in dark theme */

.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-1);
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.7), var(--shadow-glow);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.theme-toggle:hover { transform: translateY(-3px) rotate(-8deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
html.light {
  --bg-0: #eceef6;
  --bg-1: #f3f4fa;
  --bg-2: #ffffff;

  --text-1: #101223;
  --text-2: #474b60;
  --text-3: #6c7186;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(20, 22, 48, 0.10);
  --glass-border-strong: rgba(20, 22, 48, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.95);

  --shadow-soft: 0 26px 60px -34px rgba(60, 50, 120, 0.4);
  --shadow-glow: 0 0 0 1px rgba(134, 79, 254, 0.12), 0 22px 50px -22px rgba(134, 79, 254, 0.35);

  --grad-text: linear-gradient(120deg, #17182a 0%, #6a44e6 55%, var(--brand-600) 100%);
}

/* Logo swap */
html.light .logo-light { display: block; }
html.light .logo-dark  { display: none; }

/* Page background + ambient glow */
html.light body { color: var(--text-2); }
html.light body::before {
  background:
    radial-gradient(60% 50% at 15% -5%, rgba(134, 79, 254, 0.16), transparent 60%),
    radial-gradient(55% 45% at 95% 0%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(50% 60% at 50% 110%, rgba(134, 79, 254, 0.10), transparent 60%),
    var(--bg-0);
}
html.light body::after { opacity: 0.02; }

/* Nav */
html.light .nav-shell { background: rgba(255, 255, 255, 0.7); box-shadow: 0 20px 50px -26px rgba(60, 50, 120, 0.4); }
html.light .site-header.scrolled .nav-shell { background: rgba(255, 255, 255, 0.88); }
html.light .nav-links a:hover { background: rgba(20, 22, 48, 0.05); }

/* Mobile drawer */
html.light .mobile-panel { background: rgba(255, 255, 255, 0.95); }
html.light .mobile-drawer .scrim { background: rgba(20, 22, 48, 0.35); }
html.light .mobile-panel a.m-link { border-bottom-color: rgba(20, 22, 48, 0.08); }

/* Floating cards + lines */
html.light .float-card { background: rgba(255, 255, 255, 0.82); }
html.light .fc-line { background: rgba(20, 22, 48, 0.10); }

/* Stats band */
html.light .stats-band { background: rgba(20, 22, 48, 0.10); }
html.light .stats-band .stat { background: rgba(255, 255, 255, 0.72); }

/* CTA + split media */
html.light .cta-panel { background: rgba(255, 255, 255, 0.72); }
html.light .split-media { background: rgba(255, 255, 255, 0.6); }

/* Forms */
html.light .field input,
html.light .field textarea { background: rgba(255, 255, 255, 0.85); }
html.light .field select,
html.light .field select:focus {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23474b60' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px,
    rgba(255, 255, 255, 0.85);
}

/* Hairlines / dividers */
html.light .site-footer { border-top-color: rgba(20, 22, 48, 0.10); }
html.light .site-footer::before { background: radial-gradient(60% 120% at 50% 0%, rgba(134, 79, 254, 0.10), transparent 60%); }
html.light .footer-bottom { border-top-color: rgba(20, 22, 48, 0.08); }
html.light .info-item { border-bottom-color: rgba(20, 22, 48, 0.08); }
html.light .hero-trust .divider { background: rgba(20, 22, 48, 0.14); }

/* Brand-tinted text needs darker ink on light */
html.light .eyebrow { color: var(--brand-600); }
html.light .card .card-link { color: var(--brand-600); }
html.light .pill { background: rgba(20, 22, 48, 0.04); }

/* Theme toggle button */
html.light .theme-toggle {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 34px -16px rgba(60, 50, 120, 0.5), var(--shadow-glow);
}
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }
