/* Alpha Swarm — agent-facing landing
   Navy / charcoal + amber accent. Desk-as-a-service for agents. */

:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-card: #161d28;
  --border: #243044;
  --border-soft: #1c2636;
  --text: #e8edf5;
  --text-muted: #8b9bb0;
  --text-dim: #5c6b7f;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.14);
  --accent-line: rgba(212, 160, 23, 0.45);
  --ok: #3d9a6a;
  --warn: #c47a2c;
  --danger: #b84a4a;
  --navy: #0e1624;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1080px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 1px;
  display: inline-block;
  align-self: center;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.nav a:hover { color: var(--text); }

.badge-demo {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 160, 23, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hero-meta strong {
  color: var(--text-muted);
  font-weight: 500;
}

.core-strip {
  margin-top: 2.25rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.core-strip-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ticker {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.28rem 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
}

/* —— Sections —— */
section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
}

.prose {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.prose strong { color: var(--text); font-weight: 600; }

/* —— Pillars —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* —— Desk roles —— */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.role {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

.role h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.role p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* —— Overnight clock —— */
.clock {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.clock-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.clock-slot {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.clock-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.clock-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .clock-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* —— Gate —— */
.gate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  counter-reset: gate;
  margin-top: 0.75rem;
}

.gate-step {
  counter-increment: gate;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1rem;
  position: relative;
}

.gate-step::before {
  content: "0" counter(gate);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.45rem;
}

.gate-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.gate-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gate-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
}

.gate-callout strong { color: var(--accent); }

/* —— Demo card —— */
.demo-card {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.demo-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--mono);
}

.demo-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag.paper {
  border-color: var(--text-dim);
  color: var(--text-muted);
}

.tag.high {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.tag.blocked {
  border-color: rgba(184, 74, 74, 0.5);
  color: #d88;
}

/* —— Pricing —— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

.price-amt {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  font-family: var(--mono);
  color: var(--accent);
}

.price-card p:last-child {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-note {
  margin: 1.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* —— Boundaries —— */
.not-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.not-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.75rem 0.95rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.not-list li::before {
  content: "×";
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.not-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Join / CTA —— */
.cta {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}

.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  text-align: left;
}

.cta-box > p:not(.section-label):not(.cta-note) {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.join-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: join;
  display: grid;
  gap: 0.65rem;
}

.join-steps li {
  counter-increment: join;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.join-steps li::before {
  content: "0" counter(join);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.join-steps li strong {
  color: var(--text);
  font-weight: 600;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0f14;
  border-color: var(--accent);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--text-dim);
}

.cta-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-footer strong {
  color: var(--text-muted);
  font-weight: 500;
}
