:root {
  color-scheme: dark;
  --bg: #07101a;
  --bg-soft: #0b1523;
  --bg-elevated: #101b2d;
  --surface: rgba(9, 16, 28, 0.88);
  --surface-strong: rgba(12, 20, 34, 0.96);
  --surface-soft: rgba(15, 24, 40, 0.8);
  --border: rgba(140, 158, 190, 0.16);
  --border-strong: rgba(148, 180, 230, 0.22);
  --text: #eff4ff;
  --text-strong: #ffffff;
  --muted: #95a4be;
  --muted-soft: #73829e;
  --accent: #7cc8ff;
  --accent-strong: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.14);
  --success: #46d39b;
  --success-soft: rgba(70, 211, 155, 0.14);
  --warning: #f4c56a;
  --warning-soft: rgba(244, 197, 106, 0.14);
  --danger: #ff7e8c;
  --danger-soft: rgba(255, 126, 140, 0.14);
  --shadow-soft: 0 24px 70px rgba(1, 7, 16, 0.4);
  --shadow-card: 0 24px 60px rgba(1, 7, 16, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.18) 0, rgba(77, 163, 255, 0) 34%),
    radial-gradient(circle at 82% 12%, rgba(31, 211, 168, 0.12) 0, rgba(31, 211, 168, 0) 22%),
    linear-gradient(180deg, #08111d 0%, #07101a 52%, #091321 100%);
  color: var(--text);
  line-height: 1.6;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 146, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 146, 184, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at top, black 0, rgba(0, 0, 0, 0.82) 35%, transparent 82%);
  opacity: 0.45;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0) 0%, rgba(4, 8, 14, 0.08) 48%, rgba(4, 8, 14, 0.3) 100%);
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0 0.7rem;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.92) 0%, rgba(7, 16, 26, 0.7) 100%);
  border-bottom: 1px solid rgba(121, 144, 183, 0.08);
}

.site-header-row,
.site-footer-row,
.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 16px;
  border: 1px solid rgba(122, 162, 223, 0.22);
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.14), rgba(77, 163, 255, 0) 58%),
    linear-gradient(180deg, rgba(13, 22, 38, 0.98), rgba(8, 14, 25, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(2, 8, 18, 0.42);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border-radius: 11px;
  border: 1px solid rgba(77, 163, 255, 0.18);
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(77, 163, 255, 0.24) 22% 24%, transparent 24% 78%, rgba(77, 163, 255, 0.24) 78% 80%, transparent 80%),
    linear-gradient(transparent 0 34%, rgba(77, 163, 255, 0.2) 34% 36%, transparent 36% 64%, rgba(77, 163, 255, 0.2) 64% 66%, transparent 66%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.95), rgba(10, 17, 29, 0.95));
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 0.68rem;
  right: 0.6rem;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #d8f6ff 0, #8ae2ff 35%, #4da3ff 65%, rgba(77, 163, 255, 0.18) 100%);
  box-shadow:
    -0.92rem 0.96rem 0 -0.19rem rgba(124, 200, 255, 0.3),
    -0.2rem 1.2rem 0 -0.32rem rgba(77, 163, 255, 0.24),
    0 0 20px rgba(124, 200, 255, 0.32);
}

.brand {
  display: block;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.eyebrow,
.hint,
.muted,
.footer-note,
.header-note {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.88rem;
}

.header-note,
.footer-note {
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-link,
.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.header-link:hover,
.text-link:hover {
  color: #a4daff;
}

main {
  padding-bottom: 4rem;
}

.hero,
.result-layout {
  padding: 3rem 0 3.5rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.88fr);
  gap: 2rem;
  align-items: start;
}

.hero-shell > *,
.grid-3 > *,
.grid-2 > *,
.story-grid > *,
.feature-grid > * {
  min-width: 0;
}

.hero-copy {
  padding: 1.55rem 0.3rem 0 0;
}

.hero h1,
.result-layout h1,
.section-heading h2,
.story-card h3,
.panel h3,
.panel h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.45rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 11ch;
  margin: 0.75rem 0 1rem;
  color: var(--text-strong);
}

.result-layout h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 560;
  margin: 0.45rem 0 0.9rem;
  max-width: 12ch;
  color: var(--text-strong);
}

.lede {
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(232, 239, 251, 0.78);
  max-width: 40rem;
  margin: 0;
}

.hero .lede {
  max-width: 43rem;
}

.hero-pills {
  margin-top: 1.45rem;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.94) 0%, rgba(9, 16, 28, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.55rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 192, 255, 0.18), transparent);
  pointer-events: none;
}

.wide-panel {
  padding: 1.8rem;
}

.hero-form-panel {
  padding: 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.14) 0, rgba(77, 163, 255, 0) 36%),
    linear-gradient(180deg, rgba(13, 22, 38, 0.96) 0%, rgba(10, 17, 29, 0.94) 100%);
}

.form-panel form,
.stack-list,
.story-grid,
.section-heading,
.summary-box,
.feature-card {
  display: grid;
  gap: 0.95rem;
}

.panel-kicker,
.section-kicker,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
}

.panel-kicker,
.section-kicker {
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(113, 136, 175, 0.2);
  background: rgba(10, 19, 34, 0.72);
  color: #b7c9e6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge,
.pill {
  padding: 0.46rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(122, 144, 183, 0.18);
}

.badge,
.pill.neutral {
  background: rgba(12, 21, 36, 0.88);
  color: #c7d9f5;
}

.pill.success,
.badge.success {
  background: var(--success-soft);
  color: #9bf0ca;
  border-color: rgba(70, 211, 155, 0.22);
}

.pill.warning,
.badge.warning {
  background: var(--warning-soft);
  color: #f6d797;
  border-color: rgba(244, 197, 106, 0.22);
}

.pill.danger,
.badge.danger {
  background: var(--danger-soft);
  color: #ffb8c0;
  border-color: rgba(255, 126, 140, 0.22);
}

.panel-copy,
.section-heading p,
.card-copy,
.story-card p {
  color: var(--muted);
  margin: 0;
}

label {
  font-weight: 600;
  color: #d9e4f8;
}

input,
button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  font: inherit;
}

input {
  padding: 1rem 1.05rem;
  background: rgba(5, 11, 20, 0.82);
  color: var(--text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder {
  color: #6f83a7;
}

input:focus {
  outline: none;
  border-color: rgba(124, 200, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

button {
  padding: 0.98rem 1.05rem;
  background: linear-gradient(180deg, rgba(50, 91, 167, 0.98) 0%, rgba(33, 70, 138, 0.98) 100%);
  color: #f8fbff;
  font-weight: 650;
  border-color: rgba(124, 200, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(10, 36, 78, 0.36);
  cursor: pointer;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(56, 98, 179, 1) 0%, rgba(37, 78, 152, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(10, 36, 78, 0.42);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.grid-3,
.grid-2,
.button-row,
.pill-row,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.grid-gap-large {
  margin-bottom: 1.5rem;
}

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

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

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

.pill-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
}

.summary-box {
  min-width: 176px;
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(120, 144, 182, 0.16);
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.92) 0%, rgba(9, 16, 28, 0.92) 100%);
  text-align: center;
}

.summary-value,
.stat {
  font-size: clamp(1.95rem, 4vw, 2.45rem);
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.summary-label {
  color: var(--muted);
}

.feature-card,
.story-card,
.stat-card,
.finding {
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.92) 0%, rgba(9, 16, 28, 0.92) 100%);
}

.feature-card h3,
.story-card h3,
.panel h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(122, 144, 183, 0.18);
  background: rgba(9, 19, 34, 0.88);
  color: #8dcdfd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c6d3ea;
}

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

.clean-list li + li {
  margin-top: 0.55rem;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #6cbfff;
  box-shadow: 0 0 12px rgba(108, 191, 255, 0.28);
}

.ordered-list {
  counter-reset: item;
}

.ordered-list li {
  padding-left: 1.35rem;
}

.ordered-list li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: auto;
  height: auto;
  background: none;
  color: #7cc8ff;
  box-shadow: none;
  font-weight: 650;
}

.section-block {
  margin-top: 2rem;
}

.section-heading {
  margin-bottom: 1.35rem;
  max-width: 42rem;
  text-align: center;
  justify-items: center;
}

.section-heading-left {
  text-align: left;
  justify-items: start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--text-strong);
}

.compact-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.story-panel {
  padding: 1.8rem;
}

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

.story-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
}

.result-layout {
  display: grid;
  gap: 1.5rem;
}

.result-hero-panel {
  padding: 1.8rem;
}

.result-topline {
  align-items: flex-start;
}

.finding {
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--border);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(120, 144, 182, 0.16);
}

.meta-row:first-child {
  padding-top: 0;
}

.meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.meta-label {
  color: var(--muted);
  font-weight: 600;
}

.meta-value {
  text-align: right;
}

.empty-state {
  color: var(--muted);
}

.finding h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.finding p {
  margin: 0.35rem 0 0;
}

.finding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.codeish {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: #b6c9e8;
}

.status-note {
  min-height: 1.35rem;
  color: #9ecfff;
  font-weight: 500;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer-row {
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(120, 144, 182, 0.14);
}

@media (max-width: 980px) {
  .hero-shell,
  .grid-3,
  .grid-2,
  .button-row,
  .story-grid,
  .feature-grid-three,
  .result-topline,
  .site-header-row,
  .site-footer-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero,
  .result-layout {
    padding-top: 2.2rem;
  }

  .hero-copy {
    padding-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2.55rem;
    max-width: 12ch;
  }

  .summary-box {
    justify-self: start;
  }

  .header-note,
  .footer-note {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero .lede,
  .panel-copy,
  .section-heading p {
    max-width: 100%;
  }

  .site-header {
    padding-top: 0.8rem;
  }

  .panel,
  .hero-form-panel,
  .result-hero-panel,
  .story-panel {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .hero,
  .result-layout {
    padding-top: 1.4rem;
  }

  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.06;
    max-width: 12ch;
  }

  .lede {
    font-size: 0.98rem;
  }

  .result-layout h1 {
    font-size: 2rem;
    max-width: none;
  }

  .pill-row,
  .button-row {
    grid-template-columns: 1fr;
  }

  .meta-row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .meta-value {
    text-align: left;
  }
}
