:root {
  --bg0: #0c0f12;
  --bg1: #141a1f;
  --ink: #e8ebe6;
  --muted: #9aa39a;
  --line: rgba(232, 235, 230, 0.12);
  --accent: #c4a574;
  --accent-soft: rgba(196, 165, 116, 0.16);
  --danger: #c97a6a;
  --ok: #7f9f7a;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg0);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(60, 90, 100, 0.22), transparent 50%),
    linear-gradient(165deg, #0c0f12 0%, #12181e 45%, #0a0d10 100%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.08) brightness(1.04); }
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  animation: rise 0.8s ease both;
}
.brand-mark { display: flex; align-items: baseline; gap: 0.75rem; }
.brand {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.byline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.top-actions { display: flex; gap: 1rem; align-items: center; }
.ghost {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.ghost:hover { color: var(--ink); }

main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero {
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  animation: rise 1s 0.1s ease both;
}
.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}
.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.hint {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: #14110c;
}
.btn.primary:hover { background: #d4b888; }
.btn.primary[aria-disabled="true"],
.btn.primary.disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}
.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn.compact { padding: 0.55rem 0.95rem; font-size: 0.85rem; margin-bottom: 0.75rem; }

.panel-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.9s ease both;
}
.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
}
.section-head p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.pill {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(20, 26, 31, 0.65);
}
.pill .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.pill .value { font-weight: 500; }
.pill.ok .value { color: var(--ok); }
.pill.bad .value { color: var(--danger); }

.setup-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: var(--accent-soft);
}
.setup-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
}
.setup-box ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}
.setup-box li { margin-bottom: 0.45rem; }
.setup-box a { color: var(--accent); }
.setup-box code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.1em 0.35em;
}

.twin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .twin { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.sample {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  max-height: 320px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.72);
  color: #cfd6cf;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.truths {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.truths li { margin-bottom: 0.75rem; }
.truths strong { color: var(--ink); font-weight: 500; }
.truths code {
  font-size: 0.85em;
  color: var(--accent);
}

footer {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sep { opacity: 0.5; }
.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
