/* =========================================================================
   Reelle — marketing site
   Design system mirrors the Flutter app (lib/theme/app_colors.dart):
   brand red #F23645 → #D81E2C, Playfair Display headings, Poppins body.
   ========================================================================= */

:root {
  /* Brand — same values as AppColors */
  --red: #f23645;
  --red-dark: #d81e2c;
  --red-light: #ff5a5f;
  --gold: #e8c07d;

  /* Dark luxury canvas (matches the app splash) */
  --ink: #0a0a0c;
  --ink-2: #101014;
  --ink-3: #16161c;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text: #f4f2f2;
  --text-body: #b9b6bd;
  --text-muted: #7b7883;

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* Film-grain overlay — keeps the flat dark areas from banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.3;
}

.lead {
  color: var(--text-body);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.7;
  max-width: 50ch;
}

.shimmer {
  background: linear-gradient(
    100deg,
    var(--red) 0%,
    #ff8a8f 38%,
    var(--gold) 55%,
    var(--red-light) 78%,
    var(--red) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 260% 0;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(120deg, #ff2d40, var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 34px -10px rgba(242, 54, 69, 0.75);
}

/* Sheen sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -12px rgba(242, 54, 69, 0.9);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   NAV
   ========================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-soft);
}

.nav-in {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  font-size: 14px;
  color: var(--text-body);
}

.nav-links a {
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.nav-burger span:nth-child(1) {
  top: 17px;
}
.nav-burger span:nth-child(2) {
  top: 22px;
}
.nav-burger span:nth-child(3) {
  top: 27px;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

/* live map canvas */
#mapCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::before {
  /* vignette so the copy always reads */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      120% 90% at 78% 42%,
      transparent 0%,
      rgba(10, 10, 12, 0.55) 62%,
      var(--ink) 100%
    ),
    linear-gradient(180deg, rgba(10, 10, 12, 0.9) 0%, transparent 22%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.1rem);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
}

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fd07a;
  box-shadow: 0 0 0 0 rgba(47, 208, 122, 0.6);
  animation: ping 2.2s var(--ease-io) infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 9px rgba(47, 208, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 208, 122, 0);
  }
}

/* ---------- phone mockup ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.phone-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 54, 69, 0.4),
    transparent 62%
  );
  filter: blur(48px);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.phone {
  position: relative;
  width: 300px;
  /* chosen so the inner screen matches the 560x1244 screenshot ratio exactly
     once the 11px bezel padding is removed */
  aspect-ratio: 9 / 19.17;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(155deg, #34343c, #101014 44%, #26262d 78%, #3a3a43);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 10px 30px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  z-index: 1;
}

.phone::before {
  /* speaker notch */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  border-radius: 4px;
  background: #000;
  z-index: 4;
  opacity: 0.9;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

/* The app screens are near-white; without this they glare against the dark
   page and read as pasted-on rectangles. A glass sheen plus an inset edge
   shadow seats them inside the bezel like a real display. */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.03) 26%,
      transparent 46%
    ),
    radial-gradient(
      130% 70% at 50% 100%,
      rgba(0, 0, 0, 0.32),
      transparent 62%
    );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 20px 44px -26px rgba(0, 0, 0, 0.9),
    inset 0 -24px 50px -28px rgba(0, 0, 0, 0.75);
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* takes the raw screenshot white down a touch so it sits in the palette */
  filter: saturate(1.04) contrast(1.03) brightness(0.965);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}

.phone-screen img.on {
  opacity: 1;
  transform: scale(1);
}

/* floating glass chips around the phone */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 15px;
  background: rgba(20, 20, 25, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}

.chip i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.chip i svg {
  width: 15px;
  height: 15px;
}

.chip b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.chip small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.chip-1 {
  top: 13%;
  left: -14%;
  animation-delay: -1s;
}
.chip-2 {
  bottom: 26%;
  right: -16%;
  animation-delay: -3.4s;
}
.chip-3 {
  bottom: 7%;
  left: -8%;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  right: 34px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint .rail {
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.scroll-hint .rail::after {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--red));
  animation: railrun 2.4s var(--ease-io) infinite;
}

@keyframes railrun {
  to {
    top: 46px;
  }
}

/* =========================================================================
   STATS
   ========================================================================= */

.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 46px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #b9b6bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat .lbl {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat + .stat {
  border-left: 1px solid var(--line-soft);
}

/* =========================================================================
   SECTION SHELL
   ========================================================================= */

.sec {
  padding: 92px 0;
}

/* a barely-there panel on alternating sections, so the page has rhythm
   instead of one continuous slab of black */
.sec-tint {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022),
    transparent 62%
  );
  border-top: 1px solid var(--line-soft);
}

.sec-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head.center .eyebrow {
  justify-content: center;
}

.sec-head h2 {
  margin-bottom: 20px;
}

/* =========================================================================
   FEATURE CARDS
   ========================================================================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    background 0.5s var(--ease);
}

/* single hairline of light along the top edge — reads as a lit surface
   without the heavy gradient wash */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
}

/* cursor-tracking glow */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 54, 69, 0.16),
    transparent 62%
  );
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 54, 69, 0.38);
  background: rgba(255, 255, 255, 0.042);
}

.card:hover::before {
  opacity: 1;
}

.card-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(242, 54, 69, 0.22), transparent);
  border: 1px solid rgba(242, 54, 69, 0.3);
  color: var(--red-light);
  transition: transform 0.5s var(--ease);
}

.card:hover .card-ico {
  transform: translateY(-3px) rotate(-6deg);
}

.card-ico svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-body);
  font-size: 14.5px;
}

/* =========================================================================
   PINNED SCROLL SHOWCASE
   ========================================================================= */

.showcase {
  position: relative;
}

/* The tall track + sticky pin only exist when JS can drive them. */
.js .showcase-track {
  height: 420vh;
}

.showcase-pin {
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.js .showcase-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  width: 100%;
}

.showcase-steps {
  position: relative;
}

/* Stacked-and-crossfaded only when JS can drive the pin; otherwise they
   simply flow down the page as four readable blocks. */
.js .step {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-38%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
}

.step + .step {
  margin-top: 44px;
}

.js .step.on {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.step-n {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.step h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 16px;
}

.step p {
  color: var(--text-body);
  max-width: 44ch;
  margin-bottom: 26px;
}

.step ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.step li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-body);
}

.step li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--red);
}

/* progress rail */
.showcase-rail {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 190px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.showcase-rail i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, var(--red-light), var(--red-dark));
  border-radius: 2px;
  transition: transform 0.5s var(--ease);
}

.showcase .phone {
  width: 274px;
}

.showcase .phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

/* =========================================================================
   SPLIT / ALT SECTIONS
   ========================================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* grid items default to min-width:auto, which lets nowrap content (the
   monospace hash rows) blow the track out past the viewport */
.split > *,
.showcase-grid > * {
  min-width: 0;
}

.split.rev .split-media {
  order: -1;
}

.split-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.split-media .phone {
  width: 262px;
}

/* z-index:0 (not -1) — the parent makes no stacking context, so a negative
   index would paint the orb behind the page background and vanish */
.glow-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.glow-red {
  background: radial-gradient(circle, rgba(242, 54, 69, 0.6), transparent 65%);
}

.glow-gold {
  background: radial-gradient(circle, rgba(232, 192, 125, 0.45), transparent 65%);
}

.mini-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mini-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mini-list .mi {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(242, 54, 69, 0.09);
  border: 1px solid rgba(242, 54, 69, 0.18);
  color: var(--red-light);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.mini-list li:hover .mi {
  background: rgba(242, 54, 69, 0.16);
  border-color: rgba(242, 54, 69, 0.35);
}

.mini-list .mi svg {
  width: 18px;
  height: 18px;
}

.mini-list b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.mini-list span {
  font-size: 14px;
  color: var(--text-body);
}

/* ---------- verification ring (SVG draw-on) ---------- */

.verify-visual {
  position: relative;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
}

.verify-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.verify-visual circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.ring-bg {
  stroke: var(--line);
}

.ring-fg {
  stroke: url(#ringGrad);
  stroke-dasharray: 880;
  stroke-dashoffset: 880;
  transition: stroke-dashoffset 1.8s var(--ease);
}

.in-view .ring-fg {
  stroke-dashoffset: 176;
}

.verify-core {
  text-align: center;
}

.verify-core .tick {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  box-shadow: 0 0 44px -6px rgba(242, 54, 69, 0.8);
}

.verify-core .tick svg {
  position: static;
  transform: none;
  width: 34px;
  height: 34px;
  color: #fff;
}

.verify-core .tick svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transition: stroke-dashoffset 0.9s var(--ease) 0.7s;
}

.in-view .verify-core .tick svg path {
  stroke-dashoffset: 0;
}

.verify-core b {
  font-family: var(--serif);
  font-size: 30px;
  display: block;
}

.verify-core span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verify-pills {
  position: absolute;
  inset: 0;
}

.vp {
  position: absolute;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(20, 20, 25, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}

.vp-1 {
  top: 2%;
  right: -8%;
  color: #2fd07a;
  border-color: rgba(47, 208, 122, 0.34);
}
.vp-2 {
  bottom: 14%;
  left: -14%;
  color: var(--gold);
  border-color: rgba(232, 192, 125, 0.34);
  animation-delay: -2.5s;
}
.vp-3 {
  bottom: -2%;
  right: 4%;
  color: var(--red-light);
  border-color: rgba(242, 54, 69, 0.34);
  animation-delay: -4.5s;
}

/* =========================================================================
   BLOCKCHAIN STRIP
   ========================================================================= */

.chain {
  background: linear-gradient(180deg, var(--ink), var(--ink-3), var(--ink));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.chain-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 26px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
  overflow: hidden;
}

.chain-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(14px);
}

.chain-row:last-child {
  border-bottom: 0;
}

.in-view .chain-row {
  animation: rowIn 0.7s var(--ease) forwards;
}

.in-view .chain-row:nth-child(1) {
  animation-delay: 0.05s;
}
.in-view .chain-row:nth-child(2) {
  animation-delay: 0.18s;
}
.in-view .chain-row:nth-child(3) {
  animation-delay: 0.31s;
}
.in-view .chain-row:nth-child(4) {
  animation-delay: 0.44s;
}

@keyframes rowIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.chain-row .k {
  color: var(--text-muted);
  width: 96px;
  flex: none;
}

.chain-row .v {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-row .v.hash {
  color: var(--red-light);
}

.chain-ok {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2fd07a;
  font-size: 11px;
  flex: none;
}

/* =========================================================================
   LEGAL PAGES
   ========================================================================= */

.legal {
  padding: 150px 0 96px;
  max-width: 820px;
}

.legal-head {
  padding-bottom: 34px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  margin-bottom: 16px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-toc {
  margin-bottom: 48px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.legal-toc h2 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  font-size: 14px;
  color: var(--text-body);
  transition: color 0.3s;
}

.legal-toc a:hover {
  color: var(--red-light);
}

.legal h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 46px 0 16px;
  scroll-margin-top: 96px;
}

.legal h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.78;
}

.legal p {
  margin-bottom: 15px;
}

.legal ul,
.legal ol.body {
  margin: 0 0 18px 20px;
}

.legal li {
  margin-bottom: 9px;
}

.legal a:not(.btn):not(.logo) {
  color: var(--red-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 54, 69, 0.4);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal-note {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: rgba(242, 54, 69, 0.06);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 22px;
  font-size: 14px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--text-body);
}

.legal th {
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-color: var(--line);
}

.legal-table-wrap {
  overflow-x: auto;
}

@media (max-width: 780px) {
  .legal {
    padding: 116px 0 72px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal h2 {
    margin-top: 38px;
  }
}

/* =========================================================================
   CTA
   ========================================================================= */

.cta {
  padding: 112px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(
    ellipse,
    rgba(242, 54, 69, 0.24),
    transparent 66%
  );
  filter: blur(40px);
  animation: breathe 10s ease-in-out infinite;
  pointer-events: none;
}

.cta-in {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.cta .lead {
  margin: 0 auto 40px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 66px 0 34px;
  background: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 34ch;
  margin-top: 18px;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer ul a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}

.footer ul a:hover {
  color: var(--red-light);
  transform: translateX(4px);
}

.footer-bot {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */

/* Reveal states are scoped to .js — with scripting off nothing is ever hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js [data-reveal="left"] {
  transform: translateX(-34px);
}
.js [data-reveal="right"] {
  transform: translateX(34px);
}
.js [data-reveal="zoom"] {
  transform: scale(0.94);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* top scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 1000;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .split.rev .split-media {
    order: 0;
  }

  .hero {
    padding-top: 118px;
    text-align: left;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .js .showcase-track,
  .showcase-track {
    height: auto;
  }

  .js .showcase-pin,
  .showcase-pin {
    position: static;
    height: auto;
    padding: 40px 0 0;
  }

  /* on small screens the pinned steps become a simple stack */
  .showcase-steps {
    min-height: 0;
  }

  html.js .step,
  .step {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-bottom: 44px;
  }

  .showcase-rail {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-links,
  .nav .btn-desktop {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(16, 16, 20, 0.97);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
  }

  .nav-links.open a {
    display: block;
    padding: 15px 8px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links.open li:last-child a {
    border-bottom: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .stat + .stat {
    border-left: 0;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 26px 22px 28px;
  }

  .card-ico {
    margin-bottom: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .chain-card {
    padding: 18px;
    font-size: 11px;
    /* the split copy centres on mobile; this key/value table must not */
    text-align: left;
  }

  .chain-row .k {
    width: 68px;
  }

  /* =======================================================================
     MOBILE COMPOSITION
     One idea per screen: copy centred over the artwork it describes, a
     single column, and full-width controls. Lists stay left-aligned inside
     a centred column — centred body text is hard to read.
     ======================================================================= */

  .wrap {
    padding: 0 22px;
  }

  .sec {
    padding: 76px 0;
  }

  .sec-head {
    margin-bottom: 42px;
    text-align: center;
  }

  .sec-head .eyebrow,
  .eyebrow {
    justify-content: center;
  }

  .sec-head .lead,
  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  h2 {
    font-size: clamp(1.62rem, 7.4vw, 2.1rem);
    line-height: 1.14;
  }

  /* ---- hero ---- */

  .hero {
    padding: 104px 0 64px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.8vw, 2.9rem);
    line-height: 1.09;
    margin-bottom: 20px;
  }

  .hero .lead {
    margin-bottom: 30px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    margin-bottom: 34px;
  }

  .hero-cta .btn {
    width: 100%;
    height: 52px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }

  /* the floating chips have nowhere to go at this width — the phone alone
     reads better than three glass cards clipping its edges */
  .chip,
  .scroll-hint {
    display: none;
  }

  .phone-stage {
    margin-top: 8px;
  }

  /* ---- split sections ---- */

  .split {
    gap: 40px;
  }

  .split > *:not(.split-media) {
    text-align: center;
  }

  .mini-list {
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 22px;
  }

  /* ---- showcase steps ---- */

  .step {
    text-align: center;
  }

  /* stacked showcase: the trailing step margin plus the grid gap left a dead
     band above the phone */
  .showcase-grid {
    gap: 36px;
  }

  html.js .step:last-child,
  .step:last-child {
    margin-bottom: 0;
  }

  .js .showcase-pin,
  .showcase-pin {
    padding-top: 20px;
  }

  .step h3 {
    font-size: clamp(1.5rem, 6.6vw, 1.95rem);
  }

  .step p {
    margin-left: auto;
    margin-right: auto;
  }

  .step ul {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
  }

  /* ---- phones ---- */

  .phone,
  .split-media .phone,
  .showcase .phone {
    width: min(258px, 72vw);
  }

  /* ---- cta ---- */

  .cta {
    padding: 86px 0;
  }

  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btns .btn {
    width: 100%;
    height: 52px;
  }

  .verify-visual {
    width: min(268px, 74vw);
    height: min(268px, 74vw);
  }

  .vp {
    font-size: 11px;
    padding: 7px 11px;
  }

  .footer {
    padding: 52px 0 30px;
  }

  .footer-bot {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================================
   REDUCED MOTION — kill everything that moves
   ========================================================================= */

@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;
  }

  .ring-fg {
    stroke-dashoffset: 176;
  }

  #mapCanvas {
    display: none;
  }
}
