:root {
  --bg: #0B2027;
  --bg-panel: #123A44;
  --bg-panel-2: #16414C;
  --accent: #4FA37A;
  --coral: #F2704F;
  --text: #EAF2F0;
  --text-muted: #9FC1BC;
  --line: rgba(234, 242, 240, 0.12);
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ambient ripple background ---------- */
.ripple-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.ripple-field svg { width: 100%; height: 100%; }
.ripple {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  animation: ripple-expand 8s ease-out infinite;
}
.ripple:nth-child(2) { animation-delay: 2.6s; stroke: var(--coral); }
.ripple:nth-child(3) { animation-delay: 5.2s; }

@keyframes ripple-expand {
  0%   { r: 20; opacity: 0.5; }
  100% { r: 380; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ripple { animation: none; opacity: 0.08; r: 200; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 32, 39, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crab-icon { object-fit: contain; vertical-align: middle; margin-right: 2px; }
nav.links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
nav.links a { text-decoration: none; transition: color 0.15s; }
nav.links a:hover { color: var(--text); }
@media (max-width: 640px) { nav.links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #16211B;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79, 163, 122, 0.28); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- recap card ---------- */
.recap-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.recap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.recap-result { color: var(--accent); font-family: var(--font-mono); font-size: 0.85rem; }
.recap-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.recap-stat { font-family: var(--font-mono); }
.recap-stat .label { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.recap-stat .value { font-size: 1.05rem; font-weight: 600; }
.recap-divider { height: 1px; background: var(--line); margin: 18px 0; }
.recap-alert {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.recap-alert .tag {
  background: rgba(242, 112, 79, 0.15);
  color: var(--coral);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 72px 0; }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.section-sub { color: var(--text-muted); margin-top: 10px; max-width: 60ch; }

/* ---------- command groups ---------- */
.cmd-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .cmd-groups { grid-template-columns: 1fr; } }

.cmd-group {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.cmd-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.cmd-list { list-style: none; }
.cmd-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.cmd-list li:first-child { border-top: none; }
.cmd-name { font-family: var(--font-mono); color: var(--text); font-size: 0.88rem; }
.cmd-desc { color: var(--text-muted); display: block; margin-top: 2px; }

/* ---------- showcase ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .showcase-grid { grid-template-columns: 1fr; } }

.embed-card {
  background: var(--bg-panel-2);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.embed-card .embed-title { color: var(--accent); font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.embed-card .embed-line { color: var(--text-muted); padding: 3px 0; }
.embed-card .embed-line strong { color: var(--text); font-weight: 500; }

/* ---------- cta strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip .section-sub { margin: 0 auto 28px; }
@media (max-width: 640px) { .cta-strip { padding: 32px 22px; } }

/* ---------- legal pages ---------- */
.legal-page { padding: 64px 0 40px; }
.legal-page .eyebrow { margin-bottom: 14px; }
.legal-page h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.05;
}
.legal-updated {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 14px;
}
.legal-body {
  margin-top: 44px;
  max-width: 72ch;
}
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 14px;
  font-weight: 700;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; color: var(--text-muted); }
.legal-body ul { margin: 0 0 14px 22px; color: var(--text-muted); }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 20px; font-family: var(--font-mono); }
