/* =========================================================
   TomalaIT — "Control Plane" theme
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(16, 22, 38, .66);
  --line: rgba(148, 170, 255, .12);
  --line-2: rgba(148, 170, 255, .22);
  --text: #e8ecf8;
  --muted: #8b95b3;
  --dim: #5b6584;
  --acc: #7cf8c4;      /* mint  */
  --acc-2: #7aa7ff;    /* blue  */
  --acc-3: #c38bff;    /* violet*/
  --warn: #ffcc66;
  --err: #ff6b8b;
  --grad: linear-gradient(100deg, var(--acc) 0%, var(--acc-2) 50%, var(--acc-3) 100%);
  --radius: 18px;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mx: 50vw; --my: 30vh;
}

*,*::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 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--acc); color: #04110b; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); background: rgba(124,248,196,.1); color: var(--acc); padding: .1em .45em; border-radius: 6px; font-size: .9em; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- ambient layers ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(122,167,255,.14), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(124,248,196,.09), transparent 60%),
    radial-gradient(40vw 40vw at 60% 110%, rgba(195,139,255,.10), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  opacity: .45;
}
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(124,248,196,.06), transparent 60%);
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  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");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(3%,-4%)} 60%{transform:translate(-2%,5%)} 80%{transform:translate(4%,2%)} }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 12, 22, .6); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { font: 700 20px/1 var(--mono); color: var(--acc); letter-spacing: -.02em; }
.nav__ctx { font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.nav__ctx b { color: var(--text); font-weight: 500; }
.nav__links { display: flex; gap: 4px; font-size: 13px; }
.nav__links a { padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.kbd-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 10px; cursor: pointer; display: flex; gap: 3px; }
.kbd-btn:hover { color: var(--text); border-color: var(--line-2); }
kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.07); }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 500 15px/1 var(--sans); padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--b); color: var(--text); background: rgba(255,255,255,.02);
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--acc); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--primary { background: var(--acc); color: #04110b; border-color: transparent; font-weight: 600; box-shadow: 0 0 0 0 rgba(124,248,196,.5); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(124,248,196,.6); }
.btn--primary span { transition: transform .2s; }
.btn--primary:hover span { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  padding: 140px max(28px, calc((100vw - 1200px) / 2)) 80px;
  isolation: isolate;
}
#topology { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { max-width: 760px; position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,12,22,.55); backdrop-filter: blur(6px); margin: 0 0 28px; }
.status b { color: var(--acc); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(124,248,196,.7); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124,248,196,0); } 100% { box-shadow: 0 0 0 0 rgba(124,248,196,0); } }

.hero__title { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .88; font-size: clamp(64px, 12vw, 168px); }
.hero__title .line { display: block; }
.hero__title .line:first-child { background: linear-gradient(180deg, #fff 30%, #9aa6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.line--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(232,236,248,.55); position: relative; }
.line--outline::after {
  content: "Tomala"; position: absolute; inset: 0; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0); animation: fill 2.2s .6s cubic-bezier(.7,0,.2,1) forwards;
}
@keyframes fill { to { clip-path: inset(0 0 0 0); } }

.hero__role { margin: 28px 0 0; font-size: clamp(15px, 1.6vw, 19px); color: var(--muted); }
.prompt { color: var(--acc); }
.arrow { color: var(--dim); margin: 0 6px; }
.typed { color: var(--text); }
.caret { display: inline-block; width: .6em; height: 1.1em; background: var(--acc); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(2) infinite; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: #c3cae0; max-width: 620px; margin: 20px 0 34px; }
.hero__lead em { font-style: normal; color: var(--text); border-bottom: 1px dashed var(--acc); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid; }
.chip--aws { color: #ffb84d; border-color: rgba(255,153,0,.35); background: rgba(255,153,0,.07); }
.chip--k8s { color: #8fb3ff; border-color: rgba(50,108,229,.45); background: rgba(50,108,229,.1); }
.chip--gcp { color: #7ee2a0; border-color: rgba(52,168,83,.4); background: rgba(52,168,83,.08); }

.hero__hud {
  width: 280px; font-size: 12px; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); align-self: end; margin-bottom: 40px;
}
.hud__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--dim); }
.hud__row b { color: var(--text); font-weight: 500; }
.hud__bar { height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; margin: 14px 0 10px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: var(--w); background: var(--grad); animation: load 2s ease-out; }
@keyframes load { from { width: 0; } }
.hero__hud small { color: var(--dim); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--dim); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(8,12,22,.5); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { color: var(--muted); font-size: 15px; white-space: nowrap; }
.marquee span::before { content: "◆"; color: var(--acc); margin-right: 48px; font-size: 9px; vertical-align: 3px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 140px 0 40px; }
.section__head { margin-bottom: 56px; max-width: 820px; }
.section__num { display: inline-block; font-size: 13px; color: var(--acc); border: 1px solid rgba(124,248,196,.3); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
.section h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 0; font-weight: 600; }
.section__sub { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* ---------- windows ---------- */
.window { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin-left: 10px; font-size: 12px; color: var(--dim); }
.window__body { margin: 0; padding: 22px; font-size: 13.5px; line-height: 1.75; min-height: 440px; white-space: pre-wrap; color: #c3cae0; }
.tf-add { color: var(--acc); } .tf-key { color: var(--acc-2); } .tf-str { color: var(--warn); } .tf-com { color: var(--dim); } .tf-ok { color: var(--acc); font-weight: 700; }

.plan-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.about { display: grid; gap: 24px; }
.portrait { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: contrast(1.03); transition: filter .5s, transform .8s; }
.portrait:hover img { filter: none; transform: scale(1.03); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,7,13,.9)), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); pointer-events: none; }
.portrait figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 12px; color: var(--acc); }
.about__text p { margin: 0 0 14px; color: #c3cae0; }
.about__text b { color: var(--text); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat b { display: block; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- git log ---------- */
.gitlog { list-style: none; margin: 0; padding: 0; }
.commit { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.commit__graph { position: relative; display: flex; justify-content: center; }
.commit__graph::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--acc), var(--acc-2)); opacity: .35; }
.commit:last-child .commit__graph::before { bottom: auto; height: 34px; }
.node { position: relative; margin-top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc-2); z-index: 1; }
.node--head { border-color: var(--acc); background: var(--acc); box-shadow: 0 0 20px var(--acc); }
.node--branch { border-color: var(--acc-3); }
.node--root { border-style: dashed; }
.commit__body { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; background: var(--panel); transition: border-color .3s, transform .3s; }
.commit__body:hover { border-color: var(--line-2); transform: translateX(4px); }
.commit__meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.hash { color: var(--warn); }
.ref { color: var(--acc); } .ref--alt { color: var(--acc-3); }
.commit h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.commit h3 .at { color: var(--muted); font-weight: 400; }
.commit ul { margin: 0; padding-left: 18px; color: #c3cae0; }
.commit li { margin: 4px 0; }
.commit li::marker { content: "+ "; color: var(--acc); font-family: var(--mono); }
.commit li b { color: var(--text); font-weight: 600; }
.tags { margin: 14px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- pods ---------- */
.table-wrap { overflow-x: auto; }
.pods { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pods th { text-align: left; font-weight: 500; color: var(--dim); padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pods td { padding: 11px 20px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.pods tr { transition: background .2s; }
.pods tbody tr:hover { background: rgba(124,248,196,.04); }
.pods .st { display: inline-flex; align-items: center; gap: 8px; }
.pods .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st--run { color: var(--acc); } .st--pend { color: var(--warn); } .st--create { color: var(--acc-2); }
.pods .ready { color: var(--muted); }
.pods .bar { display: inline-block; width: 90px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.07); margin-left: 10px; vertical-align: middle; overflow: hidden; }
.pods .bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* ---------- certs ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1000px; }
.cert {
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; padding: 26px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)), var(--bg-2);
  border: 1px solid var(--line-2); transform-style: preserve-3d;
  transition: transform .15s ease-out, box-shadow .3s;
  --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.cert::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--c1), transparent 40%, var(--c2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.cert:hover { box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c1) 50%, transparent); }
.cert__shine { position: absolute; inset: 0; background: radial-gradient(400px circle at var(--px) var(--py), color-mix(in srgb, var(--c2) 35%, transparent), transparent 45%); mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.cert:hover .cert__shine { opacity: 1; }
.cert__glyph { position: absolute; top: 18px; right: 22px; font-size: 64px; font-weight: 700; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c1) 60%, transparent); transform: translateZ(40px); }
.cert__issuer { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; transform: translateZ(30px); }
.cert h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; transform: translateZ(50px); }
.cert__level { margin: 10px 0 0; font: 700 14px var(--mono); color: var(--c1); transform: translateZ(40px); }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s, transform .3s; }
.case::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--x, 50%) var(--y, 0%), rgba(124,248,196,.09), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.case:hover { border-color: var(--line-2); transform: translateY(-4px); }
.case:hover::after { opacity: 1; }
.case__kind { font-size: 11px; color: var(--acc); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.case h3 { margin: 0 0 16px; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; font-weight: 600; }
.case p:last-child { color: var(--muted); margin: 0; font-size: 15.5px; }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 11.5px; }
.flow span { padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.03); }
.flow i { position: relative; flex: 0 0 22px; height: 1px; background: var(--line-2); overflow: hidden; }
.flow i::after { content: ""; position: absolute; top: -1px; left: -6px; width: 6px; height: 3px; background: var(--acc); border-radius: 2px; animation: packet 1.4s linear infinite; }
@keyframes packet { to { left: 100%; } }

/* ---------- terminal ---------- */
.window--term { max-width: 980px; }
.term { height: 380px; overflow-y: auto; padding: 20px 22px 6px; font-size: 14px; line-height: 1.7; color: #c3cae0; }
.term p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term .c-acc { color: var(--acc); } .term .c-blue { color: var(--acc-2); } .term .c-warn { color: var(--warn); } .term .c-err { color: var(--err); } .term .c-dim { color: var(--dim); } .term .c-vio { color: var(--acc-3); }
.term a { color: var(--acc-2); text-decoration: underline; }
.term__input { display: flex; gap: 10px; align-items: center; padding: 10px 22px 20px; font-size: 14px; }
.term__input label { white-space: nowrap; }
.u { color: var(--acc); } .h { color: var(--acc-2); } .p { color: var(--acc-3); }
.term__input input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--acc); }

/* ---------- contact ---------- */
.contact { padding-bottom: 80px; }
.contact__card { position: relative; padding: clamp(32px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(800px 400px at 100% 0%, rgba(122,167,255,.16), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(124,248,196,.12), transparent 60%), var(--bg-2); }
.contact__card h2 { max-width: 780px; margin: 10px 0 18px; }
.contact__card > p:not(.mono) { color: var(--muted); max-width: 620px; font-size: 18px; margin: 0 0 30px; }
.statuspage { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.statuspage__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.statuspage__head .dot { margin-right: 8px; }
.uptime { display: grid; grid-template-columns: repeat(90, 1fr); gap: 3px; height: 34px; }
.uptime i { border-radius: 2px; background: var(--acc); opacity: .75; transition: opacity .2s, transform .2s; }
.uptime i:hover { opacity: 1; transform: scaleY(1.15); }
.uptime i.learn { background: var(--warn); }

/* ---------- footer ---------- */
.footer { width: min(1200px, calc(100% - 56px)); margin: 0 auto; padding: 30px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; z-index: 200; background: rgba(3,5,10,.6); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 16vh; }
.palette[hidden] { display: none; }
.palette__box { width: min(620px, calc(100% - 28px)); border: 1px solid var(--line-2); border-radius: 18px; background: #0b1120; box-shadow: 0 40px 120px -20px #000; overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.palette input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); outline: 0; color: var(--text); font-size: 15px; padding: 18px 20px; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; font-size: 14px; }
.palette__list li { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.palette__list li small { color: var(--dim); }
.palette__list li[aria-selected="true"] { background: rgba(124,248,196,.09); color: var(--text); }
.palette__list li[aria-selected="true"]::before { content: "›"; color: var(--acc); margin-right: 8px; }
.palette__foot { margin: 0; padding: 10px 18px; font-size: 11px; color: var(--dim); border-top: 1px solid var(--line); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 300; background: var(--acc); color: #04110b; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.cert.reveal.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__hud { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__ctx, .kbd-btn { display: none; }
  .section { width: calc(100% - 32px); padding-top: 100px; }
  .cases { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cert { padding: 18px; } .cert h3 { font-size: 17px; } .cert__glyph { font-size: 44px; }
  .commit { grid-template-columns: 28px 1fr; gap: 8px; }
  .commit__body { padding: 18px; }
  .window__body { font-size: 12px; min-height: 0; }
  .uptime { grid-template-columns: repeat(45, 1fr); }
  .uptime i:nth-child(n+46) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

