/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; }
/* The UA's [hidden] rule loses to any class that sets display — e.g.
   .form-step.is-active. Without this, el.hidden = true silently does nothing
   and finished form steps stay on screen behind the success panel. */
[hidden] { display: none !important; }

/* Design tokens */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-bg-deep: #0f1222;
  --color-text: #14162b;
  --color-heading: #0c0e1d;
  --color-muted: #5a6178;
  --color-border: #e7e8f0;
  --color-border-strong: #d6d8e5;

  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-accent-soft: #eef0fe;
  --color-accent-2: #7c3aed;
  --color-accent-3: #06b6d4;

  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, #eef0fe 0%, #f6f0ff 100%);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --space-10: 120px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 40, 0.04), 0 1px 3px rgba(16, 18, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 18, 40, 0.06), 0 12px 28px rgba(16, 18, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 18, 40, 0.10), 0 32px 64px rgba(16, 18, 40, 0.08);
  --shadow-accent: 0 8px 24px rgba(79, 70, 229, 0.28);

  --max-width: 1180px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

h1 { font-size: clamp(2.25rem, 4.2vw + 1rem, 3.75rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { color: var(--color-muted); }

strong { color: var(--color-text); font-weight: 600; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-9) 0; }

@media (min-width: 1024px) {
  section { padding: var(--space-10) 0; }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}
.section-header .eyebrow { justify-content: center; }
.section-header .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.section-header p {
  margin-top: var(--space-4);
  font-size: 1.05rem;
}

.bg-alt { background: var(--color-bg-alt); }

/* Gradient text falls back to a solid colour. Without the @supports guard,
   a browser lacking background-clip:text keeps `color: transparent` and the
   words disappear entirely. */
.text-gradient { color: var(--color-accent); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Decorative background layers */
.bg-grid {
  position: relative;
  isolation: isolate;
}
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(20, 22, 43, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 22, 43, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* Scroll-reveal. Gated behind .js so content is always visible if the script
   fails to load — otherwise a JS hiccup would blank the whole page. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Inline icons. Every icon() call carries .ico so an un-sized SVG can never
   stretch to fill its container; context-specific rules override this. */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.18em;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
