:root {
  --bg: #f7f7f5;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(17, 17, 17, 0.18);
  --line-strong: rgba(17, 17, 17, 0.85);
  --text: #111111;
  --muted: #525252;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.05), transparent 28%),
    radial-gradient(circle at bottom right, rgba(17, 17, 17, 0.06), transparent 24%),
    var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.section {
  padding: 40px 0 96px;
}

.section-band {
  position: relative;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  border-radius: 36px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  background: rgba(247, 247, 245, 0.84);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-inner,
.footer-inner,
.hero-grid,
.band-grid,
.form-layout,
.legal-grid {
  display: grid;
  gap: 24px;
}

.header-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
}

.brand-copy span {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

.hero {
  padding-top: 54px;
}

.hero-grid,
.band-grid,
.form-layout,
.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.hero-copy,
.hero-panel,
.outline-card,
.dashboard-card,
.form-shell,
.status-panel,
.success-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.hero-copy h1,
.section-heading h2,
.form-intro h2,
.band-grid h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy .lede,
.form-intro p,
.outline-card p,
.mapping-row span,
.success-card p,
.footer-copy,
.status-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.micro-label,
.card-index,
.wizard-header p,
.helper-copy,
.mini-metrics span,
.mapping-row strong,
.consent-banner p,
.brand-copy span {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

.hero-actions,
.hero-pills,
.capability-grid,
.signal-grid,
.mapping-grid,
.mini-metrics,
.wizard-actions,
.footer-links,
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 28px 0 22px;
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-pills li,
.mapping-row,
.mini-metrics div {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.button {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 14px 20px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  background: #111111;
  color: #ffffff;
}

.button-primary:hover:not(:disabled) {
  background: #1e1e1e;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.hero-panel,
.dashboard-card,
.form-shell {
  padding: 24px;
}

.dashboard-card.orbital {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.dashboard-card.orbital::before,
.dashboard-card.orbital::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
}

.dashboard-card.orbital::before {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -80px;
}

.dashboard-card.orbital::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -70px;
}

.signal-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-grid article,
.outline-card {
  padding: 22px;
  position: relative;
}

.signal-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.signal-grid span,
.card-index {
  color: var(--muted);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.outline-card h3,
.signal-grid h2,
.form-shell h3,
.success-card h3 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
}

.form-intro,
.section-heading {
  padding: 12px 0;
}

.status-panel {
  padding: 18px 20px;
  margin: 28px 0 22px;
}

.status-panel.is-ready {
  border-color: rgba(17, 17, 17, 0.3);
}

.status-panel.is-warning {
  border-color: rgba(17, 17, 17, 0.5);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-metrics div {
  border-radius: var(--radius-md);
}

.wizard-header,
.wizard-actions,
.field-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.wizard-header {
  margin-bottom: 20px;
}

.wizard-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.wizard-progress-bar {
  width: 33.333%;
  height: 100%;
  background: #111111;
  border-radius: 999px;
  transition: width 220ms ease;
}

.wizard-step {
  display: grid;
  gap: 18px;
}

.wizard-step[hidden] {
  display: none;
}

.field-row {
  align-items: start;
}

.field-row > * {
  flex: 1;
}

.field {
  display: grid;
  gap: 10px;
}

.field span,
.consent-row span {
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea,
.turnstile-shell,
.upload-zone {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 18px;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 142px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.upload-zone:focus-within {
  border-color: rgba(17, 17, 17, 0.5);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #8a1c1c;
  box-shadow: 0 0 0 4px rgba(138, 28, 28, 0.08);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.upload-zone {
  display: grid;
  gap: 8px;
  min-height: 132px;
  place-items: center;
  text-align: center;
  cursor: pointer;
  border-style: dashed;
}

.upload-zone.is-dragover {
  border-color: rgba(17, 17, 17, 0.55);
  background: rgba(255, 255, 255, 0.95);
}

.upload-list {
  display: grid;
  gap: 10px;
}

.upload-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.upload-progress {
  height: 8px;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress > span {
  display: block;
  height: 100%;
  background: #111111;
  width: 0;
  transition: width 120ms linear;
}

.consent-row {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.consent-row input {
  margin-top: 4px;
}

.turnstile-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.helper-copy,
.form-feedback,
.upload-meta span:last-child {
  color: var(--muted);
}

.form-feedback {
  margin: 0;
  min-height: 1.5em;
}

.form-feedback.is-error {
  color: #8a1c1c;
}

.form-feedback.is-success {
  color: #17521f;
}

.success-card {
  padding: 28px;
}

.site-footer {
  padding: 0 0 64px;
}

.footer-inner {
  grid-template-columns: 1.3fr 1fr;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
}

.footer-links {
  justify-content: flex-end;
  align-content: start;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  z-index: 60;
}

.consent-banner.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .band-grid,
  .form-layout,
  .legal-grid,
  .footer-inner,
  .mini-metrics,
  .signal-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 82px 16px auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .site-nav a {
    border-color: var(--line);
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 28px 0 72px;
  }

  .hero-copy,
  .hero-panel,
  .dashboard-card,
  .form-shell,
  .success-card,
  .footer-inner {
    padding: 20px;
  }

  .hero-copy h1,
  .section-heading h2,
  .form-intro h2,
  .band-grid h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .field-row,
  .wizard-header,
  .consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-pills,
  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .consent-banner {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
