/* ============================================================
   Revia landing — alternative visual direction ("Mist")
   Revia's own violet mist as the air. Every section is a lit
   stage in the mist: scan the print -> memory unfolds in space.
   ============================================================ */

:root {
  --mist-1: #d3c5ff;
  --mist-2: #b39dff;
  --mist-3: #8f79f5;
  --mist-4: #6f5bf0;
  --deep: #4a33c2;
  --ink-on-mist: #ffffff;
  --ink-deep: #2e2560;
  --violet-pop: #6c4cf1;
  --cyan: #7de8ff;
  --amber: #ffc98a;
  --pink: #ff9ecb;
  --line-w: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --radius: 22px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  color: var(--ink-on-mist);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(1000px 700px at -10% 30%, rgba(125, 232, 255, 0.18), transparent 60%),
    radial-gradient(900px 900px at 55% 110%, rgba(58, 30, 140, 0.5), transparent 65%),
    radial-gradient(700px 500px at 70% 55%, rgba(255, 201, 138, 0.14), transparent 60%),
    linear-gradient(180deg, var(--mist-1) 0%, var(--mist-2) 26%, var(--mist-3) 55%, var(--mist-4) 100%);
  background-attachment: fixed;
}

/* faint grain for material warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: rgba(255, 255, 255, 0.4); color: var(--deep); }
a { color: inherit; }
img, svg { display: block; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* wordmark: source SVG is white, sits directly on the mist */
.logo { display: inline-block; width: 118px; height: auto; }
.logo.sm { width: 92px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
h1, h2 { text-wrap: balance; }
.display {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 800;
  margin: 26px 0 0; color: #fff;
  text-shadow: 0 4px 40px rgba(58, 30, 140, 0.35);
}
.display .glow-word {
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 800;
  margin: 16px 0 0; color: #fff;
  text-shadow: 0 3px 30px rgba(58, 30, 140, 0.3);
}
.lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6; max-width: 27rem;
}
.serif-accent {
  font-family: var(--font-serif); font-style: italic;
  color: #fff; font-size: 16px;
}
.section-tag {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: linear-gradient(180deg, rgba(120, 95, 235, 0.55), rgba(120, 95, 235, 0.15) 75%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* ---------- buttons: white pill like the Revia app ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 700;
  padding: 15px 28px; border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  color: #3a2a8f;
  background: #fff;
  box-shadow: 0 14px 36px -10px rgba(40, 22, 120, 0.55), inset 0 1px 0 #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -10px rgba(40, 22, 120, 0.65); }
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.22); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: 36px; align-items: center;
  padding: 64px 0 30px;
  min-height: min(94vh, 920px);
}
.hero-copy .lede { margin-top: 24px; }
.hero-notes { margin-top: 14px; display: grid; gap: 8px; }
.hero-notes .quiet { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-fine { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.scroll-cue {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0 30px; color: rgba(255,255,255,0.6);
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
}
.scroll-cue::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent); }

/* ============================================================
   AR STAGE — scan over the print, then AR unfolds in the mist
   ============================================================ */
.stage {
  position: relative;
  height: 620px;
  perspective: 1500px;
  --px: 0; --py: 0;
}
.stage-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * 1deg)) rotateY(calc(var(--px) * 1deg));
  transition: transform 0.35s ease-out;
}

/* atmosphere: mist light pools */
.stage-atmo { position: absolute; inset: 0; pointer-events: none; }
.stage-atmo i { position: absolute; border-radius: 50%; filter: blur(46px); }
.stage-atmo .b1 { width: 360px; height: 360px; left: 0%; top: 4%; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%); }
.stage-atmo .b2 { width: 260px; height: 260px; right: 2%; bottom: 6%; background: radial-gradient(circle, rgba(125,232,255,0.35), transparent 70%); }
.stage-atmo .b3 { width: 220px; height: 220px; left: 36%; bottom: 0%; background: radial-gradient(circle, rgba(255,201,138,0.35), transparent 70%); }

/* floor glow grounds the composition */
.stage-floor {
  position: absolute;
  left: 8%; right: 8%; bottom: 8%;
  height: 80px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(14px);
}

/* the printed postcard, standing with a lean */
.postcard {
  position: absolute;
  left: 9%; bottom: 15%;
  width: 272px;
  aspect-ratio: 3 / 4;
  background: #fffdf8;
  padding: 12px 12px 30px;
  border-radius: 8px;
  transform: rotateY(-17deg) rotateX(4deg) rotateZ(2deg);
  transform-origin: 50% 90%;
  box-shadow:
    24px 44px 70px -18px rgba(40, 22, 120, 0.45),
    0 2px 6px rgba(40, 22, 120, 0.2);
}
.postcard-art {
  position: relative; width: 100%; height: 100%;
  border-radius: 3px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 108%, #2b3a67 0%, transparent 55%),
    radial-gradient(55% 42% at 68% 42%, #ffd9a0 0%, #ff9d6b 34%, transparent 70%),
    linear-gradient(180deg, #1c2450 0%, #3a2f63 34%, #8a4b6d 58%, #e08a5a 78%, #f7c873 100%);
}
.postcard-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, rgba(20,28,60,0.5) 63%, transparent 64.5%),
    linear-gradient(180deg, transparent 70%, rgba(20,28,60,0.42) 71%, transparent 72.5%),
    linear-gradient(180deg, transparent 78%, rgba(16,22,48,0.55) 79%, transparent 80.5%);
}
.postcard-art::after {
  content: ""; position: absolute;
  left: 60%; top: 26%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, #ffd9a0 45%, rgba(255,180,120,0) 72%);
  filter: blur(1px);
}
.postcard-grain {
  position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)' opacity='0.55'/%3E%3C/svg%3E");
}
.anchor-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--violet-pop);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  opacity: 0.4;
  transition: opacity 0.5s, box-shadow 0.5s;
  z-index: 3;
}
.anchor-dot.d1 { top: 6px; left: 6px; }
.anchor-dot.d2 { top: 6px; right: 6px; }
.anchor-dot.d3 { bottom: 24px; left: 6px; }
.anchor-dot.d4 { bottom: 24px; right: 6px; }
.stage.is-ar .anchor-dot { opacity: 1; box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.9); }

/* scan beam sweeping the print */
.scan-beam {
  position: absolute; left: -4%; right: -4%; top: 8%;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 30%, var(--cyan) 50%, #fff 70%, transparent);
  box-shadow: 0 0 24px 5px rgba(255, 255, 255, 0.85), 0 8px 34px 8px rgba(125, 232, 255, 0.4);
  opacity: 0;
  z-index: 4;
}
.stage.is-scan .scan-beam { animation: beam-sweep 2.4s ease-in-out 1; }
@keyframes beam-sweep {
  0% { top: 6%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

/* ---- AR layers unfolding from the print ---- */
.ar-layers { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.anchor-cone {
  position: absolute;
  left: 26%; bottom: 30%;
  width: 300px; height: 260px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.06) 80%, transparent);
  clip-path: polygon(28% 100%, 72% 100%, 100% 0, 0 0);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: rotateY(-17deg);
}
.stage.is-ar .anchor-cone { opacity: 1; }

.ar-card {
  position: absolute;
  width: 168px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 30px 60px -18px rgba(40, 22, 120, 0.5),
    0 0 40px -8px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 #fff;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ar-card.c1 { left: 16%; bottom: 34%; transform: translateY(70px) scale(0.72) rotateY(-17deg); }
.ar-card.c2 { left: 16%; bottom: 34%; transform: translateY(70px) scale(0.72) rotateY(-17deg); transition-delay: 0.12s; }
.ar-card.c3 { left: 16%; bottom: 34%; transform: translateY(70px) scale(0.72) rotateY(-17deg); transition-delay: 0.24s; }
.stage.is-ar .ar-card { opacity: 1; }
.stage.is-ar .ar-card.c1 { transform: translate(56px, -150px) rotateY(-10deg) rotateZ(-3deg); }
.stage.is-ar .ar-card.c2 { transform: translate(172px, -196px) rotateY(2deg) rotateZ(2deg); }
.stage.is-ar .ar-card.c3 { transform: translate(288px, -236px) rotateY(12deg) rotateZ(5deg); }
.stage.is-ar .ar-card.c1 { animation: card-float 5.5s ease-in-out 1.2s infinite; }
.stage.is-ar .ar-card.c2 { animation: card-float 6.2s ease-in-out 2s infinite; }
.stage.is-ar .ar-card.c3 { animation: card-float 5s ease-in-out 2.7s infinite; }
@keyframes card-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}
.ar-card .thumb {
  height: 86px; border-radius: 12px; margin-bottom: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  position: relative; overflow: hidden;
}
.ar-card .thumb.t-photo { background: linear-gradient(135deg, #ffb37c, #ff8fb1 60%, #c9a8ff); }
.ar-card .thumb.t-video { background: linear-gradient(135deg, #37c4ff, #6c4cf1); }
.ar-card .thumb.t-audio { background: linear-gradient(135deg, #8a6ff5, #37c4ff); }
.ar-card .thumb .wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.ar-card .thumb .wave i { width: 3px; border-radius: 3px; background: #fff; animation: wave 1.1s ease-in-out infinite; }
.ar-card .thumb .wave i:nth-child(1) { height: 10px; }
.ar-card .thumb .wave i:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.ar-card .thumb .wave i:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.ar-card .thumb .wave i:nth-child(4) { height: 24px; animation-delay: 0.45s; }
.ar-card .thumb .wave i:nth-child(5) { height: 12px; animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.15); } }
.ar-card .thumb .playbtn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(20,30,80,0.3);
}
.ar-card .thumb .playbtn::after {
  content: ""; border-left: 10px solid #3a2a8f;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.ar-card b { display: block; font-size: 12.5px; color: var(--ink-deep); }
.ar-card span { display: block; font-size: 10.5px; color: #6d639e; margin-top: 2px; }
.ar-tag {
  position: absolute; top: -13px; left: 12px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: linear-gradient(100deg, var(--violet-pop), #37c4ff);
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(40, 22, 120, 0.6);
}

/* ---- the scanning phone (white frame) ---- */
.phone-lite {
  position: absolute;
  right: 4%; top: 0;
  width: 176px; aspect-ratio: 9 / 18.4;
  border-radius: 30px;
  background: linear-gradient(165deg, #ffffff, #d9d2f7 70%);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 44px 80px -24px rgba(40, 22, 120, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.4),
    inset 0 2px 6px rgba(255,255,255,0.9);
  transform: rotateZ(9deg) rotateX(5deg);
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 19px; border-radius: 999px;
  background: #1c1440; z-index: 5;
}
.phone-screen {
  position: absolute; inset: 8px;
  border-radius: 23px; overflow: hidden;
  background: #0a0e1e;
}
.cam-view { position: absolute; inset: 0; transform: scale(1.5) rotate(-5deg); filter: saturate(1.05) brightness(0.95); }
.cam-vignette { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(2,4,10,0.5) 100%); }
.viewfinder {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  background:
    linear-gradient(rgba(140,170,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,170,255,0.14) 1px, transparent 1px);
  background-size: 33.4% 33.4%;
}
.stage.is-scan .viewfinder, .stage.is-ar .viewfinder { opacity: 1; }
.reticle i {
  position: absolute; width: 24px; height: 24px;
  border: 0 solid var(--cyan); opacity: 0;
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(125, 232, 255, 0.9));
}
.reticle i:nth-child(1) { top: 30%; left: 18%; border-top-width: 3px; border-left-width: 3px; }
.reticle i:nth-child(2) { top: 30%; right: 18%; border-top-width: 3px; border-right-width: 3px; }
.reticle i:nth-child(3) { bottom: 32%; left: 18%; border-bottom-width: 3px; border-left-width: 3px; }
.reticle i:nth-child(4) { bottom: 32%; right: 18%; border-bottom-width: 3px; border-right-width: 3px; }
.stage.is-scan .reticle i, .stage.is-ar .reticle i { opacity: 1; }
.stage.is-ar .reticle i { border-color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.95)); }
.phone-scanline {
  position: absolute; left: 10%; right: 10%; top: 26%; height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 16px 2px rgba(255, 255, 255, 0.9);
  opacity: 0;
}
.stage.is-scan .phone-scanline { animation: pscan 2.2s ease-in-out 1; }
@keyframes pscan { 0% { top: 26%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 70%; opacity: 0; } }
.phone-chip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) translateY(6px);
  font-size: 9px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; background: rgba(20, 12, 60, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 11px 6px 13px; border-radius: 999px;
  opacity: 0; transition: opacity 0.5s, transform 0.5s;
  white-space: nowrap; backdrop-filter: blur(4px);
}
.stage.is-scan .phone-chip.scan { opacity: 1; transform: translateX(-50%) translateY(0); }
.stage.is-ar .phone-chip.scan { opacity: 0; }
.stage.is-ar .phone-chip.found { opacity: 1; transform: translateX(-50%) translateY(0); }

.stage-caption {
  position: absolute; left: 0; right: 0; bottom: -6px;
  text-align: center; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.stage-caption b { color: #fff; font-weight: 700; }

/* ---------- interlude ---------- */
.interlude { padding: 84px 0; text-align: center; }
.interlude blockquote {
  margin: 0 auto; max-width: 46rem;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.3;
  color: #fff;
  text-shadow: 0 4px 34px rgba(58, 30, 140, 0.4);
}
.interlude blockquote .hl {
  background: linear-gradient(100deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- sections: each its own lit stage in the mist ---------- */
.section { padding: 104px 0; position: relative; }
.section-head { max-width: 44rem; margin-bottom: 60px; }
.section-head .h2 { margin-top: 18px; }

#interaction {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(70% 80% at 50% 100%, rgba(40, 20, 120, 0.35), transparent 70%);
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 42px 0; }
.f-row + .f-row { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.f-row.flip > .f-copy { order: 2; }
.step-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 14px; border-radius: 999px;
}
.f-copy h3 { margin: 20px 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; font-weight: 800; color: #fff; }
.f-copy p { color: rgba(255, 255, 255, 0.78); margin: 14px 0 0; max-width: 26rem; line-height: 1.65; }
.f-step { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.f-step::after { content: "→"; transition: transform 0.2s; }
.f-row:hover .f-step::after { transform: translateX(4px); }

/* feature visual: white-glass stage with its own light */
.f-visual {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.28), rgba(255,255,255,0.1));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 70px -28px rgba(40, 22, 120, 0.5), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.f-visual:hover { transform: translateY(-6px); box-shadow: 0 40px 90px -28px rgba(40, 22, 120, 0.6), inset 0 1px 0 rgba(255,255,255,0.7); }
.f-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(50% 45% at 10% 90%, rgba(125,232,255,0.2), transparent 60%);
}
/* each step's own tint */
.f-row:nth-of-type(1) .f-visual { background: linear-gradient(165deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08)), radial-gradient(80% 80% at 70% 20%, rgba(255,255,255,0.25), transparent 60%); }
.f-row:nth-of-type(2) .f-visual { background: linear-gradient(165deg, rgba(125,232,255,0.25), rgba(255,255,255,0.06)); }
.f-row:nth-of-type(3) .f-visual { background: linear-gradient(165deg, rgba(255,201,138,0.28), rgba(255,255,255,0.06)); }
.f-row:nth-of-type(4) .f-visual { background: linear-gradient(165deg, rgba(255,158,203,0.25), rgba(255,255,255,0.06)); }

.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; position: relative; z-index: 1; }
.m-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 1); border-radius: 16px;
  padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-deep);
  box-shadow: 0 8px 20px -10px rgba(40, 22, 120, 0.35);
}
.m-chip .ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.m-layers { grid-column: 1 / -1; background: rgba(255,255,255,0.85); border: 1px solid #fff; border-radius: 16px; padding: 14px 16px; font-size: 12.5px; box-shadow: 0 8px 20px -10px rgba(40,22,120,0.35); }
.m-layers .row { display: flex; justify-content: space-between; color: #6d639e; margin-bottom: 10px; }
.m-layers .row b { color: var(--ink-deep); }
.m-bars { display: flex; gap: 6px; }
.m-bars i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #37c4ff, var(--violet-pop)); }

.attach-card { display: flex; gap: 22px; align-items: center; width: 100%; position: relative; z-index: 1; }
.scan-frame {
  position: relative; width: 150px; height: 150px; flex: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.5), 0 14px 30px -14px rgba(40,22,120,0.5);
}
.scan-frame::before, .scan-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid #fff; }
.scan-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-beam {
  position: absolute; left: 12%; right: 12%; height: 2px; top: 20%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 16px 2px rgba(255, 255, 255, 0.8);
  animation: beam-y 3.4s ease-in-out infinite;
}
@keyframes beam-y { 0%, 100% { top: 18%; } 50% { top: 78%; } }
.attach-meta { font-size: 13px; color: rgba(255,255,255,0.8); }
.attach-meta b { color: #fff; font-size: 15px; display: block; margin-bottom: 4px; }
.linked-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 7px 12px; border-radius: 999px;
}
.linked-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.attach-fine { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.revisit-stage { position: relative; width: 230px; height: 230px; z-index: 1; }
.revisit-stage .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.7); animation: ring-out 3.6s ease-out infinite; }
.revisit-stage .ring:nth-child(2) { animation-delay: 1.2s; border-color: rgba(125,232,255,0.7); }
.revisit-stage .ring:nth-child(3) { animation-delay: 2.4s; border-color: rgba(255,158,203,0.6); }
@keyframes ring-out { 0% { transform: scale(0.45); opacity: 0.9; } 100% { transform: scale(1.25); opacity: 0; } }
.revisit-core { position: absolute; inset: 62px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,1); box-shadow: 0 24px 50px -18px rgba(40,22,120,0.6); }
.revisit-tag {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.92); border: 1px solid #fff;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(40,22,120,0.5);
}
.revisit-tag b { color: var(--violet-pop); }

.keep-list { width: 100%; display: grid; gap: 12px; position: relative; z-index: 1; }
.keep-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #fff;
  border-radius: 16px; padding: 12px 16px;
  transition: border-color 0.25s, transform 0.25s;
  box-shadow: 0 8px 20px -12px rgba(40, 22, 120, 0.35);
}
.keep-row:hover { transform: translateX(4px); box-shadow: 0 12px 28px -12px rgba(40,22,120,0.5); }
.keep-row .sw { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.keep-row b { display: block; font-size: 14px; color: var(--ink-deep); }
.keep-row span { font-size: 12px; color: #6d639e; }
.keep-row .gift { margin-left: auto; color: var(--violet-pop); font-size: 16px; }

/* ---------- interaction: the deep pool stage ---------- */
.ix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ix-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.ix-steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px; padding: 18px 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px -18px rgba(40, 22, 120, 0.5);
  transition: transform 0.25s, background 0.25s;
}
.ix-steps li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.2); }
.ix-steps .n {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #3a2a8f;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(40, 22, 120, 0.5);
}
.ix-steps b { display: block; font-size: 15.5px; margin-bottom: 4px; color: #fff; }
.ix-steps p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.75); }

.portal { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; }
.portal-glow {
  position: absolute; inset: -4%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.35), rgba(125,232,255,0.3), rgba(255,158,203,0.25), rgba(255,255,255,0.35));
  filter: blur(52px); animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portal-photo {
  position: absolute; inset: 25%; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 40px 90px -30px rgba(40, 22, 120, 0.7), 0 0 60px -10px rgba(255,255,255,0.4);
  animation: portal-breathe 5s ease-in-out infinite;
}
@keyframes portal-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.portal .ring { position: absolute; inset: 13%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55); animation: ring-out 4.4s ease-out infinite; }
.portal .ring:nth-child(2) { animation-delay: 1.5s; }
.portal .ring:nth-child(3) { animation-delay: 3s; }
.portal-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.92); border: 1px solid #fff;
  border-radius: 14px; padding: 10px 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -16px rgba(40, 22, 120, 0.55);
  animation: chip-float 6s ease-in-out infinite;
}
.portal-chip .k { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.portal-chip.c1 { top: 6%; right: 0; }
.portal-chip.c2 { bottom: 14%; left: -4%; animation-delay: 1.4s; }
.portal-chip.c3 { bottom: -2%; right: 6%; animation-delay: 2.6s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- use cases ---------- */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.uc-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -30px rgba(40, 22, 120, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.uc-card:hover { transform: translateY(-6px); box-shadow: 0 36px 80px -30px rgba(40, 22, 120, 0.65); }
.uc-art { height: 150px; position: relative; overflow: hidden; }
.uc-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 65% at 25% 25%, rgba(255,255,255,0.4), transparent 65%); }
.uc-art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: rgba(255,255,255,0.95); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2)); }
.uc-body { padding: 22px 24px 26px; }
.uc-body b { font-size: 16.5px; color: #fff; }
.uc-body p { margin: 8px 0 0; font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ---------- coming soon: the luminous clearing ---------- */
.cta-panel {
  position: relative; border-radius: 32px; overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(60% 80% at 8% 95%, rgba(125,232,255,0.25), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.35), rgba(255,255,255,0.12));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 44px 110px -44px rgba(40, 22, 120, 0.6), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 46%, transparent 60%);
  background-size: 250% 100%;
  animation: panel-sheen 7s ease-in-out infinite;
}
@keyframes panel-sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.cta-panel h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.06; margin: 18px 0 0; font-weight: 800; color: #fff; text-shadow: 0 3px 30px rgba(58,30,140,0.35); }
.cta-panel .lede { margin-top: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-orb { position: relative; aspect-ratio: 1; max-width: 340px; margin-inline: auto; width: 100%; }
.cta-orb .core {
  position: absolute; inset: 26%; border-radius: 50%;
  background:
    radial-gradient(60% 60% at 40% 35%, rgba(255,255,255,0.95), transparent 60%),
    radial-gradient(80% 80% at 60% 65%, rgba(255,255,255,0.4), transparent 70%),
    radial-gradient(circle at 50% 50%, #e9e4ff, #b9a8ff 75%);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 0 90px -10px rgba(255, 255, 255, 0.7), inset 0 0 40px rgba(255,255,255,0.6);
  animation: portal-breathe 5s ease-in-out infinite;
}
.cta-orb .ring { position: absolute; inset: 12%; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.6); animation: ring-out 4s ease-out infinite; }
.cta-orb .ring:nth-child(2) { animation-delay: 1.3s; }
.cta-orb .ring:nth-child(3) { animation-delay: 2.6s; }

/* ---------- footer ---------- */
.footer { padding: 30px 0 46px; }
.footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: 20px; padding: 18px 24px;
  box-shadow: 0 18px 44px -24px rgba(40, 22, 120, 0.5);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand span { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-meta { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: rgba(255,255,255,0.65); }
.footer-meta a { text-decoration: none; transition: color 0.2s; }
.footer-meta a:hover { color: #fff; }
.footer-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(40, 22, 120, 0.5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(440px, 100%);
  background: linear-gradient(165deg, #b39dff, #7e63ee);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px; padding: 34px 32px;
  box-shadow: 0 44px 110px -30px rgba(40, 22, 120, 0.7);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.open .modal { transform: none; }
.modal h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; color: #fff; }
.modal p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 10px 0 0; }
.modal form { display: grid; gap: 12px; margin-top: 22px; }
.modal input {
  background: #fff; border: 1px solid #fff;
  border-radius: 14px; padding: 14px 16px;
  color: var(--ink-deep); font-size: 14.5px; font-family: var(--font-sans); width: 100%;
}
.modal input::placeholder { color: #9a8fc0; }
.modal .demo-note { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.modal .ok { text-align: center; padding: 10px 0 4px; }
.modal .ok .big { font-size: 40px; }
.modal .close-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); color: #fff;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.modal-wrap { position: relative; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 52px; gap: 4px; }
  .hero-copy { max-width: 36rem; }
  .stage { height: 560px; max-width: 600px; margin-inline: auto; width: 100%; }
  .ix-grid, .cta-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 28px; }
  .f-row.flip > .f-copy { order: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .stage { height: 500px; }
  .postcard { width: 200px; left: 4%; }
  .phone-lite { width: 138px; right: 0; }
  .ar-card { width: 132px; }
  .stage.is-ar .ar-card.c1 { transform: translate(30px, -120px) rotateY(-10deg) rotateZ(-3deg); }
  .stage.is-ar .ar-card.c2 { transform: translate(120px, -158px) rotateY(2deg) rotateZ(2deg); }
  .stage.is-ar .ar-card.c3 { transform: translate(206px, -192px) rotateY(12deg) rotateZ(5deg); }
  .anchor-cone { left: 12%; width: 230px; }
  .uc-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .portal-chip.c2 { left: 0; }
  .display { font-size: clamp(2.6rem, 13vw, 3.4rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .stage .ar-card { opacity: 1; }
  .stage .ar-card.c1 { transform: translate(56px, -150px) rotateY(-10deg) rotateZ(-3deg); }
  .stage .ar-card.c2 { transform: translate(172px, -196px) rotateY(2deg) rotateZ(2deg); }
  .stage .ar-card.c3 { transform: translate(288px, -236px) rotateY(12deg) rotateZ(5deg); }
  .stage .anchor-cone { opacity: 1; }
  .stage .anchor-dot { opacity: 1; box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.9); }
  .stage .viewfinder { opacity: 1; }
  .stage .reticle i { opacity: 1; border-color: #fff; }
  .stage .phone-chip.found { opacity: 1; transform: translateX(-50%) translateY(0); }
  .stage-caption { position: static; margin-top: 12px; }
}
