/* Symmetry.club/es — clon en HTML/CSS/JS puro */
:root {
  --canvas: #0a0a0a;
  --surface: #121212;
  --raised: #1c1c1c;
  --line: #2a2a2a;
  --ink: #f2f0ec;
  --muted: #c9c7c2;
  --subtle: #8c8c8c;
  --brand: #3781fa;
  --violet: #5b5bf0;
  --orange: #e2622f;
  --display: "DM Sans", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--canvas); color-scheme: dark; }
body { background: var(--canvas); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 20px 0; pointer-events: none; }
.nav-shell {
  pointer-events: auto; max-width: 1150px; margin: 0 auto; height: 58px; padding: 0 12px 0 22px;
  display: flex; align-items: center; justify-content: space-between; border-radius: 999px;
  background: rgba(10, 10, 10, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.nav-shell .logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav-links > a, .nav-links .dd > button { padding: 8px 16px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links > a:hover, .nav-links .dd > button:hover { color: var(--ink); }
.nav-links > a.active { background: var(--ink); color: var(--canvas); }
.dd { position: relative; }
.dd svg { width: 14px; height: 14px; transition: transform .2s; }
.dd-menu {
  position: absolute; top: calc(100% + 12px); left: -20px; min-width: 260px; padding: 8px; border-radius: 20px;
  background: rgba(22, 22, 22, .96); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.dd-menu a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--muted); }
.dd-menu a:hover { background: var(--raised); color: var(--ink); }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-light { background: var(--ink); color: var(--canvas); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--raised); font-size: 10px; font-weight: 700; }
.lang a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--subtle); }
.lang a.on { background: #333; color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); }
.burger span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; }

/* ---------- Scroll-driven sections ---------- */
.scrolly { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }

/* ---------- Phone mockup ---------- */
.phone {
  position: absolute; width: 240px; height: 515px; border-radius: 42px; padding: 7px;
  background: linear-gradient(145deg, #4a4a4a, #161616 40%, #2c2c2c 70%, #0d0d0d);
  box-shadow: 0 0 0 1.5px #5a5a5a inset, 0 40px 80px rgba(0, 0, 0, .65), 0 0 0 1px #000;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #0c0c0c; font-size: 10px; }
.phone .island { position: absolute; top: 9px; left: 50%; width: 72px; height: 20px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px 0 22px; font-size: 9px; font-weight: 700; height: 30px; }
.statusbar i { font-style: normal; letter-spacing: 1px; font-size: 8px; opacity: .8; }
.screen-layer { position: absolute; inset: 0; transition: opacity .45s ease; }

/* Guided workout screen */
.g-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 0 14px; }
.g-time { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.g-time small { font-size: 9px; color: var(--subtle); }
.g-end { display: flex; gap: 8px; align-items: center; }
.pill-o { border: 1px solid #3a3a3a; border-radius: 8px; padding: 4px 8px; font-size: 9px; }
.g-strip { display: flex; gap: 6px; padding: 10px 10px 0; }
.g-strip img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #2c2c2c; object-fit: cover; background: #111; }
.g-strip img:first-child { border: 2px solid var(--ink); }
.g-hero { position: relative; height: 158px; display: grid; place-items: center; }
.g-hero > img { height: 150px; width: auto; mix-blend-mode: lighten; }
.s-badge { position: absolute; right: 12px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: #10102a; border: 1.5px solid #6b6bff; display: grid; place-items: center; box-shadow: 0 0 14px rgba(91, 91, 240, .55); }
.s-badge img { width: 16px; }
.g-info { padding: 8px 10px 0; }
.g-info b { display: block; font-size: 11.5px; }
.g-info span { color: var(--subtle); font-size: 9.5px; }
.chips { display: flex; gap: 6px; padding: 9px 10px 0; white-space: nowrap; }
.chip { background: #1e1e1e; border-radius: 999px; padding: 5px 9px; font-size: 8.5px; font-weight: 700; }
.sets { margin-top: 10px; }
.sets .row { display: grid; grid-template-columns: 26px 44px 44px 1fr 26px; align-items: center; gap: 4px; padding: 0 8px; height: 32px; font-size: 10px; transition: background .4s; }
.sets .head { height: 26px; font-size: 7.5px; font-weight: 700; color: var(--subtle); letter-spacing: .3px; }
.sets .row > :nth-child(2) { color: #6b6b75; }
.sets .row .n { text-align: center; font-weight: 700; }
.sets .row .in { border: 1px solid #333; border-radius: 6px; padding: 3px 0; text-align: center; transition: .4s; }
.sets .row .ck { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #222; color: #777; font-size: 9px; transition: .4s; }
.sets .row.done { background: #25264f; }
.sets .row.done .in { border-color: transparent; }
.sets .row.done .ck { background: var(--violet); color: #fff; }
.sets .head .ck { background: transparent; border: 1px solid var(--violet); color: #8f8fff; }

/* Streak screen */
.streak { background: radial-gradient(120% 60% at 50% 0%, #1f1f1f, #0c0c0c 60%); text-align: center; }
.streak h4 { font-size: 17px; font-weight: 700; line-height: 1.25; margin-top: 40px; }
.streak .big { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 30px 0 28px; }
.streak .big img { width: 70px; filter: drop-shadow(0 0 24px rgba(226, 98, 47, .6)); }
.streak .big span { font-size: 50px; font-weight: 300; color: #f0a37a; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 12px; gap: 2px; font-size: 7.5px; color: var(--muted); font-weight: 700; }
.days .d { width: 22px; height: 22px; margin: 6px auto 0; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; color: #555; font-size: 10px; }
.days .d.on { background: var(--orange); border-color: #f08a5d; color: #fff; }
.streak p { font-size: 10px; margin-top: 30px; line-height: 1.6; }
.streak .how { margin-top: 44px; font-size: 9px; color: var(--muted); }
.streak .cta { margin: 12px 12px 0; background: var(--ink); color: #000; border-radius: 999px; padding: 10px; font-weight: 700; }

/* Workout preview screen */
.pv-cover { position: relative; height: 222px; }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,12,12,0) 45%, #0c0c0c); }
.pv-cover h5 { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 15px; font-style: italic; }
.pv-meta { display: flex; gap: 10px; padding: 4px 12px; color: var(--muted); font-size: 9px; font-style: italic; }
.pv-list { padding: 10px 12px; }
.pv-list > b { font-size: 10px; font-style: italic; }
.pv-item { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.pv-item img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.pv-item small { display: block; color: var(--subtle); font-size: 7.5px; }
.pv-item span { font-size: 9.5px; font-weight: 700; }

/* ---------- 1. Training / hero ---------- */
#training { height: 400vh; background: var(--canvas); }
#training .stage { background: radial-gradient(60% 55% at 50% 60%, #1c1c1c 0%, var(--canvas) 70%); }
.hero-copy { position: absolute; top: 100px; left: 0; right: 0; text-align: center; z-index: 4; will-change: transform, opacity; }
.hero-copy h1 { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6.7vw, 96px); line-height: 1; letter-spacing: -.025em; }
.hero-copy p { margin: 28px auto 0; max-width: 560px; font-size: 19px; line-height: 30px; color: var(--muted); }
.stores { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.stores img { height: 56px; width: auto; }
.corner-badge { position: absolute; z-index: 3; will-change: transform; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.corner-badge.l { left: 6%; top: 160px; width: 128px; animation: bob 6s ease-in-out infinite; }
.corner-badge.r { right: 8%; top: 140px; width: 160px; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -10px; } }
.stat { position: absolute; z-index: 3; text-align: center; will-change: transform, opacity; }
.stat strong { display: block; font-family: var(--display); font-weight: 900; font-size: 48px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--subtle); font-size: 17px; line-height: 1.35; display: block; }
.stat .ico { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.stat .ico img { height: 26px; }
.stat .avatars { display: flex; justify-content: center; }
.stat .avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #111; margin-left: -8px; }
.stat .stars { color: #f6c343; font-size: 22px; letter-spacing: 3px; }
.stat.s1 { left: 12.5%; top: 515px; }
.stat.s2 { left: 15.5%; top: 700px; }
.stat.s3 { right: 15%; top: 490px; }
.stat.s4 { right: 12.5%; top: 712px; }
.phones { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; }
.phones .phone { left: -120px; top: -257px; will-change: transform; }
.bignum { position: absolute; top: 50%; font-family: var(--display); font-weight: 900; line-height: 1; letter-spacing: -.04em; z-index: 1; white-space: nowrap; will-change: transform, opacity; transition: opacity .5s, transform .5s; }
.bignum b { font-size: clamp(90px, 12vw, 172px); }
.bignum small { font-size: clamp(36px, 4.4vw, 62px); font-weight: 800; margin-left: 6px; }
.bignum.kg { right: calc(50% + 150px); transform: translateY(-75%); }
.bignum.kg small { color: #9a9a9a; }
.bignum.reps { left: calc(50% + 150px); transform: translateY(-75%); }
.bignum.reps small { color: #9a9a9a; }
.bignum.days-n { right: calc(50% + 150px); transform: translateY(-75%); color: var(--orange); }
.flame-big { position: absolute; top: 50%; left: calc(50% + 150px); width: 140px; transform: translateY(-75%); z-index: 1; transition: opacity .5s, transform .5s; filter: drop-shadow(0 0 40px rgba(226,98,47,.35)); }
.step-copy { position: absolute; left: 5%; bottom: 8vh; max-width: 460px; z-index: 3; transition: opacity .5s, transform .5s; }
.eyebrow { color: var(--subtle); font-size: 17px; margin-bottom: 14px; display: block; }
.step-copy h2, .side-copy h2 { font-family: var(--body); font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.025em; }
.step-copy p, .side-copy p { margin-top: 14px; color: var(--muted); font-size: 19px; line-height: 30px; }
.hide { opacity: 0 !important; pointer-events: none; }

/* ---------- 2. Ranks ---------- */
#ranks { height: 380vh; }
.side-copy { position: absolute; left: 7%; top: 220px; width: min(440px, 36vw); z-index: 4; }
.side-copy .item { position: absolute; inset: 0 auto auto 0; width: 100%; transition: opacity .5s, transform .5s; }
.side-copy .item.off { opacity: 0; transform: translateY(16px); pointer-events: none; }
.btn-pill { display: inline-block; margin-top: 30px; background: var(--ink); color: var(--canvas); padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.bodies { position: absolute; left: 37.5%; top: 215px; width: 640px; height: 580px; }
.bodies svg { position: absolute; top: 0; height: 580px; width: 296px; overflow: visible; transform: scaleX(var(--bulk, 1)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bodies svg.front { left: 0; }
.bodies svg.back { left: 336px; }
.bodies .bi { fill: var(--ink); }
.bodies .bk { fill: #000; }
.bodies .bs { fill: #1c1c1c; }
.bodies .mu { fill: url(#metal-live); }
.rank-name { position: absolute; left: -30px; right: -40px; bottom: -20px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 170px; letter-spacing: -.04em; line-height: 1; color: var(--rank, #555); opacity: 0; transition: opacity .4s, color .4s; z-index: -1; }
.rank-glow { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rank, #333) 35%, transparent), transparent 62%); transition: background .4s; z-index: -2; opacity: .9; }
.callouts { position: absolute; inset: 0; transition: opacity .4s; }
.callout { position: absolute; display: flex; align-items: center; }
.callout .dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #555; background: rgba(0,0,0,.4); transform: translate(-50%, -50%); }
.callout .ln { position: absolute; height: 1px; background: linear-gradient(90deg, #444, #2a2a2a); }
.callout .card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 6px; border-radius: 999px; background: rgba(18,18,18,.9); border: 1px solid #232323; transform: translateY(-50%); white-space: nowrap; }
.callout .card img { width: 38px; opacity: .7; }
.callout .card small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.callout .card b { font-size: 17px; color: #6f6f6f; font-weight: 800; }
.rank-row { position: absolute; left: calc(37.5% + 90px); top: 105px; display: flex; gap: 12px; transition: opacity .4s; }
.rank-row img { width: 44px; height: 44px; opacity: .45; transition: .3s; filter: grayscale(.4); }
.rank-row img.on { opacity: 1; transform: scale(1.12); filter: none; }

/* ---------- 3. Social ---------- */
#social { height: 420vh; }
#social .side-copy { left: 11.7%; top: 310px; }
.btn-grad { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; border-radius: 999px; background: linear-gradient(180deg, #5c56ff, #3d33d9); font-weight: 800; font-size: 17px; box-shadow: 0 10px 30px rgba(77, 70, 240, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-grad .sep { width: 1px; height: 18px; background: rgba(255,255,255,.35); }
.btn-round { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(180deg, #5c56ff, #3d33d9); box-shadow: 0 10px 30px rgba(77, 70, 240, .45); vertical-align: middle; margin-left: 8px; }
.dl-row { margin-top: 30px; display: flex; align-items: center; }
.social-phone { left: calc(50% + 155px); top: 210px; transform: rotate(-3deg); }
.social-glow { left: calc(50% + 40px); top: 160px; width: 480px; height: 620px; background: radial-gradient(closest-side, rgba(226, 98, 47, .14), transparent); }
.feed-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 0; }
.feed-top img { height: 15px; }
.feed-top .icons { display: flex; gap: 12px; opacity: .85; }
.feed-tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 9px; color: var(--muted); margin-top: 10px; border-bottom: 1px solid #222; }
.feed-tabs span { padding-bottom: 6px; }
.feed-tabs span.on { color: #fff; border-bottom: 2px solid #fff; }
.feed-viewport { position: absolute; top: 86px; left: 0; right: 0; bottom: 46px; overflow: hidden; }
.feed { will-change: transform; }
.post-h { display: flex; align-items: center; gap: 7px; padding: 8px 8px; }
.post-h .av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.post-h b { font-size: 9.5px; display: flex; align-items: center; gap: 3px; }
.post-h b img { width: 11px; }
.post-h small { display: block; color: var(--subtle); font-size: 7px; }
.post-h .more { margin-left: auto; color: var(--subtle); }
.post-img { position: relative; margin: 0 2px; }
.post-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.post-stats { position: absolute; left: 4px; right: 4px; bottom: 6px; display: flex; gap: 0; background: rgba(10,10,10,.85); border-radius: 8px; font-family: var(--mono); font-size: 8.5px; font-weight: 500; padding: 5px 4px; }
.post-stats span { padding: 0 5px; border-right: 1px solid #333; }
.post-stats span:last-child { border: 0; color: #f08a5d; margin-left: auto; }
.post-dots { display: flex; justify-content: center; gap: 3px; margin: 6px 0; }
.post-dots i { width: 3px; height: 3px; border-radius: 50%; background: #555; }
.post-dots i:first-child { background: #fff; }
.post-act { display: flex; align-items: center; gap: 12px; padding: 0 10px 10px; font-size: 9px; font-weight: 700; }
.post-act .share { margin-left: auto; opacity: .8; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: grid; grid-template-columns: repeat(5, 1fr); background: #0c0c0c; border-top: 1px solid #1d1d1d; font-size: 6.5px; color: var(--subtle); text-align: center; padding-top: 6px; z-index: 3; }
.tabbar span.on { color: #fff; }
.tabbar svg { width: 13px; height: 13px; display: block; margin: 0 auto 2px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(24,24,24,.92); border: 1px solid #2c2c2c; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 5; transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.float-card .notif { position: absolute; top: -6px; right: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); }
.float-card b { font-size: 16px; display: block; }
.float-card small { color: var(--muted); font-size: 13px; }
.float-card .avs { display: flex; }
.float-card .avs img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #181818; margin-left: -10px; }
.float-card .avs img:first-child { margin-left: 0; }
.fc-friends { left: 6%; top: 120px; transform: rotate(2deg); }
.fc-mauro { right: 3%; top: 92px; transform: rotate(-2deg); }
.fc-respect { left: calc(50% + 380px); top: 445px; transform: rotate(-3deg); }
.fc-count { left: calc(50% - 12px); top: 567px; flex-direction: row; }
.fc-count b { font-size: 30px; font-family: var(--display); font-weight: 900; }
.flex-ico { font-size: 28px; filter: hue-rotate(200deg) saturate(1.6); }
.arm { position: absolute; font-size: 30px; z-index: 6; filter: hue-rotate(200deg) saturate(1.6) drop-shadow(0 0 10px rgba(91,91,240,.6)); transition: opacity .4s; }
.off-card { opacity: 0 !important; transform: translateY(24px) scale(.96) !important; }

/* ---------- 4. Testimonials ---------- */
.testimonials { max-width: 1024px; margin: 0 auto; padding: 64px 32px; text-align: center; }
.testimonials .eyebrow { margin-bottom: 4px; font-weight: 500; }
.testimonials h2 { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 36px; letter-spacing: -.025em; }
.rating { margin-top: 34px; color: var(--muted); }
.rating .stars { color: #f6c343; font-size: 20px; letter-spacing: 4px; margin: 4px 0; }
.rating .platforms { display: flex; justify-content: center; gap: 20px; font-weight: 700; font-size: 15px; color: var(--ink); }
.rating .platforms span { display: inline-flex; align-items: center; gap: 6px; }
.rating .platforms img { width: 20px; height: 20px; border-radius: 5px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; text-align: left; }
.t-card { background: var(--surface); border-radius: 18px; padding: 24px 22px; }
.t-head { display: flex; gap: 12px; align-items: center; }
.t-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-head b { display: block; font-size: 16px; }
.t-head small { color: var(--subtle); font-size: 13px; }
.t-card h3 { font-size: 16px; font-weight: 800; margin-top: 22px; }
.t-card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 24.5px; }
.t-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.t-cta a:first-child { background: var(--ink); color: var(--canvas); padding: 11px 20px; border-radius: 999px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.t-cta a:last-child { font-weight: 700; color: var(--muted); }

/* ---------- 5. Intelligence ---------- */
#intelligence { height: 520vh; }
#intelligence .stage { background: radial-gradient(80% 70% at 50% 100%, #15172a, var(--canvas) 70%); }
.intel-head { position: absolute; top: 95px; left: 0; right: 0; text-align: center; }
.intel-head h2 { font-family: var(--body); font-weight: 700; font-size: 56px; letter-spacing: -.035em; text-shadow: 0 0 22px rgba(170, 170, 255, .55), 0 0 2px #fff; }
.intel-head p { margin-top: 18px; color: var(--muted); font-size: 21px; transition: opacity .3s; }
.chat { position: absolute; left: 50%; top: 225px; transform: translateX(-50%); width: min(1024px, 92vw); height: min(648px, calc(100vh - 250px)); border-radius: 46px; background: linear-gradient(180deg, #23242e, #18181b 40%); border: 1px solid #2c2c33; box-shadow: 0 40px 100px rgba(0,0,0,.6); overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 26px 38px; font-size: 18px; }
.chat-h .lg { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #101016; border: 1.5px solid #6b6bff; box-shadow: 0 0 18px rgba(107,107,255,.35); }
.chat-h .lg img { width: 18px; }
.chat-h .ctl { margin-left: auto; display: flex; gap: 30px; opacity: .85; }
.chat-body { position: absolute; top: 100px; left: 0; right: 0; bottom: 110px; }
.chat-pane { position: absolute; inset: 0; transition: opacity .45s, transform .45s; }
.welcome { text-align: center; padding-top: 34px; }
.welcome > p { font-size: 22px; color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 860px; margin: 52px auto 0; text-align: left; }
.feat { display: flex; gap: 14px; }
.feat img { width: 38px; height: 38px; flex: none; }
.feat b { font-size: 18px; font-weight: 500; line-height: 30px; }
.feat p { color: var(--subtle); font-size: 15px; line-height: 21px; margin-top: 2px; }
.sugg { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.sugg div { width: 176px; text-align: left; padding: 14px 16px; border-radius: 16px; background: #222225; font-size: 15px; color: var(--subtle); line-height: 22px; }
.sugg b { color: var(--ink); display: block; font-size: 16px; }
.convo { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 128px 10px; overflow: hidden; }
.bubble-u { align-self: flex-end; background: #2c2c33; padding: 12px 18px; border-radius: 22px 22px 6px 22px; font-size: 17px; margin-bottom: 22px; transition: opacity .4s, transform .4s; }
.loading { color: var(--subtle); font-size: 15px; display: flex; align-items: center; gap: 10px; transition: opacity .3s; }
.loading i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #444; border-top-color: #aaa; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer { font-size: 27px; line-height: 41px; color: var(--ink); }
.answer p + p { margin-top: 16px; }
.answer .w { opacity: .08; transition: opacity .25s; }
.answer .w.on { opacity: 1; }
.wcard { margin-top: 30px; width: 448px; border-radius: 22px; padding: 26px 24px 22px; background: linear-gradient(180deg, #1d1f33, #15161f); border: 1px solid #343659; transition: opacity .5s, transform .5s; }
.wcard small { color: #8f92c4; font-size: 14px; font-weight: 700; }
.wcard h4 { margin-top: 12px; font-size: 19px; color: #cfd0e0; }
.wcard .dt { color: var(--subtle); font-size: 14px; }
.wcard .row { display: flex; gap: 46px; margin-top: 18px; border-top: 1px solid #2b2d45; padding-top: 18px; }
.wcard .row b { font-size: 23px; color: #cfd0e0; }
.wcard .row b em { font-style: normal; font-size: 15px; color: var(--subtle); font-weight: 400; }
.wcard .row span { display: block; color: var(--subtle); font-size: 14px; }
.chat-input { position: absolute; left: 128px; right: 128px; bottom: 30px; height: 64px; border-radius: 999px; background: #232325; display: flex; align-items: center; padding: 0 8px 0 24px; font-size: 18px; color: var(--subtle); }
.chat-input .txt { flex: 1; white-space: nowrap; overflow: hidden; }
.chat-input .txt.typing { color: var(--ink); }
.chat-input .txt.typing::after { content: ""; display: inline-block; width: 2px; height: 20px; background: var(--ink); margin-left: 2px; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-input .send { width: 48px; height: 48px; border-radius: 50%; background: #4a4a4c; transition: background .3s; display: grid; place-items: center; }
.chat-input .send.on { background: var(--ink); }

/* ---------- 6. Library ---------- */
#library { height: 480vh; }
.lib-grid { position: absolute; left: 50%; top: 50%; width: 1700px; display: flex; gap: 22px; transform: translate(-50%, -50%) rotate(-7deg); opacity: .32; transition: opacity .5s, filter .5s; }
.lib-col { flex: 1; display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.plan { background: #141414; border-radius: 16px; padding: 10px 10px 14px; }
.plan img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.plan b { display: block; margin-top: 12px; font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan small { color: var(--subtle); font-size: 15px; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.lib-shade { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(10,10,10,.25), rgba(10,10,10,.85)); pointer-events: none; }
.lib-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; z-index: 3; transition: opacity .5s, transform .5s; }
.lib-title h2 { font-family: var(--display); font-weight: 900; font-size: clamp(54px, 6.7vw, 96px); line-height: 1; letter-spacing: -.025em; }
.lib-title p { max-width: 520px; margin: 30px auto 0; font-size: 19px; line-height: 30px; color: var(--ink); }
.lib-step2 { transition: opacity .5s, transform .5s; }
.lib-copy { position: absolute; left: 6%; top: 50%; transform: translateY(-60%); max-width: 400px; z-index: 3; }
.lib-copy p { font-size: 21px; line-height: 30px; }
.lib-phone { left: calc(50% - 120px); top: calc(50% - 255px); z-index: 3; }
.pl-cover { width: 154px; height: 124px; object-fit: cover; margin: 12px auto 0; }
.pl-title { display: flex; justify-content: space-between; padding: 12px 12px 8px; font-size: 11px; }
.pl-title span { font-size: 8.5px; }
.pl-grid { margin: 4px 10px; border: 1px solid #2a2a2a; border-radius: 6px; display: grid; grid-template-columns: 1fr 1fr; }
.pl-grid div { padding: 9px 8px; display: flex; gap: 7px; align-items: center; font-size: 8.5px; }
.pl-grid div:nth-child(odd) { border-right: 1px solid #2a2a2a; }
.pl-grid div:nth-child(-n+2) { border-bottom: 1px solid #2a2a2a; }
.pl-grid small { display: block; color: var(--subtle); font-size: 6.5px; }
.pl-desc { padding: 10px 12px; font-size: 7.5px; color: var(--subtle); line-height: 1.5; }
.pl-desc b { color: var(--ink); font-size: 9px; display: block; margin-bottom: 4px; }
.pl-sess { display: flex; gap: 8px; align-items: center; padding: 5px 12px; font-size: 8px; }
.pl-sess img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.pl-sess small { display: block; color: var(--subtle); font-size: 7px; }
.pl-save { position: absolute; left: 10px; right: 10px; bottom: 56px; background: var(--ink); color: #000; border-radius: 999px; text-align: center; padding: 10px; font-size: 9px; font-weight: 600; z-index: 4; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.pl-scroll { will-change: transform; }

/* ---------- 7. Features ---------- */
.features { max-width: 1152px; margin: 0 auto; padding: 96px 32px; }
.features h2 { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; letter-spacing: -.025em; max-width: 680px; }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.f-card { background: var(--surface); border: 1px solid #1f1f1f; border-radius: 22px; overflow: hidden; }
.f-media { height: 224px; background: #1a1a1a; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.f-media .shot { width: 196px; height: 180px; border-radius: 26px 26px 0 0; border: 3px solid #3a3a3a; border-bottom: 0; overflow: hidden; background: #000; }
.f-media .shot img { width: 100%; }
.f-media.badges { align-items: center; gap: 4px; }
.f-media.badges img { width: 104px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.f-media.badges img:nth-child(2) { margin-top: -30px; }
.f-body { padding: 26px 22px 28px; }
.f-body h3 { font-size: 19px; font-weight: 700; line-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.f-body h3 em { font-style: normal; font-size: 13px; background: var(--ink); color: #000; border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.f-body p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 26px; }
.f-foot { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.f-foot p { flex: 1 1 260px; max-width: 280px; color: var(--subtle); font-size: 14px; line-height: 22px; }
.f-foot .links { display: flex; gap: 12px; flex-wrap: wrap; }
.f-foot .links a { border: 1px solid #333; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 10px; align-items: center; transition: background .2s; }
.f-foot .links a:hover { background: var(--raised); }

/* ---------- 8. Download ---------- */
#download { height: 150vh; }
#download .stage { background: radial-gradient(45% 45% at 50% 40%, #1d1d1d, var(--canvas) 70%); }
.dl-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; }
.orbit { position: relative; width: 380px; height: 260px; margin: 0 auto; }
.orbit .app { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; transform: translate(-50%, -50%); border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,.7); z-index: 2; }
.orbit .ob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; will-change: transform; }
.dl-wrap h2 { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.025em; line-height: 1; margin-top: 30px; }
.dl-wrap p { max-width: 420px; margin: 26px auto 0; font-size: 21px; line-height: 30px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--canvas); }
.f-inner { max-width: 1232px; margin: 0 auto; padding: 64px 32px 40px; }
.f-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.f-brand img { height: 32px; width: auto; }
.f-social { display: flex; gap: 12px; margin-top: 30px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; }
.f-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 26px; }
.f-col a { display: block; color: var(--muted); font-size: 15px; line-height: 24px; margin-bottom: 20px; }
.f-col a:hover, .f-legal a:hover { color: var(--ink); }
.f-legal { margin-top: 36px; padding-top: 38px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--subtle); }
.f-copy { margin-top: 26px; font-size: 13px; color: var(--subtle); }

/* ---------- Cookie banner ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 1024px; margin: 0 auto; background: #171717; border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; display: flex; gap: 24px; align-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: opacity .3s, transform .3s; }
.cookies.gone { opacity: 0; transform: translateY(20px); pointer-events: none; }
.cookies h4 { font-size: 17px; }
.cookies p { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 6px; }
.cookies p a { text-decoration: underline; }
.cookies .acts { display: flex; gap: 8px; flex: none; }
.cookies .acts button { padding: 10px 16px; border-radius: 999px; border: 1px solid #333; font-weight: 600; font-size: 14px; }
.cookies .acts button.pri { background: var(--ink); color: #000; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat.s2, .stat.s4 { display: none; }
  .bodies { left: 50%; transform: translateX(-30%) scale(.8); transform-origin: top center; }
  .rank-row { left: 50%; transform: translateX(-30%); }
  .fc-respect { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .btn-light { display: none; }
  .burger { display: block; }
  .corner-badge, .stat { display: none; }
  .hero-copy p { font-size: 16px; padding: 0 24px; }
  .bignum { display: none; }
  .flame-big { display: none; }
  .step-copy { left: 24px; right: 24px; bottom: 4vh; }
  .step-copy h2, .side-copy h2 { font-size: 30px; }
  .step-copy p, .side-copy p { font-size: 16px; line-height: 24px; }
  .phones { top: 44%; }
  .phones .phone, .social-phone, .lib-phone { scale: .78; }
  .side-copy { left: 24px; right: 24px; width: auto; top: 96px; }
  #social .side-copy { left: 24px; top: 96px; }
  .bodies { left: 50%; top: 330px; transform: translateX(-50%) scale(.55); }
  .rank-row { top: 300px; left: 50%; transform: translateX(-50%); gap: 4px; }
  .rank-row img { width: 30px; height: 30px; }
  .callouts { display: none; }
  .rank-name { font-size: 110px; }
  .social-phone { left: calc(50% - 120px); top: 330px; }
  .float-card { display: none; }
  .intel-head h2 { font-size: 36px; }
  .intel-head p { font-size: 17px; }
  .chat { top: 190px; border-radius: 28px; height: calc(100vh - 210px); }
  .chat-h { padding: 18px; }
  .feats { grid-template-columns: 1fr; gap: 16px; padding: 0 22px; margin-top: 24px; }
  .sugg { display: none; }
  .convo { padding: 0 20px 10px; }
  .answer { font-size: 18px; line-height: 28px; }
  .wcard { width: auto; }
  .chat-input { left: 16px; right: 16px; bottom: 16px; font-size: 15px; }
  .lib-copy { left: 24px; right: 24px; top: 80px; transform: none; }
  .lib-copy p { font-size: 17px; }
  .lib-phone { top: calc(50% - 170px); }
  .t-grid, .f-grid { grid-template-columns: 1fr; }
  .features h2 { font-size: 36px; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .cookies { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
