/* QuietWatt — dark theme (2026 redesign) */
:root {
  --bg: #0a0a0b;
  --surface: #141518;
  --surface-2: #1b1d21;
  --ink: #f3f3f1;
  --muted: #a3a6ad;
  --line: #2a2c31;
  --accent: #f5b83d;
  --accent-soft: rgba(245,184,61,.12);
  --warn: #e9cf8f;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --max: 1080px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero / page intro */
.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0; }

/* Cards / sections */
section { padding: 1.75rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.note {
  background: #faf6eb;
  border: 1px solid #e8dfc8;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--warn);
  margin: 1rem 0;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}
th, td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f0efeb;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr.hidden { display: none; }
td.model { font-weight: 600; }
td.model a { color: var(--ink); text-decoration: none; }
td.model a:hover { color: var(--accent); text-decoration: underline; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* Runtime grid */
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.runtime-card h3 { margin-top: 0; }
.runtime-card .est {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.runtime-card .meta { font-size: 0.85rem; color: var(--muted); }

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
}
.cta:hover { filter: brightness(1.08); }
.cta.secondary {
  background: var(--surface);
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

/* Hub page */
.page-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.page-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-list .title { font-weight: 600; margin: 0 0 0.25rem; }
.page-list .desc { font-size: 0.9rem; color: var(--muted); margin: 0; }
.status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status.live { color: var(--accent); }
.status.planned { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.disclosure { margin-top: 0.75rem; max-width: 70ch; }


/* Related guides + footer nav (SEO internal links) */
.related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list a { color: var(--accent); text-decoration: none; font-size: 0.95rem; }
.related-list a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.85rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }

/* Sources */
.sources { font-size: 0.85rem; color: var(--muted); }
.sources ul { padding-left: 1.1rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 1.75rem; }
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .page-list li { flex-direction: column; }
}


/* ===== Dark redesign overrides ===== */
body { -webkit-font-smoothing: antialiased; line-height: 1.65; }
::selection { background: var(--accent); color: #000; }
.site-header { background: rgba(10,10,11,.85); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { flex-direction: row; }
.logo { font-size: 1.25rem; font-weight: 800; }
.logo::before { content: "⚡"; color: var(--accent); margin-right: .3rem; }
.nav { gap: .35rem 1.4rem; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }
h1, h2, h3 { color: #fff; }
h1 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 1.55rem; font-weight: 750; }
h2::before { content: ""; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: .7rem; }
.hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.hero .eyebrow { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(245,184,61,.35); }
.lede { color: #c9cbd0; font-size: 1.12rem; }
.hero-home { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0 3rem; border-bottom: none; }
.hero-img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(245,184,61,.12), 0 10px 30px rgba(0,0,0,.6); }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.2rem 0 .2rem; font-size: .9rem; color: var(--muted); }
.trust li { margin: 0; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .4rem; }
.all-guides { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1.1rem; margin: .5rem 0 1rem; }
.all-guides summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.guide-index { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .8rem; font-size: .85rem; max-height: 320px; overflow-y: auto; }
.guide-index a { color: var(--muted); text-decoration: none; }
.guide-index a:hover { color: var(--accent); }
section + section { border-top: 1px solid var(--line); }
.card, .page-list li, .table-wrap { background: var(--surface); border-color: var(--line); }
.card { padding: 1.4rem 1.5rem; }
.page-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.page-list li { margin: 0; flex-direction: column; transition: border-color .15s, transform .15s; }
.page-list li:hover { border-color: rgba(245,184,61,.55); transform: translateY(-2px); }
.page-list .title a { color: #fff; text-decoration: none; }
.page-list .title a:hover { color: var(--accent); }
.status.live { color: var(--accent); background: var(--accent-soft); padding: .15rem .5rem; border-radius: 999px; }
.note { background: rgba(245,184,61,.07); border-color: rgba(245,184,61,.3); color: var(--warn); }
th { background: var(--surface-2); color: #d5d7db; position: sticky; top: 0; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
tbody tr:hover td { background: rgba(245,184,61,.05); }
td.model a { color: #fff; }
.badge { background: var(--accent-soft); color: var(--accent); }
.filter-btn { background: var(--surface); color: var(--muted); border-color: var(--line); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }
.cta { background: var(--accent); color: #111 !important; border-radius: 999px; padding: .7rem 1.3rem; }
.cta.secondary { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
.runtime-card .est { color: var(--accent); }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }
.site-footer { background: #060607; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2.5rem; }
.site-footer strong { color: #fff; }
.disclosure { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: .8rem 1rem; color: #c9cbd0; }
.related-list a, .footer-nav a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .hero-home { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
}
@media (max-width: 640px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .nav { gap: .3rem 1rem; font-size: .88rem; }
  .page-list { grid-template-columns: 1fr; }
}

.hero-meta { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
@media (max-width: 640px) { .hero-home { padding: 1.5rem 0 2rem; } h1 { font-size: 2rem; } .hero-home .cta-row { margin-bottom: 0; } }
