@import url('assets/fonts/inter.css');

:root {
  --bg: #07130e;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f2f7f3;
  --soft: rgba(242, 247, 243, 0.62);
  --green: #4ade80;
  --green-d: #16a34a;
  --amber: #f5b544;
  --red: #f87171;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.idle { cursor: none; }

#viewport { position: fixed; inset: 0; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); }
#glow { position: absolute; inset: 0; background: radial-gradient(55% 45% at 50% 0%, rgba(22, 163, 74, 0.28), transparent 70%); pointer-events: none; }

#brand { position: absolute; top: 52px; left: 64px; display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; z-index: 10; }
#brand svg { width: 40px; height: 40px; }
#top { position: absolute; top: 56px; right: 64px; display: flex; align-items: baseline; gap: 24px; z-index: 10; }
#chapter { font-size: 22px; color: var(--soft); }
#counter { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
#lang { font-size: 22px; color: var(--soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
#bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--green-d); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.8s var(--ease); z-index: 10; }

.slide { position: absolute; inset: 0; padding: 180px 140px 120px; display: flex; flex-direction: column; gap: 64px; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.7s var(--ease), visibility 0s 0.5s; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s ease 0.1s, transform 0.8s var(--ease) 0.1s; }
.slide.center { align-items: center; justify-content: center; text-align: center; padding-top: 120px; }
.notes { display: none; }

.eyebrow { font-size: 24px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
h1 { font-size: 170px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
h2 { font-size: 72px; line-height: 1.08; font-weight: 650; letter-spacing: -0.035em; }
h3 { font-size: 40px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.head { display: flex; flex-direction: column; gap: 20px; max-width: 1500px; }
.lead { font-size: 36px; line-height: 1.45; color: var(--soft); }
.lead b, .step p b, .kpi p b { color: var(--ink); font-weight: 600; }
.dim { color: var(--soft); }
.accent { color: var(--green); }
code, .mono { font-family: var(--mono); }
code { font-size: 0.9em; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 2px 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.card p, .card li { font-size: 31px; line-height: 1.45; color: var(--soft); }
.card ul { padding-left: 30px; display: flex; flex-direction: column; gap: 10px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 30px; }
.tbl.sm { font-size: 28px; }
.tbl.sm td { padding-top: 14px; padding-bottom: 14px; }
.tbl th { text-align: left; font-size: 24px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding: 0 24px 18px 0; border-bottom: 2px solid var(--line); }
.tbl td { padding: 18px 28px 18px 0; border-bottom: 1px solid var(--line); line-height: 1.35; vertical-align: top; }
.tbl td:first-child { font-weight: 600; }
.tbl td.soft { color: var(--soft); }

.quote { font-size: 54px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; max-width: 1500px; }
.quote.sm { font-size: 36px; line-height: 1.4; }
.cite { font-size: 28px; color: var(--soft); }
.chips { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.chip { font-size: 30px; padding: 16px 32px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.chip b { color: var(--green); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; flex: 1; }
.list { display: flex; flex-direction: column; gap: 28px; }
.item { display: flex; gap: 24px; align-items: baseline; }
.item .k { font-size: 24px; font-weight: 600; color: var(--green); min-width: 270px; letter-spacing: 0.08em; text-transform: uppercase; }
.item p { font-size: 34px; line-height: 1.4; }

.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #f3f4f6; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.browser .chrome { height: 52px; background: #1c2a23; display: flex; align-items: center; gap: 10px; padding: 0 22px; }
.browser .chrome i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.browser .chrome span { margin-left: 18px; font-size: 22px; color: var(--soft); }
.browser img { display: block; width: 100%; }

.tree { font-family: var(--mono); font-size: 27px; line-height: 1.6; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 36px 44px; white-space: pre; }
.tree .c { color: var(--soft); }

.flow { display: flex; align-items: stretch; gap: 0; }
.node { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.node h3 { font-size: 38px; }
.node p { font-size: 28px; line-height: 1.4; color: var(--soft); font-family: var(--mono); }
.node.hi { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.08); }
.arrow { width: 64px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 40px; }

.archi { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; gap: 32px; }
.zone { border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.zone .t { font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: var(--green); }
.zone .row { display: flex; gap: 14px; }
.box { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; font-size: 30px; text-align: center; white-space: nowrap; }
.box.run { border-color: rgba(245, 181, 68, 0.5); color: var(--amber); }
.box.db { border-radius: 40px; }
.zone > .box { flex: none; }
.zone .small { font-size: 27px; color: var(--soft); line-height: 1.5; }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; display: flex; flex-direction: column; gap: 10px; }
.kpi p { font-size: 30px; color: var(--soft); line-height: 1.4; }
.kpi .big { font-size: 260px; line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; color: var(--green); }

.steps { display: flex; flex-direction: column; gap: 30px; counter-reset: step; }
.step { display: flex; gap: 28px; align-items: baseline; }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 64px; height: 64px; border-radius: 50%; background: rgba(74, 222, 128, 0.14); color: var(--green); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; transform: translateY(8px); }
.step p { font-size: 38px; line-height: 1.4; }

.shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot img { display: block; width: 100%; }

.links { display: flex; gap: 40px; justify-content: center; font-size: 30px; color: var(--soft); }

#notes { position: fixed; left: 0; right: 0; bottom: 0; max-height: 40vh; overflow: auto; padding: 18px 28px 24px; background: rgba(0, 0, 0, 0.88); color: #fff; font-size: 18px; line-height: 1.55; display: none; z-index: 100; }
#notes.on { display: block; }
#notes b { color: var(--green); }
