/* ============================================================================
   REVAMP - design tokens
   Palette is a Vice-City sunset read: hot magenta → violet → electric cyan over
   near-black, with a warm sodium-orange accent for the horizon glow.
   ========================================================================= */

@import url('../vendor/fonts.css');

:root {
  /* Brand ramp - lifted from the Revamp mark itself, then extended so gradients
     have enough stops to stay smooth at large sizes. */
  --pink:        #ff2d95;
  --pink-hot:    #ff0f7b;
  --pink-soft:   #ff6ab8;
  --magenta:     #d92ae0;
  --violet:      #7b5cff;
  --violet-deep: #5a2ce0;
  --indigo:      #3a2bd8;
  --blue:        #12d8ff;
  --blue-deep:   #2b6bff;
  --cyan-ice:    #8ff4ff;
  --orange:      #ff8a3d;
  --amber:       #ffc46b;
  --lime:        #a6ff4d;

  /* Themeable channels.
     --tint  is layered *over* the page to lift a surface (white in dark mode,
             near-black in light mode).
     --shade is layered over content to push it back (scrims, sticky bars).
     Every translucent colour in the stylesheets is built from these two, so a
     theme is a handful of token swaps rather than a parallel stylesheet. */
  --tint:        255 255 255;
  --shade:       10 10 12;
  --shadow-rgb:  0 0 0;

  /* Surfaces - true neutral graphite, no violet cast. A coloured base is what
     made every surface read as the same AI gradient; the brand ramp now appears
     only where it means something. */
  --ink:         #0a0a0c;
  --ink-2:       #0f0f12;
  --ink-3:       #16161a;
  --ink-4:       #1d1d22;
  --surface:     rgb(var(--tint) / 0.04);
  --surface-2:   rgb(var(--tint) / 0.07);
  --hairline:    rgb(var(--tint) / 0.10);
  --hairline-2:  rgb(var(--tint) / 0.18);

  /* Text */
  --text:        #f5f5f7;
  --text-dim:    #a1a1a6;
  --text-faint:  #9a9aa2;

  /* The one accent. A four-stop ramp poured into every button, badge, pill and
     underline is what made the page look decorated rather than designed; the
     ramp is the logo's, and it stays on the logo. Deepened in the light theme
     so white text on it still clears contrast. */
  --accent:      #ff2d95;
  --accent-ink:  #ffffff;
  --accent-hi:   #ff5aad;

  /* Signals */
  --ok:          #3ddc97;
  --warn:        #ffc46b;
  --danger:      #ff4d6d;

  /* Hero ink. The hero follows the page theme now, so these track it. */
  --hero-text:   #f4f4f6;
  --hero-dim:    #b9b9c4;

  /* Composite surfaces */
  --card-grad:   linear-gradient(165deg, var(--ink-3) 0%, var(--ink-2) 100%);
  --panel-grad:  linear-gradient(170deg, var(--ink-3) 0%, var(--ink-2) 100%);
  --nav-bg:      rgb(var(--shade) / 0.72);
  --input-bg:    rgb(var(--shadow-rgb) / 0.28);
  --input-bg-on: rgb(var(--shadow-rgb) / 0.42);
  --row-hover:   rgb(var(--tint) / 0.03);

  /* Gradients */
  /* The mark's own ramp. Reserved for the logo, the primary CTA and the odd
     deliberate highlight. It is never a background wash. */
  --grad-brand:  linear-gradient(100deg, var(--pink) 0%, var(--magenta) 26%, var(--violet) 56%, var(--blue) 100%);
  /* The button's own ramp. Same three hues as the mark, held at the depth
     where white text clears contrast across the whole fill: the mark's ramp
     runs up into an ice blue that white simply disappears on. */
  --grad-cta:    linear-gradient(100deg, #e5177f 0%, #b31ecd 40%, #5a2ce0 100%);
  --grad-steel:  linear-gradient(160deg, #2a2a31 0%, #17171b 46%, #101014 100%);
  --grad-brand-r: linear-gradient(260deg, var(--pink) 0%, var(--violet) 50%, var(--blue) 100%);
  /* Rotating conic used for lit borders and halos. */
  --grad-conic:  conic-gradient(from var(--angle, 0deg),
                   rgb(255 255 255 / 0.02) 0deg,
                   rgb(255 255 255 / 0.30) 70deg,
                   rgb(255 45 149 / 0.42) 120deg,
                   rgb(255 255 255 / 0.10) 190deg,
                   rgb(255 255 255 / 0.02) 360deg);
  --grad-iris:   linear-gradient(135deg, var(--pink) 0%, var(--violet) 35%, var(--blue) 65%, var(--cyan-ice) 100%);
  --grad-sunset: linear-gradient(180deg, #ffd86b 0%, var(--orange) 24%, var(--pink) 58%, #6d2bb0 82%, var(--ink) 100%);
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #dfe3ec 34%, #8d93a4 52%, #ffffff 68%, #c8cdda 100%);

  /* Type */
  /* Two faces, one superfamily. Inter Tight sets headlines and anything that
     behaves like signage; Inter sets everything a person actually reads. The
     small tracked labels use Inter rather than the tight cut, because added
     letter-spacing fights tight sidebearings. */
  --font-display:'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-brand:  'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:   'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Glow - used instead of flat drop shadows so surfaces read as lit. */
  /* Tinted to the surface rather than neon. A glow is an accent, not a mood. */
  --glow-pink:   0 0 0 1px rgb(255 45 149 / 0.16), 0 20px 50px -26px rgb(255 45 149 / 0.34);
  --glow-violet: 0 0 0 1px rgb(255 255 255 / 0.08), 0 20px 50px -26px rgb(0 0 0 / 0.9);
  --glow-blue:   0 0 0 1px rgb(18 216 255 / 0.14), 0 20px 50px -26px rgb(18 216 255 / 0.3);
  --lift:        0 30px 80px -40px rgb(var(--shadow-rgb) / 0.9);
  --lift-hi:     0 44px 110px -46px rgb(var(--shadow-rgb) / 0.95);

  /* Geometry */
  --radius:      18px;
  --radius-lg:   26px;
  --gutter:      clamp(1.15rem, 4vw, 3.5rem);
  --maxw:        1280px;

  /* Film grain, inlined as SVG turbulence so no extra request is needed */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");

  /* Motion - one shared easing vocabulary keeps everything feeling related */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-swift:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:    180ms;
  --dur:         420ms;
  --dur-slow:    900ms;
}

/* ---------------------------------------------------------------- light ---
   Applied when the visitor picks it, or when their system asks for light and
   they have not chosen otherwise. The brand ramp is untouched; only the
   surfaces, ink and overlay channels swap. */
:root[data-theme='light'] {
  --tint:        22 14 44;
  --shade:       250 250 252;
  --shadow-rgb:  24 24 30;

  --ink:         #f6f6f7;
  --ink-2:       #ffffff;
  --ink-3:       #f0f0f2;
  --ink-4:       #e6e6ea;

  --surface:     rgb(var(--tint) / 0.035);
  --surface-2:   rgb(var(--tint) / 0.07);
  --hairline:    rgb(var(--tint) / 0.11);
  --hairline-2:  rgb(var(--tint) / 0.2);

  --text:        #1d1d1f;
  --text-dim:    #6e6e73;
  --text-faint:  #6b6b70;

  --violet:      #6a46f5;
  --blue-deep:   #1d5bf0;
  --accent:      #cc0068;
  --accent-hi:   #a80056;

  --hero-text:   #101014;
  --hero-dim:    #45454f;
  /* Polished steel reads dark on a light page; the white ramp would vanish. */
  --grad-chrome: linear-gradient(180deg, #2b2e36 0%, #6f7482 30%, #1a1c22 52%, #575c69 70%, #23252c 100%);
  --card-grad:   linear-gradient(165deg, #ffffff, #f7f7f9);
  --panel-grad:  linear-gradient(170deg, #ffffff, #f4f4f6);
  --nav-bg:      rgb(var(--shade) / 0.82);
  --input-bg:    #ffffff;
  --input-bg-on: #ffffff;
  --row-hover:   rgb(var(--tint) / 0.035);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --tint:        22 14 44;
    --shade:       250 250 252;
    --shadow-rgb:  24 24 30;
    --ink:         #f6f6f7;
    --ink-2:       #ffffff;
    --ink-3:       #f0f0f2;
    --ink-4:       #e6e6ea;
    --surface:     rgb(var(--tint) / 0.035);
    --surface-2:   rgb(var(--tint) / 0.07);
    --hairline:    rgb(var(--tint) / 0.11);
    --hairline-2:  rgb(var(--tint) / 0.2);
    --text:        #1d1d1f;
    --text-dim:    #6e6e73;
    --text-faint:  #6b6b70;
    --violet:      #6a46f5;
    --blue-deep:   #1d5bf0;
    --accent:      #cc0068;
    --accent-hi:   #a80056;
    --hero-text:   #101014;
    --hero-dim:    #45454f;
    /* Polished steel reads dark on a light page; the white ramp would vanish. */
    --grad-chrome: linear-gradient(180deg, #2b2e36 0%, #6f7482 30%, #1a1c22 52%, #575c69 70%, #23252c 100%);
    --card-grad:   linear-gradient(165deg, #ffffff, #f7f7f9);
    --panel-grad:  linear-gradient(170deg, #ffffff, #f4f4f6);
    --nav-bg:      rgb(var(--shade) / 0.82);
    --input-bg:    #ffffff;
    --input-bg-on: #ffffff;
    --row-hover:   rgb(var(--tint) / 0.035);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Headlines balance their last line so a one-word orphan never dangles under a
   long one; paragraphs only avoid the orphan, which is cheaper and does not
   reflow a long body of text. */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Bold inside body copy is a weight, not a face. Outfit's 700 is heavy enough
   at these sizes to read as a different font. */
strong, b { font-weight: 600; }

/* Anything that counts, counts in place. Proportional digits change width as
   they tick and shove the label beside them around. */
[data-count], .step__n, .totals b, .card__price, .metric b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible, on-brand focus for every interactive element. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb {
  background: rgb(var(--tint) / 0.22);
  border-radius: 99px;
  border: 2px solid var(--ink-2);
}

/* ------------------------------------------------------------- primitives */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200; padding: 0.75rem 1.4rem;
  background: var(--pink); color: #fff; font-weight: 600;
  border-radius: 0 0 12px 12px;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* A gradient poured through headline text is decoration standing in for
   hierarchy. The second half of a headline steps back a tone instead, which
   does the same job and survives being read. */
.gradient-text { color: var(--text-dim); }

.eyebrow {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  margin: 0 0 0.6rem;
}

/* Both spellings: the markup uses the BEM one, and this rule carried the
   hyphenated name, so section headings were quietly falling back to a plain
   bold paragraph in the body face. */
.section-title,
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  margin: 0 0 1.1rem;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.014em;
  max-width: 56ch;
  margin: 0;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--grad-cta);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border: 0; border-radius: 99px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.012em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(1.07) saturate(1.04); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--ghost {
  --btn-bg: var(--surface);
  border: 1px solid var(--hairline-2);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.btn--ghost:hover { --btn-bg: var(--surface-2); border-color: var(--accent); }

.btn--wa { --btn-bg: #25d366; color: #05240f; }
.btn--wa:hover { --btn-bg: #1faa53; color: #fff; }

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.84rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------ motion */

/* Elements marked [data-reveal] start hidden and are released by GSAP, or
   immediately by the no-JS / reduced-motion fallbacks below. */
[data-reveal] { opacity: 0; }
.no-js [data-reveal],
.reveal-ready [data-reveal] { opacity: 1; }

@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Ambient field
   No section is ever a flat rectangle. A fixed, very slowly drifting mesh of
   coloured light sits behind the whole page, with a film grain over it. It is
   two elements and no JavaScript, so it costs nothing to scroll.
   ========================================================================= */

.ambient {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--ink);
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.85;
  will-change: transform;
}
.ambient__blob:nth-child(1) {
  width: 70vw; height: 70vw; top: -24vw; left: -18vw;
  background: radial-gradient(circle, rgb(60 62 74 / 0.55), transparent 66%);
  animation: drift-a 44s var(--ease-in-out) infinite;
}
.ambient__blob:nth-child(2) {
  /* The only coloured light on the page, and it stays low. */
  width: 46vw; height: 46vw; top: 34vh; right: -16vw;
  background: radial-gradient(circle, rgb(255 45 149 / 0.14), transparent 68%);
  animation: drift-b 56s var(--ease-in-out) infinite;
}
.ambient__blob:nth-child(3) {
  width: 64vw; height: 64vw; bottom: -28vw; left: 16vw;
  background: radial-gradient(circle, rgb(44 46 58 / 0.6), transparent 68%);
  animation: drift-c 62s var(--ease-in-out) infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(14vw, 10vh, 0) scale(1.14); }
  66%      { transform: translate3d(5vw, 22vh, 0) scale(0.92); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-18vw, 14vh, 0) scale(1.2); }
}
@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40%      { transform: translate3d(12vw, -14vh, 0) scale(1.1); }
  70%      { transform: translate3d(-8vw, -6vh, 0) scale(0.95); }
}

/* Grain binds the gradients together and hides banding on wide screens. */
.ambient__grain {
  position: absolute; inset: -50%;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.2;
  mix-blend-mode: overlay;
  animation: grain-shift 6s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

:root[data-theme='light'] .ambient__blob { opacity: 0.1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .ambient__blob { opacity: 0.1; }
  :root:not([data-theme]) .ambient__grain { opacity: 0.07; mix-blend-mode: multiply; }
}
:root[data-theme='light'] .ambient__grain { opacity: 0.09; mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  .ambient__blob, .ambient__grain { animation: none; }
}

/* ------------------------------------------------------------ lit surfaces */

/**
 * A rotating conic-gradient hairline. Registering --angle as a real custom
 * property lets the browser interpolate it on the compositor, so the border
 * animates without touching layout or paint.
 */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.lit { position: relative; isolation: isolate; }
.lit { border-radius: inherit; }
.lit, .sheen { transition: border-color var(--dur) var(--ease-out); }
.lit:hover, .lit:focus-within { border-color: var(--hairline-2); }

/* Below-the-fold sections skip rendering work until they are near the viewport. */
.defer-paint {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* Holds the injected icon sprite. `hidden` is not used because a <symbol> in a
   display:none subtree still resolves, and a class keeps it out of the a11y tree
   without needing an inline style attribute (which the CSP forbids). */
.icon-sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  pointer-events: none;
}
