/* KubeEyes site — the app's Ocean palette. Dark first, light via media query. */

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #0d1628;
  --bg-raised: #131f37;
  --bg-sunken: #0a1222;
  --bg-hover: #192842;
  --fg: #e3eaf7;
  --muted: #8e9cb6;
  --border: #22324f;
  --accent: #4d9bff;
  --accent-strong: #1a6fe0;
  --accent-fg: #ffffff;
  --glow: rgb(77 155 255 / 0.18);
  --shadow: 0 24px 60px rgb(0 0 0 / 0.55);
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8fd;
    --bg-raised: #ffffff;
    --bg-sunken: #edf2f9;
    --bg-hover: #e7eef8;
    --fg: #0f1b33;
    --muted: #4f5e77;
    --border: #dbe4f1;
    --accent: #1a6fe0;
    --accent-strong: #1a6fe0;
    --glow: rgb(26 111 224 / 0.12);
    --shadow: 0 24px 60px rgb(14 35 82 / 0.18);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.35em; background: var(--bg-raised); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .eyes { color: var(--accent); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--fg); font: 600 14px/1.2 var(--font); cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; background: var(--bg-hover); }
.btn-primary { background: var(--accent-strong); border-color: transparent; color: var(--accent-fg); }
.btn-primary:hover { background: #2a7cf0; box-shadow: 0 8px 24px rgb(26 111 224 / 0.35); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── Hero ── */
.hero { position: relative; padding: 88px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, var(--glow), transparent 65%);
}
.hero-icon { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 12px 30px rgb(26 111 224 / 0.35)); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 640px; margin: 20px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dl-meta { font-size: 14px; color: var(--muted); }
.dl-meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dl-sha { font-size: 12px; color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.dl-sha code { font-size: 11px; }

/* ── Framed screenshots ── */
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-raised); box-shadow: var(--shadow);
}
.shot-bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--bg-sunken); border-bottom: 1px solid var(--border); }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar span:nth-child(2) { background: #febc2e; }
.shot-bar span:nth-child(3) { background: #28c840; }
.hero .shot { margin-top: 64px; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--accent); font: 600 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Features ── */
/* 8 tiles: 4 → 2 → 1 columns so rows are always full. */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.feature-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 10px; background: var(--glow); color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.gallery figcaption { padding: 14px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.gallery figcaption strong { color: var(--fg); font-weight: 600; }

/* ── Install ── */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--glow); color: var(--accent); font-weight: 700; font-size: 15px;
}
.steps strong { display: block; font-weight: 650; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); min-width: 0; }
.card h3 { font-size: 17px; }
.card > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cmd { display: flex; align-items: stretch; margin-top: 16px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-sunken); overflow: hidden; }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 12px 14px; overflow-x: auto; white-space: pre; font-size: 13px; }
.cmd pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.cmd .copy { flex: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; min-width: 92px; }
.note { margin-top: 20px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-sunken); color: var(--muted); font-size: 14px; }
.note strong { color: var(--fg); }

/* ── Requirements ── */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.reqs li { padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.reqs strong { display: block; font-size: 15px; }
.reqs span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ── Closing CTA ── */
.closing { text-align: center; }
.closing h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.closing .cta { margin-top: 28px; }

/* ── Releases page ── */
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.release { padding: 32px 0 72px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.release + .release { border-top: 1px solid var(--border); }
.release-meta h2 { font-size: 28px; font-weight: 750; }
.release-meta time { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--glow); color: var(--accent); font-size: 12px; font-weight: 600; }
.release-body h3 { font-size: 20px; }
.release-body ul { margin: 16px 0 28px; padding-left: 20px; display: grid; gap: 8px; }
.release-body li::marker { color: var(--accent); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer .brand { font-size: 15px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* ── Small screens ── */
@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero { padding: 56px 0 40px; }
  .hero .shot { margin-top: 40px; }
  .section { padding: 64px 0; }
  .gallery, .install { grid-template-columns: minmax(0, 1fr); }
  .release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .site-footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Download buttons: "Coming soon" until release.js has a file ── */
.dl-off { display: none; }
a[data-release-download][aria-disabled="true"] { cursor: default; opacity: 0.6; pointer-events: none; }
a[data-release-download][aria-disabled="true"] .dl-on { display: none; }
a[data-release-download][aria-disabled="true"] .dl-off { display: inline; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Full-width spotlight shot (e.g. the health charts) at the top of the gallery. */
.gallery .wide { grid-column: 1 / -1; }
