/* LaWallet Plugins — lawallet.io's dark look (globals.css + the app's Lw palette), no framework. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #0e1012;
  --card: #141517;
  --card-2: #1a1c1f;
  --border: #262626;
  --border-2: #333;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --teal: #00836d;
  --teal-2: #00a085;
  --teal-3: #2dd4bf;
  --sky: #0ea5e9;
  --mint: #55b68c;
  --sun: #fdc800;
  --coral: #e95052;
  --purple: hsl(251 100% 74%);
  --green: #22c55e;
  --orange: #f97316;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-variant-ligatures: none; }
p code, li > p code { white-space: nowrap; }
code { font-family: var(--mono); font-size: .88em; color: #d4d4d4; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
::selection { background: rgba(0, 160, 133, .45); }
:focus-visible { outline: 2px solid var(--teal-3); outline-offset: 3px; border-radius: 8px; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-lg { width: 26px; height: 26px; stroke-width: 1.6; }
.muted { color: var(--dim); }
.grad-teal { background: linear-gradient(100deg, var(--sky) 0%, var(--teal-2) 45%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-sky { background: linear-gradient(90deg, var(--sky), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* ---------- background: grid, drifting brand glows, noise ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -60px;
  background-image: linear-gradient(rgba(0,131,109,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,131,109,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%);
  transform: translate3d(0, calc(var(--scroll, 0) * -0.04px), 0);
}
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; animation: drift 22s var(--ease) infinite alternate; }
.blob-teal { width: 38rem; height: 38rem; left: -14rem; top: -10rem; background: rgba(0,131,109,.35); }
.blob-sun { width: 22rem; height: 22rem; right: -6rem; top: 14rem; background: rgba(253,200,0,.12); animation-delay: -6s; }
.blob-coral { width: 24rem; height: 24rem; right: 18%; bottom: -10rem; background: rgba(233,80,82,.12); animation-delay: -11s; }
.blob-purple { width: 30rem; height: 30rem; left: 25%; bottom: -14rem; background: rgba(139,92,246,.10); animation-delay: -3s; }
@keyframes drift { to { transform: translate3d(4rem, 3rem, 0) scale(1.12); } }
.bg-noise { position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - 1200px) / 2));
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,10,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: rgba(255,255,255,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 21px; width: auto; }
.brand-tag { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-3); border: 1px solid rgba(45,212,191,.3); background: rgba(45,212,191,.07); padding: 5px 8px; border-radius: 999px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.05); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--spring), background .25s, border-color .25s, box-shadow .3s; background: none; color: inherit; font-family: inherit; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 0 0 0 rgba(0,160,133,.5); animation: glow 3.2s ease-in-out infinite; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); background: var(--teal-2); }
.btn-primary .i { transition: transform .3s var(--ease); }
.btn-primary:hover .i { transform: translateX(4px); }
.shine { position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: transform .9s var(--ease); }
.btn-primary:hover .shine { transform: translateX(220%) skewX(-18deg); }
@keyframes glow { 50% { box-shadow: 0 0 36px 2px rgba(0,160,133,.35); } }
.btn-term { font-family: var(--mono); font-weight: 500; color: var(--teal-3); border-color: rgba(45,212,191,.3); }
.btn-term:hover { background: rgba(45,212,191,.06); border-color: rgba(45,212,191,.7); }
.btn-term .gt { opacity: .5; margin-right: -4px; }
.btn-ghost { border-color: var(--border-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.caret { display: inline-block; width: 8px; height: 16px; background: currentColor; margin-left: 4px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - 66px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: 40px max(16px, calc((100vw - 1200px) / 2)) 96px;
}
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--muted); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255,255,255,.03); transition: border-color .25s, color .25s; }
.pill:hover { color: var(--fg); border-color: #444; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-live { background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { margin-top: 26px; font-size: clamp(52px, 8.4vw, 112px); font-weight: 900; line-height: .92; letter-spacing: -.055em; }
.lede { margin-top: 26px; max-width: 34ch; font-size: clamp(17px, 1.7vw, 20px); color: rgba(245,245,245,.6); font-weight: 300; }
.lede strong { color: var(--fg); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats { display: flex; gap: 36px; margin: 44px 0 0; }
.hero-stats div { border-left: 1px solid var(--border-2); padding-left: 14px; }
.hero-stats dt { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats dd { margin: 0; font-size: 13px; color: var(--dim); }

/* the exploding isotype: three brand pieces as three modules (scroll --p, mouse --mx/--my) */
.stage { --p: 0; --mx: 0; --my: 0; position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; perspective: 900px; }
.stage > * { position: absolute; will-change: transform; }
.ring { inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 6px), 0) scale(calc(1 + var(--p) * .25)); }
.ring-1 { width: 96%; height: 96%; }
.ring-2 { width: 70%; height: 70%; border-style: dashed; border-color: rgba(0,160,133,.18); animation: spin 60s linear infinite; }
.ring-3 { width: 44%; height: 44%; background: radial-gradient(circle, rgba(0,131,109,.22), transparent 70%); border: 0; }
@keyframes spin { to { rotate: 360deg; } }
.piece { left: 50%; top: 50%; width: 34%; height: auto; aspect-ratio: 66 / 134; margin: -34% 0 0 -17%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); transition: filter .4s; }
.piece-mint  { transform: translate3d(calc(var(--mx) * 22px + var(--p) * 120px), calc(var(--my) * 22px + var(--p) * -150px), 0) rotate(calc(var(--p) * 28deg)); }
.piece-sun   { transform: translate3d(calc(var(--mx) * 34px + var(--p) * -170px), calc(var(--my) * 34px + var(--p) * 10px), 0) rotate(calc(var(--p) * -22deg)); }
.piece-coral { transform: translate3d(calc(var(--mx) * 14px + var(--p) * 110px), calc(var(--my) * 14px + var(--p) * 160px), 0) rotate(calc(var(--p) * 16deg)); }
.stage:hover .piece { filter: drop-shadow(0 30px 60px rgba(0,160,133,.25)); }
.chip { font: 500 13px/1 var(--mono); color: #d4d4d4; padding: 10px 14px; border-radius: 12px; background: rgba(20,21,23,.72); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: bob 6s ease-in-out infinite; }
.chip-a { left: 0; top: 18%;  transform: translate3d(calc(var(--mx) * -26px - var(--p) * 60px), calc(var(--my) * -26px - var(--p) * 40px), 0); }
.chip-b { right: 0; top: 30%; transform: translate3d(calc(var(--mx) * -40px + var(--p) * 70px), calc(var(--my) * -40px - var(--p) * 30px), 0); animation-delay: -2s; }
.chip-c { left: 6%; bottom: 20%; transform: translate3d(calc(var(--mx) * -18px - var(--p) * 40px), calc(var(--my) * -18px + var(--p) * 70px), 0); animation-delay: -4s; color: var(--muted); }
.chip-d { right: 6%; bottom: 8%; transform: translate3d(calc(var(--mx) * -30px + var(--p) * 50px), calc(var(--my) * -30px + var(--p) * 90px), 0); animation-delay: -1s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.tile { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--card-2); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.45); animation: bob 7s ease-in-out infinite; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-a { right: 14%; top: 4%; transform: translate3d(calc(var(--mx) * 46px + var(--p) * 90px), calc(var(--my) * 46px - var(--p) * 110px), 0) rotate(8deg); }
.tile-b { left: 12%; bottom: 2%; color: var(--teal-3); border-style: dashed; background: rgba(0,131,109,.08); animation-delay: -3s; transform: translate3d(calc(var(--mx) * 50px - var(--p) * 90px), calc(var(--my) * 50px + var(--p) * 60px), 0) rotate(-10deg); }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--teal-3); translate: -50% 0; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.015); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 44px; padding: 18px 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 13px/1 var(--mono); color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 120px max(16px, calc((100vw - 1200px) / 2)); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-3); margin-bottom: 18px; }
.section h2 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.watermark { position: absolute; right: -6%; top: 40px; width: min(42vw, 520px); opacity: .05; pointer-events: none; filter: blur(1px); }
.watermark img { width: 100%; height: auto; }

/* spotlight (cursor-following glow, as on lawallet.io) */
.spotlight { --x: 50%; --y: 50%; position: relative; isolation: isolate; }
.spotlight::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--x) var(--y), rgba(0,160,133,.13), transparent 60%); opacity: 0; transition: opacity .4s; z-index: -1; pointer-events: none; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(380px circle at var(--x) var(--y), rgba(45,212,191,.55), transparent 50%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

/* ---------- plugin cards ---------- */
.grid-plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.plugin { position: relative; border-radius: var(--radius); }
.flip { display: grid; grid-template-columns: minmax(0, 1fr); perspective: 1400px; height: 100%; }
.face { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card); border: 1px solid rgba(255,255,255,.08); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s var(--ease), box-shadow .4s, border-color .4s; transform-style: preserve-3d; }
.back { transform: rotateY(-180deg); align-items: center; text-align: center; justify-content: center; }
.plugin.flipped .front { transform: rotateY(180deg); }
.plugin.flipped .back { transform: rotateY(0); }
.plugin:hover .face { border-color: rgba(255,255,255,.14); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.p-head { display: flex; align-items: center; gap: 16px; }
.p-icon { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--card-2); border: 1px solid rgba(255,255,255,.08); flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.p-icon img { width: 100%; height: 100%; object-fit: cover; }
.p-title { min-width: 0; flex: 1; }
.p-title h3 { font-size: 22px; font-weight: 700; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.ver { color: var(--teal-3); }
.qr-mini { width: 64px; height: 64px; padding: 5px; border-radius: 12px; background: #fff; border: 0; cursor: pointer; flex: none; transition: transform .35s var(--spring), box-shadow .3s; position: relative; }
.qr-mini:hover { transform: scale(1.08) rotate(-3deg); box-shadow: 0 10px 30px rgba(0,160,133,.35); }
.qr-mini svg { width: 100%; height: 100%; }
.qr-mini::after { content: "Scan"; position: absolute; left: 50%; bottom: -20px; translate: -50% 0; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.p-desc { color: var(--muted); font-size: 15px; }
.p-label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.methods li { font: 500 12px/1 var(--mono); padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(85,182,140,.35); color: #8fe0bd; background: rgba(85,182,140,.08); }
.methods li.off { border-color: rgba(255,255,255,.07); color: #555; background: none; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.2); }
.perms { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.perms li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #d4d4d4; }
.perms .i { width: 16px; height: 16px; margin-top: 3px; color: var(--sun); }
.perms b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--fg); }
.p-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.p-foot .btn { flex: 1; height: 44px; font-size: 14px; padding: 0 14px; }
.p-foot .btn-primary { animation: none; }
.qr-big { width: min(100%, 240px); aspect-ratio: 1; padding: 14px; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -10px rgba(0,160,133,.35); }
.qr-big svg { width: 100%; height: 100%; }
.back h3 { font-size: 18px; }
.back p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.linkbox { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px 6px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; font-size: 12px; color: var(--muted); text-align: left; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--card-2); color: var(--fg); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--spring); flex: none; }
.icon-btn:hover { background: #24272b; }
.icon-btn.done { color: var(--green); transform: scale(1.1); }
.back-actions { display: flex; gap: 8px; width: 100%; }
.back-actions .btn { flex: 1; height: 40px; font-size: 13px; padding: 0 12px; }
.plugin-add { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px; min-height: 280px; border: 1.5px dashed rgba(45,212,191,.25); background: rgba(0,131,109,.035); transition: border-color .3s, background .3s, transform .4s var(--spring); }
.plugin-add:hover { border-color: rgba(45,212,191,.6); background: rgba(0,131,109,.08); transform: translateY(-4px); }
.plugin-add strong { font-size: 22px; letter-spacing: -.02em; }
.plugin-add span { color: var(--muted); font-size: 15px; }
.add-plus { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(45,212,191,.1); color: var(--teal-3) !important; margin-bottom: 8px; transition: transform .5s var(--spring); }
.plugin-add:hover .add-plus { transform: rotate(90deg) scale(1.08); }
.plugin-add .link { display: inline-flex; gap: 6px; align-items: center; color: var(--teal-3) !important; font-weight: 600; margin-top: 6px; }

/* ---------- how it works: sticky phone + steps ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.phone-col { position: relative; }
.phone { position: sticky; top: 110px; margin: 0 auto; width: min(100%, 330px); aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2a2d31, #121315); zoom: var(--fit, 1); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -30px rgba(0,0,0,.8), 0 0 100px -20px rgba(0,131,109,.3); }
.phone-notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 5; }
.screen { position: absolute; inset: 12px; border-radius: 36px; overflow: hidden; padding: 64px 18px 20px; background: radial-gradient(120% 70% at 0% 0%, rgba(34,92,60,.6), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(80,30,30,.35), transparent 60%), #0b0c0d; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.screen.on { opacity: 1; transform: none; }
.scr-title { font-size: 20px; font-weight: 700; }
.scr-title.big { font-size: 28px; letter-spacing: -.03em; }
.scr-back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 22px; line-height: 1; }
.scr-muted { color: var(--muted); font-size: 13px; }
.scr-muted.sm { font-size: 11.5px; word-break: break-all; }
.scr-muted.center { text-align: center; margin-top: auto; }
.scr-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.scr-row { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.scr-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.scr-row strong { font-size: 15px; }
.scr-ver { font-size: 12px; color: var(--muted); }
.scr-btn { text-align: center; padding: 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.09); }
.scr-btn.sm { padding: 8px 12px; font-size: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.scr-btn.ghost { margin-top: auto; border: 1px solid rgba(255,255,255,.12); background: none; }
.scr-btn.go { background: linear-gradient(180deg, #3fb76b, #1b7a3c); color: #fff; }
.viewfinder { position: relative; aspect-ratio: 1; border-radius: 22px; background: #050505; display: grid; place-items: center; overflow: hidden; }
.vf-qr { width: 66%; aspect-ratio: 1; background: #fff; padding: 8px; border-radius: 10px; transform: rotate(-4deg) scale(.96); animation: aim 4s ease-in-out infinite; }
.vf-qr svg { width: 100%; height: 100%; }
@keyframes aim { 50% { transform: rotate(2deg) scale(1); } }
.vf-c { position: absolute; width: 26px; height: 26px; border: 3px solid var(--teal-3); }
.vf-c.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.vf-c.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.vf-c.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.vf-c.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.vf-line { position: absolute; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-3), transparent); box-shadow: 0 0 16px var(--teal-3); animation: scanline 2.4s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 14%; } 50% { top: 86%; } }
.scr-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet { position: relative; margin-top: auto; margin-bottom: auto; padding: 18px; border-radius: 24px; background: #16181b; border: 1px solid rgba(255,255,255,.08); display: grid; gap: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.sheet-icon { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; margin: 0 auto; }
.sheet-icon img { width: 100%; height: 100%; }
.sheet-title { text-align: center; font-size: 17px; font-weight: 600; }
.sheet-list { margin: 0; padding-left: 16px; font-size: 12.5px; display: grid; gap: 4px; color: #e5e5e5; }
.sheet-warn { font-size: 11.5px; color: var(--orange); }
.deck { display: grid; gap: 12px; margin-top: 8px; }
.wcard { position: relative; height: 120px; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.wcard > img { position: absolute; top: 14px; left: 16px; width: 28px; height: auto; border-radius: 8px; }
.wcard span { font-size: 13px; color: rgba(255,255,255,.75); }
.wcard b { font-size: 18px; }
.w-lw { background: linear-gradient(135deg, #0f2e26, #0b1513); }
.w-plugin { background: linear-gradient(135deg, #2a2510, #121007); animation: slidein 1s var(--spring) both; }
.w-plugin > img { width: 34px; height: 34px; }
.screen.on .w-plugin { animation-delay: .25s; }
@keyframes slidein { from { transform: translateY(40px) scale(.9); opacity: 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 28px; border-left: 2px solid rgba(255,255,255,.06); position: relative; opacity: .32; transition: opacity .5s var(--ease); }
.step::before { content: ""; position: absolute; left: -2px; top: 50%; width: 2px; height: 0; background: linear-gradient(var(--teal-3), var(--teal)); translate: 0 -50%; transition: height .7s var(--ease); }
.step.on { opacity: 1; }
.step.on::before { height: 70%; }
.step-n { font: 600 13px/1 var(--mono); color: var(--teal-3); margin-bottom: 14px; }
.step h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; }
.step p { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 46ch; }

/* ---------- feature grid ---------- */
.grid-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 28px; border-radius: var(--radius); background: rgba(20,21,23,.7); border: 1px solid rgba(255,255,255,.07); transition: transform .5s var(--spring); }
.feat:hover { transform: translateY(-4px); }
.feat .i { color: var(--teal-3); margin-bottom: 22px; }
.feat:nth-child(2) .i { color: var(--sky); }
.feat:nth-child(3) .i { color: var(--sun); }
.feat:nth-child(4) .i { color: var(--mint); }
.feat:nth-child(5) .i { color: var(--coral); }
.feat:nth-child(6) .i { color: var(--purple); }
.feat h3 { font-size: 19px; font-weight: 700; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- build ---------- */
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.build-copy > p { margin-top: 20px; color: var(--muted); font-size: 17px; }
.term { margin-top: 28px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #0c0d0e; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.term-bar span:nth-child(1) { background: var(--coral); } .term-bar span:nth-child(2) { background: var(--sun); } .term-bar span:nth-child(3) { background: var(--mint); }
.term-bar em { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--dim); font-style: normal; }
.term pre, .code-body { margin: 0; padding: 18px; overflow-x: auto; font: 13.5px/1.75 var(--mono); }
.term code { background: none; padding: 0; color: #d4d4d4; font-size: 1em; }
.term .c { color: #5c6370; } .term .p { color: var(--teal-3); } .term .ok { color: var(--green); }
.term .caret { width: 7px; height: 14px; color: var(--teal-3); }
.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.doc-links a { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); display: grid; gap: 2px; transition: border-color .25s, background .25s, transform .3s var(--spring); }
.doc-links a:hover { border-color: rgba(45,212,191,.45); background: rgba(0,131,109,.06); transform: translateY(-2px); }
.doc-links strong { font-size: 14px; }
.doc-links span { font-size: 13px; color: var(--dim); }
.code { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: #0c0d0e; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 80px -30px rgba(0,131,109,.35); }
.code-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.code-tabs button { font: 500 13px/1 var(--mono); color: var(--dim); background: none; border: 0; padding: 10px 14px; border-radius: 10px 10px 0 0; cursor: pointer; border-bottom: 2px solid transparent; }
.code-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--teal-3); background: rgba(255,255,255,.03); }
.code-body { color: #d4d4d4; max-height: 560px; }
.tk-k { color: #c678dd; } .tk-s { color: #98c379; } .tk-n { color: #d19a66; } .tk-c { color: #5c6370; font-style: italic; } .tk-p { color: #61afef; } .tk-f { color: #e5c07b; }

/* ---------- build with an agent ---------- */
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.agent-step { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); align-items: center; gap: 28px; padding: 24px 24px 24px 28px; border-radius: var(--radius); background: rgba(20,21,23,.7); border: 1px solid rgba(255,255,255,.07); }
.agent-text { display: grid; gap: 8px; }
.agent-step h3 { font-size: 21px; font-weight: 750; }
.agent-step > p { color: var(--muted); font-size: 15px; }
.agent-step .step-n { margin: 0; }
.agent-step .term { margin: 0; }
.agent-step .term pre { font-size: 13px; white-space: pre-wrap; }
.term-bar { position: relative; }
.term-copy { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; }
.term-copy .i { width: 15px; height: 15px; }
.prompt { position: relative; padding: 16px 50px 16px 16px; border-radius: 16px 16px 16px 4px; background: linear-gradient(135deg, rgba(0,131,109,.16), rgba(14,165,233,.08)); border: 1px solid rgba(45,212,191,.28); }
.prompt p { font-size: 14.5px; line-height: 1.55; color: #e5e5e5; }
.prompt b { font-family: var(--mono); font-weight: 600; color: var(--teal-3); }
.prompt mark { background: rgba(253,200,0,.14); color: var(--sun); padding: 0 .25em; border-radius: 4px; }
.prompt .term-copy { top: 12px; right: 12px; translate: none; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.flowline span { font: 500 13px/1 var(--mono); color: var(--muted); padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); animation: flowglow 6s ease-in-out infinite; }
.flowline span:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--dim); }
.flowline span:nth-child(2) { animation-delay: 1s; } .flowline span:nth-child(3) { animation-delay: 2s; } .flowline span:nth-child(4) { animation-delay: 3s; } .flowline span:nth-child(5) { animation-delay: 4s; } .flowline span:nth-child(6) { animation-delay: 5s; }
@keyframes flowglow { 0%, 12% { color: var(--teal-3); border-color: rgba(45,212,191,.5); background: rgba(0,131,109,.12); } 22%, 100% { color: var(--muted); border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); } }
.agent-note { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 80ch; }
.agent-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-3); font-weight: 600; white-space: nowrap; }
.agent-note a .i { width: 15px; height: 15px; }
.doc-links .doc-wide { grid-column: 1 / -1; border-color: rgba(45,212,191,.25); background: rgba(0,131,109,.05); }

/* ---------- platforms ---------- */
.grid-plat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plat { padding: 32px; border-radius: var(--radius); background: rgba(20,21,23,.7); border: 1px solid rgba(255,255,255,.07); }
.plat-top { display: flex; justify-content: space-between; align-items: center; }
.plat h3 { margin-top: 26px; font-size: 28px; font-weight: 800; }
.plat p { margin-top: 10px; color: var(--muted); }
.plat ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plat li { font-size: 14px; color: #d4d4d4; padding-left: 22px; position: relative; }
.plat li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.plat:nth-child(2) li::before { background: #444; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); padding: 7px 11px; border-radius: 999px; }
.badge-live { color: #86efac; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); }
.badge-plan { color: var(--sun); background: rgba(253,200,0,.08); border: 1px solid rgba(253,200,0,.3); }

/* ---------- footer, toast ---------- */
.foot { border-top: 1px solid rgba(255,255,255,.06); padding: 40px max(16px, calc((100vw - 1200px) / 2)) 56px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot p { color: var(--dim); font-size: 14px; flex: 1; min-width: 240px; }
.foot p a { color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--fg); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; translate: -50% 0; padding: 12px 18px; border-radius: 999px; background: #1d2023; border: 1px solid rgba(255,255,255,.1); font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; padding-bottom: 72px; }
  .stage { max-width: 420px; margin: 0 auto; }
  .scroll-hint { display: none; }
  .grid-feat { grid-template-columns: 1fr 1fr; }
  .build { grid-template-columns: 1fr; }
  .agent-step { grid-template-columns: 1fr; gap: 16px; }
  .code { position: relative; top: 0; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .phone { position: relative; top: 0; zoom: .78; }
  .step { min-height: auto; padding: 22px 0 22px 24px; opacity: 1; }
  .step.on::before { height: 70%; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-stats { gap: 18px; }
  .hero-stats dt { font-size: 22px; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .grid-feat, .grid-plat, .doc-links { grid-template-columns: 1fr; }
  .p-foot { flex-direction: column; }
  .p-foot .btn { flex: none; }
  .phone { zoom: .68; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
