/* Viaiti Huly theme (docs/95) — dark mono-typography design language.
   Tokens per docs/95 §2; all layout from scratch, zero binary assets. */
:root {
  --bg: #090a0c;
  --panel: #111112;
  --panel-2: #16161a;
  --chip: #303236;
  --border-dark: rgba(255, 255, 255, .08);
  --border-soft: rgba(9, 10, 12, .08);
  --text: #f4f5f7;
  --body: #e5e5e7;
  --muted: #9b9da3;
  --accent: #e98463;
  --accent-glow-1: #ffaa81;
  --accent-glow-2: #ffdaa0;
  --accent-2: #bf6afb;
  --lavender: #d5d8f6;
  --band: #f5f5f6;
  --font-body: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 600; color: var(--text);
  letter-spacing: -.04em; line-height: 1.08; margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 4.6vw, 62px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 18px; color: var(--body); max-width: 560px; }
.grad-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--lavender) 80%, #fdf7fe);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  display: inline-block; font-family: var(--font-display); font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border-radius: 9999px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 12px 28px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 36px; font-size: 14px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-glow {
  position: relative; color: #231009; overflow: hidden;
  background:
    radial-gradient(60% 120% at 30% 120%, rgba(255, 218, 160, .9) 0%, rgba(255, 170, 129, .55) 45%, rgba(233, 132, 99, 0) 75%),
    linear-gradient(103.7deg, rgba(188, 155, 143, .16) 30%, rgba(233, 132, 99, .25) 70%, rgba(233, 132, 99, .5) 100%),
    #f3efec;
  border-color: rgba(255, 255, 255, .35);
}
.btn-glow:hover { box-shadow: 0 0 34px rgba(255, 170, 129, .45); }
.btn-light { background: #d1d1d3; color: #0b0d10; }
.btn-light:hover { box-shadow: 0 0 24px rgba(255, 255, 255, .18); }
.btn-ghost { border-color: var(--border-dark); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .22); }
.btn-dark { background: #0b0d10; color: #fff; border-color: rgba(9, 10, 12, .2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid var(--border-dark); border-radius: 9999px;
  font-size: 12.5px; color: var(--body); background: rgba(255, 255, 255, .02);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow-1); }
.price-pill {
  display: inline-flex; padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700;
  background: rgba(233, 132, 99, .14); color: var(--accent-glow-1); border: 1px solid rgba(233, 132, 99, .3);
}
.price-pill.free { background: rgba(191, 106, 251, .12); color: var(--accent-2); border-color: rgba(191, 106, 251, .3); }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 40; padding: 10px 0; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -.03em; }
.brand .mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 15px;
  color: #160b06; background: linear-gradient(140deg, var(--accent-glow-2), var(--accent));
  box-shadow: 0 0 18px rgba(233, 132, 99, .35);
}
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  display: inline-block; padding: 8px 14px; border-radius: 9999px; font-size: 14px; color: var(--body);
}
.site-header nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.header-cta { display: inline-flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-dark); border-radius: 10px; color: var(--text); padding: 8px 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 170px 0 90px; }
.hero::before {
  /* beam: vertical light column landing on the platform panel */
  content: ""; position: absolute; left: 50%; top: -14%; transform: translateX(-58%);
  width: 300px; height: 80%; pointer-events: none;
  background:
    radial-gradient(50% 46% at 50% 90%, rgba(181, 190, 255, .40) 0%, rgba(114, 126, 255, .14) 55%, rgba(114, 126, 255, 0) 100%),
    linear-gradient(180deg, rgba(190, 198, 255, 0) 0%, rgba(196, 203, 255, .16) 38%, rgba(214, 218, 255, .38) 72%, rgba(236, 238, 255, .5) 92%, rgba(255, 255, 255, 0) 100%);
  filter: blur(26px); opacity: .85;
}
.hero::after {
  /* nebula wash */
  content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; pointer-events: none;
  background:
    radial-gradient(40% 60% at 18% 80%, rgba(191, 106, 251, .12) 0%, transparent 60%),
    radial-gradient(46% 60% at 80% 76%, rgba(233, 132, 99, .10) 0%, transparent 62%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: none; font-size: clamp(30px, 3.8vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 38px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--text); }
.hero-stats .stat span { font-size: 13px; color: var(--muted); }

/* platform panel: pure-CSS product mock */
.app-panel {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-dark);
  background: linear-gradient(180deg, #131318, #0d0d10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 70px rgba(150, 160, 255, .12);
  overflow: hidden;
}
.app-panel .bar2 { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-dark); }
.app-panel .bar2 i { width: 9px; height: 9px; border-radius: 50%; background: var(--chip); display: inline-block; }
.app-panel .bar2 .title { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--font-display); }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.app-side { border-right: 1px solid var(--border-dark); padding: 16px 14px; display: grid; gap: 10px; align-content: start; }
.app-side span { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.app-side span.on { background: linear-gradient(90deg, rgba(233, 132, 99, .5), rgba(255, 170, 129, .25)); }
.app-main { padding: 18px; display: grid; gap: 12px; align-content: start; }
.app-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .05);
}
.app-row .st { width: 9px; height: 9px; border-radius: 50%; }
.app-row .st.a { background: var(--accent); box-shadow: 0 0 10px rgba(233, 132, 99, .7); }
.app-row .st.b { background: var(--accent-2); box-shadow: 0 0 10px rgba(191, 106, 251, .6); }
.app-row .st.c { background: #47d18c; box-shadow: 0 0 10px rgba(71, 209, 140, .5); }
.app-row .line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .09); flex: 0 1 200px; }
.app-row .line.w2 { flex-basis: 120px; }
.app-row .tag { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--border-dark); padding: 2px 9px; border-radius: 9999px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head p { color: var(--muted); font-size: 17px; }

/* light band (bento) */
.band {
  background:
    radial-gradient(34% 44% at 12% 20%, rgba(120, 130, 255, .10) 0%, transparent 70%),
    radial-gradient(30% 42% at 88% 30%, rgba(233, 132, 99, .10) 0%, transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(191, 106, 251, .07) 0%, transparent 70%),
    var(--band);
  color: #303236;
}
.band h2, .band h3 { color: #0b0d10; }
.band .kicker { color: #c96a45; }
.band .section-head p { color: #6b6d73; }
.band .lede { color: #4b4d53; }

/* bento grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento .card { grid-column: span 6; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento .card.wide { grid-column: span 7; }
.bento .card.narrow { grid-column: span 5; }
.bento .card {
  border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border-dark);
  padding: 26px; overflow: hidden; position: relative;
}
.bento .card .viz { position: absolute; inset: 0 0 auto 0; height: 62%; }
.bento .card b { color: var(--text); }
.bento .card p { color: var(--muted); margin: 0; font-size: 15px; }
/* bento vizzes (pure CSS) */
.viz-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 22px; }
.viz-calendar i { height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .05); }
.viz-calendar i.hot { background: rgba(233, 132, 99, .28); border-color: rgba(233, 132, 99, .35); box-shadow: 0 0 18px rgba(233, 132, 99, .25); }
.viz-calendar i.alt { background: rgba(191, 106, 251, .2); border-color: rgba(191, 106, 251, .3); }
.viz-ring {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 68%, rgba(255, 255, 255, .08) 68% 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%); mask: radial-gradient(circle, transparent 58%, #000 59%);
  filter: drop-shadow(0 0 18px rgba(233, 132, 99, .35));
}
.viz-ring i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%; background: var(--panel);
  -webkit-mask: none; mask: none;
}
.viz-avatars { position: absolute; inset: 0; display: grid; place-items: center; }
.viz-avatars .row { display: flex; }
.viz-avatars .row i {
  width: 44px; height: 44px; border-radius: 50%; margin-left: -10px;
  border: 2px solid #16161a; background: linear-gradient(140deg, #2a2c33, #1a1b20);
}
.viz-avatars .row i:nth-child(2) { background: linear-gradient(140deg, rgba(233, 132, 99, .75), rgba(255, 170, 129, .45)); }
.viz-avatars .row i:nth-child(3) { background: linear-gradient(140deg, rgba(191, 106, 251, .7), rgba(149, 125, 255, .4)); }
.viz-avatars .row i:nth-child(4) { background: linear-gradient(140deg, rgba(71, 209, 140, .65), rgba(160, 230, 190, .4)); }
.viz-avatars .live {
  position: absolute; bottom: 24%; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--body); background: rgba(0, 0, 0, .55); border: 1px solid var(--border-dark);
  padding: 5px 12px; border-radius: 9999px;
}
.viz-bell {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.viz-bell .core {
  width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(60% 60% at 40% 30%, #23242b, #101014);
  border: 1px solid var(--border-dark);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .02), 0 0 40px rgba(255, 170, 129, .22);
}
.viz-bell .n {
  position: absolute; top: 26%; right: 34%; background: var(--accent); color: #231009;
  font-size: 12px; font-weight: 800; border-radius: 9999px; padding: 2px 8px;
}

/* catalog strip on light band */
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border-dark); padding: 20px; min-height: 210px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.course-card .cover {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #231009;
  background: linear-gradient(140deg, var(--accent-glow-2), var(--accent));
}
.course-card h3 { font-size: 17.5px; margin: 0; color: var(--text); }
.course-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.band .course-card .meta { color: #6b6d73; }

/* feature sections (dark) */
.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.feature-cols .f { border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 26px; background: rgba(255, 255, 255, .015); }
.feature-cols .f .ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-glow-1);
  background: rgba(233, 132, 99, .1); border: 1px solid rgba(233, 132, 99, .25); margin-bottom: 16px;
}
.feature-cols .f p { color: var(--muted); font-size: 15px; margin: 0; }
.stat-rows { display: grid; gap: 14px; margin-top: 40px; }
.stat-row {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 18px 22px;
  background: rgba(255, 255, 255, .015);
}
.stat-row b { font-family: var(--font-display); color: var(--text); font-size: 15px; }
.stat-row span { color: var(--muted); font-size: 14px; }
.stat-row .meter { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; min-width: 120px; }
.stat-row .meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-glow-1)); }

/* editor mock */
.editor-mock { border-radius: var(--radius-lg); border: 1px solid var(--border-dark); background: var(--panel-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.editor-mock .tools { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border-dark); }
.editor-mock .tools i { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .05); }
.editor-mock .doc { padding: 26px 30px; display: grid; gap: 12px; }
.editor-mock .doc .t { height: 14px; width: 42%; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.editor-mock .doc .l { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.editor-mock .doc .l.s { width: 76%; }
.editor-mock .doc .code {
  font-family: var(--font-display); font-size: 12.5px; color: #c8cad1; border-radius: var(--radius-sm);
  background: #0c0c0e; border: 1px solid var(--border-dark); padding: 14px 16px; line-height: 1.7;
}
.editor-mock .doc .code .k { color: #ff4d89; } .editor-mock .doc .code .v { color: #00ca53; } .editor-mock .doc .code .n { color: #ff990a; }

/* CTA band */
.cta { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -46%; transform: translateX(-50%);
  width: 900px; height: 420px; pointer-events: none;
  background:
    radial-gradient(34% 52% at 50% 42%, rgba(255, 218, 160, .18) 0%, rgba(255, 170, 129, .10) 45%, rgba(233, 132, 99, 0) 75%),
    radial-gradient(50% 60% at 50% 50%, rgba(150, 160, 255, .10) 0%, transparent 70%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { max-width: 640px; margin: 0 auto .4em; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; }
.cta .row { display: inline-flex; gap: 14px; }

/* ---------- lists: posts / catalog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  border-radius: var(--radius); border: 1px solid var(--border-dark); background: var(--panel);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 220px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.post-card time { font-size: 12.5px; color: var(--muted); font-family: var(--font-display); }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.post-card .more { margin-top: auto; color: var(--accent-glow-1); font-size: 13.5px; font-weight: 600; }
.band .post-card { background: var(--panel); }
.band .post-card h3 a { color: var(--text); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-chips a {
  padding: 7px 16px; border-radius: 9999px; border: 1px solid var(--border-dark); font-size: 13px; color: var(--body);
}
.cat-chips a:hover { border-color: rgba(233, 132, 99, .5); color: var(--accent-glow-1); }

/* ---------- hero of inner pages ---------- */
.page-hero { position: relative; padding: 170px 0 64px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 620px; height: 300px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 60%, rgba(150, 160, 255, .16) 0%, rgba(191, 106, 251, .07) 50%, transparent 75%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumbs { font-size: 13px; color: var(--muted); font-family: var(--font-display); margin-bottom: 18px; display: block; }
.page-hero h1 { max-width: 820px; }
.page-body { padding: 30px 0 110px; }
.page-narrow { max-width: 760px; }
.prose { color: var(--body); font-size: 16.5px; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--accent-glow-1); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: 4px 0 4px 20px; color: var(--muted); }
.prose img { border-radius: var(--radius-sm); }
.prose code { font-family: var(--font-display); font-size: .9em; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 2px 7px; }
.prose pre { background: #0c0c0e; border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 18px; overflow: auto; }

/* ---------- course detail ---------- */
.course-hero { padding: 170px 0 70px; position: relative; overflow: hidden; }
.course-hero::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 640px; height: 480px; pointer-events: none;
  background: radial-gradient(50% 55% at 60% 50%, rgba(233, 132, 99, .14) 0%, rgba(255, 170, 129, .06) 55%, transparent 75%);
}
.course-hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.course-hero h1 { font-size: clamp(32px, 4vw, 52px); }
.course-meta { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.course-side {
  border-radius: var(--radius-lg); border: 1px solid var(--border-dark); background: var(--panel);
  padding: 26px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.course-side .price { font-family: var(--font-display); font-size: 34px; color: var(--text); margin-bottom: 18px; }
.course-side ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.course-side ul li { display: flex; gap: 10px; align-items: center; }
.course-side ul svg { color: #47d18c; flex: none; }
.course-body { padding: 30px 0 110px; }
.course-body-grid { max-width: 860px; }

/* ---------- shop ---------- */
.product-card { display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); border: 1px solid var(--border-dark); background: var(--panel); padding: 22px; min-height: 190px; transition: transform .18s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card .cover {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #160b06;
  background: linear-gradient(140deg, #e7e4ff, var(--accent-2));
}
.product-card h3 { font-size: 17px; margin: 0; }
.product-card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }

/* ---------- comments ---------- */
.comments { margin-top: 60px; border-top: 1px solid var(--border-dark); padding-top: 34px; }
.comments h2 { font-size: 24px; }
.comment-list { display: grid; gap: 14px; }
.comment { border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(255, 255, 255, .015); }
.comment b { color: var(--text); font-size: 14px; }
.comment p { margin: 6px 0 0; color: var(--body); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-dark); padding: 64px 0 40px; background: #070809; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .about { color: var(--muted); font-size: 14.5px; max-width: 320px; margin-top: 14px; }
.site-footer h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--body); font-size: 14.5px; }
.site-footer ul a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--border-dark); padding-top: 24px; color: var(--muted); font-size: 13px; }

/* ---------- error pages (static; never hydrate) ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 40px 20px; }
.error-page::before {
  content: ""; position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  width: 560px; height: 300px; pointer-events: none;
  background: radial-gradient(46% 56% at 50% 55%, rgba(150, 160, 255, .14) 0%, rgba(191, 106, 251, .06) 50%, transparent 75%);
}
.error-page .code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 170px); font-weight: 700; letter-spacing: -.05em;
  background: linear-gradient(135deg, #fff 30%, var(--lavender) 80%, #fdf7fe);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { color: var(--muted); max-width: 420px; margin: 0 auto 30px; }
.error-page .row { display: inline-flex; gap: 12px; }

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

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .course-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .course-hero .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento .card { grid-column: span 12 !important; }
  .stat-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .site-header nav {
    display: none; position: absolute; top: 62px; left: 16px; right: 16px; z-index: 50;
    background: var(--panel); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 10px;
  }
  .site-header nav.open { display: block; }
  .site-header nav ul { flex-direction: column; gap: 2px; }
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .course-grid, .post-grid, .feature-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}

/* Language switcher (docs/96) — segmented pill, dark theme */
.v-langs{margin-left:8px}
.v-langs ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.v-langs a.v-lang{display:inline-block;padding:4px 10px;border:1px solid var(--border-dark);border-radius:999px;font-size:12px;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-decoration:none}
.v-langs a.v-lang:hover{color:var(--text)}
.v-langs a.v-lang.current{color:var(--accent);border-color:var(--accent);font-weight:700}
