:root {
  color-scheme: dark;
  --bg: #0f1315;
  --surface: #171d20;
  --surface-2: #20282b;
  --text: #f7faf9;
  --muted: #aab8b5;
  --border: #3a4848;
  --primary: #5ee0bd;
  --primary-strong: #28b996;
  --accent: #ff8b72;
  --focus: #9df3dc;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: #94eed6; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(15,19,21,.95); backdrop-filter: blur(12px); }
.nav { width: min(calc(100% - 32px), var(--max)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--text); text-decoration: none; font-size: 1.3rem; font-weight: 750; }
.brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); }
.nav-cta, .button, .nav-links .nav-cta { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; background: var(--primary); color: #071411; text-decoration: none; font-weight: 750; transition: background-color .18s ease, transform .18s ease, border-color .18s ease; cursor: pointer; }
.nav-cta:hover, .button:hover, .nav-links .nav-cta:hover { background: #8cebd2; color: #071411; transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: var(--border); color: var(--text); }
.button.secondary:hover { background: var(--surface-2); }
.hero { min-height: 560px; height: 78svh; max-height: 700px; position: relative; display: grid; align-items: center; background-image: linear-gradient(90deg, rgba(8,12,14,.98) 0%, rgba(8,12,14,.88) 40%, rgba(8,12,14,.22) 78%), url("/assets/krispplus-workspace.png"); background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.hero-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 70px 0; }
.hero-copy { max-width: 610px; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.15rem; }
.hero p { max-width: 570px; margin: 20px 0 26px; color: #d8e1df; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.release-meta { min-height: 26px; margin-top: 16px; color: var(--muted); font-size: .93rem; }
.band { padding: 76px 0; border-bottom: 1px solid var(--border); }
.band.alt { background: var(--surface); }
.inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { padding-top: 18px; border-top: 2px solid var(--primary); }
.feature p { color: var(--muted); }
.product-view { margin: 0; }
.product-view img { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.product-view figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.download-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 48px; align-items: start; }
.release-details { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 24px; }
.detail-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .87rem; }
.steps { counter-reset: step; display: grid; gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); font-weight: 800; }
.notice { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface-2); color: #e6ecea; }
.article { width: min(calc(100% - 32px), 820px); margin: 0 auto; padding: 72px 0 96px; }
.article header { margin-bottom: 42px; }
.article h1 { font-size: clamp(2.4rem, 7vw, 4.3rem); }
.article h2 { margin-top: 42px; font-size: 1.55rem; }
.article h3 { margin-top: 28px; }
.article p, .article li { color: #d4dddb; }
.article .updated { color: var(--muted); }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article th, .article td { padding: 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.article th { background: var(--surface-2); }
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); }
.site-footer { padding: 34px 0; background: #0a0d0f; }
.footer-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-links a { color: var(--muted); }
.muted { color: var(--muted); }
.error-text { color: #ffb2a2; }

@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 580px; height: 76svh; background-position: 60% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(8,12,14,.3); }
  .hero-inner { position: relative; }
  .feature-grid, .download-panel { grid-template-columns: 1fr; }
  .feature-grid { gap: 24px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav { width: min(calc(100% - 24px), var(--max)); }
  .hero { min-height: 570px; background-image: linear-gradient(180deg, rgba(8,12,14,.98) 0%, rgba(8,12,14,.82) 75%, rgba(8,12,14,.55) 100%), url("/assets/krispplus-workspace.png"); background-position: 44% center; }
  .hero-inner, .inner, .article, .footer-inner { width: min(calc(100% - 24px), var(--max)); }
  .hero-actions .button { width: 100%; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .band { padding: 58px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
