:root {
  color-scheme: dark;
  --bg: #0d100e;
  --panel: #151a16;
  --line: #334036;
  --text: #f2f4e9;
  --muted: #aeb8aa;
  --green: #67d990;
  --amber: #d5b567;
  --red: #e16f64;
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(103, 217, 144, 0.08), transparent 360px),
    radial-gradient(circle at 50% -20%, rgba(213, 181, 103, 0.08), transparent 360px),
    var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(236, 229, 212, 0.1);
  background: rgba(13, 16, 14, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
}

.brand small,
.lab-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lab-label {
  color: var(--amber);
  font-weight: 800;
}

.hero,
.principles,
.footer {
  width: min(var(--max), calc(100vw - 36px));
  margin: 24px auto 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(236, 229, 212, 0.12);
  border-radius: var(--radius);
  background: rgba(21, 26, 22, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: 46px;
}

h2 {
  font-size: 22px;
}

.lead {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.lead.secondary {
  color: #d6dccd;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badges span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(213, 181, 103, 0.35);
  border-radius: 999px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.radar-panel {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 340px;
  padding: 22px;
  border: 1px solid rgba(103, 217, 144, 0.2);
  border-radius: var(--radius);
  background: #0f1511;
}

.radar-scope {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(103, 217, 144, 0.5);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 31px, rgba(103, 217, 144, 0.22) 32px 33px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(103, 217, 144, 0.24) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(103, 217, 144, 0.24) 50%, transparent calc(50% + 1px)),
    #09100b;
}

.radar-scope::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(103, 217, 144, 0.5), rgba(103, 217, 144, 0.08) 42deg, transparent 70deg);
  transform-origin: center;
  animation: sweep 6s linear infinite;
}

.radar-dot {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(213, 181, 103, 0.72);
}

.dot-a {
  left: 60%;
  top: 31%;
}

.dot-b {
  left: 34%;
  top: 58%;
}

.dot-c {
  left: 70%;
  top: 72%;
  background: var(--red);
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-readout {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.principles article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(236, 229, 212, 0.12);
  border-radius: var(--radius);
  background: rgba(21, 26, 22, 0.78);
}

.principles p {
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero,
  .principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .principles,
  .footer {
    width: min(100vw - 24px, var(--max));
    margin-top: 16px;
  }

  .hero {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-scope::after {
    animation: none;
  }
}

