/* Paradox OS — paradox.conake.com */
:root {
  --bg: #050304;
  --bg2: #0b0607;
  --ink: #e9eef5;
  --ink2: #a9b1bd;
  --dim: #6c6f78;
  --red: #ff2a3a;
  --red2: #b3101d;
  --redglow: rgba(255, 30, 50, .55);
  --cold: #d9f1ff;
  --line: rgba(255, 60, 70, .18);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--mono);
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 700px at 70% -10%, rgba(140, 0, 15, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(90, 0, 10, .18), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--cold); }
a:hover { color: #fff; }
code { font-family: var(--mono); color: var(--cold); background: rgba(255, 255, 255, .06); padding: .05em .35em; border-radius: 3px; font-size: .95em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* CRT overlay: scanlines + vignette + faint flicker */
.crt { pointer-events: none; position: fixed; inset: 0; z-index: 50;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65) 100%);
  animation: flicker 6s steps(1) infinite; }
.noise { pointer-events: none; position: fixed; inset: -60px; z-index: 49; opacity: .07;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(3) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .85; } 48% { opacity: 1; } 83% { opacity: .92; } }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-23px, 17px); } 66% { transform: translate(31px, -11px); } }

/* Header */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(5, 3, 4, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 6px var(--redglow)); }
.brand-t { font-weight: 700; letter-spacing: .18em; font-size: 14px; }
.brand-t i { color: var(--red); font-style: normal; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink2); text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: lowercase; }
.top nav a:hover { color: var(--red); }
.top-cta { font-size: 13px; color: var(--ink); text-decoration: none; border: 1px solid rgba(255, 42, 58, .5); padding: 6px 12px; border-radius: 2px; white-space: nowrap; }
.top-cta:hover { background: rgba(255, 42, 58, .12); color: #fff; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 59px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(16px, 4vw, 56px); max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 40px); }
.sigil-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 20, 40, .28), rgba(255, 20, 40, .06) 45%, transparent 70%);
  filter: blur(18px); animation: breathe 6s ease-in-out infinite; }
.sigil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.s0 { filter: drop-shadow(0 0 14px rgba(255, 20, 40, .45)) drop-shadow(0 0 2px rgba(255, 255, 255, .35)); animation: drift 9s ease-in-out infinite; }
.s1, .s2 { opacity: 0; mix-blend-mode: screen; }
.s1 { filter: hue-rotate(160deg) saturate(3); }
.s2 { filter: grayscale(1) brightness(2.2); }
.tear { position: absolute; left: 0; right: 0; height: 3px; top: 40%; background: rgba(255, 255, 255, .85); opacity: 0; box-shadow: 0 0 10px #fff; }
.sigil-wrap.glitching .s1 { opacity: .55; animation: g1 .42s steps(2) 1; }
.sigil-wrap.glitching .s2 { opacity: .5; animation: g2 .42s steps(3) 1; }
.sigil-wrap.glitching .s0 { animation: shake .42s steps(4) 1; }
.sigil-wrap.glitching .tear { animation: tear .42s steps(3) 1; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes g1 { 0% { clip-path: inset(10% 0 70% 0); transform: translate(-10px, 0); } 50% { clip-path: inset(55% 0 25% 0); transform: translate(8px, 0); } 100% { clip-path: inset(80% 0 5% 0); transform: translate(-4px, 0); } }
@keyframes g2 { 0% { clip-path: inset(35% 0 52% 0); transform: translate(12px, 0); } 50% { clip-path: inset(68% 0 20% 0); transform: translate(-14px, 0); } 100% { clip-path: inset(20% 0 74% 0); transform: translate(6px, 0); } }
@keyframes shake { 0% { transform: translate(2px, 0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(1px, -1px); opacity: .7; } 75% { transform: translate(-1px, 0); } }
@keyframes tear { 0% { top: 22%; opacity: .7; } 50% { top: 61%; opacity: .4; } 100% { top: 78%; opacity: 0; } }

.dead-px { position: absolute; inset: 0; pointer-events: none; }
.dead-px i { position: absolute; width: 4px; height: 4px; background: var(--red); box-shadow: 0 0 6px var(--red); opacity: .7; animation: px 4.3s steps(1) infinite; }
.dead-px i:nth-child(1) { left: 8%; top: 18%; }
.dead-px i:nth-child(2) { left: 92%; top: 26%; background: #fff; box-shadow: 0 0 6px #fff; animation-delay: -1.2s; }
.dead-px i:nth-child(3) { left: 48%; top: 8%; width: 8px; animation-delay: -2.5s; }
.dead-px i:nth-child(4) { left: 61%; top: 88%; background: var(--cold); animation-delay: -.6s; }
.dead-px i:nth-child(5) { left: 3%; top: 72%; height: 8px; animation-delay: -3.1s; }
.dead-px i:nth-child(6) { left: 85%; top: 66%; animation-delay: -1.9s; }
.dead-px i:nth-child(7) { left: 30%; top: 94%; width: 12px; height: 2px; background: #fff; animation-delay: -2.2s; }
@keyframes px { 0%, 100% { opacity: .7; } 12% { opacity: 0; } 14% { opacity: .9; } 60% { opacity: .15; } 62% { opacity: .7; } }

.kicker { color: var(--red); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1, h2, h3 { font-family: var(--mono); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(44px, 8.2vw, 104px); font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 0 18px rgba(255, 40, 60, .35); }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; }
.glitch::before { color: var(--red); }
.glitch::after { color: var(--cold); }
.glitch.on::before { opacity: .85; animation: gt1 .35s steps(2) 1; }
.glitch.on::after { opacity: .7; animation: gt2 .35s steps(2) 1; }
@keyframes gt1 { 0% { clip-path: inset(0 0 60% 0); transform: translate(-4px, 0); } 100% { clip-path: inset(50% 0 10% 0); transform: translate(3px, 0); } }
@keyframes gt2 { 0% { clip-path: inset(60% 0 0 0); transform: translate(4px, 0); } 100% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 0); } }
.tagline { font-size: clamp(17px, 2vw, 22px); color: var(--ink); margin: 18px 0 0; line-height: 1.45; }
.tagline span { color: var(--ink2); font-size: .85em; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 6px 12px; border: 1px solid rgba(255, 42, 58, .55);
  color: #ffd6da; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 20, 40, .08); }
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red); animation: blink 1.6s steps(1) infinite; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 20px; text-decoration: none; font-size: 15px; letter-spacing: .04em; border-radius: 2px; transition: background .2s, box-shadow .2s; }
.btn-red { background: var(--red2); color: #fff; border: 1px solid var(--red); box-shadow: 0 0 18px rgba(255, 30, 50, .35); }
.btn-red:hover { background: var(--red); color: #fff; box-shadow: 0 0 28px rgba(255, 30, 50, .6); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(217, 241, 255, .35); }
.btn-ghost:hover { border-color: var(--cold); color: #fff; background: rgba(217, 241, 255, .06); }
.fine { margin: 22px 0 0; color: var(--dim); font-size: 12.5px; letter-spacing: .04em; }

/* Sections */
.sec { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); }
.eyebrow { color: var(--red); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 750; color: #fff; letter-spacing: -.01em; }
.lead { max-width: 760px; color: var(--ink2); font-size: clamp(15px, 1.6vw, 17.5px); margin: 18px 0 0; }
.lead em { color: #fff; font-style: normal; border-bottom: 1px solid var(--red); }
.grid3, .grid4 { display: grid; gap: 16px; margin-top: 36px; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .08);
  padding: 22px; border-radius: 2px; transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); }
.card:hover { border-color: rgba(255, 42, 58, .4); }
.card h3 { font-size: 18px; color: #fff; margin: 4px 0 10px; }
.card p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.tag { color: var(--red) !important; font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; }
.glyph { font-size: 30px; color: var(--red) !important; line-height: 1; margin-bottom: 10px !important; text-shadow: 0 0 12px var(--redglow); }

/* Kernel status */
.serpent { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .09; }
.serpent path { fill: none; stroke: var(--red); stroke-width: 26; stroke-linecap: round; stroke-dasharray: 3 9; }
.status { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 36px; position: relative; }
.col { border: 1px solid rgba(255, 255, 255, .08); background: rgba(10, 5, 6, .82); padding: 22px; }
.col h3 { font-size: 16px; color: #fff; margin-bottom: 14px; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { position: relative; padding: 7px 0 7px 18px; color: var(--ink2); font-size: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.col li:last-child { border-bottom: 0; }
.col li::before { content: "▸"; position: absolute; left: 0; top: 7px; color: var(--dim); }
.done .st, .done li::before { color: #7dffb0; }
.done { border-color: rgba(125, 255, 176, .2); }
.review .st, .review li::before { color: #ffcf5a; }
.review { border-color: rgba(255, 207, 90, .2); }
.planned .st, .planned li::before { color: var(--red); }
.planned { border-color: rgba(255, 42, 58, .22); }
.more { display: inline-block; margin-top: 14px; font-size: 13.5px; }

/* Terminal */
.term { margin-top: 32px; border: 1px solid rgba(255, 42, 58, .35); background: #030102; box-shadow: 0 0 40px rgba(255, 20, 40, .12), inset 0 0 60px rgba(255, 20, 40, .05); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 42, 58, .25); background: #0a0405; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a1014; border: 1px solid #5a1d24; }
.term-bar span { margin-left: 8px; color: var(--dim); font-size: 12px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; color: #cfd6e0; text-shadow: 0 0 6px rgba(217, 241, 255, .18); min-height: 300px; }
.term-body code { background: none; padding: 0; color: inherit; font-size: inherit; }
.term-body .l { display: inline; white-space: pre; }
.js .term-body .l { visibility: hidden; }
.js .term-body .l.shown { visibility: visible; }
.p { color: var(--red); }
.dim { color: var(--dim); }
.note { color: #5a5d66; }
.real { color: #fff; text-shadow: 0 0 8px rgba(255, 40, 60, .6); }
.real::before { content: "▌"; color: var(--red); margin-left: -14px; padding-right: 2px; }
.term-body { padding-left: 30px; }
.ok { color: #7dffb0; }
.rv { color: #ffcf5a; }
.no { color: var(--red); }
.cur { color: var(--red); animation: blink 1s steps(1) infinite; }
.caption { color: var(--dim); font-size: 13px; margin: 14px 0 0; max-width: 760px; }
.real-k { color: #fff; border-bottom: 2px solid var(--red); }

/* Roadmap */
.road { list-style: none; margin: 36px 0 0; padding: 0 0 0 4px; position: relative; columns: 2; column-gap: 40px; }
.road li { break-inside: avoid; position: relative; display: flex; align-items: baseline; gap: 14px; padding: 11px 0 11px 30px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--ink2); font-size: 15px; }
.road li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--red2), rgba(179, 16, 29, .25)); }
.road li::after { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--red2); transform: rotate(45deg); }
.road b { color: var(--dim); font-weight: 600; font-size: 12.5px; min-width: 22px; }
.road em { margin-left: auto; font-style: normal; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border: 1px solid; white-space: nowrap; }
.road .done { color: #fff; }
.road .done::after { background: #7dffb0; border-color: #7dffb0; }
.road .done em { color: #7dffb0; }
.road .now { color: #fff; }
.road .now::after { background: #ffcf5a; border-color: #ffcf5a; box-shadow: 0 0 12px #ffcf5a; }
.road .now em { color: #ffcf5a; }
.road .end { color: #fff; font-weight: 700; }
.road .end::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 14px var(--red); }

/* FAQ */
.faq { margin-top: 32px; max-width: 860px; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; color: #fff; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; color: var(--red); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--ink2); font-size: 15px; }

.follow { text-align: center; }
.follow .lead { margin-left: auto; margin-right: auto; margin-bottom: 26px; }
.glitch.small { font-size: clamp(26px, 4vw, 44px); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px clamp(16px, 4vw, 40px) 44px; background: #030102; }
.foot-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: center; }
.made { margin: 0; color: var(--ink2); font-size: 15px; }
.wordmark { text-decoration: none; font-weight: 800; letter-spacing: .01em; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wordmark .co { color: #2f7bff; }
.wordmark .nake { color: #fff; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--ink2); font-size: 13.5px; text-decoration: none; }
.foot nav a:hover { color: #fff; }
.copy { grid-column: 1 / -1; margin: 6px 0 0; color: var(--dim); font-size: 12.5px; }

/* Off-screen / paused */
.paused, .paused *, .paused::before, .paused::after { animation-play-state: paused !important; }

/* Responsive */
@media (max-width: 960px) {
  .top nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-top: 28px; }
  .sigil-wrap { max-width: 420px; order: -1; }
  .ctas { justify-content: center; }
  .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status { grid-template-columns: 1fr; }
  .road { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-t { font-size: 12.5px; letter-spacing: .14em; }
  .top { gap: 12px; }
  .top-cta { font-size: 12px; padding: 6px 9px; }
  .sigil-wrap { max-width: 300px; }
  .grid4 { grid-template-columns: 1fr; }
  .term-body { font-size: 11.5px; padding: 14px 12px 18px 24px; }
  .real::before { margin-left: -12px; }
  .term-body .l { white-space: pre-wrap; word-break: break-word; }
  .foot-in { grid-template-columns: 1fr; }
  .road em { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .noise { display: none; }
  .js .term-body .l { visibility: visible; }
}

/* 404 */
.nf { border-top: 0; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.nf-sigil { width: 180px; height: 180px; filter: drop-shadow(0 0 14px rgba(255, 20, 40, .45)); margin-bottom: 18px; }
.nf h1 { font-size: clamp(30px, 6vw, 60px); }
.nf .term { width: min(640px, 100%); text-align: left; }
.nf .term-body { min-height: 0; }
.nf .ctas { justify-content: center; }
