/* Homepage only. Everything is scoped under .home so it can't leak into the app pages. */
.home { --glow:#f0a03055; overflow:hidden; }
.home .btn-lg { padding:13px 26px; font-size:16px; border-radius:10px; }
.home .btn-primary { box-shadow:0 6px 28px #f0a03040; transition:transform .15s, box-shadow .15s; }
.home .btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 34px #f0a03066; text-decoration:none; }

/* ---------- hero ---------- */
.h-hero { position:relative; padding:64px 0 56px; background:
  radial-gradient(900px 480px at 78% 0%, #4aa8d822, transparent 60%),
  radial-gradient(700px 420px at 8% 10%, #f0a03022, transparent 60%); }
.h-hero::before { content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size:44px 44px; mask-image:radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image:radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.h-hero-grid { position:relative; display:grid; grid-template-columns:1.12fr 1fr; gap:30px; align-items:center; max-width:1160px; }
.h-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#cfd6e0; background:#ffffff0d; border:1px solid #ffffff1c; padding:5px 12px; border-radius:99px; }
.h-dot { width:8px; height:8px; border-radius:50%; background:var(--good); box-shadow:0 0 0 0 #6cc07088; animation:h-pulse 2s infinite; }
@keyframes h-pulse { 70% { box-shadow:0 0 0 9px #6cc07000; } 100% { box-shadow:0 0 0 0 #6cc07000; } }
.h-hero h1 { font-size:clamp(34px,4.7vw,56px); line-height:1.04; margin:18px 0 18px; letter-spacing:-.02em; }
.h-grad { background:linear-gradient(100deg,#ffb347,#f0a030 35%,#ff6a3d 70%,#e0507a); -webkit-background-clip:text; background-clip:text; color:transparent; background-size:200% 100%; animation:h-shine 6s linear infinite; }
@keyframes h-shine { to { background-position:-200% 0; } }
.h-lead { font-size:18px; color:#c4cad3; max-width:540px; margin:0 0 26px; }
.h-cta { display:flex; flex-wrap:wrap; gap:12px; margin:0 0 26px; }
.h-points { list-style:none; margin:0; padding:0; display:grid; gap:8px; color:#aab2bd; font-size:14px; max-width:520px; }
.h-points li { padding-left:22px; position:relative; } .h-points li::before { content:"✓"; position:absolute; left:0; color:var(--good); font-weight:800; }
.h-points b { color:var(--ink); }

.h-window { background:linear-gradient(#1b2028,#15191f); border:1px solid #ffffff1a; border-radius:14px; overflow:hidden; position:relative;
  box-shadow:0 30px 80px #000a, 0 0 0 1px #0006, 0 0 80px var(--glow); transform:perspective(1400px) rotateY(-6deg) rotateX(2deg); transition:transform .5s; }
.h-window:hover { transform:perspective(1400px) rotateY(0) rotateX(0); }
.h-window-bar { display:flex; align-items:center; gap:6px; padding:9px 12px; background:#101419; border-bottom:1px solid #ffffff12; }
.h-window-bar i { width:10px; height:10px; border-radius:50%; background:#3a424e; } .h-window-bar i:nth-child(1) { background:#e0504a; } .h-window-bar i:nth-child(2) { background:#e0a040; } .h-window-bar i:nth-child(3) { background:#6cc070; }
.h-window-bar span { margin-left:10px; font-size:11px; color:#6f7a89; font-family:ui-monospace,Consolas,monospace; }
#heroCanvas { display:block; width:100%; height:auto; background:radial-gradient(ellipse at 50% 40%, #202733, #12151a); }
.h-hud { position:absolute; left:12px; top:44px; display:flex; flex-direction:column; gap:4px; background:#10141ad9; border:1px solid #ffffff14; border-radius:8px; padding:8px 12px; font-size:12px; backdrop-filter:blur(4px); min-width:130px; }
.h-k { color:var(--dim); text-transform:uppercase; font-size:10px; letter-spacing:.06em; margin-right:4px; } .h-hud b { font-variant-numeric:tabular-nums; }
.h-order { display:flex; align-items:center; gap:6px; } .h-bar { flex:1; height:6px; border-radius:3px; background:#2c333d; overflow:hidden; } .h-bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#f0a030,#ffd27a); transition:width .3s; }
.h-legend { position:absolute; right:12px; bottom:10px; display:flex; gap:10px; font-size:11px; color:#aab2bd; }
.h-legend span::before { content:""; display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; vertical-align:-1px; background:var(--k); }
.k-src { --k:#f0a030; } .k-test { --k:#6cc070; } .k-doc { --k:#4aa8d8; } .k-cfg { --k:#b07ae0; }

/* ---------- strip ---------- */
.h-strip { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#171b21; }
.h-strip-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding-top:22px; padding-bottom:22px; text-align:center; max-width:1000px; }
.h-strip b { display:block; font-size:30px; line-height:1.1; color:var(--accent); } .h-strip span { font-size:13px; color:var(--dim); }

/* ---------- sections ---------- */
.h-section { padding-top:76px; padding-bottom:76px; }
.h-h2 { font-size:clamp(26px,3.6vw,38px); line-height:1.15; text-align:center; margin:0 auto 12px; letter-spacing:-.015em; max-width:780px; }
.h-sub { text-align:center; color:#aab2bd; max-width:640px; margin:0 auto 38px; font-size:16px; }
.h-band { background:linear-gradient(#171b21, #14171c); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.h-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px; max-width:980px; margin:0 auto; }
.h-step { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px; position:relative; }
.h-step h3 { margin:12px 0 6px; } .h-step p { margin:0; color:#aab2bd; }
.h-num { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#ffb347,#f0a030); color:#14171c; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px var(--glow); }

.h-term { max-width:760px; margin:34px auto 0; background:#0d1014; border:1px solid #ffffff18; border-radius:12px; overflow:hidden; box-shadow:0 18px 50px #0008; }
.h-term-bar { display:flex; align-items:center; gap:6px; padding:8px 12px; background:#161a20; border-bottom:1px solid #ffffff10; }
.h-term-bar i { width:10px; height:10px; border-radius:50%; background:#3a424e; } .h-term-bar span { margin-left:8px; font-size:11px; color:#6f7a89; }
.h-term pre { margin:0; padding:16px 18px; min-height:218px; font:13px/1.65 ui-monospace,Consolas,monospace; color:#c9d1d9; white-space:pre-wrap; word-break:break-word; }
.h-term .ok { color:#6cc070; } .h-term .cmd { color:#ffd27a; } .h-term .dim { color:#6f7a89; }
.h-term .caret { display:inline-block; width:8px; height:15px; background:#c9d1d9; vertical-align:-2px; animation:h-blink 1s steps(1) infinite; }
@keyframes h-blink { 50% { opacity:0; } }

/* ---------- stage ladder ---------- */
.h-ladder { list-style:none; margin:0 auto; padding:0; max-width:820px; display:grid; gap:12px; counter-reset:none; }
.h-ladder li { display:grid; grid-template-columns:44px 190px 1fr; gap:14px; align-items:center; padding:14px 18px; border-radius:12px; border:1px solid var(--line); background:var(--panel);
  position:relative; overflow:hidden; }
.h-ladder li::before { content:""; position:absolute; inset:0 auto 0 0; width:calc(var(--w) * 1%); background:linear-gradient(90deg,#f0a03030,transparent); }
.h-ladder .s0 { --w:14; } .h-ladder .s1 { --w:32; } .h-ladder .s2 { --w:52; } .h-ladder .s3 { --w:74; } .h-ladder .s4 { --w:100; border-color:#f0a03088; box-shadow:0 0 36px #f0a03030; }
.h-lv { position:relative; width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:800; background:#10141a; border:1px solid #ffffff20; color:var(--accent); }
.h-ladder b { position:relative; } .h-ladder em { position:relative; color:#aab2bd; font-style:normal; font-size:14px; } .h-ladder em i { color:var(--ink); }

/* ---------- features ---------- */
.h-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.h-feature { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px; transition:transform .2s, border-color .2s, box-shadow .2s; }
.h-feature:hover { transform:translateY(-4px); border-color:#f0a03077; box-shadow:0 14px 40px #0006; }
.h-feature h3 { margin:12px 0 6px; font-size:17px; } .h-feature p { margin:0; color:#aab2bd; font-size:14px; }
.h-ico { width:46px; height:46px; display:flex; align-items:center; justify-content:center; font-size:23px; border-radius:12px; background:linear-gradient(135deg,#f0a03026,#4aa8d81f); border:1px solid #ffffff18; }

/* ---------- privacy ---------- */
.h-two { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:860px; margin:0 auto; }
.h-card { border-radius:14px; padding:22px 24px; border:1px solid var(--line); background:var(--panel); }
.h-card h3 { margin:0 0 10px; } .h-card ul { margin:0; padding:0; list-style:none; display:grid; gap:8px; color:#c4cad3; }
.h-card li { padding-left:26px; position:relative; }
.h-yes { border-color:#6cc07055; } .h-yes li::before { content:"→"; position:absolute; left:0; color:var(--good); font-weight:800; }
.h-no { border-color:#e0504a55; } .h-no li::before { content:"✕"; position:absolute; left:2px; color:var(--bad); font-weight:800; }
.h-note { max-width:760px; margin:26px auto 0; text-align:center; color:#aab2bd; font-size:14px; } .h-note code { background:#0d1014; border:1px solid var(--line); padding:1px 6px; border-radius:5px; color:#ffd27a; }

/* ---------- friends ---------- */
.h-social { display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; }
.h-chip { display:inline-block; font-size:12px; font-weight:700; padding:4px 12px; border-radius:99px; background:#6cc07022; color:#8fe094; border:1px solid #6cc07055; margin-right:6px; }
.h-chip-soon { background:#ffffff0d; color:#aab2bd; border-color:#ffffff22; }
.h-people { display:grid; gap:10px; }
.h-person { display:flex; align-items:center; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px 16px; }
.h-person:nth-child(2) { margin-left:28px; } .h-person:nth-child(3) { margin-left:56px; }
.h-person i { width:40px; height:40px; border-radius:50%; background:var(--c); color:#10131a; display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:700; font-size:18px; }
.h-person b { flex:1; } .h-person span { color:var(--dim); font-size:13px; }

/* ---------- final ---------- */
.h-final { text-align:center; padding:84px 0 92px; background:radial-gradient(700px 320px at 50% 100%, #f0a03030, transparent 70%); border-top:1px solid var(--line); }
.h-final h2 { font-size:clamp(28px,4vw,42px); margin:0 0 8px; letter-spacing:-.015em; } .h-final p { color:#aab2bd; margin:0 0 26px; font-size:17px; } .h-final .btn { margin:0 5px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; transition-delay:calc(var(--i, 0) * 90ms); }
.reveal.in { opacity:1; transform:none; }
.no-js .reveal { opacity:1; transform:none; }

@media (max-width:900px) {
  .h-hero-grid, .h-social { grid-template-columns:1fr; } .h-hero { padding-top:40px; }
  .h-window { transform:none; } .h-grid { grid-template-columns:1fr 1fr; } .h-two { grid-template-columns:1fr; }
  .h-strip-grid { grid-template-columns:1fr 1fr; row-gap:18px; }
}
@media (max-width:620px) {
  .h-grid { grid-template-columns:1fr; } .h-ladder li { grid-template-columns:40px 1fr; } .h-ladder em { grid-column:2; }
  .h-section { padding-top:52px; padding-bottom:52px; } .h-person:nth-child(n) { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  .h-grad, .h-dot, .h-term .caret { animation:none; } .reveal { opacity:1; transform:none; transition:none; } .h-window { transition:none; }
}
