:root {
  --bg: #071018;
  --panel: rgba(13, 24, 35, 0.9);
  --panel-strong: #0d1825;
  --text: #d9f7ff;
  --muted: #9bb3c6;
  --line: rgba(117, 231, 255, 0.22);
  --cyan: #75e7ff;
  --amber: #ffd36f;
  --coral: #ff8f6b;
  --paper: #f3fbfe;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --sans: "Azeret Mono", "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(117, 231, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 211, 111, 0.12), transparent 18%),
    linear-gradient(180deg, #050c13 0%, #09131d 54%, #071018 100%);
  color: var(--text);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(117, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 28px;
  opacity: 0.55;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar,
.hero-grid,
.story-grid,
.cta-band,
.signal-grid {
  display: grid;
  gap: 24px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(117, 231, 255, 0.16), rgba(117, 231, 255, 0.05));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.35rem;
  text-transform: lowercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 1.25rem;
}

h2 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.6vw, 5.4rem);
  line-height: 0.95;
}

h3 {
  font-size: clamp(1.32rem, 2.5vw, 1.95rem);
  line-height: 1.05;
}

h4 {
  font-size: 1.04rem;
  line-height: 1.2;
}

.lede,
.story-panel p,
.cta-band p,
.signal-panel p {
  color: #c2d8e7;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: start;
}

.hero-copy {
  padding: 24px 4px 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span,
.tone-chip,
.sample-pill,
.quiet-link,
.primary-link,
button {
  border: 1px solid var(--line);
}

.hero-points span,
.tone-chip {
  padding: 8px 12px;
  background: rgba(117, 231, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.console-panel,
.story-panel,
.signal-panel,
.cta-band {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.console-panel,
.story-panel,
.signal-panel {
  padding: 20px;
}

.panel-head,
.panel-subhead,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.field-label,
.counter-line,
.meter-meta,
button,
textarea,
ul,
.footer-note {
  font-family: var(--mono);
}

.field-label,
.counter-line,
.footer-note {
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 16, 24, 0.95);
  color: var(--paper);
  font-size: 0.97rem;
  line-height: 1.65;
  resize: vertical;
}

textarea:focus,
button:focus,
.sample-pill:focus,
.primary-link:focus,
.quiet-link:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.action-row,
.sample-row,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-row {
  margin-top: 16px;
}

.sample-row {
  margin-top: 16px;
}

button,
.primary-link,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  background: rgba(117, 231, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.84rem;
}

button:hover,
.primary-link:hover,
.quiet-link:hover,
.sample-pill.active {
  background: rgba(117, 231, 255, 0.18);
}

.ghost-button {
  background: transparent;
}

.quiet-link {
  background: transparent;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.decision-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 211, 111, 0.16);
  background: linear-gradient(180deg, rgba(255, 211, 111, 0.06), rgba(255, 143, 107, 0.05));
}

.decision-chip {
  padding: 6px 10px;
  border: 1px solid rgba(255, 211, 111, 0.22);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.decision-summary {
  margin-top: 10px;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.65;
}

.decision-reasons {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #d9ecf5;
}

.decision-reasons li + li {
  margin-top: 8px;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.meter-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 13, 22, 0.8);
}

.meter-card.warning {
  border-color: rgba(255, 211, 111, 0.34);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.meter-track {
  height: 10px;
  background: rgba(117, 231, 255, 0.08);
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.examples-strip {
  margin-top: 28px;
}

.signal-grid,
.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.cta-band {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 22px;
}

.primary-link {
  background: rgba(117, 231, 255, 0.18);
}

.footer-note {
  margin-top: 24px;
  font-size: 0.78rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .hero-grid,
  .signal-grid,
  .story-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
  }

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

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

  textarea {
    min-height: 180px;
  }
}
