/* DokWalt landing page — no framework, no build step. */

:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --panel: #0f1019;
  --panel-2: #141522;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ececf4;
  --muted: #9ca3af;
  --faint: #4b5563;
  --violet: #a78bfa;
  --violet-2: #c4b5fd;
  --violet-deep: #7c3aed;
  --green: #34d399;
  --blue: #60a5fa;
  --yellow: #fbbf24;
  --red: #f87171;
  --pink: #f9a8d4;
  --grad: linear-gradient(92deg, #c4b5fd 0%, #a78bfa 35%, #60a5fa 70%, #34d399 100%);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
p code, li code, small code, .lead code, h3 code {
  font-size: .88em; padding: .1em .38em; border-radius: 6px;
  background: rgba(167, 139, 250, .12); color: var(--violet-2);
}
button { font: inherit; color: inherit; }
::selection { background: rgba(167, 139, 250, .35); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.c-acc { color: var(--violet); }
.c-ok { color: var(--green); }
.c-mute { color: var(--muted); }
.c-faint { color: var(--faint); }
.c-blue { color: var(--blue); }
.c-yellow { color: var(--yellow); }
.c-red { color: var(--red); }
.c-hwnk { color: var(--pink); }

.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── Buttons & pills ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.25em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  color: #0b0614;
  background: linear-gradient(180deg, #d7ccff, #a78bfa);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 30px -10px rgba(167,139,250,.8);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 14px 40px -10px rgba(167,139,250,1); }
.btn-primary span { transition: transform .25s var(--ease); }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.btn-sm { padding: .55em 1em; font-size: 14px; }
.btn-xs { padding: .4em .85em; font-size: 12.5px; }

.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .42em .9em .42em .7em; border-radius: 999px;
  background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.25);
  font-size: 13px; color: var(--violet-2);
  transition: background .25s, border-color .25s;
}
.pill:hover { background: rgba(167,139,250,.14); border-color: rgba(167,139,250,.45); }
.pill-sep { width: 1px; height: 12px; background: rgba(167,139,250,.35); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7,7,12,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-inner { width: min(1180px, 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
/* Logo: a diamond whose blue and green halves take turns, like a zero-downtime deploy. */
.logo { width: 24px; height: 24px; flex: none; overflow: visible; }
.logo .lo { fill: none; stroke: var(--violet); stroke-width: 6; }
.logo .lb { fill: var(--blue); }
.logo .lg { fill: var(--green); }
.logo .ls { fill: var(--violet-2); opacity: 0; }
.brand:hover .logo .lb { animation: logo-b 1.8s ease-in-out; }
.brand:hover .logo .lg { animation: logo-g 1.8s ease-in-out; }
.brand:hover .logo .ls { animation: logo-s 1.8s ease-in-out; }
@keyframes logo-b { 25% { opacity: 1; } 35%, 45% { opacity: 1; } 60%, 85% { opacity: .18; } }
@keyframes logo-g { 15%, 30% { opacity: .18; } 45% { opacity: 1; } }
@keyframes logo-s { 38% { opacity: 0; } 47% { opacity: 1; } 56% { opacity: 0; } }
.logo-live .lo { stroke-width: 3; }
.logo-live .lb { animation: live-b 4s ease-in-out infinite; }
.logo-live .lg { animation: live-g 4s ease-in-out infinite; }
.logo-live .ls { animation: live-s 4s ease-in-out infinite; }
@keyframes live-b { 0%, 40% { opacity: 1; } 50% { opacity: 1; } 60%, 95% { opacity: .18; } 100% { opacity: 1; } }
@keyframes live-g { 0%, 40% { opacity: .18; } 50% { opacity: 1; } 60%, 95% { opacity: 1; } 100% { opacity: .18; } }
@keyframes live-s { 0%, 42% { opacity: 0; } 50% { opacity: 1; } 58%, 100% { opacity: 0; } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: .45em .8em; border-radius: 8px; color: var(--muted); font-size: 14.5px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 132px 0 0; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; filter: blur(80px); opacity: .55; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.b1 { width: 560px; height: 560px; left: 8%; top: 4%; background: radial-gradient(circle, #7c3aed 0%, transparent 70%); animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 520px; height: 520px; right: 6%; top: 0; background: radial-gradient(circle, #2563eb 0%, transparent 70%); animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 420px; height: 420px; left: 45%; top: 30%; background: radial-gradient(circle, #059669 0%, transparent 70%); opacity: .55; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-80px, -60px) scale(1.2); } }

.grid-floor {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(167,139,250,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 56px 56px; } }

.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; }
.hero-title {
  font-size: clamp(40px, 4.9vw, 66px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 700; margin: 26px 0 22px;
}
.hero-title .line { display: block; }
.hero-title .word {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(28px);
  animation: word-in 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
/* One gradient across the whole line: each word shows its own slice (set in app.js). */
.hero-title .word.gradient-text { background-size: var(--lw, 100%) 100%; background-position: var(--bx, 0) 0; animation: word-in 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.hero-sub { font-size: clamp(16px, 1.5vw, 18.5px); color: #b8bccb; max-width: 560px; margin: 0 0 28px; }

.install { max-width: 600px; }
.install-box, .code {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 14px;
  background: rgba(15,16,25,.8); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(167,139,250,0) , 0 20px 40px -20px rgba(0,0,0,.6);
  transition: border-color .3s, box-shadow .3s;
}
.install-box:hover { border-color: rgba(167,139,250,.45); box-shadow: 0 0 0 4px rgba(167,139,250,.08), 0 20px 40px -20px rgba(0,0,0,.6); }
.install-box .prompt { color: var(--violet); font-family: var(--mono); }
.install-box code, .code code {
  flex: 1; min-width: 0; font-size: 13.5px; color: #dcdcea;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.install-box code::-webkit-scrollbar, .code code::-webkit-scrollbar { display: none; }
.install-note { color: var(--faint); font-size: 13px; margin: 10px 2px 0; }
.copy {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.copy:hover { background: rgba(167,139,250,.15); border-color: rgba(167,139,250,.4); }
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1/1; transition: transform .3s var(--ease), opacity .2s; }
.copy .i-check { stroke: var(--green); opacity: 0; transform: scale(.4); }
.copy.copied .i-copy { opacity: 0; transform: scale(.4); }
.copy.copied .i-check { opacity: 1; transform: none; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Terminal */
.term {
  border-radius: 16px; background: linear-gradient(180deg, #11121c, #0c0d15);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title { font: 12.5px var(--mono); color: var(--faint); margin-inline: auto; transform: translateX(-26px); }
.term-body {
  margin: 0; padding: 18px 20px 22px; font: 13.4px/1.75 var(--mono); color: #e5e7f0;
  white-space: pre-wrap; word-break: break-word;
}
.term-hero .term-body { min-height: 404px; }
.cursor { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ln { display: block; animation: ln-in .35s var(--ease) both; }
@keyframes ln-in { from { opacity: 0; transform: translateX(-6px); } }
.spin { color: var(--violet); }
.term-body a, .link-u { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.hero-visual { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.tilt .term { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 50px 100px -30px rgba(76, 29, 149, .55), 0 0 0 1px rgba(0,0,0,.4); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; font-size: 13.5px;
  background: rgba(20,21,34,.78); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
  transform: translateZ(60px);
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-1 { right: -22px; top: 46%; animation: bob 6s ease-in-out infinite; opacity: 0; }
.fc-2 { left: -34px; bottom: -26px; animation: bob 7s ease-in-out -2s infinite; opacity: 0; }
.float-card.show { opacity: 1; transition: opacity .6s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.lock { font-size: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.dot-green { background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,.7); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(251,191,36,.6); }

.marquee {
  margin-top: 96px; padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 500 14px var(--mono); color: var(--muted); }
.marquee-track span:nth-child(even) { color: var(--violet); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ───────── Stats ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 96px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 30px 28px; }
.stat-num { font-size: 48px; font-weight: 650; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.stat-num .count { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* ───────── Sections ───────── */
.section { padding: 140px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.eyebrow { font: 500 13px var(--mono); color: var(--violet); letter-spacing: .02em; margin: 0 0 18px; display: flex; gap: .6em; align-items: center; }
.eyebrow span { text-shadow: 0 0 12px rgba(167,139,250,.9); }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.center-head .eyebrow { justify-content: center; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.04em; font-weight: 680; margin: 0 0 20px; }
h2 em { font-style: normal; color: var(--violet-2); }
.muted-h { color: var(--faint); }
.h-code { font-size: .82em; padding: .05em .3em; border-radius: 12px; background: rgba(167,139,250,.12); color: var(--violet-2); border: 1px solid rgba(167,139,250,.25); }
.lead { color: #aeb2c2; font-size: 17.5px; margin: 0; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-rev { grid-template-columns: 1fr 1fr; }

/* Deploy steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; transition: background .4s, border-color .4s, opacity .4s; opacity: .45; }
.steps li b { display: block; font-weight: 600; font-size: 15.5px; }
.steps li small { color: var(--muted); font-size: 13.5px; }
.step-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; border: 1.5px solid var(--faint); position: relative; transition: border-color .3s, background .3s; }
.steps li.active { opacity: 1; background: rgba(167,139,250,.07); border-color: rgba(167,139,250,.2); }
.steps li.active .step-dot { border-color: var(--violet); }
.steps li.active .step-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--violet); animation: ping-in 1s var(--ease) infinite alternate; }
@keyframes ping-in { from { transform: scale(.5); opacity: .6; } }
.steps li.done { opacity: .85; }
.steps li.done .step-dot { border-color: var(--green); background: var(--green); }
.steps li.done .step-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #052e1f; font-size: 13px; font-weight: 700; }

/* Flow diagram */
.flow-card {
  border-radius: 22px; padding: 18px; position: relative;
  background: radial-gradient(120% 100% at 50% 0%, rgba(124,58,237,.12), transparent 60%), var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.flow-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.flow-status { font-size: 13px; color: var(--green); transition: color .3s; }
.flow { width: 100%; height: auto; overflow: visible; }
.link { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; transition: opacity .5s, stroke .5s; }
.link.off { opacity: .12; animation: none; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.node-bg { fill: #161827; stroke: rgba(255,255,255,.14); stroke-width: 1.2; }
.node-caddy { stroke: rgba(52,211,153,.5); }
.node-db { stroke: rgba(96,165,250,.5); }
.db-rim { fill: none; stroke: rgba(96,165,250,.5); stroke-width: 1.2; }
.node-icon { font-size: 24px; text-anchor: middle; }
.node-label { fill: #d4d6e2; font: 600 13px var(--sans); text-anchor: middle; }
.node-sub { fill: var(--muted); font: 11px var(--mono); text-anchor: middle; }
.slot { transition: opacity .6s var(--ease); }
.slot .slot-bg { fill: #161827; stroke-width: 1.5; transition: stroke .4s, fill .4s; }
#slot-blue .slot-bg { stroke: rgba(96,165,250,.7); }
#slot-green .slot-bg { stroke: rgba(52,211,153,.7); }
.slot-ver { fill: #fff; font: 700 20px var(--mono); text-anchor: middle; }
.slot-tag { fill: var(--muted); font: 11px var(--mono); text-anchor: middle; }
.slot.idle { opacity: .18; }
.slot.live .slot-bg { fill: #182033; }
.slot.draining { opacity: .55; }
.hc-ring { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.slot.checking .hc-ring { animation: hc 1s var(--ease) infinite; }
@keyframes hc { from { opacity: .8; transform: scale(.7); } to { opacity: 0; transform: scale(1.15); } }
.packet { r: 4; }

/* ───────── Reboot ───────── */
.server {
  border-radius: 22px; padding: 16px; position: relative;
  background: linear-gradient(180deg, #1a1b28, #0f1019); border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.08) inset;
}
.server-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; }
.server-name { font-size: 13px; color: var(--muted); }
.server-power { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); transition: background .3s, box-shadow .3s; }
.server.off .server-power { background: #3b1d1d; box-shadow: none; }
.server.booting .server-power { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); animation: blink .5s steps(1) infinite; }
.server-screen { position: relative; border-radius: 14px; background: #08090f; border: 1px solid var(--line); padding: 18px; min-height: 330px; overflow: hidden; }
.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sites li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 14px; transition: background .4s, border-color .4s; }
.sites li .dot { background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,.7); transition: background .3s, box-shadow .3s; }
.site-state { font: 12.5px var(--mono); color: var(--green); }
.sites li.down .dot { background: var(--faint); box-shadow: none; }
.sites li.down .site-state { color: var(--faint); }
.sites li.up { animation: site-up .9s var(--ease); }
@keyframes site-up { 0% { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.5); } }
.boot-log { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); min-height: 11.9em; white-space: pre-wrap; }
.crt-off { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.server.off .crt-off { animation: crt 0.55s var(--ease) forwards; }
@keyframes crt {
  0% { opacity: 0; clip-path: inset(0 0 0 0); }
  40% { opacity: 1; clip-path: inset(49% 0 49% 0); background: #fff; }
  70% { opacity: 1; clip-path: inset(49.6% 45% 49.6% 45%); background: #fff; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); background: #000; }
}
.server.booting .crt-off { opacity: 0; transition: opacity .4s; }

.plug-btn {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px 28px 18px 20px; border-radius: 999px; font-size: 18px; font-weight: 600;
  background: linear-gradient(180deg, rgba(248,113,113,.18), rgba(248,113,113,.06));
  border: 1px solid rgba(248,113,113,.45); color: #fecaca;
  box-shadow: 0 0 0 0 rgba(248,113,113,.5);
  transition: transform .2s var(--ease), box-shadow .3s, opacity .3s;
  animation: plug-glow 2.6s ease-in-out infinite;
}
.plug-btn:hover { transform: translateY(-2px); }
.plug-btn:active { transform: scale(.97); }
.plug-btn[disabled] { opacity: .5; cursor: progress; animation: none; }
@keyframes plug-glow { 50% { box-shadow: 0 0 0 10px rgba(248,113,113,0), 0 0 40px -6px rgba(248,113,113,.5); } }
.plug-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,113,113,.2); font-size: 20px; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), var(--panel);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px;
  transition: border-color .3s, transform .5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,.12), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.c-wide { grid-column: span 2; }
.c-tall { grid-row: span 2; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 620; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card em { font-style: normal; color: var(--text); }

.mini-term { background: #090a11; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 12.8px; line-height: 1.8; margin-top: auto; }
.rel-head, .rel-row { display: grid; grid-template-columns: 80px 120px 1fr; gap: 10px; white-space: nowrap; }
.rel-head { color: var(--muted); }
.rel-rows { display: flex; flex-direction: column; }
.rel-row { overflow: hidden; animation: rel-in .6s var(--ease) both; }
.rel-row span:last-child { overflow: hidden; text-overflow: ellipsis; }
@keyframes rel-in { from { opacity: 0; max-height: 0; transform: translateY(-8px); } to { max-height: 2em; } }
.st-live { color: var(--green); }
.st-sup { color: var(--yellow); }
.st-dep { color: var(--blue); }
.rel-row.flash { background: linear-gradient(90deg, rgba(52,211,153,.12), transparent); border-radius: 6px; }

.pipeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: auto; }
.stage { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; background: #090a11; border: 1px solid var(--line); text-align: center; }
.stage small { color: var(--muted); font-size: 12px; }
.stage b { font-size: 18px; }
.stage-prod { border-color: rgba(52,211,153,.35); }
.stage-prod.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); border-color: var(--green); box-shadow: 0 0 30px -6px rgba(52,211,153,.6); } }
.rail { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(167,139,250,.5) 0 6px, transparent 6px 12px); }
.chip { position: absolute; top: 50%; left: 0; transform: translate(-10%, -50%); padding: 3px 8px; border-radius: 8px; font-size: 11px; background: #1d1630; border: 1px solid rgba(167,139,250,.5); color: var(--violet-2); white-space: nowrap; }
.chip.go { animation: chip-go 1.6s var(--ease) forwards; }
@keyframes chip-go { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; transform: translate(-90%, -50%); opacity: 0; } }

.yaml { margin: auto 0 0; background: #090a11; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 12.6px; line-height: 1.7; color: #c9cbd8; white-space: pre; overflow-x: auto; }
.yaml .k { color: var(--pink); }
.y-line { display: block; position: relative; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; transition: background .4s; }
.y-line::after { content: attr(data-tag); position: absolute; right: 6px; top: 3px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(52,211,153,.15); color: var(--green); border: 1px solid rgba(52,211,153,.35); opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .4s var(--ease); }
.y-line:nth-child(1)::after { background: rgba(167,139,250,.15); color: var(--violet-2); border-color: rgba(167,139,250,.4); }
.y-line:nth-child(2)::after { background: rgba(251,191,36,.12); color: var(--yellow); border-color: rgba(251,191,36,.35); }
.y-line.on { background: rgba(255,255,255,.04); }
.y-line.on::after { opacity: 1; transform: none; }

.https { margin-top: auto; display: grid; gap: 12px; }
.url-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #090a11; border: 1px solid var(--line); font-size: 13.5px; min-height: 42px; }
.lock-i { filter: grayscale(1); opacity: .4; transition: filter .4s, opacity .4s; }
.https.secure .lock-i { filter: none; opacity: 1; }
.caret { width: 1.5px; height: 16px; background: var(--violet); animation: blink 1s steps(1) infinite; }
.https-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.https-steps span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); transition: all .4s; }
.https-steps span.ok { color: var(--green); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.https-steps span.ok::before { content: "✓ "; }

.cfg div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-vars { display: flex; gap: 12px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.masked { color: var(--violet); letter-spacing: .1em; animation: mask-shift 3s steps(4) infinite; }
@keyframes mask-shift { 50% { opacity: .55; } }

.monitor { margin-top: auto; display: grid; gap: 14px; }
.m-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.m-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.m-row b { font-size: 20px; margin-right: 18px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--violet), rgba(124,58,237,.35)); transition: height .6s var(--ease); min-height: 3px; }
.logs { margin: 0; background: #090a11; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.75; height: calc(1.75em * 4 + 20px); overflow: hidden; white-space: pre; color: #c9cbd8; }

.alerts { margin-top: auto; display: grid; gap: 8px; min-height: 132px; align-content: end; }
.alert { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #11121f; border: 1px solid var(--line); border-left: 3px solid var(--red); font-size: 13px; animation: alert-in .6s var(--ease) both; }
.alert.ok { border-left-color: var(--green); }
.alert b { display: block; font-size: 12.5px; }
.alert small { color: var(--muted); }
.alert .av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(167,139,250,.2); color: var(--violet); font-size: 13px; }
@keyframes alert-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.arch { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.arch span { white-space: nowrap; padding: 6px 12px; border-radius: 10px; background: #090a11; border: 1px solid var(--line); }
.arch .arrow { border: 0; background: none; padding: 0; color: var(--violet); animation: nudge 1.6s ease-in-out infinite; }
.arch .hl { border-color: rgba(52,211,153,.45); color: var(--green); }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ───────── TUI ───────── */
.tui-wrap { max-width: 1040px; margin-inline: auto; position: relative; }
.tui-wrap::before { content: ""; position: absolute; inset: 10% 5% -8%; background: radial-gradient(closest-side, rgba(124,58,237,.35), transparent); filter: blur(40px); z-index: -1; }
.tui-body { padding: 22px 24px 18px; font-size: 13.5px; line-height: 1.75; }
.tui-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.gauges { display: flex; gap: 22px; flex-wrap: wrap; }
.gauges em { font-style: normal; display: inline-block; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.gauge { display: inline-block; width: 90px; height: 3px; background: #374151; vertical-align: middle; margin: 0 8px; border-radius: 2px; overflow: hidden; }
.gauge b { display: block; height: 100%; background: var(--green); width: 6%; transition: width .8s var(--ease); }
.tui-cols { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 340px; }
.tui-apps { border: 1.5px solid var(--violet); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.app-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; text-align: left; background: none; border: 0; padding: 3px 6px; margin: 0 -6px; border-radius: 4px; cursor: pointer; font: inherit; color: var(--text); }
.app-row .c-mute { margin-left: 2px; }
.app-row .r { text-align: right; grid-column: 4; color: var(--muted); }
.app-row:hover { background: rgba(255,255,255,.05); }
.app-row.active { background: rgba(167,139,250,.16); }
.tui-detail { border: 1px solid #374151; border-radius: 8px; padding: 12px 16px; overflow: hidden; }
.tui-tabs { display: flex; gap: 14px; color: var(--muted); margin-bottom: 12px; }
.tui-tabs .on { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
.tui-table { display: grid; grid-template-columns: 1.1fr .7fr .7fr 1fr 1.4fr; column-gap: 12px; margin: 12px 0; white-space: nowrap; }
.tui-table.traffic { grid-template-columns: 2fr .8fr .8fr .8fr; }
.tui-table .h { color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 1px; height: 30px; width: 100%; max-width: 360px; }
.spark i { flex: 1; background: var(--violet); min-height: 2px; transition: height .6s var(--ease); }
.spark-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.tui-help { margin-top: 14px; font-size: 12.5px; }
.fade-swap { animation: ln-in .4s var(--ease); }

/* ───────── Not in the box ───────── */
.nope { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nope li { position: relative; padding: 14px 18px 14px 50px; border-radius: 12px; font-size: 18px; font-weight: 550; letter-spacing: -.01em; border: 1px solid var(--line); background: rgba(255,255,255,.015); color: var(--text); transition: color .5s .3s, background .5s; }
.nope li small { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nope li::before { content: "✕"; position: absolute; left: 18px; top: calc(14px + .8em); transform: translateY(-50%) scale(.4); opacity: 0; color: var(--red); font-size: 15px; transition: transform .4s var(--ease) .35s, opacity .4s .35s; }
.nope li::after { content: ""; position: absolute; left: 51px; top: calc(14px + .8em - 1px); height: 2px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.nope li.struck { color: var(--faint); }
.nope li.struck::before { opacity: 1; transform: translateY(-50%) scale(1); }
.nope li.struck::after { width: var(--sw, 120px); }
.ram { margin-top: 36px; display: grid; gap: 12px; }
.ram-row { display: grid; grid-template-columns: 120px 1fr 80px; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.ram-row b { color: var(--text); text-align: right; font-weight: 500; }
.ram-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.ram-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.6s var(--ease) .3s; }
.ram-bar i.apps { background: linear-gradient(90deg, rgba(52,211,153,.5), rgba(96,165,250,.5)); }
.ram.in .ram-bar i { width: var(--w); }

/* ───────── Command tour ───────── */
.tour { display: grid; grid-template-columns: 260px 1fr; gap: 20px; max-width: 1040px; margin-inline: auto; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; }
.tour-tab { text-align: left; padding: 12px 14px; border-radius: 12px; background: none; border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s; position: relative; overflow: hidden; }
.tour-tab code { font-size: 14px; color: var(--text); }
.tour-tab small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tour-tab:hover { background: rgba(255,255,255,.035); }
.tour-tab[aria-selected="true"] { background: rgba(167,139,250,.09); border-color: rgba(167,139,250,.3); }
.tour-tab[aria-selected="true"] code { color: var(--violet-2); }
.tour-tab .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--violet); }
.tour-tab.counting .prog { animation: prog 4.5s linear forwards; }
.tour.paused .tour-tab .prog { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.tour-term .term-body { min-height: 380px; font-size: 13px; }

/* ───────── Get started ───────── */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.start-step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.start-step .num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 600 15px var(--mono); color: var(--violet-2); background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.3); margin-bottom: 18px; }
.start-step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 620; }
.start-step p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.start-step .code { margin-top: auto; padding: 10px 10px 10px 14px; }
.start-step .code code { font-size: 12.5px; }
.code-multi { align-items: flex-start; }
.code-multi code { white-space: pre; line-height: 1.8; }
.reqs { text-align: center; color: var(--faint); font-size: 14px; max-width: 720px; margin: 40px auto 0; }

/* ───────── Final ───────── */
.final { position: relative; padding: 150px 0 160px; overflow: hidden; isolation: isolate; text-align: center; }
.aurora-final { inset: 10% 0 auto; height: 600px; opacity: .45; }
.aurora-final .b1 { left: 20%; top: 0; }
.aurora-final .b2 { right: 18%; top: 10%; }
.final-mark { width: 88px; height: 88px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(167,139,250,.55)); }
.final-mark .logo { width: 100%; height: 100%; }
.final h2 { font-size: clamp(36px, 5.6vw, 70px); }
.final .hero-ctas { justify-content: center; margin-top: 36px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--text); }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .hero-inner, .split, .split-rev { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 112px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-tall { grid-row: auto; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tour-tab { flex: none; }
  .tour-tab small { display: none; }
  .fc-1 { right: -8px; }
  .fc-2 { left: -8px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; }
  .stat-num { font-size: 38px; }
  .section { padding: 96px 0; }
  .bento, .start { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .tui-cols { grid-template-columns: 1fr; }
  .tui-apps { min-height: 0; }
  .tui-table { grid-template-columns: 1fr .6fr .6fr .9fr; }
  .tui-table .hide-sm, .hide-sm { display: none; }
  .tui-body { font-size: 12px; padding: 16px; }
  .gauge { width: 50px; }
  .term-body { font-size: 12px; padding: 14px; }
  .term-hero .term-body { min-height: 470px; }
  .float-card { display: none; }
  .rel-head, .rel-row { grid-template-columns: 56px 100px 1fr; }
  .nope li { font-size: 16px; padding-left: 44px; }
  .nope li::before { left: 15px; }
  .nope li::after { left: 45px; }
  .ram-row { grid-template-columns: 96px 1fr 64px; }
  .marquee { margin-top: 72px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .word { opacity: 1; filter: none; transform: none; }
}
.ram-cap { margin: 0; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.ram-bar i { min-width: 6px; }

/* Grid children must be allowed to shrink below their content (long commands). */
.hero-inner > *, .split > *, .tour > *, .bento > *, .start > *, .tui-cols > * { min-width: 0; }

/* Narrow screens: show the diagram right under the heading, steps after it. */
@media (max-width: 1020px) {
  #deploys .split { gap: 0; }
  #deploys .split-copy { display: contents; }
  #deploys .flow-card { order: 1; margin-top: 36px; }
  #deploys .steps { order: 2; margin-top: 20px; }
}

/* Line icons */
.card h3 { display: flex; align-items: center; gap: 12px; }
.ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.28); box-shadow: 0 0 20px -6px rgba(167,139,250,.5); }
.ico svg, .lock svg, .lock-i svg { width: 17px; height: 17px; fill: none; stroke: var(--violet-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.lock svg { stroke: var(--green); }
.lock-i svg { width: 15px; height: 15px; stroke: var(--green); }
.lock-i { display: grid; }
.node-svg { fill: none; stroke: var(--violet-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-svg-green { stroke: var(--green); }
.yaml { scrollbar-width: none; }
.yaml::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .yaml { font-size: 11.2px; } .y-line::after { top: 2px; font-size: 10px; } }

/* Command tour: wide CLI tables scroll sideways like a real terminal. */
.tour-term .term-body { white-space: pre; overflow-x: auto; word-break: normal; scrollbar-width: thin; scrollbar-color: #2a2b3d transparent; }

.c-tall .yaml { margin: auto 0; font-size: 13px; }
.c-hw { flex-direction: row; align-items: center; gap: 32px; }
.c-hw .arch { margin: 0 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 1020px) { .c-hw { flex-direction: column; align-items: stretch; } .c-hw .arch { margin: auto 0 0; } }
/* Desktop: keep the diagram in view while the steps advance. */
@media (min-width: 1021px) { #deploys .flow-card { position: sticky; top: 110px; } #deploys .split { align-items: start; } #deploys .split-copy { padding-top: 40px; } }

/* Reboot card */
.bento { grid-auto-flow: dense; }
.c-full { grid-column: 1 / -1; }
.c-reboot { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.c-reboot .card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.c-reboot .card-copy p { margin-bottom: 22px; }
.c-reboot .server { padding: 10px; border-radius: 16px; }
.c-reboot .server-top { padding: 2px 4px 10px; }
.c-reboot .server-screen { min-height: 0; padding: 12px; border-radius: 10px; }
.c-reboot .sites { gap: 6px; }
.c-reboot .sites li { padding: 8px 12px; font-size: 13px; }
.c-reboot .boot-log { min-height: 7.2em; font-size: 11.5px; margin-top: 10px; }
.c-reboot .plug-btn { padding: 10px 20px 10px 12px; font-size: 15px; gap: 10px; }
.c-reboot .plug-icon { width: 30px; height: 30px; font-size: 15px; }
@media (max-width: 760px) { .c-reboot { grid-template-columns: 1fr; } }
