 :root {
  --bg: #08131f;
  --panel: #0f2030;
  --panel-soft: #13283c;
  --text: #eaf3fb;
  --muted: #9eb8cf;
  --line: rgba(169, 207, 235, 0.16);
  --accent: #59d0b4;
  --accent-strong: #2ab7ff;
  --accent-warm: #ffd27d;
  --danger: #ff7e90;
  --shadow: 0 24px 64px rgba(3, 8, 14, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(42, 183, 255, 0.18), transparent 32%),
    radial-gradient(circle at left center, rgba(89, 208, 180, 0.12), transparent 28%),
    linear-gradient(180deg, #08131f 0%, #0b1623 42%, #0a1420 100%);
  color: var(--text);
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 32px; }
.hero-grid, .tool-layout, .result-grid, .text-grid, .footer-grid { display: grid; gap: 24px; }
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: start; }
.tool-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr); align-items: start; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.output-grid { align-items: start; }
.text-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { padding: 24px 0 40px; }
.muted-section { padding-top: 8px; }
.card {
  background: linear-gradient(180deg, rgba(16, 31, 47, 0.94), rgba(10, 21, 33, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card { background: linear-gradient(180deg, rgba(18, 37, 57, 0.96), rgba(12, 25, 39, 0.98)); }
.accent-card { border-color: rgba(89, 208, 180, 0.28); }
.eyebrow, .mini-label, .preset-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}
h1, h2, h3 { margin: 0 0 12px; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 4vw, 4.4rem); max-width: 13ch; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.lead { font-size: 1.05rem; max-width: 64ch; }
.cta-row, .planner-actions, .preset-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #04101a; }
.btn-secondary { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-small { padding: 9px 14px; font-size: 0.92rem; }
.bullet-list { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }
.bullet-list li { margin-bottom: 10px; line-height: 1.58; }
.compact li { margin-bottom: 8px; }
.small-note { font-size: 0.92rem; color: #8ca5bb; }
.no-top { margin-top: 12px; }
.section-heading { margin-bottom: 20px; }
.preset-row { display: grid; gap: 10px; margin-bottom: 18px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.meta-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.top-space { margin-top: 16px; }
label { display: grid; gap: 8px; color: var(--text); font-size: 0.94rem; }
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(169, 207, 235, 0.18);
  background: rgba(4, 14, 23, 0.86);
  color: var(--text);
  font: inherit;
}
input, select { padding: 13px 14px; }
textarea { padding: 14px; resize: vertical; min-height: 170px; line-height: 1.55; }
.result-zone.hidden { display: none; }
.status-pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
}
.status-pill.clean { color: #9cf0d7; border-color: rgba(156,240,215,0.35); }
.status-pill.buffer { color: #8fdbff; border-color: rgba(143,219,255,0.35); }
.status-pill.friction { color: #ffd27d; border-color: rgba(255,210,125,0.35); }
.status-pill.red { color: #ff9eaa; border-color: rgba(255,158,170,0.35); }
.top-gap { margin-top: 18px; }
.metric-list { margin-top: 12px; }
.score-table { display: grid; gap: 10px; }
.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(169, 207, 235, 0.1);
  color: var(--muted);
}
.score-row:last-child { border-bottom: 0; }
.score-row strong { color: var(--text); text-align: right; }
.board-list { display: grid; gap: 14px; }
.board-item {
  padding: 14px 16px;
  border: 1px solid rgba(169, 207, 235, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.board-item strong { display: block; margin-bottom: 6px; }
.table-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.info-card { position: sticky; top: 20px; }
.doc-page { min-height: calc(100vh - 170px); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }
.site-footer { padding: 16px 0 42px; }
.footer-grid { align-items: start; border-top: 1px solid rgba(169, 207, 235, 0.12); padding-top: 20px; }
.footer-grid p { margin-bottom: 8px; }
@media (max-width: 960px) {
  .hero-grid, .tool-layout, .result-grid, .text-grid, .footer-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .field-grid, .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 52px; }
  .shell { width: min(100% - 20px, 1120px); }
  .card { padding: 20px; border-radius: 20px; }
  .field-grid, .meta-grid { grid-template-columns: 1fr; }
  .table-header { flex-direction: column; align-items: flex-start; }
}
