/* ==========================================================================
   Handovr — presentation site
   ========================================================================== */

:root {
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.45);

  --text: #f5f3ff;
  --text-muted: rgba(237, 233, 254, 0.72);
  --text-faint: rgba(237, 233, 254, 0.5);

  --glass: rgba(15, 12, 28, 0.8);
  --glass-strong: rgba(12, 10, 24, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.2);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(64px, 8vw, 112px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #0b0916;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ─── Scrolling background ─────────────────────────────────────────────── */

/* The image layer is taller than the viewport; main.js translates it upward
   in proportion to page scroll so the view pans slowly down the photo. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg__image {
  position: absolute;
  inset: 0 0 auto 0;
  height: 150vh;
  background: #0b0916 url('../background/photo-1587971758416-a5471af70f07.avif') center top / cover no-repeat;
  will-change: transform;
}
/* Light neutral shade: dims the bright sky for legibility without shifting its colours. */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
/* Text that sits directly on the photo also gets a soft shadow. */
.hero__inner, .section__head, .split__text, .journey__text, .cta__text {
  --text-muted: rgba(255, 255, 255, 0.94);
  --text-faint: rgba(255, 255, 255, 0.85);
  --accent-soft: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero__inner .accent-text { text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)); }
.journey__num { text-shadow: none; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  background: transparent;
  --btn-fill: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* Glow-on-hover: a blurred, flowing rainbow sits behind the button and
   peeks out around its edge; ::after carries the button's own fill on top. */
.btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(45deg, #c4b5fd, #a78bfa, #7c3aed, #e879f9, #c4b5fd, #7c3aed, #a78bfa, #e879f9, #c4b5fd);
  background-size: 400%;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  animation: btn-glow 20s linear infinite paused;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill);
  transition: background 0.25s var(--ease);
}
/* The glow only animates while it's showing, so idle buttons don't repaint every frame. */
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation-play-state: running; }
.btn:active::after { background: transparent; }
@keyframes btn-glow {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.btn--primary {
  --btn-fill: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover {
  --btn-fill: var(--accent-hover);
  transform: translateY(-2px);
}
.btn--ghost {
  --btn-fill: rgba(20, 16, 36, 0.45);
  border-color: var(--glass-border-strong);
  color: var(--text);
}
/* Solid on hover so the glow only shows around the edge, not through the glass. */
.btn--ghost:hover { --btn-fill: #1f1a33; transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ─── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 8, 22, 0.5);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 8, 22, 0.88);
  border-color: var(--glass-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 1.3rem var(--font-display);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.nav__links a:not(.btn) {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 300ms ease-in;
}
.nav__links a:not(.btn):hover { color: #fff; }
/* Echo on hover: fading copies of the label stacked above and below.
   Desktop only — in the stacked mobile menu the copies would overlap neighbouring links. */
@media (min-width: 861px) {
  .nav__links a:not(.btn) { --echo: 196 181 253; }
  .nav__links a:not(.btn):where(:hover, :focus-visible) {
    outline: none;
    text-shadow:
      0  2ex rgb(var(--echo) / 0.35),
      0 -2ex rgb(var(--echo) / 0.35),
      0  4ex rgb(var(--echo) / 0.15),
      0 -4ex rgb(var(--echo) / 0.15),
      0  6ex rgb(var(--echo) / 0.075),
      0 -6ex rgb(var(--echo) / 0.075);
  }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ─── Shared type ──────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.accent-text {
  background: linear-gradient(90deg, #c4b5fd, var(--accent) 60%, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── 3D extruded headings (layers built by main.js) ──────────────────── */
.h3d {
  position: relative;
  isolation: isolate;
  text-shadow: none;
}
.h3d .accent-text { filter: none; }
.h3d-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: hsl(265 55% var(--l));
  transform: translate(calc(var(--dx, 0) * var(--d) * 1px), calc(var(--dy, 0) * var(--d) * 1px));
  pointer-events: none;
  user-select: none;
}
.h3d-layer .accent-text {
  background: none;
  color: inherit;
}
.h3d-layer--shadow {
  color: rgba(0, 0, 0, 0.45);
  filter: blur(6px);
}
/* Headings near the viewport (flagged by main.js): the blurred shadow gets its
   own GPU layer, so scrolling moves it without re-running the blur. */
.h3d--active .h3d-layer--shadow { will-change: transform; }
.section__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  /* Clears the 88px fixed nav, plus a modest gap. */
  padding: calc(88px + clamp(32px, 6vh, 56px)) 0 var(--section-space);
}
.hero__inner { margin-bottom: clamp(56px, 8vw, 96px); }
.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}
.hero__facts {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero__facts strong {
  display: block;
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem) var(--font-display);
  letter-spacing: -0.02em;
}
.hero__facts span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 22ch;
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

.section { padding: var(--section-space) 0; }
/* Nav links land on the section's title, not its top padding: skip the padding
   but keep a small gap below the fixed nav (html's scroll-padding-top). */
.section[id] { scroll-margin-top: calc(24px - var(--section-space)); }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Cards ────────────────────────────────────────────────────────────── */

.demo-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Glass tiles: a translucent dark fill. No backdrop blur (it made scrolling
   over the moving background stutter), so the fill is dense enough to read on. */
.card, .feature, .step {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(20, 16, 36, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card p, .feature p, .step p { --text-muted: rgba(255, 255, 255, 0.9); }
.card {
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(167, 139, 250, 0.45); transform: translateY(-4px); }
.card p, .feature p, .step p { color: var(--text-muted); margin: 0; }
.card--compact { padding: 28px 24px; }
.card--compact h3 { font-size: 1.1rem; }
.card__tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.7);
  background: rgba(124, 58, 237, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Screenshot placeholders ──────────────────────────────────────────── */

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: rgba(20, 16, 38, 0.7);
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.shot--hero {
  /* Matches 01-hero-dashboard.png so the whole screenshot shows, uncropped. */
  aspect-ratio: 2550 / 1266;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), 0 0 90px -30px var(--accent-glow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Harder to save: no long-press menu on mobile, no selecting or dragging. */
img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.shot img { pointer-events: none; }
.shot__ph {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border: 1.5px dashed rgba(167, 139, 250, 0.4);
  border-radius: calc(var(--radius) - 8px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    radial-gradient(ellipse at center, rgba(124, 58, 237, 0.14), transparent 70%);
}
.shot__ph span { font-weight: 600; color: var(--text); }
.shot__ph small { font-size: 0.78rem; color: var(--text-faint); word-break: break-all; }
.shot.has-image .shot__ph { display: none; }
.shot:not(.has-image) img { opacity: 0; }
/* Hover zoom: main.js sets --zoom (up to 1.5) and a transform-origin that keeps
   the enlarged screenshot on screen. Uses `scale` so it doesn't fight the
   reveal animation's `transform`. */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .shot, .js .shot.reveal {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), scale 0.35s var(--ease);
  }
  .shot.has-image:hover { scale: var(--zoom, 1.5); z-index: 10; }
}
/* Everywhere else a tap opens the lightbox (main.js). */
@media not all and (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .shot.has-image { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
}

/* ─── Screenshot lightbox ──────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 4, 14, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
html.lightbox-open { overflow: hidden; }
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 64px 16px 80px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* margin: auto centres the image but, unlike align/justify centring, still
   lets it scroll from its top-left edge once zoomed past the stage. */
.lightbox__img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  cursor: zoom-in;
}
.lightbox.is-zoomed .lightbox__stage { padding: 0; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border-strong);
  border-radius: 50%;
  background: rgba(20, 16, 36, 0.85);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  pointer-events: none;
  font-weight: 600;
  color: var(--text);
}
.lightbox__caption small { font-weight: 400; color: var(--text-faint); }
.lightbox.is-zoomed .lightbox__caption { display: none; }

.shot--phone {
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  border: 8px solid #1b1730;
  outline: 1px solid var(--glass-border-strong);
  width: 100%;
  max-width: 280px;
}
.shot--phone .shot__ph { inset: 8px; border-radius: 26px; }
.shot--phone .shot__ph span { font-size: 0.9rem; }

/* ─── Maintenance journey ──────────────────────────────────────────────── */

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.journey::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.5) 8%, rgba(167, 139, 250, 0.5) 92%, transparent);
}
.journey__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
  position: relative;
}
.journey__step::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2), 0 0 24px var(--accent-glow);
}
.journey__step:nth-child(even) .journey__text { order: 2; }
.journey__num {
  display: block;
  font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}
.journey__text h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.journey__text p { color: var(--text-muted); max-width: 46ch; }

/* ─── Split layouts ────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split--tight { margin-top: clamp(64px, 8vw, 110px); }
.h3-lg { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.split__text > p { color: var(--text-muted); }

.checklist {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  color: var(--text-muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(167, 139, 250, 0.45);
}
.checklist strong { color: var(--text); font-weight: 600; }

.phones {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

/* ─── Servicing steps ──────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.step { padding: 30px 26px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent);
  font: 700 1rem var(--font-display);
  box-shadow: 0 0 24px var(--accent-glow);
}
.step h3 { font-size: 1.15rem; }

/* ─── Feature grid ─────────────────────────────────────────────────────── */

.features { margin-bottom: 40px; }
.feature {
  padding: 30px 28px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover { border-color: rgba(167, 139, 250, 0.45); background: rgba(20, 16, 36, 0.6); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1.12rem; }

.badge-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
  font: 600 0.66rem/1.2 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
}

/* ─── CTA / form ───────────────────────────────────────────────────────── */

.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 28px 32px;
  display: grid;
  gap: 22px;
}
/* The hero's "Contact" button lights this tile up with the buttons' flowing
   glow (main.js adds .is-glowing). As with .btn, the fill moves to ::after so
   the glow can sit between it and the page. */
.contact-list.card {
  position: relative;
  isolation: isolate;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.contact-list::before,
.contact-list::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}
.contact-list::before {
  inset: -3px;
  z-index: -2;
  background: linear-gradient(45deg, #c4b5fd, #a78bfa, #7c3aed, #e879f9, #c4b5fd, #7c3aed, #a78bfa, #e879f9, #c4b5fd);
  background-size: 400%;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  animation: btn-glow 20s linear infinite paused;
}
.contact-list::after {
  inset: 0;
  background: rgba(20, 16, 36, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.6s var(--ease);
}
.contact-list.is-glowing::before { opacity: 1; animation-play-state: running; }
/* Solid while glowing so the glow only shows around the edge, as on .btn--ghost. */
.contact-list.is-glowing::after { background: #1f1a33; }
.contact-list li { display: grid; gap: 4px; }
.contact-list__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Fill-sweep hover: lavender wipes across the white text left to right
   while an underline grows beneath it. */
.contact-link {
  position: relative;
  display: inline-block;
  justify-self: start;
  padding: 4px 0;
  font: 700 clamp(1.25rem, 4.8vw, 1.75rem)/1.3 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: none;
  background-image: linear-gradient(to right, #c4b5fd, #c4b5fd 50%, #fff 50%);
  background-size: 200% 100%;
  background-position: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.3s ease-in-out;
}
.contact-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: #c4b5fd;
  transition: width 0.3s ease-in-out;
}
.contact-link:where(:hover, :focus-visible) { background-position: 0; }
.contact-link:where(:hover, :focus-visible)::before { width: 100%; }
.contact-link:focus-visible { outline: none; }

/* LinkedIn button: brand blue rises from the bottom while the icon spins and turns white. */
.social-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.social-icon::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0077b5;
  transition: top 0.5s;
  z-index: -1;
}
.social-icon__svg {
  width: 24px;
  height: 24px;
  fill: #0b0916;
  transition: fill 0.5s, transform 0.5s;
}
.social-icon:where(:hover, :focus-visible)::before { top: 0; }
.social-icon:where(:hover, :focus-visible) .social-icon__svg { fill: #fff; transform: rotateY(360deg); }

.demo-form {
  padding: clamp(28px, 4vw, 44px);
  background: var(--glass-strong);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.optional { font-weight: 400; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field select option { color: #111; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.08);
}
.form-status { margin: 14px 0 0; font-size: 0.9rem; color: var(--accent-soft); min-height: 1.4em; }
.form-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-faint); }

/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 5, 14, 0.85);
  padding: 64px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
/* The PNG has transparent padding (~9px left, 13px top, 22px bottom at this
   size); negative margins trim it so the mark lines up with the motto. */
.footer__logo { display: inline-block; margin: -13px 0 -22px -9px; }
.footer__logo img { width: 100px; height: auto; }
.footer__brand p { color: var(--text-faint); margin-top: 14px; }
.footer__row { display: flex; align-items: center; gap: 28px; }
.footer__social { display: flex; gap: 14px; }
.contact-list li.contact-social { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; }
.social-icon--whatsapp::before { background: #25d366; }
.footer__links { display: grid; gap: 10px; align-content: start; }
.footer__links a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; }
.footer__links a:hover { color: #fff; }
.footer__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer__base p { margin: 0; }
.footer__base p + p { margin-top: 6px; }

/* ─── Legal pages ──────────────────────────────────────────────────────── */

.legal { padding: calc(88px + clamp(40px, 6vw, 72px)) 0 var(--section-space); }
.legal__inner {
  max-width: 820px;
  width: calc(100% - 2 * var(--gutter));
  padding-block: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(20, 16, 36, 0.9);
}
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; font-weight: 600; max-width: none; margin-top: 2.2em; }
.legal__updated { color: var(--text-faint); font-size: 0.9rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--accent-soft); }
.legal__table { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--glass-border); }
.legal th { color: var(--text); font-weight: 600; }
.legal td { color: var(--text-muted); }
.footer__links a[aria-current="page"] { color: #fff; }

/* ─── Reveal on scroll ─────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    /* Fills the screen below the bar so the hero (and its own "Book a demo")
       doesn't show through beneath the menu. */
    inset: 76px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgb(10, 8, 22);
    border-top: 1px solid var(--glass-border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
  .nav__cta { margin-top: 18px; }
  .nav.menu-open { background: rgb(10, 8, 22); }
  html.menu-open { overflow: hidden; }

  .hero__facts { grid-template-columns: repeat(2, 1fr); }

  .journey::before { left: 6px; }
  .journey__step {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 36px;
  }
  .journey__step::before { left: 6px; top: calc(clamp(32px, 5vw, 56px) + 26px); }
  .journey__step:nth-child(even) .journey__text { order: 0; }

  .split, .cta__inner { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .phones { gap: 12px; }
  .shot--phone { border-width: 6px; border-radius: 30px; }
  .shot--phone .shot__ph { padding: 10px; }
  .shot--phone .shot__ph small { display: none; }
  .shot__ph { inset: 8px; padding: 12px; }
  .shot__ph span { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .feature { transition: none; }
  .shot, .js .shot.reveal { transition: none; }
  .btn::before, .contact-list::before { animation: none; }
}

/* ─── Page transition (legal pages) ────────────────────────────────────── */
/* Cross-document view transition: every page opts in, and the incoming page's
   styles decide the animation. Legal pages (html.legal-page) cross-fade in
   while rising slightly; anything else swaps with no animation. Browsers
   without view transitions get a plain fade-in on the legal pages instead. */

@view-transition { navigation: auto; }

@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; }
html.legal-page::view-transition-old(root) { animation: page-fade-out 0.3s var(--ease) both; }
html.legal-page::view-transition-new(root) { animation: page-fade-in 0.5s var(--ease) 0.1s both; }

@supports not (view-transition-name: none) {
  html.legal-page body { animation: page-fade-in 0.5s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html.legal-page::view-transition-old(root),
  html.legal-page::view-transition-new(root),
  html.legal-page body { animation: none; }
}
