:root {
  --bg-deep: #071727;
  --bg-mid: #0d2a43;
  --ink-strong: #e9f7ff;
  --ink-soft: #a9cfe7;
  --line: #58d8ff;
  --line-soft: #2f8caf;
  --cta-bright-a: #86ddfa;
  --cta-bright-b: #33c6f0;
  --cta-dark: rgba(6, 23, 38, 0.88);
  --cta-dark-border: rgba(85, 150, 182, 0.34);
  --focus: #a2edff;
  --brand-lockup-size: clamp(2rem, 7vw, 4rem);
  --main-cta-font-size: clamp(1.9rem, 5.2vw, 4rem);
  --cta-font-size: clamp(0.84rem, 1.8vw, 1rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  color: var(--ink-soft);
  background:
    radial-gradient(1200px 700px at 82% 6%, rgba(53, 145, 188, 0.23), transparent 62%),
    radial-gradient(900px 620px at 10% 90%, rgba(35, 105, 145, 0.19), transparent 65%),
    linear-gradient(155deg, #060f1c, var(--bg-deep) 44%, var(--bg-mid));
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 64vh, 760px);
  overflow: hidden;
  border-bottom: 1px solid rgba(116, 187, 219, 0.2);
}

#ascii-blueprint {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 9, 15, 0.11), rgba(4, 9, 15, 0.54)),
    repeating-linear-gradient(
      0deg,
      rgba(105, 183, 219, 0.028) 0,
      rgba(105, 183, 219, 0.028) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: screen;
}

.brand-lockup {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.2rem);
  padding: 0.78rem clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 999px;
  border: 1px solid rgba(136, 205, 236, 0.34);
  background: rgba(4, 15, 25, 0.54);
  backdrop-filter: blur(5px);
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  font-size: var(--brand-lockup-size);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4f1ff;
  text-shadow: 0 1px 10px rgba(1, 5, 11, 0.8);
  white-space: nowrap;
}

.brand-divider {
  color: var(--line);
}

.brand-company {
  display: inline-flex;
  align-items: baseline;
  color: #d4f1ff;
}

.brand-opus {
  color: inherit;
}

.brand-pro {
  margin-left: 0.08em;
  font-size: 0.8em;
  color: inherit;
}

.brand-product {
  color: #d4f1ff;
}

.debug-controls {
  position: absolute;
  z-index: 3;
  right: clamp(0.6rem, 2.2vw, 1.2rem);
  top: clamp(0.6rem, 1.8vw, 1.1rem);
  width: min(320px, calc(100% - 1.2rem));
  display: grid;
  gap: 0.38rem;
  padding: 0.55rem 0.62rem;
  border-radius: 12px;
  border: 1px solid rgba(116, 187, 219, 0.3);
  background: rgba(2, 10, 18, 0.74);
  backdrop-filter: blur(5px);
  box-shadow: 0 12px 32px rgba(1, 6, 12, 0.45);
}

.debug-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5rem;
  row-gap: 0.18rem;
  align-items: center;
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  color: #d6f2ff;
}

.debug-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.95;
}

.debug-value {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #8ce8ff;
}

.debug-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #57d8ff;
}

.main-cta {
  width: min(1120px, 92vw);
  margin: clamp(1.3rem, 2.8vw, 2.6rem) auto clamp(3rem, 6vw, 4.8rem);
  display: grid;
  gap: clamp(1.2rem, 2.2vw, 2rem);
}

.section-panel {
  position: relative;
  border: 1px solid rgba(105, 180, 216, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(120% 180% at 12% -20%, rgba(70, 158, 198, 0.14), transparent 60%),
    linear-gradient(165deg, rgba(3, 16, 29, 0.84), rgba(4, 24, 42, 0.72));
  box-shadow: 0 18px 46px rgba(1, 7, 14, 0.38);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fdcff;
}

.message {
  margin: 0;
  text-align: left;
  color: var(--ink-strong);
  font-size: var(--main-cta-font-size);
  line-height: 0.94;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(4, 9, 15, 0.7);
}

.hero-subhead {
  margin: clamp(0.85rem, 1.3vw, 1.05rem) 0 0;
  max-width: 72ch;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.52;
  color: #d4ecfa;
}

.hero-invite {
  margin: 1rem 0 0;
  max-width: 70ch;
  font-size: clamp(0.95rem, 1.45vw, 1.05rem);
  line-height: 1.6;
  color: #abd2e8;
}

.cta-stack {
  display: grid;
  gap: 0.78rem;
}

.cta-stack-hero {
  margin-top: clamp(1rem, 1.8vw, 1.45rem);
  width: min(520px, 100%);
  grid-template-columns: 1fr;
}

.cta {
  min-height: 64px;
  border-radius: 999px;
  border: 1px solid var(--cta-dark-border);
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  font-size: var(--cta-font-size);
  letter-spacing: 0.09em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.cta-primary,
.cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.cta-primary {
  color: #1a0d02;
  border-color: rgba(255, 209, 150, 0.88);
  background: linear-gradient(135deg, #ffb25a, #ff7a1f);
  box-shadow: 0 12px 28px rgba(255, 122, 31, 0.24);
}

.cta-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cta-secondary {
  color: #d8f0ff;
  background: linear-gradient(135deg, rgba(6, 24, 40, 0.92), rgba(4, 18, 31, 0.92));
}

.cta-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 196, 231, 0.72);
}

.cta-primary:focus,
.cta-secondary:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.section-break {
  margin: 0.25rem 0 0.1rem;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106, 186, 223, 0.55), transparent);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.1rem);
}

.info-card {
  grid-column: span 6;
  padding: clamp(1rem, 1.9vw, 1.35rem);
  border: 1px solid rgba(102, 174, 208, 0.25);
  border-radius: 18px;
  background: rgba(4, 19, 33, 0.6);
}

.info-card-span {
  grid-column: span 12;
}

.info-card h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: #e2f3ff;
}

.info-card p {
  margin: 0.75rem 0 0;
  color: #b7d9ec;
  line-height: 1.6;
}

.info-card-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(113, 190, 227, 0.44);
  background: rgba(9, 35, 54, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.card-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #7edcff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0.9;
}

.survey-callout {
  padding: clamp(1.2rem, 2.5vw, 1.9rem);
  display: grid;
  gap: 0.85rem;
}

.survey-callout h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  color: #e9f7ff;
}

.survey-callout p {
  margin: 0;
  max-width: none;
  line-height: 1.6;
  color: #b6dced;
}

.cta-micro {
  min-height: 44px;
  width: fit-content;
  padding: 0.58rem 0.95rem;
  font-size: clamp(0.72rem, 1.15vw, 0.86rem);
  letter-spacing: 0.08em;
  align-self: start;
}

.about-panel {
  padding: clamp(1.1rem, 2.1vw, 1.6rem);
  border: 1px solid rgba(102, 174, 208, 0.23);
  border-radius: 18px;
  background: rgba(3, 17, 30, 0.56);
}

.about-panel h2 {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  color: #ddf1ff;
}

.about-panel p {
  margin: 0.82rem 0 0;
  color: #adcfe2;
  line-height: 1.62;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .brand-lockup {
    letter-spacing: 0.12em;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .info-card-span {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    height: 25vh;
    min-height: 25vh;
    max-height: 25vh;
  }

  .hero-copy {
    padding: 0.9rem 0.9rem 1rem;
  }

  .brand-lockup {
    top: 48%;
    max-width: calc(100vw - 0.8rem);
    gap: clamp(0.24rem, 1.3vw, 0.46rem);
    padding: 0.56rem 0.72rem;
    font-size: clamp(0.88rem, 5.2vw, 1.28rem);
    letter-spacing: 0.08em;
  }

  .main-cta {
    gap: 1rem;
  }

  .message {
    text-align: center;
    font-size: clamp(1.35rem, 6.4vw, 1.85rem);
    line-height: 1;
  }

  .hero-subhead,
  .hero-invite {
    text-align: center;
  }

  .hero-subhead {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .hero-invite {
    margin-top: 0.42rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .kicker {
    text-align: center;
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
  }

  .debug-controls {
    width: calc(100% - 0.8rem);
    right: 0.4rem;
    top: 0.45rem;
    padding: 0.45rem 0.5rem;
  }

  .debug-label,
  .debug-value {
    font-size: 0.58rem;
  }

  .cta-stack-hero {
    margin-top: 0.72rem;
    margin-bottom: 0.35rem;
    grid-template-columns: 1fr;
  }

  .cta {
    min-height: 56px;
  }

  .cta-micro {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-primary,
  .cta-secondary {
    transition: none;
  }
}
