/* Novinky — dark editorial design system (public site + /admin).
   Type: Anthropic Sans (UI + headings; Schibsted Grotesk fallback) + Newsreader (long reads, accents) + JetBrains Mono (meta).
   Colour: near-black violet base, violet glow #8b5cf6 shared with Ghost Fibers / Magic Bento / Dither. */

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0a0910;
  --bg-2: #0f0d16;
  --card: #15121e;
  --card-2: #1c1828;
  --raise: #231e32;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-2: rgba(255, 255, 255, 0.045);
  /* text (contrast vs --bg: 17:1 / 9.3:1 / 5.6:1) */
  --text: #f4f2fa;
  --text-2: #b9b3c9;
  --text-3: #8d86a3;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.07);
  /* brand */
  --accent: #8b5cf6;
  --accent-hover: #9b74f8;
  --accent-deep: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --link: #c4b5fd;
  --on-accent: #ffffff;
  --pink: #ec4899;
  --danger: #f87171;
  --ok: #34d399;
  --warn: #fbbf24;
  /* materials */
  --glass: rgba(12, 10, 18, 0.72);
  --glass-strong: rgba(24, 20, 34, 0.86);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --scrim: rgba(4, 3, 8, 0.62);
  /* sections */
  --c-skola: #a78bfa;
  --c-katolicke: #fbbf24;
  --c-vzdelavanie: #34d399;
  /* depth */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-3: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 10px 40px -10px rgba(139, 92, 246, 0.55);
  /* shape + type */
  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  /* Anthropic Sans is Anthropic's own typeface: used wherever it is installed; Schibsted Grotesk (free) stands in elsewhere */
  --font: 'Anthropic Sans', 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-head: 'Anthropic Sans', 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 60px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: transparent; /* html paints --bg; the fixed .canvas-bg sits between the two */
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }

/* ---------------------------------- nav ----------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-blur { top: 100% !important; opacity: 0; transition: opacity 240ms ease; }
.nav.scrolled .nav-blur { opacity: 1; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none !important; flex: none; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, #b794ff 0%, #7c3aed 45%, #3b1a7a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 6px 18px -6px rgba(139, 92, 246, 0.8);
}
.mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 600 1.32rem/1 var(--font-display); letter-spacing: -0.01em; font-style: italic; }
.brand-text small { font: 500 0.68rem/1.3 var(--font-mono); color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 3px; }
.seg-slot { margin: 0 auto; display: flex; justify-content: center; min-width: 0; }
.search { display: flex; align-items: center; flex: none; position: relative; }
.search input {
  width: 0; opacity: 0; padding: 8px 0; border: 0; border-radius: 10px; background: var(--fill); outline: none;
  transition: width 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease, padding 260ms cubic-bezier(.2, .8, .2, 1);
}
.search.open input { width: 220px; opacity: 1; padding: 8px 12px; }
.search input:focus { box-shadow: 0 0 0 1px var(--accent) inset; }
.search input::-webkit-search-cancel-button { display: none; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); flex: none;
  transition: background 150ms ease, color 150ms ease, transform 100ms ease-out;
}
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 19px; height: 19px; }
@media (max-width: 820px) {
  .nav-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand { flex: 1; min-height: 44px; }
  .seg-slot { order: 3; justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 10px; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .seg-slot::-webkit-scrollbar { display: none; }
  .search.open input { width: min(50vw, 220px); }
}

/* --------------------------------- buttons -------------------------------- */
/* Primary = bright and crisp (one per view). Secondary = dark glass with a hairline. Accent = violet (AI actions).
   Every button gets a cursor-following sheen (--mx/--my set by common.js) and an arrow that nudges on hover. */

.btn {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #f4f2fa; color: #0b0912; font: 600 0.9rem/1 var(--font); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px -14px rgba(196, 181, 253, 0.7);
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
  cursor: pointer; touch-action: manipulation;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 220ms ease;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.28), transparent 65%); }
.btn:hover { background: #ffffff; transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.5), 0 16px 40px -14px rgba(196, 181, 253, 0.85); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 60ms; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arr { transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover .arr-down { transform: translateY(2px); }
.btn kbd, .kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 600 0.68rem/1 var(--font-mono); background: rgba(10, 9, 16, 0.08); box-shadow: inset 0 0 0 1px rgba(10, 9, 16, 0.14); color: inherit; opacity: 0.75; }
.btn.secondary { background: rgba(255, 255, 255, 0.045); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.secondary::after { background: radial-gradient(140px circle at var(--mx) var(--my), rgba(196, 181, 253, 0.18), transparent 65%); }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 30px -16px rgba(0, 0, 0, 0.9); }
.btn.secondary kbd, .btn.accent kbd, .btn.star-border kbd { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.btn.accent { background: linear-gradient(180deg, #9a72fa 0%, #7c3aed 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(139, 92, 246, 0.9); }
.btn.accent::after { background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.3), transparent 65%); }
.btn.accent:hover { background: linear-gradient(180deg, #a985fb 0%, #8b5cf6 100%); }
.btn.ghost { background: transparent; color: var(--text-2); padding: 0 10px; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: none; }
.btn.ghost::after, .btn.danger::after { display: none; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: rgba(248, 113, 113, 0.1); box-shadow: none; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 0.82rem; border-radius: 8px; }
.btn.big { min-height: 48px; padding: 0 22px; font-size: 0.98rem; border-radius: 12px; }
.btn.star-border { background: rgba(14, 11, 22, 0.75); color: var(--text); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.9); overflow: visible; }
.btn.star-border::after { display: none; }
.btn.star-border:hover { background: rgba(26, 20, 40, 0.85); }
.magnet { vertical-align: middle; }

/* ⌘K trigger in the nav */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: 10px; min-width: 200px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); color: var(--text-3); font-size: 0.85rem; text-align: left;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.cmdk-trigger:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: var(--text-2); }
.cmdk-trigger svg { width: 16px; height: 16px; flex: none; }
.cmdk-trigger span { flex: 1; }
.cmdk-trigger kbd { font: 600 0.66rem/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--text-3); }
@media (max-width: 820px) { .cmdk-trigger { min-width: 0; width: 40px; height: 40px; padding: 0; justify-content: center; } .cmdk-trigger span, .cmdk-trigger kbd { display: none; } }

/* ---------------------------------- hero ---------------------------------- */

.hero { position: relative; isolation: isolate; padding: clamp(64px, 11vw, 140px) 0 clamp(36px, 6vw, 64px); }
.hero--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 6px 8px 6px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none !important;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 0.8rem/1 var(--font); transition: box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}
.pill-link:hover { color: var(--text); background: rgba(139, 92, 246, 0.12); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45); }
.pill-link .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill-link .pill-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.14); }
.pill-link .pill-go { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pill-link .pill-go svg { width: 13px; height: 13px; transition: transform 200ms ease; }
.pill-link:hover .pill-go svg { transform: translateX(2px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(139, 92, 246, 0.12); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--link); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.display { font: 600 clamp(3rem, 8.4vw, 6.6rem)/0.94 var(--font-head); letter-spacing: -0.048em; margin: 0; max-width: 13ch; text-wrap: balance; }
.hero--center .display { margin: 0 auto; }
.display .blur-text__piece { display: inline-block; }
.hero--center .display .blur-text__piece:last-of-type { font: italic 400 1.04em/0.9 var(--font-display); letter-spacing: -0.03em; padding-right: 0.08em; color: transparent; background: linear-gradient(100deg, #efe7ff 0%, #b79cff 45%, #f472b6 100%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--text-2); margin: 24px 0 0; max-width: 48ch; text-wrap: balance; }
.hero--center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0; margin: 52px auto 0; padding: 0; border-radius: 16px; background: rgba(12, 10, 18, 0.55); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text-3); font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-stats span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 30px; }
.hero-stats span + span { box-shadow: inset 1px 0 0 var(--line-2); }
.hero-stats b { font: 600 2rem/1 var(--font-head); color: var(--text); letter-spacing: -0.03em; text-transform: none; }
@media (max-width: 520px) { .hero-stats span { padding: 14px 16px; } .hero-stats b { font-size: 1.6rem; } }

/* numbered section labels */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: clamp(56px, 9vw, 112px) 0 22px; }
.section-head h2 { font: 600 clamp(1.9rem, 4vw, 3rem)/1.02 var(--font-head); letter-spacing: -0.04em; margin: 0; }
.section-head h2 em { font: italic 400 1.06em var(--font-display); letter-spacing: -0.02em; color: var(--link); }
.section-head p { margin: 0; color: var(--text-3); font: 500 0.74rem/1.2 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.section-label b { color: var(--link); font-weight: 600; }
.section-label::after { content: ""; flex: 0 0 48px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* showcase: the latest stories framed like an app window, tilting flat as it scrolls in */
.showcase { position: relative; margin: 8px auto 0; perspective: 1600px; }
.showcase-frame {
  position: relative; border-radius: 22px; padding: 10px; transform-origin: 50% 100%; will-change: transform;
  background: linear-gradient(180deg, rgba(30, 25, 44, 0.75), rgba(14, 11, 22, 0.85)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 120px -30px rgba(139, 92, 246, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.showcase-bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; color: var(--text-3); font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.showcase-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.showcase-bar i:first-child { background: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }
.showcase-bar b { margin-left: 8px; color: var(--text-2); font-weight: 500; }
.showcase-bar span { margin-left: auto; }
.showcase .featured .card { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.showcase::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 80px; background: radial-gradient(50% 50% at 50% 50%, rgba(139, 92, 246, 0.35), transparent); filter: blur(30px); z-index: -1; }

/* how it works: three steps with a travelling packet */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.how-step {
  position: relative; z-index: 1; padding: 22px 22px 24px; border-radius: 20px; min-height: 230px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(28, 24, 40, 0.8), rgba(16, 13, 24, 0.85)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 320ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1);
}
.how-step[data-on] { box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.55), 0 24px 60px -24px rgba(139, 92, 246, 0.6); transform: translateY(-4px); }
.how-step .how-n { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--text-3); }
.how-step .how-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--link); background: rgba(139, 92, 246, 0.12); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3); transition: background 320ms ease, color 320ms ease, box-shadow 320ms ease; margin: 4px 0 8px; }
.how-step[data-on] .how-icon { background: linear-gradient(180deg, #9a72fa, #6d28d9); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.9); }
.how-step .how-icon svg { width: 22px; height: 22px; }
.how-step h3 { margin: 0; font: 600 1.35rem/1.15 var(--font-head); letter-spacing: -0.03em; }
.how-step p { margin: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.how-line { position: absolute; top: 70px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.5), transparent); pointer-events: none; z-index: 2; }
.how-packet { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #e9ddff; box-shadow: 0 0 12px 3px rgba(139, 92, 246, 0.9); animation: packet 7.5s linear infinite; }
@keyframes packet { from { left: 0%; } to { left: 100%; } }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how-line { display: none; } .how-step { min-height: 0; } }

/* sources strip */
.sources-strip { margin-top: clamp(48px, 7vw, 88px); text-align: center; }
.sources-strip p { margin: 0 0 20px; color: var(--text-3); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sources-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.sources-row a { color: var(--text-3); font: 600 1.08rem/1 var(--font-head); letter-spacing: -0.02em; text-decoration: none; transition: color 200ms ease, text-shadow 200ms ease; }
.sources-row a:hover { color: var(--text); text-shadow: 0 0 18px rgba(196, 181, 253, 0.6); }

/* final call to action */
.cta { margin: clamp(64px, 10vw, 128px) 0 0; text-align: center; }
.cta h2 { margin: 0; font: 600 clamp(2.2rem, 5.6vw, 4.2rem)/1 var(--font-head); letter-spacing: -0.045em; text-wrap: balance; }
.cta h2 em { font: italic 400 1.04em var(--font-display); color: var(--link); letter-spacing: -0.02em; }
.cta p { margin: 18px auto 0; color: var(--text-2); max-width: 46ch; }
.cta .hero-actions { margin-top: 28px; }

/* reading progress (article pages) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 45; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8b5cf6, #f472b6); box-shadow: 0 0 10px rgba(139, 92, 246, 0.8); }

/* full-canvas backgrounds (fixed behind everything) */
.canvas-bg { position: fixed !important; inset: 0; z-index: -2; pointer-events: none; }
.canvas-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(130% 100% at 50% 0%, rgba(10, 9, 16, 0) 30%, rgba(10, 9, 16, 0.6) 100%); }
.canvas-veil::after { content: ""; position: absolute; inset: 0; background: #0a0910; opacity: var(--veil, 0); transition: opacity 450ms ease; }

/* --------------------------------- cards ---------------------------------- */

.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.featured .side { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .featured .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .featured .side, .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%); color: var(--text); text-decoration: none !important;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); transition: transform 120ms ease-out, box-shadow 260ms ease;
}
.card:hover { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 24px 50px -24px rgba(139, 92, 246, 0.45); }
.card:active { transform: scale(0.99); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); flex: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2, .8, .2, 1), filter 300ms ease; filter: saturate(0.92); }
.card:hover .card-media img { transform: scale(1.04); filter: saturate(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font: 500 1.42rem/1.15 var(--font-display); letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.card p { margin: 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-3); }
.card.big .card-media { aspect-ratio: 16 / 9; }
.card.big h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.04; letter-spacing: -0.022em; }
.card.big p { font-size: 1.02rem; }
.card.big .card-body { padding: 24px 26px 26px; gap: 10px; }
.card.compact { flex-direction: row; }
.card.compact .card-media { aspect-ratio: auto; width: 40%; }
.card.compact .card-body { padding: 16px 18px; }
.card.compact h3 { font-size: 1.22rem; }
.card.compact p { -webkit-line-clamp: 2; font-size: 0.88rem; }
@media (max-width: 980px) {
  .card.compact { flex-direction: column; }
  .card.compact .card-media { width: auto; aspect-ratio: 16 / 10; }
}
.eyebrow { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c, var(--c-skola)); }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--link); font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.04em; }
.ai-chip svg { width: 10px; height: 10px; }

.cover { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; color: rgba(255, 255, 255, 0.9); }
.cover svg { width: 24%; max-width: 84px; min-width: 38px; height: auto; position: relative; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4)); }
.cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 10px); }
.cover-skola { background: radial-gradient(120% 120% at 0% 0%, #7c3aed 0%, #3b1a7a 50%, #160d2b 100%); }
.cover-katolicke { background: radial-gradient(120% 120% at 0% 0%, #d97706 0%, #78350f 50%, #1f1307 100%); }
.cover-vzdelavanie { background: radial-gradient(120% 120% at 0% 0%, #059669 0%, #064e3b 50%, #04150f 100%); }

.sk { background: var(--fill-2); border-radius: 8px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.card.skeleton .line { height: 14px; margin-top: 8px; }

.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; color: var(--text-2); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--fill-2); color: var(--text-3); box-shadow: 0 0 0 1px var(--line-2) inset; }
.empty .empty-icon svg { width: 30px; height: 30px; }
.empty h3 { font: 400 1.7rem/1.1 var(--font-display); color: var(--text); margin: 0 0 8px; }
.empty p { margin: 0 auto; max-width: 42ch; }
.more { display: flex; justify-content: center; margin: 32px 0 0; }

/* ------------------------------ Monet band (Dither) ------------------------------ */

.monet-band { position: relative; isolation: isolate; overflow: hidden; margin: clamp(48px, 8vw, 96px) 0 0; border-radius: var(--r-xl); min-height: 360px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.monet-band .monet-bg { position: absolute !important; inset: 0; z-index: 0; }
.monet-band::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(18, 15, 23, 0.94) 0%, rgba(18, 15, 23, 0.78) 42%, rgba(18, 15, 23, 0.1) 100%); }
.monet-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 5vw, 56px); max-width: 620px; min-height: 360px; pointer-events: none; }
.monet-inner > * { pointer-events: auto; }
.monet-inner h2 { margin: 0; font: 400 clamp(2.2rem, 5vw, 3.6rem)/1 var(--font-display); letter-spacing: -0.025em; }
.monet-inner h2 em { color: var(--link); }
.monet-inner p { margin: 0; color: var(--text-2); max-width: 44ch; }
.monet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.monet-chips button { border: 0; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px var(--line) inset; color: var(--text); font-size: 0.88rem; transition: background 150ms ease, transform 100ms ease-out; }
.monet-chips button:hover { background: rgba(139, 92, 246, 0.22); }
.monet-chips button:active { transform: scale(0.97); }
@media (max-width: 720px) { .monet-band::after { background: linear-gradient(180deg, rgba(18, 15, 23, 0.55) 0%, rgba(18, 15, 23, 0.92) 55%); } }

/* --------------------------------- article -------------------------------- */

.article { max-width: 780px; margin: 0 auto; padding: 28px 0 40px; }
.article-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(20px, 5vw, 48px); }
.back { display: inline-flex; align-items: center; gap: 4px; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin-left: -6px; padding: 8px; border-radius: 8px; }
.back:hover { color: var(--text); text-decoration: none; background: var(--fill-2); }
.back svg { width: 16px; height: 16px; }
.article-head { margin-bottom: 32px; }
.article-head h1 { font: 400 clamp(2.4rem, 6.4vw, 4.4rem)/1 var(--font-display); letter-spacing: -0.03em; margin: 14px 0 0; text-wrap: balance; }
.lede { font: 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.45 var(--font-display); color: var(--text-2); margin: 20px 0 0; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-3); }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.article-media { margin: 0 calc(-1 * min(var(--gutter), 48px)) 36px; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) { .article-media { margin: 0 0 28px; border-radius: var(--r-m); } }
.prose { font: 400 1.24rem/1.7 var(--font-display); color: #e6e2f0; }
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose > p:first-child::first-letter { float: left; font-size: 3.6em; line-height: 0.82; padding: 0.08em 0.1em 0 0; color: var(--link); font-weight: 500; }
.prose h3 { font: 500 1.6rem/1.2 var(--font-display); letter-spacing: -0.012em; margin: 1.6em 0 0.5em; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1em; border-left: 2px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--text); }
.ai-note { display: flex; gap: 12px; align-items: flex-start; margin: 32px 0 0; padding: 16px 18px; border-radius: var(--r-m); background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25) inset; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.ai-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--link); }
.sources { margin-top: 28px; }
.sources h2, .related h2 { font: 500 0.74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 12px; }
.sources ul { list-style: none; margin: 0; padding: 0; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; }
.sources li + li { border-top: 1px solid var(--line-2); }
.sources a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; }
.sources a:hover { background: var(--fill-2); }
.sources .src-title { flex: 1; min-width: 0; font-size: 0.95rem; }
.sources .src-host { display: block; font: 500 0.72rem/1.4 var(--font-mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.related { margin-top: 56px; }
.article-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); }
.article-actions p { margin: 0; color: var(--text-2); font: 400 1.15rem/1.3 var(--font-display); font-style: italic; }

/* --------------------------------- footer --------------------------------- */

.foot { margin-top: 80px; padding: 48px 0 calc(56px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); color: var(--text-2); font-size: 0.86rem; line-height: 1.6; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04)); }
.foot-brand { font: 400 2.6rem/1 var(--font-display); font-style: italic; letter-spacing: -0.02em; color: var(--text); margin: 0 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.foot p { margin: 0; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-note { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 0.8rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------------------------------- chat ---------------------------------- */

.chat-fab {
  position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 22px 0 16px; border: 0; border-radius: 18px;
  background: rgba(24, 20, 34, 0.82); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 16px 40px -12px rgba(139, 92, 246, 0.55);
  color: var(--text); font-weight: 600; font-size: 0.95rem; transition: transform 100ms ease-out;
}
.chat-fab:active { transform: scale(0.96); }
.chat-fab .spark { width: 22px; height: 22px; color: var(--link); }
.chat-fab .x { display: none; width: 20px; height: 20px; }
.chat-fab[aria-expanded="true"] { padding: 0; width: 54px; justify-content: center; }
.chat-fab[aria-expanded="true"] .spark, .chat-fab[aria-expanded="true"] span { display: none; }
.chat-fab[aria-expanded="true"] .x { display: block; }

.chat {
  position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 59;
  width: min(420px, calc(100vw - 40px)); height: min(640px, calc(100vh - 124px)); display: flex; flex-direction: column; border-radius: 24px;
  background: rgba(17, 14, 25, 0.9); -webkit-backdrop-filter: saturate(160%) blur(28px); backdrop-filter: saturate(160%) blur(28px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-3); transform-origin: calc(100% - 27px) calc(100% + 40px); overflow: hidden; will-change: transform, opacity;
}
.chat-grab { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 16px; touch-action: none; border-bottom: 1px solid var(--line-2); }
.chat-title { display: flex; align-items: center; gap: 11px; }
.chat-title b { display: block; font: 500 1.25rem/1.1 var(--font-display); font-style: italic; }
.chat-title small { display: block; font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.chat-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; background: radial-gradient(120% 120% at 20% 10%, #b794ff 0%, #7c3aed 45%, #3b1a7a 100%); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.8); }
.chat-avatar svg { width: 18px; height: 18px; }
.chat-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 0.94rem; line-height: 1.5; word-wrap: break-word; }
.msg p { margin: 0 0 0.5em; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 0.5em; padding-left: 1.15em; }
.msg h3 { font-size: 1rem; margin: 0.4em 0 0.2em; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; box-shadow: 0 8px 20px -10px rgba(139, 92, 246, 0.8); }
.msg.bot { align-self: flex-start; background: var(--card-2); box-shadow: 0 0 0 1px var(--line-2) inset; border-bottom-left-radius: 6px; }
.msg.bot a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.msg.err { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.msg .bot-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; color: var(--text-2); }
.msg .bot-status:empty { display: none; }
.msg .bot-text:empty { display: none; }
.msg .thought-line { --tl-font: 13px; max-width: 100%; }
.msg .thought-line__steps { padding-left: 1.4em; }
.chat-hello { padding: 10px 2px 4px; }
.chat-hello h3 { font: 400 1.9rem/1.05 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; min-height: 1.1em; }
.chat-hello p { margin: 0 0 16px; color: var(--text-2); font-size: 0.92rem; }
.chat-scrim { position: fixed; inset: 0; z-index: 58; background: var(--scrim); opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .chat { left: 0; right: 0; bottom: -40px; width: 100%; height: calc(min(88vh, calc(100dvh - 32px)) + 40px); padding-bottom: 40px; border-radius: 24px 24px 0 0; transform-origin: 50% 100%; }
  .chat-grab { display: flex; justify-content: center; padding: 8px 0 0; touch-action: none; cursor: grab; }
  .chat-grab span { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
  .chat-head { padding-top: 6px; }
  .chat-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chat-open .chat-fab { opacity: 0; pointer-events: none; }
}

/* ------------------------------ dialogs (alert) ---------------------------- */

.dialog-scrim { position: fixed; inset: 0; z-index: 95; background: var(--scrim); display: grid; place-items: center; padding: 20px; }
.dialog { width: min(360px, 100%); border-radius: 20px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); text-align: center; overflow: hidden; }
.dialog-body { padding: 24px 22px 20px; }
.dialog h3 { margin: 0 0 6px; font: 500 1.3rem/1.2 var(--font-display); }
.dialog p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.dialog-actions button { border: 0; background: none; padding: 14px; font-size: 1rem; color: var(--link); }
.dialog-actions button + button { border-left: 1px solid var(--line-2); font-weight: 600; }
.dialog-actions button.destructive { color: var(--danger); }
.dialog-actions button:active { background: var(--fill-2); }

/* ------------------------------ motion & a11y ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .card:active, .btn:active, .chip:active, .icon-btn:active { transform: none; }
  .card:hover .card-media img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .chat, .chat-fab { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d6d1e3; --text-3: #b3acc6; --line-2: rgba(255, 255, 255, 0.2); }
}

/* ---------------------------- command palette (⌘K) ---------------------------- */

.cmdk-scrim { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: min(14vh, 120px) 16px 16px; background: rgba(4, 3, 8, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; }
.cmdk {
  width: min(640px, 100%); max-height: min(560px, 76vh); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; transform-origin: 50% 0%; will-change: transform, opacity;
  background: rgba(20, 16, 30, 0.92); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(139, 92, 246, 0.6);
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.cmdk-input svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.cmdk-input input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none; font-size: 1.05rem; color: var(--text); }
.cmdk-input input::placeholder { color: var(--text-3); }
.cmdk kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 600 0.66rem/1 var(--font-mono); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--text-3); }
.cmdk-list { flex: 1; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.cmdk-group { margin: 10px 10px 6px; font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.cmdk-empty { margin: 0; padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 0.92rem; }
.cmdk-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--text-2); }
.cmdk-item[aria-selected="true"] { background: rgba(139, 92, 246, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3); }
.cmdk-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); color: var(--link); }
.cmdk-ico svg { width: 16px; height: 16px; }
.cmdk-ico .arr { transform: none !important; }
.cmdk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmdk-text b { font-weight: 500; font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-text small { font-size: 0.78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-keys { display: flex; gap: 4px; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 0.76rem; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .cmdk-foot { display: none; } .cmdk-scrim { padding-top: 12px; } }

/* ------------------------- Linear-inspired home extras ------------------------- */

.nav-link { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 0.86rem; font-weight: 500; text-decoration: none !important; transition: color 150ms ease, background 150ms ease; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-tools { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 820px) { .nav-link { display: none; } }

.how-step::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 60%); }
.how-step:hover::before { opacity: 1; }

.monet-band { background: #120f17; }
.monet-inner .section-label { margin: 0; }
.monet-inner h2 { font: 600 clamp(2.2rem, 5vw, 3.6rem)/1 var(--font-head); letter-spacing: -0.045em; }
.monet-inner h2 em { font: italic 400 1.05em var(--font-display); letter-spacing: -0.02em; }
.monet-chips button { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.monet-chips button:hover { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5) inset; }

.foot { position: relative; background: linear-gradient(180deg, rgba(10, 9, 16, 0.6), rgba(10, 9, 16, 0.94) 40%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 1.3rem/1 var(--font-head); font-style: normal; letter-spacing: -0.03em; margin: 0 0 12px; }
.foot-brand .mark { width: 28px; height: 28px; border-radius: 8px; }
.foot-brand .mark svg { width: 16px; height: 16px; }
.foot-top > div > p { color: var(--text-3); max-width: 30ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 0.8rem; }
.foot-bottom p { max-width: 70ch; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }

.rest-wrap .section-head:first-child { margin-top: clamp(56px, 8vw, 96px); }
.section-head > div { min-width: 0; }
.section-head .btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .how-packet { display: none; } .showcase-frame { transform: none !important; } }
@media (hover: none) { .btn kbd, .cmdk-trigger kbd { display: none; } }
.foot-top .foot-brand { color: var(--text); }
@media (max-width: 520px) { .hero--center .hero-actions { display: grid; width: min(100%, 320px); margin-left: auto; margin-right: auto; } .hero--center .hero-actions .btn { width: 100%; } }

/* ------------------------- React Bits, second batch (glue) ------------------------- */

/* Split Flap board in the showcase bar */
.showcase-bar .flap { margin-left: auto; }
.showcase-bar .split-flap-text { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.02em; }

/* Decrypted Text section labels keep their width while scrambling */
.section-label .dt { display: inline-block; white-space: nowrap; }
.showcase-bar b { white-space: nowrap; }
.article-tilt { margin-bottom: 44px !important; }

/* Scroll Velocity band (full bleed) */
.velocity-band { position: relative; width: 100vw !important; margin: clamp(56px, 9vw, 112px) 0 0 calc(50% - 50vw); padding: 8px 0; color: var(--text); }
.velocity-band .vrow { overflow: hidden; }
.velocity-band .vscroller { display: flex; white-space: nowrap; font: 600 clamp(2.6rem, 7.4vw, 6rem)/1.05 var(--font-head); letter-spacing: -0.045em; will-change: transform; }
.velocity-band .vscroller > span { flex-shrink: 0; }
.velocity-band .vscroller > span > span { color: var(--accent); -webkit-text-fill-color: var(--accent); -webkit-text-stroke: 0; }
.velocity-band .vrow + .vrow .vscroller { color: rgba(196, 181, 253, 0.55); }

/* Scroll Reveal statement */
.statement { max-width: 980px; margin: clamp(64px, 10vw, 128px) auto 0; text-align: left; }
.statement .scroll-reveal { margin: 0; }
.statement .scroll-reveal-text { font: 600 clamp(1.75rem, 4.2vw, 3.3rem)/1.14 var(--font-head); letter-spacing: -0.035em; color: var(--text); }

/* Logo Loop sources */
.sources-strip .logoloop { margin-top: 4px; color: var(--text-3); }
.src-logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem/1 var(--font-head); letter-spacing: -0.02em; white-space: nowrap; }
.src-logo svg { width: 18px; height: 18px; color: var(--link); opacity: 0.8; }
.sources-strip .logoloop__item:hover .logoloop__content { color: var(--text); text-shadow: 0 0 18px rgba(196, 181, 253, 0.6); }

/* Rotating word in the CTA */
.cta h2 em.rot { display: inline-flex; vertical-align: bottom; overflow: hidden; padding: 0 0.06em 0.12em; margin-bottom: -0.12em; }
.cta h2 em.rot .text-rotate { display: inline-flex; flex-wrap: nowrap; }
.cta h2 em.rot .text-rotate-element { font: inherit; }

/* Glare Hover hosts */
.glare-hover-host { isolation: isolate; }
.glare-hover-host .glare-hover__glare { border-radius: var(--gh-br, inherit); overflow: hidden; }

/* Orb above Monet's greeting */
.chat-hello .hello-orb { width: 112px; height: 112px; margin: 2px auto 4px; border-radius: 50%; }
.chat-hello h3 { text-align: center; }
.chat-hello > p { text-align: center; }

/* Tilted Card article cover */
.article-tilt { margin: 0 calc(-1 * min(var(--gutter), 48px)) 36px; }
.article-tilt .tilted-card__body { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
.article-tilt .tilted-card__shadow { width: 100% !important; height: 100% !important; }
.article-tilt .article-media { margin: 0; width: 100%; height: 100%; border-radius: inherit; box-shadow: none; }
.article-tilt .tilted-card__face { box-shadow: 0 0 0 1px var(--line-2); }
@media (max-width: 780px) { .article-tilt { margin: 0 0 28px; } }

/* 404 with Fuzzy Text */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.not-found .fuzzy { display: flex; justify-content: center; margin-bottom: 8px; }
.not-found .fuzzy canvas { max-width: 100%; }
.not-found h1 { margin: 0; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--font-head); letter-spacing: -0.035em; }
.not-found p { margin: 12px auto 26px; color: var(--text-2); max-width: 44ch; }

/* Variable Proximity footer wordmark */
.foot-word { margin: 36px 0 -0.12em; font-size: clamp(4.6rem, 21vw, 17rem); line-height: 0.82; letter-spacing: -0.05em; color: #262035; user-select: none; white-space: nowrap; overflow: hidden; }
.foot-word.variable-proximity { font-family: 'Roboto Flex', var(--font-head); }

/* ------------------------------ Monet chat, React Bits ------------------------------ */

.chat.border-glow-card { position: fixed; display: flex; flex-direction: column; border: 0; overflow: visible; background: rgba(17, 14, 25, 0.94); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); }
.chat > .chat-veil { position: absolute; width: auto; height: auto; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: 0.85; }
.chat > .chat-veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 14, 25, 0.35), rgba(17, 14, 25, 0.75) 70%); }
.chat > .chat-head, .chat > .chat-body, .chat > .chat-grab { position: relative; z-index: 1; }
.chat-head { border-bottom-color: rgba(255, 255, 255, 0.06); }
.chat-title b { display: inline-flex !important; align-items: center; gap: 7px; }
.monet-status { display: inline-flex; font-style: normal; }
.chat-compose { position: relative; z-index: 3; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.chat .prompt-bar { width: 100%; font-family: var(--font); }
.chat .prompt-bar__field { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: box-shadow 200ms ease; }
.chat .prompt-bar__field:focus-within { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.55), 0 0 0 4px rgba(139, 92, 246, 0.12); }
.chat .prompt-bar__input { font-size: 15px; }
.chat .prompt-bar__row-icon svg { width: 15px; height: 15px; }
.chat .prompt-bar .sling-button { margin-left: 6px; }
.chat .prompt-bar .sling-button__icon .prompt-bar__glyph { width: 15px; height: 15px; }
.chat .msg.bot.electric-border { overflow: visible; }
.chat-hello { padding-top: 4px; }
.chat-hello h3 { min-height: 1.15em; }
.chat-hello > p b { color: var(--link); font-family: var(--font-mono); }
#helloList { margin-top: 12px; }
.chat .animated-list {
  width: 100%;
  --al-tile: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)) !important;
  --al-tile-edge: rgba(255, 255, 255, 0.07) !important;
  --al-well: rgba(139, 92, 246, 0.16) !important;
  --al-ink: #f4f2fa !important;
  --al-muted: rgba(244, 242, 250, 0.55) !important;
}
.chat .animated-list__lead { color: var(--link); width: 32px; height: 32px; }
.chat .animated-list__lead svg { width: 17px; height: 17px; }
.chat .animated-list__title { font-size: 14px; font-weight: 600; }

.chat .chat-log { overflow-x: hidden; }
