/* ==========================================================================
   DIGITS TECHNOLOGY — CINEMATIC DARK DESIGN SYSTEM
   Brand gradient: #2d419a (royal blue) → #7b2cbf (violet) → #ee1e3f (crimson)
   On-screen glow variants lift those hues so they read on deep ink.
   ========================================================================== */

:root {
  --ink-0: #02030a;
  --ink-1: #05070f;
  --ink-2: #0a0d1c;
  --ink-3: #12162d;
  --line: rgba(160, 172, 255, 0.12);
  --line-strong: rgba(160, 172, 255, 0.22);
  --glass: rgba(10, 13, 30, 0.55);
  --glass-strong: rgba(10, 13, 30, 0.78);

  --text-hi: #f4f5ff;
  --text: #c8cbe6;
  --text-muted: #8f94ba;
  --text-dim: #7a80ad;

  --brand-blue: #2d419a;
  --brand-violet: #7b2cbf;
  --brand-crimson: #ee1e3f;
  --blue: #5b74ff;
  --violet: #9b5cff;
  --crimson: #ff3d6e;
  --mint: #3ee6b0;
  --amber: #ffb547;

  --grad: linear-gradient(100deg, #4460ff 0%, #8f3dff 50%, #ff2a55 100%);
  --grad-text: linear-gradient(100deg, #8ea0ff 0%, #b98cff 45%, #ff6d92 100%);
  --grad-soft: linear-gradient(135deg, rgba(68, 96, 255, 0.16), rgba(143, 61, 255, 0.12) 50%, rgba(255, 42, 85, 0.14));

  --font-display: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink-0);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
abbr[title] { text-decoration: none; color: var(--crimson); }
::selection { background: rgba(143, 61, 255, 0.45); color: #fff; }

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

/* Utilities -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 400;
  padding: 0.6rem 1rem;
  background: var(--text-hi); color: var(--ink-0);
  border-radius: 999px; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 0.74rem/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--grad);
}

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-top: 1.1rem;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  color: var(--text);
}

.section-head { position: relative; z-index: 1; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.65rem;
  height: 54px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font: 500 0.96rem/1 var(--font-display);
  letter-spacing: -0.005em;
  white-space: nowrap;
  isolation: isolate;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 34px -12px rgba(143, 61, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 18px 44px -12px rgba(255, 42, 85, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(185, 140, 255, 0.6); background: rgba(143, 61, 255, 0.1); }

.btn--sm { height: 42px; padding: 0 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Scroll reveal (JS adds .is-in) ---------------------------------------
   Uses the standalone `translate` property so elements keep their own
   `transform` (3D tilt, magnetic pull); `--extra-transition` lets them keep
   their own transitions too. */
.js [data-reveal],
.js [data-reveal-stagger] > * {
  --d: calc(var(--i, 0) * 90ms);
  opacity: 0;
  translate: 0 34px;
  transition: opacity 1s var(--ease-out) var(--d), translate 1.2s var(--ease-out) var(--d), var(--extra-transition, color 0s);
}
.js [data-reveal].is-in,
.js [data-reveal-stagger].is-in > * {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; translate: none; }
}
