:root {
  --bg: #070707;
  --bg-2: #0e0e0f;
  --panel: #131314;
  --line: #232325;
  --ink: #ffffff;
  --muted: #9a9a9f;
  --dim: #5d5d62;
  --red: #e8112d;
  --red-hi: #ff2a45;
  --red-deep: #5c0812;
  --bubble-them: #ececee;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
mark { background: var(--red); color: #fff; padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-radius: 999px; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -10px rgba(232, 17, 45, .7); }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #444; }
.btn-white { background: #fff; color: #000; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 7, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; font-size: 20px; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background: radial-gradient(1000px 520px at 85% 20%, rgba(232, 17, 45, .22), transparent 60%), var(--bg); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .18; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(232, 17, 45, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232, 17, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 17, 45, 0); } }
h1 { margin: 0; font-size: clamp(52px, 8.4vw, 104px); line-height: .95; letter-spacing: -.055em; font-weight: 900; }
h1 mark { display: inline-block; padding: 0 .12em .04em; margin-top: .06em; }
.echo { display: flex; flex-direction: column; margin-top: 2px; font-size: clamp(52px, 8.4vw, 104px); line-height: .95; letter-spacing: -.055em; font-weight: 900; height: 1.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); padding-left: .12em; }
.echo span { color: #2b2b2d; }
.lede { max-width: 540px; font-size: 19px; color: #c9c9cd; margin: 8px 0 32px; }
.lede b { color: #fff; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--dim); }

/* phone */
.phone { justify-self: center; width: 100%; max-width: 360px; height: 640px; background: #fff; color: #000; border-radius: 52px; padding: 14px 0 0; border: 10px solid #1c1c1e; box-shadow: 0 0 0 1px #333, 0 50px 120px -30px rgba(232, 17, 45, .55); display: flex; flex-direction: column; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 0 26px; font-size: 14px; font-weight: 700; }
.notch { width: 92px; height: 26px; background: #000; border-radius: 20px; }
.sig { font-size: 11px; letter-spacing: -1px; }
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; border-bottom: 1px solid #eee; font-size: 13px; text-align: center; }
.phone-head img { border-radius: 50%; }
.phone-head small { display: block; color: #8e8e93; font-size: 11px; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 14px 8px; overflow: hidden; }
.composer { margin: 6px 12px 22px; border: 1px solid #ddd; border-radius: 20px; padding: 7px 14px; font-size: 14px; color: #b0b0b5; display: flex; justify-content: space-between; }
.composer i { width: 22px; height: 22px; border-radius: 50%; background: var(--red); }

.b { max-width: 82%; padding: 9px 14px; border-radius: 19px; font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.b.me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 6px; }
.b.them { align-self: flex-start; background: var(--bubble-them); color: #000; border-bottom-left-radius: 6px; }
.b.them.red { background: #2a0a0f; color: #fff; border: 1px solid var(--red); }
.b.typing { display: flex; gap: 4px; padding: 13px 14px; }
.b.typing i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: blink 1s infinite; }
.b.typing i:nth-child(2) { animation-delay: .15s; } .b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat .b { animation: pop .28s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.b.sent-card { background: #f4f4f6; border: 1px solid #e3e3e6; }
.b.sent-card small { display: block; color: #6b6b70; font-size: 12px; }
.b.sent-card strong { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.b.sent-card span { font-size: 13px; color: #555; }

/* stats */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14, 14, 15, .7); }
.stats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.stats span { font-size: 13px; color: var(--muted); }

/* sections */
.sec { padding: 110px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.kicker { margin: 0 0 10px; color: var(--red-hi); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 900; }
h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.03em; font-weight: 800; line-height: 1.15; }
.sub { color: var(--muted); font-size: 19px; max-width: 600px; margin: 14px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.step p { color: var(--muted); margin: 0 0 22px; }
.step p b { color: #fff; }
.num { font-weight: 900; color: var(--red); font-size: 15px; margin-bottom: 18px; }
.mini { margin-top: auto; background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mini .b { font-size: 13.5px; }

.confirm { background: linear-gradient(180deg, var(--bg) 0%, #12030a 100%); }
.confirm-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; }
.receipt { background: linear-gradient(160deg, #7a0a17, #2a0308 70%); border-radius: 28px; padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 40px 100px -40px rgba(232, 17, 45, .6); }
.receipt .b { font-size: 16px; }
.receipt .b.them.red { background: var(--red); border: 0; }
.receipt .b.me { background: #fff; color: #000; }
.receipt .card { align-self: flex-start; background: #f2f2f2; color: #000; border-radius: 18px; padding: 14px 20px; min-width: 200px; }
.receipt .card small { display: block; font-size: 13px; color: #555; }
.receipt .card strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.receipt .card span { font-size: 14px; color: #444; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.panel h3 { font-size: 30px; }
.panel p { color: var(--muted); margin: 0 0 26px; }
.panel.dark { background: radial-gradient(500px 300px at 100% 0%, rgba(232, 17, 45, .2), transparent 70%), var(--panel); }
.pills { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pills code { background: var(--red); color: #fff; padding: 9px 16px; border-radius: 18px 18px 6px 18px; font-family: inherit; font-weight: 600; font-size: 15px; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); }
.notif img { border-radius: 9px; flex: none; }
.notif b { display: flex; justify-content: space-between; font-size: 14px; }
.notif small { color: var(--muted); font-weight: 400; }
.notif span { font-size: 14px; color: #ddd; }

.cmds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.cmds > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.cmds > div:hover { border-color: var(--red); }
.cmds code { color: #fff; font-weight: 600; font-size: 15px; }
.cmds span { color: var(--muted); font-size: 14px; }

.feeds { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.feed h2 { font-size: 34px; }
.feed-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--red-hi); border: 1px solid var(--red-deep); padding: 5px 12px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; min-width: 0; }
.list li.empty { color: var(--dim); justify-content: center; padding: 40px 0; }
.list .ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1f1f21; font-size: 15px; }
.list .ico.send { background: var(--red); }
.list .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .txt b { font-weight: 700; }
.list .meta { text-align: right; flex: none; }
.list .meta strong { display: block; font-weight: 800; }
.list .meta small { color: var(--dim); font-size: 12px; }
.list .meta a:hover { color: var(--red-hi); }
.lb li .rank { width: 28px; font-weight: 900; color: var(--dim); }
.lb li:nth-child(1) .rank { color: var(--red); }

details { border-top: 1px solid var(--line); padding: 22px 0; }
details:first-of-type { margin-top: 36px; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

.final { position: relative; overflow: hidden; padding: 130px 0; text-align: center; background: radial-gradient(800px 400px at 50% 100%, rgba(232, 17, 45, .35), transparent 70%), #000; }
.final h2 { font-size: clamp(42px, 7vw, 84px); margin-bottom: 40px; position: relative; }
.final .btn { position: relative; }

.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; justify-content: space-between; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: #fff; }
.foot small { width: 100%; color: var(--dim); font-size: 12px; }

@media (max-width: 960px) {
  .hero-in, .confirm-in, .duo, .feeds { grid-template-columns: 1fr; }
  .steps, .cmds { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; width: calc(100% - 48px); padding: 0; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .sec { padding: 76px 0; }
  .steps, .cmds { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .btn-lg { padding: 14px 22px; font-size: 16px; }
  .cta-row .btn { flex: 1; justify-content: center; }
  .phone { height: 560px; border-radius: 44px; }
  .panel, .feed, .step { padding: 22px; }
  .panel h3 { font-size: 24px; }
  .stats b { font-size: 24px; }
  .stats > div { padding: 18px; }
  .stats { width: calc(100% - 32px); padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- text motion: masked line reveal + scroll fill ---------- */
.fx .rm { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.fx .rm > .fl { transform: translateY(135%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.fx.in .rm > .fl { transform: none; }
.fl { display: block; position: relative; width: fit-content; }
.fl-base { color: rgba(255, 255, 255, .16); }
.fl-base mark { background: rgba(232, 17, 45, .16); color: rgba(255, 255, 255, .22); }
.fl-top { position: absolute; inset: 0; clip-path: inset(-.2em calc(100% - var(--p, 0) * 100%) -.2em -.2em); }
h1.fx .fl-top { transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(.35s + var(--i, 0) * .45s); }
h1.fx.in .fl-top { --p: 1; }

.up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx .rm > .fl { transform: none; }
  .fl-top { --p: 1 !important; clip-path: none; }
  .up { opacity: 1; transform: none; }
}
