@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/inter-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
:root { --display: 'Instrument Serif', Georgia, serif; }

:root {
  --bg: #05070c;
  --panel: #0b0f17;
  --line: #1b2231;
  --text: #eef2f8;
  --soft: #c5cddb;
  --muted: #8d98ab;
  --accent: #5cf2c7;
  --accent-ink: #02140e;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* sized from the viewport height too, so card + Share always fit above the fold */
  --slide: min(78vw, calc((100svh - 330px) * .8));
  --danger: #ff5d5d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(42rem 26rem at 8% -6%, rgba(92, 242, 199, .13), transparent 62%),
    radial-gradient(40rem 30rem at 100% 0%, rgba(80, 110, 255, .08), transparent 60%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 0%, transparent 75%);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.layout {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 18px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  counter-reset: sec;
}

/* hero */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2); opacity: 0; } }

h1 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(42px, 10.5vw, 88px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.015em;
  text-wrap: balance;
}
:lang(zh) h1 { letter-spacing: 0; line-height: 1.18; }
/* devanagari: negative tracking crowds conjuncts; matras need taller lines */
:lang(hi) h1 { letter-spacing: 0; line-height: 1.3; }
.cta { margin-top: 14px; font-size: 17px; line-height: 1.35; font-weight: 400; letter-spacing: 0; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.cta::before { content: ''; flex: 0 0 12px; height: 2px; translate: 0 -.3em; background: var(--accent); }

/* tool */
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.carousel { position: relative; margin-inline: -18px; }
.track {
  display: flex; gap: 10px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-block: 6px 26px;
  margin-block-end: -18px;
  padding-inline: calc(50% - var(--slide) / 2);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto; scroll-snap-align: center; cursor: pointer;
  opacity: .45; transform: scale(.94); transition: opacity .3s, transform .3s;
}
.slide.is-active { opacity: 1; transform: none; cursor: default; }
/* every card shares the 4:5 height; the 9:16 card comes out narrower, never taller */
.slide img {
  display: block; height: calc(var(--slide) * 1.25); width: auto;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
}
.slide.is-active img { box-shadow: 0 18px 40px -16px rgba(92, 242, 199, .32), 0 0 0 1px rgba(255, 255, 255, .1); }

.arrow {
  display: none; position: absolute; z-index: 2; top: calc(50% - 6px); translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(11, 15, 23, .85); color: var(--text);
  cursor: pointer; backdrop-filter: blur(6px);
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:disabled { opacity: .25; cursor: default; }
.arrow:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
[dir="rtl"] .arrow svg { transform: scaleX(-1); }


.actions { display: grid; gap: 10px; }
.picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
select {
  appearance: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d98ab' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 38px 10px 14px; cursor: pointer;
}
[dir="rtl"] select { background-position: left 12px center; padding: 10px 14px 10px 38px; }

button, .button { font: inherit; }
.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 19px; font-weight: 900; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -14px rgba(92, 242, 199, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
.primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(92, 242, 199, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.primary:disabled { opacity: .45; cursor: default; box-shadow: none; }
.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
}
.button:hover { border-color: #33405a; }
.share-fallback .secondary .button { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.peer {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 4px; text-decoration: underline; text-decoration-color: #2f3a4f; text-underline-offset: 4px;
}
.peer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.peer:hover { color: var(--text); text-decoration-color: var(--accent); }

/* fake-call opener */
.call {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px 10px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(170deg, #111725, #080b12 70%);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .95);
}
.call-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  position: relative; flex: 0 0 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #1c2333; color: #6b778c;
}
.avatar svg { width: 24px; height: 24px; fill: currentColor; }
.avatar::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
[data-state="ringing"] .avatar::after { animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.caller { flex: 0 0 auto; display: grid; gap: 4px; margin-inline-end: auto; }
.caller strong { font-size: 16px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.status { font: 600 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.timer { display: none; color: var(--accent); }
[data-state="live"] .ringing, [data-state="reveal"] .ringing { display: none; }
[data-state="live"] .timer, [data-state="reveal"] .timer { display: inline; }
[data-state="reveal"] .timer { color: var(--muted); }
.call-btn { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: opacity .3s; }
.call-btn svg { width: 17px; height: 17px; fill: #fff; }
.decline { background: var(--danger); }
.decline svg { rotate: 135deg; }
.accept { background: #2fc46b; }
[data-state="ringing"] .accept { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -14deg; } 80% { rotate: 12deg; } 90% { rotate: -6deg; } }
[data-state="live"] .accept, [data-state="reveal"] .accept { display: none; }
[data-state="reveal"] .decline { opacity: 0; }
[data-state="static"] .call-btn { display: none; }

.wave { flex: 0 1 132px; min-width: 0; justify-content: flex-end; display: flex; align-items: center; gap: 2px; height: 22px; overflow: hidden; }
.wave i {
  flex: 0 0 3px; height: var(--h); border-radius: 2px; background: #3a4458;
  animation: breathe 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1);
  animation-play-state: paused; scale: 1 .35; transition: background .4s;
}
.wave .clone { background: var(--accent); box-shadow: 0 0 10px rgba(92, 242, 199, .45); }
[data-state="live"] .wave i { animation-play-state: running; scale: none; }
[data-state="live"] .wave .clone {
  animation: breathe 1.4s ease-in-out infinite alternate, glitch 3.2s steps(1) infinite;
  animation-delay: calc(var(--d) * -1), calc(var(--d) * -3);
}
[data-state="reveal"] .wave .clone { background: var(--danger); box-shadow: none; }
[data-state="ringing"] .wave { visibility: hidden; }
.wave .split { flex: 0 0 1px; align-self: stretch; margin-inline: 4px; background: linear-gradient(transparent, #4a5568, transparent); }
@keyframes breathe { from { scale: 1 .55; } to { scale: 1 1; } }
@keyframes glitch {
  0%, 82%, 100% { translate: 0 0; opacity: 1; }
  84% { translate: 3px -3px; opacity: .35; }
  87% { translate: -4px 2px; opacity: 1; }
  90% { translate: 2px 0; opacity: .6; }
}

.script { list-style: none; display: grid; gap: 12px; }
/* every line shares one grid cell, so the box is as tall as the longest line and never jumps */
.call:not([data-state="static"]) .script { gap: 0; }
.call:not([data-state="static"]) .line {
  grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .2s, translate .2s, visibility 0s .2s;
}
/* incoming line waits for the outgoing one to clear, so two lines never overlap */
.call:not([data-state="static"]) .line.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .35s .2s, translate .35s .2s, visibility 0s .2s; }
.line { font-size: 17px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.line q { display: block; }
.who { display: block; margin-bottom: 4px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line[data-who="man"] q { color: #ffd0c9; }
.narration { font-size: 15px; font-weight: 400; font-style: italic; color: var(--muted); }
.reveal strong { display: block; font-size: 19px; line-height: 1.3; font-weight: 900; color: var(--accent); letter-spacing: -.01em; }
.reveal span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--soft); font-weight: 400; }
[data-state="static"] .reveal { padding-top: 12px; border-top: 1px solid var(--line); }

.call-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.call-label { font: 600 10.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.call-label::after { content: ' ↗'; }
.call-label:hover { color: var(--accent); }
.call-controls { display: flex; gap: 4px; }
[data-state="static"] .call-controls { display: none; }
.ghost {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 99px;
  background: none; color: var(--soft); padding: 6px 11px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ghost svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
[data-state="reveal"] #call-skip { display: none; }

/* content sections */
.why, .stories, .scam, .from-you, .after { counter-increment: sec; padding-top: 34px; border-top: 1px solid var(--line); margin-top: 18px; }
h2 { font-family: var(--display); font-size: clamp(32px, 7.6vw, 52px); line-height: 1; font-weight: 400; letter-spacing: -.01em; margin-bottom: 20px; }
/* instrument serif is latin-only: cjk and devanagari keep the heavy body font */
:lang(zh) h1, :lang(zh) h2, :lang(hi) h1, :lang(hi) h2 { font-family: inherit; font-weight: 900; }
:lang(zh) h1, :lang(hi) h1 { font-size: clamp(30px, 8.4vw, 72px); }
:lang(zh) h2, :lang(hi) h2 { font-size: clamp(26px, 6.4vw, 40px); }
h2::before { content: '0' counter(sec); display: block; margin-bottom: 12px; font: 600 11px/1 var(--mono); letter-spacing: .2em; color: var(--accent); }
:lang(zh) h2 { letter-spacing: 0; }
:lang(hi) h2 { letter-spacing: 0; line-height: 1.3; }
:lang(zh) .eyebrow, :lang(zh) .who, :lang(zh) .call-label { letter-spacing: .06em; }
:lang(hi) .eyebrow, :lang(hi) .who, :lang(hi) .call-label, :lang(hi) .place { letter-spacing: 0; }

.stats, .story-list { list-style: none; display: grid; gap: 12px; }
.stat, .story {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border: 1px solid var(--line); border-radius: 18px;
}
.stat { background: linear-gradient(160deg, rgba(92, 242, 199, .06), rgba(255, 255, 255, .01) 45%); }
.story { background: var(--panel); }
.stat strong { font-size: clamp(44px, 12vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.045em; color: var(--accent); }
:lang(zh) .stat strong, :lang(hi) .stat strong { letter-spacing: 0; }
.stat p, .story p { font-size: 15px; line-height: 1.5; color: var(--soft); flex: 1; }
.story p { font-size: 16px; color: var(--text); }
.place { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.stat a, .story a, .sources a {
  align-self: flex-start; font: 600 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid #2f3a4f; padding-bottom: 2px;
}
.stat a::after, .story a::after, .sources a::after { content: ' ↗'; }
.stat a:hover, .story a:hover, .sources a:hover { color: var(--accent); border-color: var(--accent); }

.steps { list-style: none; display: grid; gap: 22px; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--line); }
.step::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 44px; height: 2px; background: var(--accent); }
.step .n { font: 600 12px/1 var(--mono); color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; margin-block: 10px 6px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--soft); }

.from-you p:not(.sources) { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 36em; }
.sources { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }

.after ol { list-style: none; counter-reset: after; display: grid; gap: 14px; }
.after li {
  counter-increment: after; position: relative; padding: 18px 20px; padding-inline-start: 62px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
  font-size: 16px; line-height: 1.5; color: var(--soft);
}
.after li::before {
  content: counter(after); position: absolute; inset-inline-start: 18px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 900;
}

footer { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.trust { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--soft); }
.trust a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.trust a:hover { color: var(--accent); }

@media (min-width: 720px) {
  .layout { padding: 28px 32px 56px; column-gap: 56px; row-gap: 20px; }
  .carousel { margin-inline: 0; }
  .track {
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .arrow { display: grid; place-items: center; }
  .prev { inset-inline-start: calc(50% - var(--slide) / 2 - 76px); }
  .next { inset-inline-end: calc(50% - var(--slide) / 2 - 76px); }
  .slide { opacity: .32; transform: scale(.84); }
  .track { gap: 14px; }
  .actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  }
  .picker span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .primary { min-width: 200px; padding-inline: 28px; height: 50px; }
  .secondary { display: flex; }
  .button, select { min-height: 50px; }
  .stats, .steps, .story-list { grid-template-columns: repeat(3, 1fr); }
  .stat strong { font-size: clamp(34px, 3.6vw, 48px); white-space: nowrap; }
  .why, .stories, .scam, .from-you, .after { padding-top: 48px; margin-top: 28px; }
}

@media (min-width: 960px) {
  :root { --slide: clamp(240px, calc((100svh - 415px) * .8), 360px); }
  .layout {
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "hero hero" "tool tool" "why why" "stories stories" "scam call" "you after" "foot foot";
  }
  .hero { grid-area: hero; align-self: center; }
  .call { grid-area: call; align-self: end; }
  .scam .steps { grid-template-columns: minmax(0, 1fr); }
  .tool { grid-area: tool; }
  .why { grid-area: why; }
  .stories { grid-area: stories; }
  .scam { grid-area: scam; }
  .from-you { grid-area: you; }
  .after { grid-area: after; }
  footer { grid-area: foot; }
  h1 { font-size: clamp(56px, 5.8vw, 84px); }
  :lang(zh) h1, :lang(hi) h1 { font-size: clamp(40px, 4.2vw, 60px); }
  .line { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { scale: 1 .8; }
}
