:root {
  --bg: #06101b;
  --bg-deep: #02070f;
  --surface: rgba(10, 18, 30, 0.88);
  --surface-strong: rgba(12, 22, 36, 0.96);
  --surface-soft: rgba(9, 16, 27, 0.78);
  --text: #eef4ff;
  --text-soft: #b4c8dc;
  --text-muted: #8096ae;
  --line: rgba(120, 166, 214, 0.14);
  --line-strong: rgba(120, 166, 214, 0.24);
  --blue: #71c7ff;
  --blue-strong: #2e94e9;
  --gold: #d7a44a;
  --gold-soft: #f1cb79;
  --mint: #7fd7c4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.24);
  --radius: 28px;
  --radius-sm: 20px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 12% 0%, rgba(46, 148, 233, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(127, 215, 196, 0.1), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(215, 164, 74, 0.08), transparent 26%),
    linear-gradient(180deg, #081320 0%, #06101b 44%, #02070f 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.2) 65%, transparent);
}

body::selection {
  background: rgba(113, 199, 255, 0.22);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 5.5rem;
}

img,
svg {
  max-width: 100%;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(113, 199, 255, 0.24);
}

.site-shell,
.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.92rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 16, 27, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand span {
  color: var(--text-muted);
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 0.86rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.nav a:hover,
.nav a:focus-visible,
.brand:hover,
.brand:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(113, 199, 255, 0.08);
  border-color: rgba(113, 199, 255, 0.18);
}

.nav a.nav-home {
  color: var(--text);
  background: rgba(215, 164, 74, 0.1);
  border-color: rgba(215, 164, 74, 0.2);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.92rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--blue-strong) 0%, var(--blue) 55%, #a1d8ff 100%);
  color: #04101a;
  box-shadow: 0 16px 34px rgba(46, 148, 233, 0.34);
}

.button-secondary,
.button-quiet {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button-gold {
  background: linear-gradient(135deg, #b9852f 0%, var(--gold-soft) 100%);
  color: #120d07;
  box-shadow: 0 16px 34px rgba(215, 164, 74, 0.24);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero,
.section-block {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.panel,
.card,
.mini-card,
.step-card,
.deliverable-card,
.list-card,
.contact-card,
.pilot-panel,
.emphasis-card,
.cta-panel,
.hero-stage {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.98), rgba(7, 15, 26, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel::before,
.card::before,
.mini-card::before,
.step-card::before,
.deliverable-card::before,
.list-card::before,
.contact-card::before,
.pilot-panel::before,
.emphasis-card::before,
.cta-panel::before,
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,0.04);
}

.panel,
.card,
.mini-card,
.step-card,
.deliverable-card,
.list-card,
.contact-card,
.pilot-panel,
.emphasis-card,
.cta-panel,
.hero-stage {
  padding: clamp(1.3rem, 2.5vw, 2rem);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(113, 199, 255, 0.16), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(215, 164, 74, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(13, 24, 38, 0.98), rgba(7, 15, 26, 0.96));
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(113, 199, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.hero-copy-block-service::after {
  content: "";
  width: 116px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(113, 199, 255, 0), rgba(113, 199, 255, 0.9), rgba(215, 164, 74, 0.4), rgba(215, 164, 74, 0));
}

.hero-visual-slot {
  position: relative;
  z-index: 1;
  display: grid;
}

.hero-visual-wrap {
  display: grid;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.15rem);
  max-width: 9ch;
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.8rem;
  max-width: 15ch;
}

h3 {
  font-size: 1.24rem;
  margin-bottom: 0.55rem;
}

.lede,
.hero-summary,
.hero-detail,
.panel p,
.panel li,
.card p,
.card li,
.contact-card p,
.form-note,
.footer-shell p {
  color: var(--text-soft);
}

.lede,
.hero-summary {
  font-size: 1.08rem;
  line-height: 1.82;
  max-width: 63ch;
}

.hero-detail {
  font-size: 1rem;
  line-height: 1.76;
  max-width: 44rem;
}

.hero-actions,
.pill-row,
.contact-actions,
.cta-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mini-card-title,
.card-index,
.step-number,
.field-group span,
.metric-value,
.metric-label {
  color: var(--text);
  font-weight: 800;
}

.metric-strip {
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.35rem;
}

.metric-value {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.metric-card p {
  margin: 0;
}

.section-block {
  position: relative;
}

.section-split,
.contact-grid,
.signal-grid,
.fit-grid,
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.5rem;
  align-items: start;
}

.section-sticky {
  position: sticky;
  top: 6.9rem;
  align-self: start;
}

.section-heading {
  margin-bottom: 1.5rem;
  max-width: 50rem;
}

.narrow-copy {
  max-width: 44rem;
}

.card-grid,
.step-grid,
.audit-grid {
  display: grid;
  gap: 1.25rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step-card,
.mini-card,
.deliverable-card,
.list-card,
.audit-item,
.fit-item {
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.card:hover,
.step-card:hover,
.mini-card:hover,
.deliverable-card:hover,
.list-card:hover,
.audit-item:hover,
.fit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 199, 255, 0.24);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

.list-card,
.deliverable-card,
.step-card,
.audit-item,
.fit-item {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.card-index,
.step-number {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.signal-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.signal-map-panel,
.audit-panel,
.fit-panel,
.contact-card,
.cta-panel,
.emphasis-card {
  background:
    radial-gradient(circle at top right, rgba(113, 199, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(12, 22, 36, 0.98), rgba(7, 15, 26, 0.96));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

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

.bullet-list li {
  position: relative;
  padding-left: 1rem;
}

.bullet-list li + li {
  margin-top: 0.72rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-50%);
}

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

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

.process-grid,
.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band {
  padding-top: 1.5rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.contact-block {
  padding-bottom: 0.5rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
}

.form-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.form-status[data-state] {
  display: block;
}

.form-status[data-state="ok"] {
  border-color: rgba(127, 215, 196, 0.42);
  background: rgba(127, 215, 196, 0.1);
}

.form-status[data-state="error"] {
  border-color: rgba(215, 164, 74, 0.32);
  background: rgba(215, 164, 74, 0.08);
}

.honeypot-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.5rem;
}

.field-group span {
  letter-spacing: -0.015em;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--text-muted);
}

.field-group input:focus,
.field-group textarea:focus {
  outline: 2px solid rgba(113, 199, 255, 0.24);
  outline-offset: 1px;
  border-color: rgba(113, 199, 255, 0.36);
}

.full-span {
  grid-column: 1 / -1;
}

.contact-actions {
  align-items: center;
}

.form-note {
  font-size: 0.95rem;
  max-width: 42rem;
}

.site-footer {
  margin-top: 4.4rem;
  padding-bottom: 1rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 16, 27, 0.84);
  box-shadow: var(--shadow-soft);
}

.footer-shell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.clarity-hero-visual,
.signal-map-visual {
  width: 100%;
}

.clarity-hero-frame,
.signal-map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(113, 199, 255, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(113, 199, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(127, 215, 196, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(14, 24, 39, 0.96), rgba(8, 16, 27, 0.94));
  box-shadow: inset 0 1px rgba(255,255,255,0.04);
}

.clarity-hero-frame svg,
.signal-map-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.chv-shell,
.signal-map-shell,
.chv-dossier,
.signal-review-shell {
  fill: rgba(10, 19, 30, 0.92);
  stroke: rgba(113, 199, 255, 0.1);
}

.chv-grid path,
.signal-map-grid path {
  fill: none;
  stroke: rgba(113, 199, 255, 0.08);
  stroke-width: 1;
}

.chv-surfaces rect,
.chv-review-shell,
.signal-surface,
.signal-review-panel {
  fill: rgba(255,255,255,0.03);
  stroke: rgba(113, 199, 255, 0.12);
}

.chv-surface-labels text,
.chv-review-label,
.signal-label,
.signal-review-label,
.hero-data-label {
  fill: #9eb4c9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chv-gaps rect,
.signal-break,
.hero-gap {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(113, 199, 255, 0.08);
}

.chv-traces path,
.signal-curve,
.hero-path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chv-trace-dashed,
.signal-dashed,
.hero-dashed {
  stroke-dasharray: 10 12;
  animation: signalDash 16s linear infinite;
}

.chv-review-line,
.signal-line,
.hero-review-line {
  fill: none;
  stroke: rgba(113, 199, 255, 0.16);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.chv-review-bar,
.hero-review-bar {
  fill: rgba(255,255,255,0.06);
  stroke: rgba(113, 199, 255, 0.08);
}

.chv-node-gold,
.signal-node-gold,
.hero-node-gold {
  fill: var(--gold-soft);
}

.chv-node-core,
.signal-node-core,
.hero-node-core {
  fill: #d9f0ff;
}

.chv-node-moss,
.signal-node-moss,
.hero-node-mint {
  fill: var(--mint);
}

.chv-node-copper,
.signal-node-copper,
.hero-node-blue {
  fill: var(--blue);
}

.chv-sparks circle,
.signal-sparks circle,
.hero-sparks circle {
  fill: rgba(223, 243, 255, 0.92);
  animation: signalFlicker 6s ease-in-out infinite;
}

.hero-panel-fill {
  fill: rgba(255,255,255,0.03);
  stroke: rgba(113, 199, 255, 0.12);
}

.hero-panel-text,
.hero-panel-copy {
  fill: #d8e8f7;
  font-size: 13px;
  font-weight: 600;
}

.hero-panel-title {
  fill: #eef4ff;
  font-size: 18px;
  font-weight: 800;
}

.hero-mini-label {
  fill: #9eb4c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes signalDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -132; }
}

@keyframes signalFlicker {
  0%, 100% { opacity: 0.24; }
  45% { opacity: 0.92; }
  65% { opacity: 0.48; }
}

@media (max-width: 1120px) {
  .topbar,
  .hero-stage,
  .metric-strip,
  .section-split,
  .contact-grid,
  .signal-grid,
  .fit-grid,
  .process-grid,
  .cta-panel,
  .step-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .section-sticky {
    position: static;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  h1,
  h2 {
    max-width: 100%;
  }

  .two-up,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .shell {
    width: min(calc(100% - 1.2rem), var(--shell));
  }

  .topbar {
    top: 0.5rem;
    margin-top: 0.55rem;
    padding: 0.9rem;
    border-radius: 20px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav {
    overflow: visible;
    flex-wrap: wrap;
  }

  .nav a {
    white-space: normal;
  }

  .hero,
  .section-block {
    padding-top: 3rem;
  }

  .hero-actions,
  .contact-actions,
  .cta-actions,
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .panel,
  .card,
  .mini-card,
  .step-card,
  .deliverable-card,
  .list-card,
  .contact-card,
  .pilot-panel,
  .emphasis-card,
  .cta-panel,
  .hero-stage {
    padding: 1.2rem;
  }

  .footer-shell {
    align-items: flex-start;
    padding: 0.95rem 1rem;
  }
}
