html {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(243, 176, 76, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(74, 182, 168, 0.18), transparent 18%),
    linear-gradient(180deg, #07131f 0%, #0b1625 52%, #0f1d2c 100%);
  color: #eff5fb;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.site-shell {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.site-nav,
.hero-grid,
.cta-row,
.trust-row,
.metric-grid,
.demo-grid,
.story-grid,
.expansion-grid,
.preview-grid,
.solutions-grid,
.lead-grid,
.lead-form-grid,
.use-case-list,
.scenario-grid {
  display: grid;
  gap: 16px;
}

.site-nav,
.hero-grid,
.section-heading,
.demo-actions,
.final-cta {
  display: flex;
  gap: 16px;
}

.site-nav,
.section-heading,
.demo-actions,
.final-cta {
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  margin-bottom: 28px;
}

.brand-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.trust-pill,
.status-pill,
.eyebrow,
.label,
.step-index {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.nav-link,
.button,
.panel,
.trust-pill,
.metric-card,
.preview-card,
.expansion-step,
.solution-card,
.inset-panel {
  border-radius: 22px;
}

.hero-copy,
.hero-proof,
.demo-form,
.demo-output,
.lead-form,
.lead-side,
.metric-card,
.preview-card,
.story-card,
.expansion-step,
.solution-card,
.scenario-card,
.panel {
  min-width: 0;
}

.nav-link,
.trust-pill {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hero-section {
  margin-bottom: 28px;
  animation: fade-up 0.5s ease;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
}

.hero-copy {
  padding: 18px 2px;
}

.eyebrow {
  color: #f4c678;
}

.hero-copy h1,
.section-heading h2,
.story-card h3,
.expansion-step h3,
.panel h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.hero-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-lede,
.section-heading p,
.story-card p,
.expansion-step p,
.panel p,
.muted,
.flash {
  color: #b2c4d8;
  line-height: 1.65;
}

.hero-lede {
  margin: 18px 0 0;
  max-width: 66ch;
  font-size: 17px;
}

.cta-row {
  grid-auto-flow: column;
  justify-content: start;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, #f3b05a 0%, #ffce8a 100%);
  color: #142030;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef5fb;
}

.trust-row {
  grid-template-columns: repeat(3, minmax(0, max-content));
  margin-top: 18px;
}

.panel,
.metric-card,
.preview-card,
.story-card,
.expansion-step {
  background: rgba(8, 18, 33, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.panel {
  padding: 24px;
}

.hero-proof {
  position: relative;
  overflow: hidden;
}

.hero-proof::after,
.demo-section::after,
.use-case-section::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(74, 182, 168, 0.18), transparent 72%);
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.panel-header h2,
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f0f7;
}

.status-pill.within-target {
  background: rgba(117, 219, 150, 0.16);
  color: #c8ffd7;
}

.status-pill.above-target {
  background: rgba(255, 144, 144, 0.16);
  color: #ffd0d0;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.metric-card,
.preview-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.demo-metrics-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.preview-card-featured {
  position: relative;
  padding: 20px 22px 18px;
  border-color: rgba(243, 176, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(8, 18, 33, 0.94);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scroll-margin-top: 32px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.preview-card-featured::after {
  content: "";
  position: absolute;
  inset: auto -60px -70px auto;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(243, 176, 90, 0.14), transparent 70%);
  pointer-events: none;
}

.preview-card-featured.is-active {
  border-color: rgba(243, 176, 90, 0.52);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(243, 176, 90, 0.16),
    0 0 0 10px rgba(243, 176, 90, 0.06);
  transform: translateY(-1px);
}

.preview-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.preview-card-header h3 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.demo-status-pill {
  min-width: 92px;
}

.demo-feature-copy {
  margin: 12px 0 0;
}

.preview-card-featured pre {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
}

.proof-summary {
  margin: 18px 0 0;
}

.demo-section,
.use-case-section,
.solutions-section,
.lead-section,
.final-cta {
  position: relative;
  overflow: hidden;
}

.demo-section,
.use-case-section,
.solutions-section,
.lead-section,
.final-cta,
.story-grid {
  margin-top: 20px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 64ch;
}

.demo-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.demo-form,
.demo-output {
  display: grid;
  gap: 14px;
}

.demo-form {
  align-content: start;
}

.demo-output {
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #eff5fb;
  padding: 14px 16px;
  font: inherit;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.preview-grid,
.story-grid,
.expansion-grid,
.solutions-grid,
.scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solutions-grid {
  align-items: stretch;
}

.ceo-flow-panel,
.ceo-story-grid {
  margin-top: 20px;
}

.scenario-card {
  display: grid;
  gap: 14px;
  min-height: 280px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 182, 168, 0.3);
}

.scenario-card.is-active {
  border-color: rgba(243, 176, 90, 0.42);
  box-shadow: 0 22px 60px rgba(243, 176, 90, 0.1);
}

.scenario-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.04;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.scenario-card p,
.scenario-meta {
  color: #b2c4d8;
  line-height: 1.6;
}

.scenario-meta {
  font-size: 14px;
}

.scenario-trigger {
  margin-top: auto;
  width: fit-content;
}

.solution-card-link {
  display: block;
}

.solution-card {
  min-height: 220px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.solution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 176, 90, 0.28);
}

.solution-card.is-selected {
  border-color: rgba(243, 176, 90, 0.42);
  box-shadow: 0 22px 60px rgba(243, 176, 90, 0.1);
}

.solution-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.06;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 13px;
  color: #edf4fb;
}

.story-card h3,
.expansion-step h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.04;
}

.expansion-step {
  padding: 18px;
}

.step-index {
  color: #f4c678;
}

.flash {
  min-height: 18px;
}

.lead-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.lead-form,
.lead-side {
  display: grid;
  gap: 16px;
}

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

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

.inset-panel {
  background: rgba(255, 255, 255, 0.03);
}

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

.use-case-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6eef8;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .demo-grid,
  .story-grid,
  .expansion-grid,
  .preview-grid,
  .solutions-grid,
  .scenario-grid,
  .lead-grid,
  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .section-heading,
  .final-cta {
    flex-direction: column;
    align-items: start;
  }

  .cta-row,
  .trust-row {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .demo-metrics-secondary {
    grid-template-columns: 1fr;
  }

  .preview-card-header {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 18px 14px 56px;
  }

  .panel,
  .metric-card,
  .preview-card,
  .story-card,
  .expansion-step {
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 13vw, 54px);
    line-height: 0.98;
    max-width: none;
  }

  .hero-lede,
  .section-heading p {
    font-size: 15px;
  }

  .panel-header h2,
  .section-heading h2,
  .preview-card-header h3 {
    font-size: 26px;
  }

  .demo-actions,
  .final-cta,
  .site-nav {
    width: 100%;
  }

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

  .demo-actions,
  .cta-row {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .demo-actions .button,
  .cta-row .button,
  .nav-actions .nav-link {
    width: 100%;
  }

  .nav-actions,
  .preview-card-header {
    width: 100%;
  }

  .nav-actions {
    flex-direction: column;
  }

  .status-pill,
  .demo-status-pill {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
  }

  textarea,
  input,
  select,
  pre {
    max-width: 100%;
  }
}
