/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2026 Fredrik Hammarström */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg:        #07080c;
  --bg-2:      #0a0c11;
  --surface:   #0e131d;
  --surface-2: #121a29;
  --raised:    #161f31;
  --border:    #1d2740;
  --border-2:  #283457;
  --line:      rgba(108, 140, 255, 0.10);

  --text:   #e9edf8;
  --muted:  #9aa6c4;
  --faint:  #69748f;

  --accent:    #8fb6ff;
  --accent-2:  #6c8cff;
  --accent-3:  #4f6bff;
  --accent-ink:#070b16;

  --live:  #5be59b;
  --wait:  #ffc46b;
  --err:   #ff7a85;

  --display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --sans:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --ring: 0 0 0 1px var(--border);
  --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.85);
  --glow: 0 0 60px -10px rgba(108, 140, 255, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────────────────────── Reset ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Layered command-center backdrop: blueprint grid + glow + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(108, 140, 255, 0.16), transparent 60%),
    radial-gradient(720px 540px at 8% 4%, rgba(79, 107, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #0a0d15 0%, var(--bg) 38%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.7;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(143, 182, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ───────────────────────── Layout ───────────────────────── */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(91, 229, 155, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.section-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.78rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-btn);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(108, 140, 255, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 42px -12px rgba(108, 140, 255, 0.85); border-color: transparent; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 10, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 10, 16, 0.88); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--ring); }
.brand .z { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s var(--ease); position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.nav .btn { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
.nav-burger { display: none; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.35rem);
  margin: 1.25rem 0 1.4rem;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent) 10%, #c7d6ff 50%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.78rem; color: var(--faint);
  letter-spacing: 0.03em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta b { color: var(--muted); font-weight: 500; }

/* App window mockup */
.mock {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.mock:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.mock-bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.mock-bar .lights { display: flex; gap: 0.45rem; }
.mock-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar .lights i:nth-child(1) { background: #ff5f57; }
.mock-bar .lights i:nth-child(2) { background: #febc2e; }
.mock-bar .lights i:nth-child(3) { background: #28c840; }
.mock-bar .title { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-inline: auto; }
.mock-body { display: grid; grid-template-columns: 38% 62%; min-height: 318px; }

.mock-side { border-right: 1px solid var(--border); padding: 0.85rem 0.7rem; background: rgba(0,0,0,0.18); }
.mock-side .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); padding: 0 0.4rem 0.5rem; }
.proj { display: flex; align-items: center; gap: 0.5rem; padding: 0.34rem 0.45rem; border-radius: 7px; font-size: 0.78rem; color: var(--muted); }
.proj.active { background: rgba(108, 140, 255, 0.13); color: var(--text); }
.proj .pdot { width: 8px; height: 8px; border-radius: 2.5px; flex: none; }
.proj .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj .badge { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; padding: 0.05rem 0.34rem; border-radius: 5px; background: rgba(255,196,107,0.14); color: var(--wait); flex: none; }
.proj .sdot { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; flex: none; }
.proj .sdot.work { background: var(--live); box-shadow: 0 0 0 3px rgba(91,229,155,0.16); animation: pulse 1.8s infinite; }
.proj .sdot.wait { background: var(--wait); }

.mock-main { display: flex; flex-direction: column; }
.mock-tabs { display: flex; gap: 0.2rem; padding: 0.55rem 0.7rem 0; border-bottom: 1px solid var(--border); }
.mock-tabs span { font-family: var(--mono); font-size: 0.71rem; color: var(--faint); padding: 0.32rem 0.6rem; border-radius: 7px 7px 0 0; }
.mock-tabs span.on { color: var(--accent); background: rgba(108,140,255,0.10); }
.term { font-family: var(--mono); font-size: 0.77rem; line-height: 1.85; padding: 0.9rem 1rem; flex: 1; color: #cdd6ee; }
.term .pmt { color: var(--accent); }
.term .path { color: var(--live); }
.term .dim { color: var(--faint); }
.term .ok { color: var(--live); }
.term .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-card {
  position: absolute; right: -10px; bottom: -14px;
  background: var(--raised); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 0.6rem 0.75rem;
  box-shadow: var(--shadow);
  font-size: 0.72rem; max-width: 200px;
  display: flex; gap: 0.55rem; align-items: flex-start;
}
.float-card .pin { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(180deg,var(--accent),var(--accent-2)); display: grid; place-items: center; flex: none; }
.float-card .pin svg { width: 13px; height: 13px; color: var(--accent-ink); }
.float-card b { display: block; font-size: 0.74rem; color: var(--text); font-weight: 600; }
.float-card span { color: var(--faint); font-family: var(--mono); font-size: 0.64rem; }

/* ───────────────────────── Logo strip / "why" ───────────────────────── */
.why { position: relative; }
.why-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(108,140,255,0.05), transparent);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.why-card .big { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.18; }
.why-card .big em { font-style: normal; color: var(--accent); }
.why-card p { color: var(--muted); }
.why-card p + p { margin-top: 0.9rem; }

/* ───────────────────────── Bento features ───────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card {
  position: relative;
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 1.5rem 1.5rem 1.6rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px 220px at var(--mx, 80%) -10%, rgba(108,140,255,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 60px -34px rgba(0,0,0,0.9); }
.card:hover::after { opacity: 1; }
.card.wide { grid-column: span 3; }
.card.feature { grid-column: span 3; }
.card .idx { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); letter-spacing: 0.18em; }
.card .ic {
  width: 42px; height: 42px; border-radius: 11px; margin: 0.9rem 0 1.05rem;
  display: grid; place-items: center;
  background: rgba(108,140,255,0.10);
  border: 1px solid rgba(108,140,255,0.22);
  color: var(--accent);
}
.card .ic svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card p .kbd-inline, .card p code { font-family: var(--mono); font-size: 0.84em; color: var(--accent); background: rgba(108,140,255,0.10); padding: 0.05em 0.4em; border-radius: 5px; }

/* ───────────────────────── Shortcuts band ───────────────────────── */
.keys { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; }
.keyrow { display: flex; align-items: center; gap: 0.7rem; }
.keyrow .label { color: var(--muted); font-size: 0.9rem; }
kbd {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 0.28rem 0.55rem;
  min-width: 1.8rem; text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

/* ───────────────────────── Code / terminal panels ───────────────────────── */
.code {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.code-bar .lights i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.32rem; }
.code-bar .lights i:nth-child(1){ background:#ff5f57 } .code-bar .lights i:nth-child(2){ background:#febc2e } .code-bar .lights i:nth-child(3){ background:#28c840 }
.code-bar .fn { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-left: 0.3rem; }
pre { margin: 0; overflow-x: auto; }
.code pre { padding: 1.1rem 1.2rem; }
code, pre { font-family: var(--mono); font-size: 0.86rem; line-height: 1.75; }
.code .cmt { color: var(--faint); }
.code .pmt { color: var(--accent); }
.code .flag { color: var(--accent); }
.code .str { color: var(--live); }

/* copy-able command rows */
.cmdlist { display: flex; flex-direction: column; }
.cmdrow {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem 0.7rem 1.2rem;
  font-family: var(--mono); font-size: 0.84rem;
}
.cmdrow + .cmdrow { border-top: 1px solid var(--border); }
.cmdrow .pmt { color: var(--accent); flex: none; }
.cmdrow .txt { color: #cdd6ee; overflow-x: auto; white-space: nowrap; flex: 1; }
.cmdrow .txt .cmt { color: var(--faint); }
.copy {
  flex: none; margin-left: auto;
  font-family: var(--mono); font-size: 0.68rem;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--muted); border-radius: 6px; padding: 0.28rem 0.55rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.copy:hover { color: var(--text); border-color: var(--accent-2); }
.copy.done { color: var(--live); border-color: var(--live); }

/* ───────────────────────── Stack chips ───────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.42rem 0.95rem; background: var(--surface);
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--accent); border-color: var(--border-2); transform: translateY(-2px); }

/* ───────────────────────── CTA band ───────────────────────── */
.cta {
  text-align: center;
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(108,140,255,0.22), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.cta p { color: var(--muted); max-width: 50ch; margin: 1rem auto 0; }
.cta .hero-cta { justify-content: center; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 4rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer .brand { margin-bottom: 0.9rem; }
.footer .tag { color: var(--faint); font-size: 0.9rem; max-width: 34ch; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; font-weight: 500; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.22rem 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-base { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--faint); font-size: 0.84rem; font-family: var(--mono); }

/* ───────────────────────── Reveal animation ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: rise 0.85s var(--ease) both; opacity: 1; transform: none; }
.hero .reveal { opacity: 0; }
.hero .reveal.go { animation: rise 0.85s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── Docs page ───────────────────────── */
.docs-layout { display: grid; grid-template-columns: 232px 1fr; gap: 3rem; align-items: start; padding-top: 2.5rem; }
.docs-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 0.5rem; }
.docs-nav .grp { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 1.4rem 0 0.55rem; }
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a { display: block; color: var(--muted); font-size: 0.88rem; padding: 0.3rem 0.75rem; border-left: 2px solid var(--border); transition: all 0.2s var(--ease); }
.docs-nav a:hover { color: var(--text); border-left-color: var(--border-2); }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(108,140,255,0.06); }
.docs-main { min-width: 0; max-width: 760px; padding-bottom: 5rem; }
.docs-main h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.docs-main .sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.docs-sec { padding-top: 2.4rem; scroll-margin-top: 90px; }
.docs-sec h2 { font-size: 1.7rem; margin-bottom: 0.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.docs-sec h3 { font-size: 1.18rem; margin: 1.8rem 0 0.6rem; color: var(--text); }
.docs-sec p { color: var(--muted); margin: 0.9rem 0; }
.docs-sec ul { color: var(--muted); margin: 0.9rem 0; padding-left: 1.2rem; }
.docs-sec li { margin: 0.5rem 0; }
.docs-sec li::marker { color: var(--accent-2); }
.docs-sec a.link { color: var(--accent); border-bottom: 1px solid rgba(143,182,255,0.3); }
.docs-sec a.link:hover { border-bottom-color: var(--accent); }
.docs-sec strong { color: var(--text); font-weight: 600; }
.docs-sec code:not(pre code) { font-family: var(--mono); font-size: 0.85em; color: var(--accent); background: rgba(108,140,255,0.10); padding: 0.08em 0.42em; border-radius: 5px; }
.docs-sec .code, .docs-sec .table-wrap { margin: 1.3rem 0; }

.callout {
  display: flex; gap: 0.85rem;
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(108,140,255,0.06);
  padding: 1rem 1.2rem; margin: 1.4rem 0;
  font-size: 0.94rem; color: var(--muted);
}
.callout svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.callout strong { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: 0.84em; color: var(--accent); }
td kbd { font-size: 0.74rem; }

.feature-list { display: grid; gap: 1rem; margin: 1.4rem 0; }
.feature-list .fl {
  border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem;
  background: var(--surface);
}
.feature-list .fl h3 { margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.55rem; }
.feature-list .fl h3 .ic { width: 28px; height: 28px; border-radius: 8px; margin: 0; }
.feature-list .fl h3 .ic svg { width: 15px; height: 15px; }
.feature-list .fl p { margin: 0; font-size: 0.92rem; }

.diagram {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--muted); white-space: pre;
}
.diagram b { color: var(--accent); font-weight: 500; }

/* "new" badge on feature-card headings */
.tag-new {
  font-family: var(--mono); font-size: 0.56em; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--live); vertical-align: middle;
  border: 1px solid rgba(91, 229, 155, 0.4);
  border-radius: 5px; padding: 0.12em 0.4em;
  background: rgba(91, 229, 155, 0.10);
}

/* ───────────────────────── Themes showcase (Total Commander skin) ───────────────────────── */
.themes-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

/* The faux app window, wearing the Total Commander skin */
.tcwin {
  font-family: Tahoma, Geneva, Verdana, "MS Sans Serif", sans-serif;
  background: #c0c0c0;
  color: #000;
  border: 2px solid; border-color: #fff #808080 #606060 #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4), var(--shadow);
  display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.35;
}
.tcwin-bar {
  display: flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(180deg, #000084, #0000a8);
  color: #fff; padding: 3px 4px 3px 6px;
  font-weight: 700; font-size: 11px;
}
.tcwin-bar .tcwin-ico { width: 13px; height: 13px; flex: none; background: #c0c0c0; border: 1px solid; border-color: #fff #606060 #606060 #fff; }
.tcwin-bar .tcwin-title { margin-right: auto; letter-spacing: 0.01em; }
.tcwin-bar .tcwin-btns { display: flex; gap: 2px; }
.tcwin-bar .tcwin-btns i {
  width: 16px; height: 14px; font-style: normal; font-weight: 700; font-size: 9px;
  background: #c0c0c0; color: #000; display: grid; place-items: center;
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
}
.tcwin-body { padding: 4px; display: flex; flex-direction: column; gap: 5px; }

/* tab strip */
.tc-tabs { display: flex; gap: 3px; }
.tc-tab {
  padding: 4px 11px; font-size: 11px; font-weight: 600;
  background: #c0c0c0; color: #000;
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
}
.tc-tab.on { background: #000080; color: #fff; border-color: #000080; }

/* board */
.tc-board { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.tc-board::-webkit-scrollbar { height: 14px; }
.tc-board::-webkit-scrollbar-track { background: #808080; }
.tc-board::-webkit-scrollbar-thumb { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.tc-col {
  flex: 0 0 150px; display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.tc-col-head {
  display: flex; align-items: center; gap: 6px;
  background: #c0c0c0; padding: 3px 5px;
  border-bottom: 2px solid; border-color: transparent #808080 #808080 transparent;
  box-shadow: inset 1px 1px 0 #fff;
  font-weight: 700; font-size: 11px;
}
.tc-col-head .tc-count {
  margin-left: auto; background: #a0a0a0; color: #000;
  padding: 0 5px; font-size: 10px; font-weight: 700;
  border: 1px solid; border-color: #808080 #fff #fff #808080;
}
.tc-col-head .tc-x { color: #404040; font-weight: 700; font-size: 10px; }
.tc-col-body { padding: 5px; display: flex; flex-direction: column; gap: 5px; flex: 1; }

.tc-card {
  background: #c0c0c0; padding: 5px 6px 6px 9px;
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
  box-shadow: inset 3px 0 0 var(--stripe, #808080);
}
.tc-card.feature { --stripe: #007000; }
.tc-card.task    { --stripe: #0000c0; }
.tc-card.idea    { --stripe: #806000; }
.tc-card.bug     { --stripe: #c00000; }
.tc-card-type { font-size: 9.5px; font-weight: 700; color: var(--stripe, #404040); text-transform: uppercase; letter-spacing: 0.04em; }
.tc-card-title { font-size: 11.5px; font-weight: 600; margin-top: 2px; line-height: 1.25; }
.tc-card-meta { font-size: 10px; color: #606060; margin-top: 3px; }

.tc-empty { font-size: 11px; color: #808080; font-style: italic; padding: 6px 4px 2px; }
.tc-add { font-size: 11px; color: #000080; font-weight: 600; padding: 4px; }

/* function-key bar */
.tc-fkbar { display: flex; gap: 3px; border-top: 2px solid #fff; padding-top: 4px; }
.tc-fkey {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: #c0c0c0; color: #000; padding: 3px 4px; font-size: 11px; min-width: 0;
  border: 2px solid; border-color: #fff #808080 #808080 #fff;
}
.tc-fkey b { font-weight: 700; }
.tc-fkey span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the theme picker, also wearing the skin */
.tc-settings {
  font-family: Tahoma, Geneva, Verdana, "MS Sans Serif", sans-serif;
  background: #c0c0c0; color: #000;
  border: 2px solid; border-color: #fff #808080 #606060 #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}
.tc-set-bar { background: linear-gradient(180deg, #000084, #0000a8); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 7px; }
.tc-set-body { padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.tc-set-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #404040; }
.tc-opt {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff; padding: 8px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.tc-opt.on { background: #000080; color: #fff; border-color: #000080; }
.tc-opt.on .tc-opt-desc { color: #c8d0ff; }
.tc-swatch { flex: none; width: 30px; height: 30px; display: flex; border: 1px solid #404040; }
.tc-swatch i { flex: 1; display: block; }
.tc-opt-main { display: flex; flex-direction: column; min-width: 0; }
.tc-opt-name { font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.tc-opt-desc { font-size: 10.5px; color: #404040; margin-top: 3px; line-height: 1.4; }
.tc-check { font-weight: 700; }

.themes-cap { margin-top: 1.3rem; color: var(--faint); font-family: var(--mono); font-size: 0.82rem; max-width: 70ch; }

@media (max-width: 860px) {
  .themes-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 540px; margin-top: 1rem; }
  .mock:hover { transform: none; }
  .why-card { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide, .card.feature { grid-column: span 1; }
  .card.feature:first-of-type { grid-column: span 2; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.feature:first-of-type { grid-column: span 1; }
  .hero p.lede { max-width: none; }
  .footer-cols { gap: 2rem; }
}
