/* ==========================================================================
   R5 SYSTEMS - design system
   Soft-minimal + selective glass · light-first with obsidian bands
   Signature: volt #CCFF00 + the logo's offset-layer geometry
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --obsidian: #0E1012;
  --charcoal: #1A1D20;
  --coal2: #22262B;
  --coal3: #2A2F35;
  --volt: #CCFF00;
  --volt-dim: #9FCC00;
  --red: #FF2D2D;
  --slate: #8A95A5;
  --white: #F5F6F8;
  --paper: #FFFFFF;

  /* roles (light context) */
  --bg: var(--white);
  --surface: var(--paper);
  --ink: #14171A;
  --ink-soft: #525E6C;
  --line: rgba(20, 23, 26, .08);
  --line-strong: rgba(20, 23, 26, .14);
  --focus: #5C7A00;

  /* shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --shadow-soft: 0 1px 2px rgba(20,23,26,.04), 0 12px 32px -8px rgba(20,23,26,.10);
  --shadow-lift: 0 2px 6px rgba(20,23,26,.05), 0 24px 48px -12px rgba(20,23,26,.16);
  --shadow-dark: 0 40px 80px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(245,246,248,.06);

  /* type */
  --font-body: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope Variable', var(--font-body);

  /* rhythm */
  --section-pad: clamp(5.5rem, 10vw, 8.5rem);
  --container: 1200px;
}

@font-face {
  font-family: 'Inter Variable';
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope Variable';
  src: url('../assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--volt); color: var(--obsidian); }

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

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--obsidian); color: var(--white);
  padding: .7em 1.2em; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transform: translateY(-300%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-pad); }

/* ---------- Type patterns ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* the offset-layer motif, miniature: two overlapping volt squares */
.eyebrow__tick {
  position: relative;
  width: 10px; height: 10px;
  background: var(--volt);
  border-radius: 3px;
  flex: none;
}
.eyebrow__tick::after {
  content: '';
  position: absolute; inset: 0;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  transform: translate(3.5px, -3.5px);
  opacity: .5;
}

.eyebrow--volt { color: var(--volt); }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title {
  font-size: clamp(2rem, 3.2vw + .8rem, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.section__sub {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.7em;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--volt {
  background: var(--volt);
  color: var(--obsidian);
  box-shadow: 0 2px 0 rgba(20,23,26,.06), 0 10px 28px -10px rgba(140,180,0,.55);
}
.btn--volt:hover { box-shadow: 0 4px 0 rgba(20,23,26,.05), 0 18px 36px -12px rgba(140,180,0,.7); }

.btn--ghost {
  background: rgba(255,255,255,.6);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: rgba(20,23,26,.3); background: var(--paper); }

.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.band-dark .glass {
  background: rgba(26,29,32,.55);
  border-color: rgba(245,246,248,.09);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(245,246,248,.95); }
  .band-dark .glass { background: rgba(26,29,32,.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .band-dark .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass { background: rgba(245,246,248,.97); }
  .band-dark .glass { background: rgba(20,23,26,.97); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
  transition: height .3s ease;
}
/* glass shell appears on scroll */
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(245,246,248,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  opacity: 0;
  transition: opacity .35s ease;
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(245,246,248,.98); }
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled .nav__inner { height: 64px; }

/* over dark bands the nav inverts */
.nav::before { transition: opacity .35s ease, background-color .35s ease, border-color .35s ease; }
.nav.nav--dark::before {
  background: rgba(14,16,18,.72);
  border-bottom-color: rgba(245,246,248,.08);
}
.nav.nav--dark .brand__mark,
.nav.nav--dark .brand__word { color: var(--white); }
.nav.nav--dark .nav__links a { color: var(--slate); }
.nav.nav--dark .nav__links a:hover { color: var(--white); }
.nav.nav--dark .nav__burger span { background: var(--white); }
.nav__inner > * { position: relative; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; color: var(--obsidian); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  text-decoration: none;
  font-weight: 550;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset-inline: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
}
.mobile-menu nav { display: grid; gap: .35rem; }
.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  padding: .65rem .25rem;
}
.mobile-menu .btn { margin-top: .75rem; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(9rem, 16vh, 12rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  overflow: clip;
}

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 8%, rgba(204,255,0,.13), transparent 65%),
    radial-gradient(520px 380px at 8% 92%, rgba(138,149,165,.12), transparent 65%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.7rem, 5vw + 1rem, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 14ch;
}

/* the volt marker that carries the rotating word */
.rotator {
  display: inline-block;
  position: relative;
  background: var(--volt);
  color: var(--obsidian);
  border-radius: .22em;
  padding: 0 .18em;
  margin-inline: .02em;
  transform: rotate(-1.2deg);
  white-space: nowrap;
  vertical-align: baseline;
}
.rotator__word { display: inline-block; }

.hero__sub {
  margin-top: 1.6rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.1rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 2.2rem;
}
.hero__chips li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.hero__chips li::before {
  content: '';
  position: absolute;
  left: 0; top: .48em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--volt);
  box-shadow: 2.5px -2.5px 0 -1px var(--volt-dim);
}

/* hero floating card - glass, with the offset back layer */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(340px, 100%);
}
.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.84); /* opaque enough to sit over the volt layer */
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lift);
  transform: rotate(2deg);
}
.hero-card--back {
  position: absolute;
  z-index: 0;
  inset: 10px -18px -18px 10px;
  transform: rotate(-2.5deg);
  background: var(--volt);
  opacity: .95;
  border: 0;
  box-shadow: var(--shadow-soft);
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-card__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid var(--line);
}
.hero-card__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--volt);
  outline: 3px solid rgba(204,255,0,.3);
}
.hero-card__title { font-weight: 700; font-size: .95rem; }
.hero-card__badge {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--obsidian);
  color: var(--volt);
  border-radius: 999px;
  padding: .3em .8em;
}
.hero-card__steps { display: grid; gap: .7rem; padding-block: 1.05rem .35rem; }
.hero-card__steps li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.hero-card__steps li.is-done { color: var(--ink); }
.hero-card__steps li.is-live { color: var(--ink); }
.hero-card__check {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--volt);
  color: var(--obsidian);
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hero-card__pulse {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--volt-dim);
  position: relative;
  flex: none;
}
.hero-card__pulse::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 3px;
  background: var(--volt);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
.hero-card__ring {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px dashed var(--line-strong);
  flex: none;
}
.hero-card__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(20,23,26,.08);
  overflow: hidden;
  margin-top: .9rem;
}
.hero-card__bar span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--volt-dim), var(--volt));
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { padding-top: clamp(7.5rem, 14vh, 9rem); }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.25rem);
}

.tile {
  position: relative;
  grid-column: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.55rem 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.tile--lg { grid-column: span 6; grid-row: span 2; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }
.tile--lg .tile__chip { width: 54px; height: 54px; border-radius: 15px; }
.tile--lg .tile__chip svg { width: 27px; height: 27px; }
.tile--wide { grid-column: span 6; }
.tile--ask {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-block: 1.3rem;
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}
.tile--ask .tile__name { font-size: 1.1rem; }
.tile--ask .tile__line { margin: 0; }
.tile__link {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--volt);
  padding-bottom: .1em;
  transition: border-color .2s ease;
}
.tile__link:hover { border-color: var(--volt-dim); }

/* icon chip = the logo motif: obsidian front square over a volt back square */
.tile__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--obsidian);
  color: var(--volt);
  margin-bottom: 1.15rem;
}
.tile__chip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 13px;
  background: var(--volt);
  transform: translate(-4px, 4px);
  transition: transform .3s cubic-bezier(.2,.7,.3,1.2);
}
.tile:hover .tile__chip::before { transform: translate(-7px, 7px); }
.tile__chip svg { width: 23px; height: 23px; }

.tile__name {
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -.012em;
}
.tile--lg .tile__name { font-size: 1.65rem; }
.tile__line {
  margin-top: .5rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.tile--lg .tile__line { font-size: 1.05rem; max-width: 40ch; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; }
  .tile--lg { grid-column: span 6; grid-row: auto; min-height: 0; }
  .tile--wide { grid-column: span 6; }
  .tile--ask { grid-column: span 6; }
}
@media (max-width: 620px) {
  /* compact 2-up grid so the whole line-up is visible with far less scrolling;
     the lead, wide and "ask" tiles stay full-width to keep a clear rhythm. */
  .bento { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tile { grid-column: auto; padding: 1.15rem 1.05rem 1.25rem; border-radius: var(--r-md); }
  .tile--lg, .tile--wide, .tile--ask { grid-column: 1 / -1; }
  .tile--lg { min-height: 0; padding: 1.5rem; }

  .tile__chip { width: 40px; height: 40px; border-radius: 11px; margin-bottom: .8rem; }
  .tile__chip svg { width: 20px; height: 20px; }
  .tile--lg .tile__chip { width: 48px; height: 48px; border-radius: 13px; }
  .tile--lg .tile__chip svg { width: 24px; height: 24px; }

  .tile__name { font-size: 1rem; letter-spacing: -.01em; }
  .tile--lg .tile__name { font-size: 1.35rem; }
  .tile__line { font-size: .84rem; line-height: 1.45; margin-top: .35rem; }
  .tile--lg .tile__line { font-size: .95rem; }

  .tile--ask { flex-direction: row; align-items: center; }
  .tile--ask .tile__link { margin-left: auto; }
}

/* ---------- Dark bands ---------- */
.band-dark {
  position: relative;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(204,255,0,.08), transparent 62%),
    radial-gradient(720px 480px at 8% 108%, rgba(204,255,0,.05), transparent 60%),
    var(--obsidian);
  color: var(--white);
  border-radius: clamp(24px, 4vw, 44px);
  margin-inline: clamp(.5rem, 1.2vw, 1rem);
}
.band-dark .section__sub { color: var(--slate); }
.band-dark .eyebrow { color: var(--slate); }
.band-dark .eyebrow--volt { color: var(--volt); }
.band-dark :focus-visible { outline-color: var(--volt); }

/* ---------- Showcase ---------- */
.showcase__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.showcase__row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase__row--flip .showcase__caption { order: 2; }
.showcase__row--flip .showcase__stage { order: 1; }

.showcase__tag {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: .8rem;
}
.showcase__title {
  font-size: clamp(1.5rem, 2vw + .6rem, 2.1rem);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.12;
}
.showcase__line {
  margin-top: .8rem;
  color: var(--slate);
  max-width: 42ch;
}
.showcase__cta {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--volt);
  padding-bottom: .15em;
  transition: color .2s ease;
}
.showcase__cta:hover { color: var(--volt); }

.showcase__stage {
  display: flex;
  justify-content: center;
}

/* ---------- Device frames ---------- */
.device {
  position: relative;
  background: var(--coal3);
  border: 1px solid rgba(245,246,248,.08);
  box-shadow: var(--shadow-dark);
  flex: none;
}

.device__screen {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.device__screen > * { position: absolute; inset: 0; }

.device--phone {
  width: 324px;
  border-radius: 48px;
  padding: 12px;
}
.device--phone .device__screen {
  width: 300px; height: 640px;
  border-radius: 37px;
}
.device--phone::after { /* punch-hole camera */
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 13px;
  border-radius: 999px;
  background: rgba(10,12,14,.9);
  z-index: 3;
}

.device--browser {
  width: 660px;
  border-radius: 18px;
  padding: 0 10px 10px;
}
.device__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding-inline: 6px;
}
.device__chrome i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(245,246,248,.18);
}
.device__chrome i:first-child { background: var(--volt); opacity: .8; }
.device__chrome span {
  margin-left: 10px;
  font-size: .72rem;
  color: var(--slate);
  background: rgba(245,246,248,.07);
  border-radius: 999px;
  padding: .32em 1.1em;
  letter-spacing: .02em;
}
.device--browser .device__screen {
  width: 640px; height: 400px;
  border-radius: 10px;
}

.device--wide { width: 780px; }
.device--wide .device__screen { width: 760px; height: 430px; }

/* portal duo */
.showcase__stage--duo {
  position: relative;
  padding-top: 130px; /* headroom for the phone, which stands taller than the browser */
  margin-bottom: 48px;
}
.device--portal { width: 620px; }
.device--portal .device__screen { width: 600px; height: 380px; }
.device--phone-sm {
  width: 260px;
  border-radius: 40px;
  padding: 10px;
}
.device--phone-sm .device__screen {
  width: 240px; height: 510px;
  border-radius: 31px;
}
.device--phone-sm::after {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 16px;
  border-radius: 999px;
  background: rgba(10,12,14,.92);
  z-index: 3;
}

/* Device scaling — scale the frames to fit each viewport.
   We use transform: scale() (NOT the `zoom` property): iOS WebKit does not
   scale the TEXT inside a `zoom`ed box, so on iPhone the demo text stayed
   full-size and burst out of the frame. transform scales the frame and its
   text together, identically on every engine. Each frame sits in a .device-fit
   box sized to the scaled footprint, so the layout reserves exactly the right
   space (no gaps, no overflow). The entrance animation runs on .device-fit, so
   it never fights this transform. */
.device-fit {
  --s: 1;
  flex: none;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
}
.device-fit > .device {
  transform: scale(var(--s));
  transform-origin: top left;
}
.device-fit--phone    { --w: 324px; --h: 664px; }
.device-fit--browser  { --w: 660px; --h: 448px; --s: .92; }
.device-fit--wide     { --w: 780px; --h: 478px; --s: .78; }
.device-fit--portal   { --w: 620px; --h: 428px; --s: .88; }
.device-fit--phone-sm {
  --w: 260px; --h: 530px;
  position: absolute;
  right: -18px; bottom: -44px;
  z-index: 2;
}

@media (max-width: 1180px) {
  .device-fit--browser { --s: .85; }
  .device-fit--wide { --s: .7; }
  .device-fit--portal { --s: .8; }
}
@media (max-width: 1024px) {
  .showcase__row { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase__row--flip .showcase__caption { order: 1; }
  .showcase__row--flip .showcase__stage { order: 2; }
  .showcase__stage--duo { margin-bottom: 44px; }
}
@media (max-width: 860px) {
  .device-fit--browser { --s: .78; }
  .device-fit--wide { --s: .68; }
  .device-fit--portal { --s: .72; }
}
@media (max-width: 640px) {
  .device-fit--phone { --s: .88; }
  .device-fit--browser { --s: .52; }
  .device-fit--wide { --s: .44; }
  .device-fit--portal { --s: .5; }
  .device-fit--phone-sm { --s: .78; right: -6px; }
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.steps__line {
  position: absolute;
  top: 23px;
  left: 2%;
  width: 96%;
  height: 2px;
  z-index: 0;
  overflow: visible;
}
.steps__line line {
  stroke: #E2E5EA;
  stroke-width: 2;
}
.steps__line .steps__line-progress {
  stroke: var(--volt);
  stroke-width: 2;
}

.step { position: relative; z-index: 1; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.05rem;
}
.step:last-child .step__num {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--obsidian);
}
.step__title {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -.01em;
}
.step__line {
  margin-top: .45rem;
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

@media (max-width: 900px) and (min-width: 621px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps__line { display: none; }
}
/* Mobile: a proper vertical timeline. A volt-to-grey line runs down the left,
   each step is a card with its number as a node sitting on the line. */
@media (max-width: 620px) {
  .steps {
    display: block;
    position: relative;
    padding-left: 54px;
    counter-reset: step;
  }
  .steps__line { display: none; }
  .steps::before {
    content: '';
    position: absolute;
    left: 22px; top: 22px; bottom: 22px;
    width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, var(--volt) 0%, var(--volt-dim) 12%, #E2E5EA 34%);
    z-index: 0;
  }
  .step {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    padding: 1.05rem 1.2rem 1.15rem;
    margin-bottom: 1rem;
  }
  .step:last-child { margin-bottom: 0; }
  .step__num {
    position: absolute;
    left: -54px; top: 1rem;
    margin: 0;
    width: 44px; height: 44px;
  }
  .step__title { font-size: 1.12rem; }
  .step__line { max-width: none; }
}

/* ---------- Voices ---------- */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.voice {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.voice__quote {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
  font-weight: 480;
}
.voice__quote::before {
  content: '';
  display: block;
  width: 26px; height: 5px;
  border-radius: 3px;
  background: var(--volt);
  box-shadow: 5px -5px 0 -1px var(--volt-dim);
  margin-bottom: 1.1rem;
}
.voice__who {
  margin-top: auto;
  font-size: .9rem;
  color: var(--ink-soft);
}
.voice__name { font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .voices__grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- CTA ---------- */
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.cta__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2rem;
}
.cta__channel {
  font-weight: 650;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--volt);
  padding-bottom: .18em;
  transition: color .2s ease;
}
.cta__channel:hover { color: var(--volt); }

.cta__form {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.15rem;
}
/* honeypot: off-screen but still submittable, so bots fill it and humans can't */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .86rem;
  font-weight: 650;
  color: rgba(245,246,248,.85);
}
.field__opt { font-weight: 450; color: var(--slate); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(245,246,248,.06);
  border: 1px solid rgba(245,246,248,.16);
  border-radius: 12px;
  padding: .78em 1em;
  color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238A95A5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}
.field select option { color: var(--ink); background: var(--paper); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(204,255,0,.22);
}
.cta__note { min-height: 1.4em; font-size: .9rem; color: var(--volt); }

@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(.5rem, 1.2vw, 1rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,246,248,.09);
}
.brand--footer .brand__mark { color: var(--volt); width: 44px; height: 44px; }
.brand--footer .brand__word { color: var(--white); font-size: 1.3rem; }
.footer__tagline { color: var(--slate); font-size: .95rem; }
.footer__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.footer__links a {
  color: var(--slate);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 550;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: .85rem;
  color: var(--slate);
}
.footer__legal { display: flex; flex-direction: column; gap: .3rem; }
.footer__wink { opacity: .75; }

/* Social icons in their real brand colours (Facebook blue, Instagram gradient) */
.footer__social { display: flex; gap: .7rem; }
.footer__social .soc {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.footer__social .soc svg { width: 22px; height: 22px; display: block; }
.footer__social .soc--fb { background: #1877F2; border-radius: 50%; }
.footer__social .soc--ig {
  border-radius: 12px;
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer__social .soc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.55);
  filter: brightness(1.06);
}

@media (max-width: 720px) {
  .footer__links { margin-left: 0; }
}

/* ---------- Floating WhatsApp button + reCAPTCHA reposition ---------- */
.wa-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80; /* below the nav/mobile-menu (100) so an open menu covers it */
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.55), 0 4px 12px rgba(20,23,26,.18);
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s ease;
  animation: wa-in .5s .6s ease both;
}
.wa-fab svg { width: 32px; height: 32px; display: block; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -6px rgba(37,211,102,.7), 0 6px 16px rgba(20,23,26,.2); }
.wa-fab:active { transform: scale(.96); }
@keyframes wa-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-fab svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }

/* reCAPTCHA v3 badge to the bottom-left, clear of the WhatsApp button */
.grecaptcha-badge { left: 14px !important; right: auto !important; }

/* ---------- Cookie consent modal ----------
   Injected by js/pixel.js on first visit. A dimmed backdrop + centred card
   that locks the page until the visitor chooses - deliberately unmissable.
   Becomes a bottom sheet on small screens. */
.cookie-lock { overflow: hidden; }

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 300; /* above nav/menu (100) and the WhatsApp fab (80) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(14,16,18,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.cookie-consent.is-in { opacity: 1; }

.cookie-consent__card {
  width: min(460px, 100%);
  padding: 1.7rem 1.7rem 1.4rem;
  border-radius: var(--r-lg);
  background: rgba(20,23,26,.94);
  border: 1px solid rgba(245,246,248,.1);
  box-shadow: var(--shadow-dark);
  color: var(--white);
  transform: translateY(14px) scale(.98);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.cookie-consent.is-in .cookie-consent__card { transform: none; }

.cookie-consent__title {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cookie-consent__text {
  margin: 0 0 1.35rem;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(245,246,248,.82);
}
.cookie-consent__actions {
  display: flex;
  gap: .7rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-consent__decline {
  background: transparent;
  color: rgba(245,246,248,.82);
  border: 1px solid rgba(245,246,248,.22);
}
.cookie-consent__decline:hover {
  border-color: rgba(245,246,248,.42);
  background: rgba(245,246,248,.06);
}
@supports not (backdrop-filter: blur(1px)) {
  .cookie-consent { background: rgba(14,16,18,.78); }
  .cookie-consent__card { background: rgba(20,23,26,.98); }
}
@media (max-width: 520px) {
  .cookie-consent { align-items: flex-end; padding: 0; }
  .cookie-consent__card {
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
  }
  .cookie-consent.is-in .cookie-consent__card { transform: none; }
  .cookie-consent__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent, .cookie-consent__card { transition: opacity .2s ease; transform: none; }
}

/* ---------- Mobile performance ----------
   backdrop-filter on a fixed/large element repaints every scroll frame and is
   one of the heaviest effects on phone GPUs, so on small screens we swap the
   glass for a solid (near-opaque) fill. We also shrink the very large device
   shadows, which are expensive to paint several at a time. Desktop keeps the
   full glass + soft-shadow treatment. */
@media (max-width: 768px) {
  .nav::before,
  .nav.nav--dark::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav::before { background: rgba(245,246,248,.95); }
  .nav.nav--dark::before { background: rgba(14,16,18,.95); }

  .glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(245,246,248,.97);
  }
  .band-dark .glass { background: rgba(26,29,32,.97); }

  /* lighter, cheaper shadows on phones */
  .device { box-shadow: 0 14px 28px -14px rgba(0,0,0,.55), 0 0 0 1px rgba(245,246,248,.06); }
  .tile, .voice { box-shadow: 0 8px 20px -12px rgba(20,23,26,.14); }
  .hero-card { box-shadow: 0 10px 26px -14px rgba(20,23,26,.18); }
}

/* ---------- Motion guards ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card__pulse::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
