:root {
  --teal: #0f7c80;
  --teal-hover: #0c6a6e;
  --teal-deep: #0b2f35;
  --teal-soft: #e3f1f1;
  --clay: #c8683a;
  --green: #2f7d4f;
  --green-soft: #e0f0e6;
  --amber: #a8660f;
  --amber-soft: #fbf0dd;
  --red: #b23a48;
  --red-soft: #f7e3e6;
  --navy: #1e3a5f;
  --bg: #f2f5f4;
  --surface: #ffffff;
  --surface-alt: #f7f9f8;
  --line: #e1e7e5;
  --ink: #1b2a2d;
  --muted: #5b6b6e;
  --faint: #8c9b9d;
  --shadow: 0 1px 2px rgba(11, 47, 53, .05), 0 6px 18px rgba(11, 47, 53, .04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #3fb0b3;
    --teal-hover: #5cc3c5;
    --teal-soft: #173e43;
    --green: #6cc28f;
    --green-soft: #173a28;
    --amber: #e3a95a;
    --amber-soft: #3b2e17;
    --red: #e7808c;
    --red-soft: #41212a;
    --navy: #9ab8e0;
    --bg: #0f1a1c;
    --surface: #152326;
    --surface-alt: #1a2b2e;
    --line: #26393c;
    --ink: #e4eeed;
    --muted: #9fb3b3;
    --faint: #748a8b;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { color: var(--teal); }
code { font: 13px Consolas, Menlo, monospace; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, #0b2f35 0%, #0e4a52 65%, #0f7c80 100%);
  color: #fff;
  padding-bottom: 72px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand strong { display: block; letter-spacing: 2px; font-size: 16px; }
.brand small { display: block; color: #9fc9c8; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #cfe7e5; background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 99px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9fc9c8; }
.status.ok i { background: #6ee0a6; box-shadow: 0 0 0 3px rgba(110, 224, 166, .25); }
.status.down i { background: #ff8a95; }

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 32px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 18px; }
.lead { color: #bfdcdb; font-size: 16px; max-width: 560px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.button.primary { background: #fff; color: #0b2f35; }
.button.primary:hover { background: #e3f1f1; }
.button.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.button.ghost:hover { background: rgba(255, 255, 255, .08); }

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.layers li { display: grid; grid-template-columns: 96px 1fr; align-items: center; font-size: 12px; color: #dcebea; }
.layers li::after { content: ""; height: 14px; border-radius: 7px; }
.layers .site::after { width: 90%; background: #5b8c3a; }
.layers .structure::after { width: 78%; background: #6c8db8; }
.layers .skin::after { width: 66%; background: #3fb0b3; }
.layers .services::after { width: 54%; background: #d07a2b; }
.layers .space::after { width: 42%; background: #8f71d1; }
.layers .stuff::after { width: 30%; background: #d35e6c; }
.layers .social::after { width: 20%; background: #c99a2e; }

/* ---------------------------------------------------------------- cards */
main { margin-top: -44px; display: grid; gap: 22px; padding-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.section-head h2 { margin: 0 0 6px; font-size: 22px; }
.section-head p { margin: 0 0 18px; color: var(--muted); max-width: 760px; }

/* ---------------------------------------------------------------- verifier */
.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  border: 2px dashed var(--line); border-radius: 14px; padding: 34px 16px; cursor: pointer;
  background: var(--surface-alt); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--teal); background: var(--teal-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); position: relative; }
.drop-icon::before { content: ""; position: absolute; inset: 11px 13px; border: 2px solid var(--teal); border-radius: 4px 4px 10px 10px; }
.drop-title { font-weight: 600; font-size: 16px; }
.drop-sub { color: var(--muted); font-size: 13px; }

.result { margin-top: 20px; display: grid; gap: 14px; }
.verdict { border-radius: 14px; padding: 18px 20px; border: 1px solid; }
.verdict h3 { margin: 0 0 4px; font-size: 20px; }
.verdict p { margin: 0; }
.verdict.valid { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.verdict.invalid { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.verdict.warn { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.verdict.busy { background: var(--surface-alt); border-color: var(--line); color: var(--muted); }
.verdict .file { font-size: 12.5px; opacity: .85; margin-top: 4px; }

.facts { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: 13px; margin-top: 12px; color: var(--ink); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-all; }
.mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; }

.note { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.note.good { background: var(--green-soft); color: var(--green); }

.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface-alt); }
.panel h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .6px; color: var(--muted); }
.panel .title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 3px 9px; background: var(--teal-soft); color: var(--teal); }
.chip.green { background: var(--green-soft); color: var(--green); }
.line { font-size: 13px; color: var(--muted); margin: 2px 0; }

.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 120px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar .track { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: var(--teal); }
.bar.circular .fill { background: var(--green); }
.bar b { text-align: right; color: var(--teal); }
.bar.circular b { color: var(--green); }

/* ---------------------------------------------------------------- how it works */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.step span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.step h3 { margin: 10px 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.download { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--surface-alt); }
.download:hover { border-color: var(--teal); }
.download strong { font-size: 15px; }
.download span { font-size: 12.5px; color: var(--muted); }
.download code { font-size: 11px; word-break: break-all; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 13px; padding-top: 8px; padding-bottom: 36px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .how { grid-template-columns: 1fr 1fr; }
  .summary { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-top: 6px; }
}
@media (max-width: 460px) {
  .how { grid-template-columns: 1fr; }
  .status span { display: none; }
}
