/* Index — Visual System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0A0A0B;
  --bg-elevated: #111113;
  --surface: #161618;
  --surface-2: #1C1C1F;
  --line: #2A2A2E;
  --line-soft: #222225;
  --text: #F4F4F5;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --accent: #5EEAD4;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --accent-border: rgba(94, 234, 212, 0.25);
  --warn: #FBBF24;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  font-size: 0.84rem;
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-accent {
  background: var(--accent);
  color: #0A0A0B;
}

.btn-accent:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--text-3);
  background: var(--surface);
}

/* Command panel */
.cmd-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cmd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.cmd-panel-body {
  padding: 8px 0;
}

.cmd-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  transition: background var(--ease);
}

.cmd-row:hover { background: var(--surface-2); }

.cmd-name {
  color: var(--accent);
  min-width: 7.5rem;
  flex-shrink: 0;
}

.cmd-desc {
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 0.82rem;
}

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

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-2);
  max-width: 48ch;
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cap-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--ease);
}

.cap-item:last-child { border-bottom: none; }
.cap-item:hover { background: var(--surface); }

@media (max-width: 600px) {
  .cap-item { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.15rem 1.2rem; }
}

.cap-key {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  padding-top: 2px;
}

.cap-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.cap-body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* CTA */
.cta-band {
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color var(--ease);
}

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

.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

/* Legal pages */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.legal-head .section-label { margin-bottom: 0.6rem; }

.legal-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.legal-body h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin: 2rem 0 0.65rem;
  letter-spacing: 0.02em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  color: var(--text-2);
  font-size: 0.94rem;
  margin-bottom: 0.7rem;
  line-height: 1.65;
}

.legal-body ul {
  padding-left: 1.15rem;
  margin-bottom: 0.9rem;
  list-style: disc;
}

.legal-body li { margin-bottom: 0.4rem; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .header-inner { height: auto; padding: 12px 1.1rem; flex-direction: column; gap: 8px; align-items: flex-start; }
  .nav { width: 100%; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
}