/* Code Janitor site — paper-light design system, cyan prism accent */
:root {
  --paper: #fafaf7;
  --card: #f2efe9;
  --card-2: #f4f2ec;
  --line: #e6e3da;
  --line-strong: #d0ccc0;
  --ink: #0b1e3e;
  --ink-2: #4f5b73;
  --ink-3: #6a7287;
  --accent: #0891b2;
  --accent-deep: #0e7490;
  --accent-soft: #22d3ee;
  --amber: #b45309;
  --night: #0e1117;
  --night-2: #151a23;
  --night-line: #ffffff1a;
  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: #0891b233; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fafaf7d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 13px; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; transition: all .2s; }
.lang-switch:hover { color: var(--ink); border-color: var(--ink-3); }
.gh-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 7px 16px; transition: transform .2s, box-shadow .2s; }
.gh-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #0b1e3e33; }
.gh-btn svg { width: 16px; height: 16px; }

/* hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%23d0ccc0' stroke-width='1'%3E%3Cpath d='M28 1.5 54 16.5v30L28 61.5 2 46.5v-30z'/%3E%3Cpath d='M28 61.5 54 76.5v30L28 121.5 2 106.5v-30z' transform='translate(0 -24)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--accent); }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6.4vw, 76px); font-weight: 600; line-height: 1.14; letter-spacing: -.02em; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: linear-gradient(90deg, #22d3ee40, #0891b226); z-index: -1; border-radius: 3px; }
.hero .lede { margin-top: 26px; max-width: 640px; font-size: 17.5px; color: var(--ink-2); }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; border-radius: 12px; padding: 13px 26px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px #0891b23d; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff8; }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 16px; align-items: baseline; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.step code { font-family: var(--font-mono); font-size: .86em; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }

/* sections */
section { padding: 96px 0; }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.sec-head .sub { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow-sm::before { content: ""; width: 20px; height: 1.5px; background: var(--accent); }

/* hero visual */
.prism-frame { border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: var(--night); box-shadow: 0 30px 80px -30px #0b1e3e59, 0 4px 16px #0b1e3e14; }
.prism-frame img { display: block; width: 100%; }
.prism-note { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* two objectives */
.obj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.obj { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s; }
.obj:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px #0b1e3e2e; }
.obj .tag { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--accent); background: #0891b212; border: 1px solid #0891b226; border-radius: 8px; padding: 3px 10px; margin-bottom: 16px; }
.obj h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.obj p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.obj .scope { margin-top: 18px; font-size: 13.5px; }
.obj .scope b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.obj .scope .yes, .obj .scope .no { margin-bottom: 4px; padding-left: 20px; position: relative; }
.obj .scope .yes::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.obj .scope .no::before { content: "×"; position: absolute; left: 2px; color: #b4530999; font-weight: 700; }

/* trace grid */
.trace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trace { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s, background .25s, box-shadow .25s; }
.trace:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 20px 44px -18px #0b1e3e2e; }
.trace .k { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); display: block; margin-bottom: 10px; }
.trace h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.trace p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* proof record (dark) */
.dark { background: var(--night); color: #e6e3da; }
.dark .eyebrow-sm { color: var(--accent-soft); }
.dark .eyebrow-sm::before { background: var(--accent-soft); }
.dark .sec-head h2 { color: #fafaf7; }
.dark .sec-head .sub { color: #e6e3da99; }
.proof-box { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px; overflow: hidden; }
.proof-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--night-line); }
.proof-head span { font-family: var(--font-mono); font-size: 12.5px; color: #6a7287; }
.proof-box pre { padding: 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2; overflow-x: auto; color: #e6e3dab3; }
.proof-box .f { color: var(--accent-soft); font-weight: 600; }
.dark-quote { margin-top: 32px; font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 25px); color: #fafaf7; line-height: 1.55; max-width: 34em; }
.dark-quote i { font-style: normal; color: var(--accent-soft); }

/* caution chips */
.caut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.caut { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.caut h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.caut h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.caut p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.caut-note { margin-top: 26px; font-size: 15px; color: var(--ink-2); max-width: 660px; }

/* validation stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-align: left; }
.stat .n { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.stat .l { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.val-note { margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.val-note a { color: var(--accent); font-weight: 600; }

/* usage prompts */
.prompt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prompt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.prompt .label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.prompt p { font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* install */
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.inst { background: var(--night); border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.inst .name { color: #fafaf7; font-weight: 600; font-size: 14px; min-width: 118px; }
.inst code { flex: 1; font-family: var(--font-mono); font-size: 12px; color: #e6e3dab3; overflow-x: auto; white-space: nowrap; }
.inst code .p { color: #ffb27a; }
.inst button { font-family: var(--font-mono); font-size: 11.5px; color: #e6e3dab3; background: #ffffff10; border: 1px solid var(--night-line); border-radius: 7px; padding: 4px 12px; cursor: pointer; transition: all .2s; flex: none; }
.inst button:hover { background: #ffffff1e; color: #fff; }
.install-req { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); }
.install-req code { font-family: var(--font-mono); font-size: .88em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--ink-2); }
.foot-links a:hover { color: var(--accent); }
.foot-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps, .obj-grid, .trace-grid, .caut-grid, .stat-grid, .prompt-grid, .install-grid { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .hero { padding: 64px 0 52px; }
}
