:root {
  --bg: #07080d;
  --bg-2: #0b0d16;
  --iron: #11131d;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --hot: #c4b5fd;
  --white: #ece9f7;
  --mute: rgba(236,233,247,.6);
  --dim: rgba(236,233,247,.36);
  --line: rgba(236,233,247,.09);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --disp: 'Inter Tight', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--white); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.n { background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2 { font-family: var(--disp); font-weight: 800; letter-spacing: -.04em; line-height: .96; margin: 0; }
.thin { font-weight: 500; letter-spacing: -.03em; color: rgba(236,233,247,.7); }
.body { font-size: 15px; line-height: 1.7; color: var(--mute); margin: 18px 0 0; max-width: 460px; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--hot); margin: 0 0 16px; }
.tag i { width: 22px; height: 1px; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: clamp(42px, 5.6vw, 84px); }
.sec-head .body { margin-left: auto; margin-right: auto; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- chrome ---------- */
#grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 40; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-4%) } 60% { transform: translate(-4%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) } }
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 38; pointer-events: none; mix-blend-mode: screen; }
#cursor { position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 39; opacity: 0; background: radial-gradient(circle, rgba(139,92,246,.13) 0%, rgba(139,92,246,0) 60%); transition: opacity .6s; will-change: transform; }
body.has-cursor #cursor { opacity: 1; }
.loader { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transition: opacity 1s ease, visibility 1s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .mark { font-family: var(--disp); font-weight: 900; font-size: 84px; line-height: 1; filter: drop-shadow(0 0 30px rgba(139,92,246,.5)); }
.loader .bar { width: 180px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--violet); transition: width .4s; }
.loader p { color: var(--dim); margin: 0; }

.top { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; opacity: 0; transition: opacity .8s, background .5s, padding .5s, backdrop-filter .5s; }
.top.on { opacity: 1; }
.top.scrolled { background: rgba(7,8,13,.7); backdrop-filter: blur(14px); padding: 12px 40px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.nav { display: inline-flex; gap: 26px; color: var(--mute); }
.nav a:hover { color: var(--white); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid rgba(236,233,247,.28); color: var(--white); transition: border-color .25s, background .25s, color .25s, transform .25s; white-space: nowrap; }
.pill:hover { border-color: var(--white); transform: translateY(-1px); }
.pill.fill { background: var(--white); color: var(--bg); border-color: var(--white); }
.pill.fill:hover { background: #fff; }
.pill.big { padding: 15px 28px; font-size: 15px; }
.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- video stages ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg); }
.bg-video.b { opacity: 0; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(7,8,13,.85) 0%, rgba(7,8,13,0) 45%), linear-gradient(to right, rgba(7,8,13,.6) 0%, rgba(7,8,13,0) 45%); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-copy { position: absolute; left: 6%; bottom: 10%; z-index: 5; max-width: 760px; opacity: 0; transform: translateY(16px); transition: opacity 1.2s ease, transform 1.2s ease; }
.hero-copy.on { opacity: 1; transform: none; }
.hero h1 { font-size: clamp(64px, 11vw, 168px); }
.lede { font-family: var(--disp); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.02em; margin: 14px 0 26px; color: rgba(236,233,247,.85); }
.lede em { font-style: normal; color: var(--hot); }
.corner { position: absolute; right: 40px; bottom: 34px; z-index: 5; color: var(--dim); margin: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; z-index: 6; width: 1px; height: 44px; background: rgba(255,255,255,.14); overflow: hidden; }
.scroll-cue i { display: block; width: 100%; height: 40%; background: var(--violet); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-100%) } 100% { transform: translateY(260%) } }

/* ---------- strip ---------- */
.strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); padding: 30px 48px; background: var(--iron); border-top: 1px solid rgba(139,92,246,.45); border-bottom: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(139,92,246,.08); }
.strip div { display: flex; flex-direction: column; align-items: center; gap: 4px; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; }
.strip b { font-family: var(--disp); font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.04em; }
.strip span { color: var(--dim); }

/* ---------- bench marquee ---------- */
.bench { position: relative; height: 260px; overflow: hidden; }
.bench-img { position: absolute; inset: -30% 0; background: url('./assets/img/bench.jpg') center / cover no-repeat; opacity: .9; }
.marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; padding: 18px 0; background: rgba(7,8,13,.35); backdrop-filter: blur(2px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; animation: marquee 48s linear infinite; font-size: 13px; color: rgba(236,233,247,.8); }
.marquee-track i { font-style: normal; color: var(--violet); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scrub sections ---------- */
.scrub { position: relative; height: 280vh; }
.scrub .stage, .polish .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.scrub .bg-video { transform: scale(1.06); transition: none; }
.copy { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 3; max-width: 520px; opacity: 0; transition: opacity .8s; }
.copy.on { opacity: 1; }
.copy h2 { font-size: clamp(48px, 6.6vw, 104px); }
.scrub.right .copy { left: auto; right: 6%; }
.scrub.right .shade { background: linear-gradient(to top, rgba(7,8,13,.85) 0%, rgba(7,8,13,0) 45%), linear-gradient(to left, rgba(7,8,13,.6) 0%, rgba(7,8,13,0) 45%); }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 8px 12px; border: 1px solid rgba(236,233,247,.18); border-radius: 999px; color: rgba(236,233,247,.8); background: rgba(7,8,13,.35); backdrop-filter: blur(4px); }
.gauge { position: absolute; left: 6%; right: 6%; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 16px; color: var(--dim); }
.gauge i { flex: 1; height: 1px; background: rgba(236,233,247,.14); display: block; position: relative; }
.gauge i b { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--violet); box-shadow: 0 0 12px var(--violet); border-radius: 2px; }
.gauge .pct { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; color: var(--hot); }

/* ---------- polish (3D) ---------- */
.polish { position: relative; height: 240vh; }
.polish .stage { background: radial-gradient(60% 70% at 66% 50%, #17142e 0%, var(--bg) 62%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.polish .copy { max-width: 480px; }
.models { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.models li { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s; }
.models li.on { opacity: 1; }
.models li span { grid-row: 1 / 3; align-self: center; color: var(--hot); }
.models li b { font-family: var(--disp); font-size: 20px; letter-spacing: -.03em; }
.models li em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.score { position: absolute; right: 6%; bottom: 34px; z-index: 3; text-align: right; }
.score b { display: block; font-family: var(--disp); font-size: clamp(56px, 8vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.score span { color: var(--dim); }

/* ---------- ingots ---------- */
.ingots { padding: 130px 48px 110px; background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1400px; }
.ingot { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--iron); transform-style: preserve-3d; transition: transform .35s ease-out, border-color .4s, box-shadow .4s; }
.ingot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(1.05); }
.ingot:hover img { transform: scale(1.06); }
.ingot:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--c) 70%, transparent); }
.ingot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,13,.92) 0%, rgba(7,8,13,.2) 50%, rgba(7,8,13,0) 100%); }
.meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; display: grid; gap: 6px; }
.meta span { color: var(--c); }
.meta b { font-family: var(--disp); font-size: 24px; letter-spacing: -.03em; }
.meta em { font-style: normal; font-size: 13px; color: var(--mute); line-height: 1.5; }

/* ---------- pricing ---------- */
.pricing { padding: 120px 48px 130px; background: var(--bg-2); border-top: 1px solid var(--line); }
.menu { max-width: 760px; margin: 0 auto; }
.row { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font-size: 19px; font-weight: 500; border-bottom: 1px solid var(--line); }
.row i { flex: 1; }
.row small { color: var(--dim); }
.row span { color: var(--mute); }
.row .free { color: #34d399; }

/* ---------- final ---------- */
.final { position: relative; min-height: 92vh; overflow: hidden; display: flex; align-items: center; padding: 120px 6%; }
.final-img { position: absolute; inset: -20% 0; background: url('./assets/img/forge-cool.jpg') center / cover no-repeat; }
.final .shade { background: linear-gradient(to right, rgba(7,8,13,.85) 0%, rgba(7,8,13,.3) 60%, rgba(7,8,13,.1) 100%), linear-gradient(to top, rgba(7,8,13,.9) 0%, rgba(7,8,13,0) 40%); }
.final-inner { position: relative; z-index: 2; max-width: 640px; }
.final h2 { font-size: clamp(56px, 9vw, 140px); }
.final .cta-row { margin-top: 30px; gap: 14px; }
.fine { color: var(--dim); margin: 26px 0 0; }

/* ---------- footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 60px 48px 30px; display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; font-family: var(--disp); font-weight: 800; font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.foot-brand small { color: var(--dim); font-weight: 400; }
.foot-cols { display: flex; gap: 56px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-cols b { color: var(--white); margin-bottom: 4px; }
.foot-cols a { color: var(--mute); } .foot-cols a:hover { color: var(--white); }
.foot-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .models li { grid-template-columns: 120px 1fr; }
}
@media (max-width: 720px) {
  .top, .top.scrolled { padding: 14px 18px; }
  .hero { height: 100svh; }
  .hero-copy { left: 20px; right: 20px; bottom: 14%; max-width: none; }
  .hero h1 { font-size: 64px; } .lede { font-size: 20px; }
  .corner { display: none; } .scroll-cue { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 22px 20px; } .strip div { border-left: 0; } .strip div:last-child { grid-column: 1 / -1; }
  .bench { height: 180px; }
  .scrub { height: 240vh; } .polish { height: 220vh; }
  .copy, .scrub.right .copy, .polish .copy { left: 20px; right: 20px; top: auto; bottom: 84px; transform: none; max-width: none; }
  .copy h2 { font-size: 46px; } .copy .body { font-size: 14px; max-width: none; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .facts { display: none; }
  .gauge { left: 20px; right: 20px; bottom: 30px; }
  .shade, .scrub.right .shade { background: linear-gradient(to top, rgba(7,8,13,.95) 0%, rgba(7,8,13,.55) 45%, rgba(7,8,13,0) 75%); }
  .models { display: none; }
  .score { right: 20px; top: 15%; bottom: auto; }
  .ingots, .pricing { padding-left: 20px; padding-right: 20px; }
  .grid { grid-template-columns: 1fr; }
  .final { padding: 100px 20px; } .final h2 { font-size: 64px; }
  .foot { grid-template-columns: 1fr; padding: 50px 20px 24px; } .foot-cols { gap: 28px; flex-wrap: wrap; } .foot-bottom { flex-direction: column; gap: 6px; }
  #cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) { #grain, .marquee-track, .scroll-cue i { animation: none; } [data-reveal] { opacity: 1; transform: none; } }
/* late fixes */
.polish .copy h2 { font-size: clamp(40px, 5vw, 76px); }
.polish .copy { top: 53%; }
@media (max-width: 720px) {
  .row { font-size: 16px; flex-wrap: nowrap; align-items: center; } .row small { display: none; } .row span { white-space: nowrap; }
  .fine { max-width: 260px; }
}
