/* ===================== Tokens ===================== */
:root {
  --bg: #05070d;
  --bg-alt: #080b14;
  --card: #0d111c;
  --card-hover: #121826;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --text-muted: #9aa3b8;
  --text-faint: #6b7387;
  --blue-deep: #1d4ed8;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --gradient: linear-gradient(90deg, var(--blue-deep), var(--cyan));
  --gradient-radial: radial-gradient(circle, rgba(34, 211, 238, 0.55), rgba(29, 78, 216, 0.15) 60%, transparent 72%);
  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -24px rgba(0,0,0,0.6);
  --shadow-btn: 0 10px 30px -12px rgba(37, 99, 235, 0.55);
  --container: 1180px;
  --container-narrow: 760px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Lexend", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: #04121b; padding: 0.75rem 1.25rem;
  z-index: 200; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ===================== Layout helpers ===================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container.narrow { max-width: var(--container-narrow); }
.center { text-align: center; }
.center .hero-tags, .center .btn { margin-inline: auto; }

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.narrow { max-width: 640px; margin-inline: auto; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--text-muted); max-width: 640px; margin-inline: auto; margin-bottom: 1rem; }
.lead.muted { color: var(--text-faint); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--gradient);
  color: #051019;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(37, 99, 235, 0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(5, 7, 13, 0.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark { width: 1.9rem; height: 1.9rem; }
.footer-inner .brand-mark { width: 2.1rem; height: 2.1rem; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s var(--ease); position: relative; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2.25rem; height: 2.25rem; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60rem;
  background: radial-gradient(60% 60% at 70% 20%, rgba(37, 99, 235, 0.28), transparent 70%),
              radial-gradient(40% 40% at 20% 10%, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; margin-bottom: 1.4rem; }
.hero-copy .line { display: block; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 34rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-tags li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.hero-tags .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 2px rgba(34,211,238,0.7); }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.ring-orb { position: relative; width: min(24rem, 80vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.07); }
.ring-1 { inset: 8%; animation: spin 22s linear infinite; border-color: rgba(37,99,235,0.25); }
.ring-2 { inset: 20%; animation: spin 16s linear infinite reverse; border-color: rgba(34,211,238,0.3); }
.ring-core {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--gradient-radial);
  box-shadow: 0 0 90px 20px rgba(34, 211, 238, 0.25), inset 0 0 60px rgba(0,0,0,0.4);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ===================== Stats ===================== */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.stat { display: flex; flex-direction: column; gap: 0.35rem; text-align: center; padding-inline: 0.5rem; }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-number small { font-size: 0.55em; font-weight: 700; margin-left: 0.1em; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); }

/* ===================== Cards ===================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); }
.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.card-icon {
  width: 2.6rem; height: 2.6rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(34,211,238,0.14));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.minimal { padding: 1.6rem 1.7rem; }
.card.minimal h3 { font-size: 1.02rem; }

/* ===================== Quote section ===================== */
.quote-section { text-align: center; }
.quote { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.5; color: var(--text); font-weight: 500; max-width: 42rem; margin-inline: auto; margin-bottom: 1.4rem; }
.quote em { font-style: normal; color: var(--cyan); }
.quote-secondary { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 400; }

/* ===================== Process ===================== */
.process-list { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; }
.process-list li {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 1.3rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.process-list li:last-child { border-bottom: none; }
.step-number {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: transparent; -webkit-background-clip: text; background-clip: text; background: var(--gradient);
  width: 2.5rem; flex-shrink: 0;
}
.step-text { font-size: 1.02rem; color: var(--text); font-weight: 500; }

/* ===================== FAQ / Accordion ===================== */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; text-align: left; font-weight: 600; font-size: 1rem; color: var(--text);
}
.accordion-trigger svg { width: 1.1rem; height: 1.1rem; stroke: var(--cyan); stroke-width: 2.2; fill: none; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease);
}
.accordion-panel > p { overflow: hidden; padding: 0 1.4rem; color: var(--text-muted); font-size: 0.95rem; }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-item.open .accordion-panel > p { padding: 0 1.4rem 1.3rem; }
.accordion-panel { overflow: hidden; }

/* ===================== Final CTA ===================== */
.final-cta h2 { line-height: 1.2; }
.final-cta { position: relative; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 30%, rgba(37,99,235,0.18), transparent 70%);
}

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-text { text-align: right; }
.footer-text p { font-size: 0.88rem; color: var(--text-muted); }
.footer-fine { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.2rem; }

/* ===================== Mobile sticky CTA ===================== */
.mobile-sticky-cta {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--gradient); color: #051019; font-weight: 700; font-size: 0.95rem;
  text-align: center; padding: 1rem; border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px -10px rgba(37,99,235,0.65);
}

/* ===================== Reveal animation ===================== */
/* Content stays fully visible unless JS confirms it can animate it in (.js on <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .ring-orb { width: min(16rem, 60vw); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 4.5rem 0 0 0; height: calc(100vh - 4.5rem);
    background: rgba(5,7,13,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 2rem 1.5rem; gap: 0.5rem;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 0.9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-text { text-align: center; }

  .mobile-sticky-cta { display: block; }
  .section { padding-block: clamp(3rem, 10vw, 4.5rem); }
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-tags { gap: 1rem 1.4rem; }
}
