/* Palette matches the radar viewer (kmtx-radar/viewer/index.html). */
:root {
  --ink: #0b0e13;
  --panel: #141922;
  --line: #232a36;
  --text: #dfe5ee;
  --dim: #8b96a8;
  --accent: #5b9ce0;
  --accent-hi: #79b0ec;
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hi); }
a:hover { color: #a5cbf5; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: .95rem;
}
.site-header nav a:hover { color: var(--text); }

/* Layout */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { scroll-margin-top: 16px; }

/* Hero */
.hero { padding: clamp(48px, 10vw, 112px) 0 clamp(40px, 7vw, 72px); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lede {
  max-width: 52ch;
  margin: 20px 0 28px;
  color: var(--dim);
  font-size: 1.1rem;
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s;
}
.button:hover { background: var(--accent-hi); color: var(--ink); }

/* Tools grid */
.tools { padding-bottom: 56px; }
h2 {
  margin: 0 0 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0 0 20px; color: var(--dim); font-size: .95rem; flex: 1; }
.card-link { color: var(--accent-hi); font-weight: 600; font-size: .95rem; }
a.card:hover .card-link { color: #a5cbf5; }

.badge {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: .75rem;
  letter-spacing: .03em;
}

/* Inert until the tool is live: remove "is-soon" from the card to activate it. */
.card.is-soon { cursor: default; pointer-events: none; }
.card.is-soon:hover { border-color: var(--line); transform: none; }
.card.is-soon .card-link { display: none; }

.card-placeholder {
  background: transparent;
  border-style: dashed;
}
.card-placeholder .card-icon { color: var(--dim); }

/* About */
.about { padding-bottom: 72px; max-width: 68ch; }
.about p { margin: 0; color: var(--dim); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button { transition: none; }
}
