:root {
  --bg: #0A1114;
  --bg2: #0D171A;
  --card: #10191C;
  --card2: #142124;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --ink: #F2F0EA;
  --mut: #8B979A;
  --teal: #5FE3C8;
  --amber: #FFC86B;
  --coral: #FF6A55;
  --blue: #5CB8FF;
  --pix: 'Pixelify Sans', 'Silkscreen', monospace;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--mut); }
.mut { color: var(--mut); }

/* background: dark sky, faint dot grid, the soft lens shapes from the film */
.sky { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 20% 20%, rgba(32, 90, 80, .35), transparent 70%),
  radial-gradient(55% 50% at 85% 85%, rgba(140, 40, 25, .35), transparent 70%),
  radial-gradient(40% 40% at 60% 40%, rgba(40, 60, 30, .25), transparent 70%), var(--bg); }
.sky::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 54px 54px; }
.lenses { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.lenses svg { width: 100%; height: 100%; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; background: linear-gradient(rgba(6, 9, 11, .62), rgba(6, 9, 11, 0)); }
.nav.solid { background: rgba(10, 17, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: baseline; gap: 16px; flex: 1; }
.brand b { font-family: var(--pix); font-size: 22px; letter-spacing: .04em; font-weight: 600; }
.links { display: flex; gap: 24px; font-size: 13.5px; color: #C9D0D0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.links a:hover { color: var(--ink); }
.nav-r { flex: 1; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.ic { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); display: grid; place-items: center; }
.ic svg { width: 15px; height: 15px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.btn.big { padding: 15px 24px; font-size: 15px; }
.btn.light { background: var(--ink); color: #0A1114; }
.btn.light:hover { transform: translateY(-1px); background: #fff; }
.btn.line { border: 1px solid var(--line2); background: rgba(10, 17, 20, .5); backdrop-filter: blur(6px); }
.btn.line:hover { border-color: var(--teal); }

/* hero: the nebula through lens-shaped windows */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; place-items: center; }
.hero .neb { position: absolute; inset: -4%; background: url('assets/nebula.jpg') center/cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, 1%); } }
.hero .frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 22px; padding: 0 16px; }
.word { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.word svg { width: clamp(44px, 6vw, 84px); height: auto; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.word h1 { font-family: var(--pix); font-weight: 600; font-size: clamp(38px, 7vw, 92px); letter-spacing: .03em; line-height: 1; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero .mono { color: #EDE7DA; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .14em; }
.prompt { width: min(560px, 92vw); background: #F4F2EC; color: #222; border-radius: 12px; padding: 12px 14px 10px; text-align: left; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.prompt-h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.prompt-h i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.prompt-box { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #E9E6DF; font-size: 14px; min-height: 40px; color: #333; }
.caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -2px; background: var(--coral); margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-f { display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 8px; color: #888; font-size: 13px; }
.prompt-f b { width: 22px; height: 22px; border-radius: 50%; background: #1A2A2C; color: #fff; display: grid; place-items: center; font-size: 11px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: #EDE7DA; }

.hero-ca { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 4vh, 40px); padding: 10px 12px 10px 18px; border-radius: 14px; background: rgba(8, 12, 14, .72); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); max-width: 92vw; cursor: pointer; transition: border-color .2s; }
.hero-ca:hover { border-color: var(--teal); }
.hero-ca .k { font-family: var(--pix); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.hero-ca code { font-family: var(--mono); font-size: clamp(12px, 1.3vw, 16px); color: #F4F1EA; word-break: break-all; text-align: left; }
.hero-ca .cp { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--ink); color: #0A1114; }
.hero-ca.done .cp { background: var(--teal); }

/* sections */
section.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.kick { display: flex; gap: 16px; align-items: baseline; margin-bottom: 26px; }
.kick b { font-family: var(--pix); font-size: 18px; letter-spacing: .04em; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.02em; line-height: 1.08; font-weight: 700; }

/* PRICE, SQUARED */
.squared { min-height: 70vh; display: grid; align-content: center; }
.squared h2 { font-size: clamp(48px, 9vw, 130px); letter-spacing: -.01em; line-height: .95; font-weight: 800; }
.squared h2 span { font-family: var(--pix); color: var(--teal); font-weight: 600; letter-spacing: .02em; }
.squared .mono { margin-top: 24px; }
.squared p.lead { max-width: 640px; margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: #C9CFCF; }

/* three engines */
.engines { display: grid; gap: 34px; margin-top: 46px; }
.eng { display: grid; grid-template-columns: 52px 200px 1fr; align-items: center; gap: 20px; opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; }
.eng.in { opacity: 1; transform: none; }
.eng .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; color: #142124; }
.eng b { font-size: 22px; letter-spacing: .02em; }
.eng span { color: var(--mut); font-size: clamp(16px, 1.7vw, 21px); }

/* pickers: Stock feed / Chainlink / Oracle guard */
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.picker { border-radius: 22px; border: 1px solid var(--line); background: rgba(16, 25, 28, .6); padding: 30px 24px; text-align: center; overflow: hidden; }
.picker .mono { display: block; margin-bottom: 18px; }
.wheel { position: relative; height: 150px; overflow: hidden; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel ul { list-style: none; transition: transform .7s cubic-bezier(.6, 0, .2, 1); }
.wheel li { height: 50px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #5F6B6E; transition: color .4s; }
.wheel li.on { color: var(--ink); font-weight: 600; }
.wheel .sel { position: absolute; left: 50%; top: 50px; width: min(340px, 86%); height: 50px; transform: translateX(-50%); border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); pointer-events: none; }
.wheel .sel i { position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; }

/* connected markets */
.board { position: relative; height: 760px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.board-in { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: repeat(10, 300px); grid-auto-rows: auto; gap: 28px 40px; padding: 30px 40px; animation: pan 70s linear infinite; }
.board:hover .board-in { animation-play-state: paused; }
@keyframes pan { from { transform: translate(0, 0); } to { transform: translate(-1360px, -120px); } }
.card { border-radius: 18px; border: 1px solid var(--line2); background: var(--card); overflow: hidden; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(95, 227, 200, .5); }
.card.art .pic { position: relative; margin: 8px 8px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 556 / 330; background: #000; }
.card.art .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.art .pic .lbl { position: absolute; left: 2.2%; top: 4%; width: 39.5%; height: 20%; display: flex; align-items: center; padding-left: 4%; border-radius: 8px; background: #0C1416; font-weight: 700; font-size: 17px; white-space: nowrap; }
.card.art .t { padding: 12px 16px 14px; }
.card.art .t b { font-size: 19px; display: block; }
.card.chart { padding: 16px 18px; }
.card.chart .top { display: flex; justify-content: space-between; align-items: flex-start; }
.card.chart .erc { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2); color: #C8D0D0; }
.card.chart h3 { font-size: 36px; letter-spacing: -.01em; margin: 6px 0 10px; }
.card.chart svg { width: 100%; height: 90px; display: block; }
.card.chart .row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 10px; }
.card.chart .row span:first-child { color: var(--mut); }
.card.chart .row .usdg { font-family: var(--mono); color: var(--teal); font-size: 12px; }
.card.eng2 { padding: 16px 18px; border-color: var(--line); border-radius: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 0; border-bottom: 2px solid rgba(95, 227, 200, .55); background: rgba(16, 25, 28, .75); }
.card.eng2 b { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.card.eng2 b i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.card.eng2 p { color: var(--mut); margin-top: 10px; font-size: 14.5px; line-height: 1.6; }

/* choose the market */
.choose { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.pills { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.pills button { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; padding: 6px 22px; border-radius: 4px; border: 1px solid var(--line2); color: #C6CDCD; }
.pills button.on[data-t="NVDA"] { background: var(--teal); color: #0A1114; border-color: var(--teal); }
.pills button.on[data-t="TSLA"] { background: var(--coral); color: #0A1114; border-color: var(--coral); }
.pills button.on[data-t="SPY"] { background: var(--amber); color: #0A1114; border-color: var(--amber); }
.pills button.on[data-t="HOOD"] { background: var(--blue); color: #0A1114; border-color: var(--blue); }
.pills button.on[data-t="PLTR"] { background: #C9A7FF; color: #0A1114; border-color: #C9A7FF; }
.market { border-radius: 22px; border: 1px solid var(--line2); background: var(--card); padding: 22px; }
.market .top { display: flex; justify-content: space-between; align-items: center; }
.market h3 { font-size: 46px; margin: 4px 0 2px; }
.market .px { font-family: var(--mono); color: var(--mut); font-size: 13px; }
.market svg { width: 100%; height: 170px; display: block; margin: 12px 0; }
.market .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market .facts div { padding: 12px; border-radius: 12px; background: var(--card2); font-size: 13px; color: var(--mut); }
.market .facts b { display: block; color: var(--ink); font-size: 15px; }

/* under the hood */
.hood { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; }
.panel { border-radius: 20px; border: 1px solid var(--line2); background: rgba(16, 25, 28, .88); padding: 24px; }
.panel .h { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.panel .h i, .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blink 2s steps(2) infinite; }
.carry h3 { font-size: 34px; margin: 22px 0 4px; }
.wave { display: flex; align-items: center; gap: 4px; height: 80px; margin: 26px 0 16px; }
.wave span { flex: 1; border-radius: 3px; background: var(--teal); }
.carry .mono { color: var(--amber); }
.status { display: grid; gap: 20px; margin-top: 24px; }
.status div { display: flex; justify-content: space-between; align-items: center; }
.status small { display: block; color: var(--mut); font-size: 13px; }
.status b { font-size: 16px; }

/* a different shape of exposure */
.shape { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; margin-top: 30px; }
.shape svg { width: 100%; height: 300px; display: block; }
.nums .mono { display: block; margin-bottom: 4px; }
.nums b { display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.nums b.sq { color: var(--teal); }
.nums code { font-family: var(--mono); color: var(--mut); display: block; margin-bottom: 14px; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p, 50%), rgba(255,255,255,.14) var(--p, 50%)); margin: 8px 0 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.fine { font-size: 12.5px; color: var(--mut); margin-top: 14px; }

/* film + end */
.film { border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 40px 100px rgba(0,0,0,.5); background: #000; }
.film video { width: 100%; display: block; aspect-ratio: 16 / 9; }
.end { position: relative; overflow: hidden; min-height: 92vh; display: grid; place-items: center; text-align: center; }
.end .neb { position: absolute; inset: 0; background: url('assets/nebula.jpg') center/cover no-repeat; transform: scaleX(-1); }
.end .chips span { position: absolute; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(10, 17, 20, .45); color: #EDE7DA; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.end-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; padding: 0 16px; }
.ca { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; background: rgba(10, 17, 20, .82); border: 1px solid var(--line2); max-width: 100%; flex-wrap: wrap; justify-content: center; }
.ca code { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); }

/* reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .links { display: none; }
  .choose, .hood, .shape { grid-template-columns: 1fr; }
  .pickers { grid-template-columns: 1fr; }
  .eng { grid-template-columns: 44px 1fr; }
  .eng span { grid-column: 2; }
  .board { height: 640px; }
}
@media (max-width: 560px) {
  .brand .mono { display: none; }
  .market .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv, .eng { opacity: 1; transform: none; } }
