:root {
  --ink: #241c15;
  --muted: #766b5f;
  --line: #eadfce;
  --page: #fffaf6;
  --panel: #fffefb;
  --cream: #fff4e5;
  --amber: #dda04a;
  --amber-strong: #c87936;
  --amber-soft: #f7dfb7;
  --brown: #4a321d;
  --green: #dff5cf;
  --green-text: #2f6a2f;
  --rust: #a45b32;
  --sage: #eef6e8;
  --shadow: 0 18px 44px rgba(74, 50, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 850;
}

.site-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: linear-gradient(180deg, #f3bf67, var(--amber));
  border: 1px solid rgba(164, 91, 50, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(200, 121, 54, 0.22);
  font-size: 13px;
  font-weight: 950;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-action,
.primary-action,
.secondary-action,
.pilot-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 850;
}

.nav-action,
.primary-action,
.pilot-form button {
  color: var(--ink);
  background: linear-gradient(180deg, #edb865, var(--amber-strong));
  border: 1px solid rgba(164, 91, 50, 0.28);
  box-shadow: 0 10px 20px rgba(200, 121, 54, 0.16);
}

.secondary-action {
  color: var(--brown);
  background: var(--panel);
  border: 1px solid #e6cba8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 6vw, 84px) 42px;
  background:
    linear-gradient(120deg, rgba(255, 244, 229, 0.86), rgba(255, 250, 246, 0.98) 52%, rgba(223, 245, 207, 0.42)),
    var(--page);
}

.hero h1,
.section h2,
.pilot-section h2,
.story-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.16;
}

.hero h1 {
  max-width: 720px;
  font-size: 104px;
}

.hero-lede {
  max-width: 690px;
  margin: 22px 0 0;
  color: #5f5449;
  font-size: 28px;
  line-height: 1.22;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-console {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 540px;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 254, 251, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.console-top,
.signal-list div,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.console-top {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.console-top strong,
.story-status {
  color: var(--green-text);
  background: var(--green);
  border-radius: 999px;
  padding: 5px 9px;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brief-grid article,
.workflow-steps article,
.pilot-form,
.story-card,
.flow-story {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brief-grid article {
  min-height: 190px;
  padding: 18px;
}

.brief-grid span,
.workflow-steps span {
  display: block;
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-grid strong {
  display: block;
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.08;
}

.brief-grid p,
.workflow-steps p,
.section-copy p,
.proof-points p,
.pilot-copy p,
.pilot-links a,
.form-note,
.story-head p,
.story-card p,
.flow-answer p,
.flow-story small {
  color: var(--muted);
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.signal-list div {
  min-height: 68px;
  padding: 14px 16px;
  background: #fff9f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-list b {
  margin-right: auto;
}

.signal-list small {
  color: var(--muted);
  font-weight: 700;
}

.signal {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.signal.green { background: #6fb34d; }
.signal.blue { background: #7c8f7a; }
.signal.amber { background: var(--amber); }

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 76px clamp(18px, 6vw, 84px);
  background: #fffdf9;
  scroll-margin-top: 66px;
}

.story-head {
  grid-column: 1 / -1;
  max-width: 900px;
}

.story-head h2 {
  max-width: 820px;
  font-size: 58px;
}

.story-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 19px;
}

.story-grid {
  display: grid;
  gap: 12px;
}

.story-card {
  display: grid;
  gap: 10px;
  min-height: 196px;
  padding: 18px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.story-card.active {
  border-color: #e9b06b;
  box-shadow: inset 4px 0 0 var(--amber-strong), 0 14px 32px rgba(200, 121, 54, 0.1);
}

.story-card:hover {
  transform: translateY(-2px);
}

.story-index {
  color: var(--rust);
  font-size: 12px;
  font-weight: 950;
}

.story-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.story-card p {
  margin: 0;
}

.story-card button {
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 12px;
  color: var(--brown);
  background: #fff8ed;
  border: 1px solid #e7c99d;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.story-card.active button {
  color: var(--ink);
  background: var(--amber-soft);
  border-color: #e6b268;
}

.flow-story {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
  min-height: 640px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 244, 229, 0.72), rgba(255, 254, 251, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.flow-story::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(221, 160, 74, 0.22);
  border-radius: 8px;
}

.flow-story-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-story-top div {
  display: grid;
  gap: 1px;
  margin-right: auto;
}

.flow-story-top strong {
  font-size: 21px;
}

.story-status {
  font-size: 12px;
  font-weight: 900;
}

.flow-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 150px;
}

.flow-rail span {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 10px;
  color: var(--brown);
  background: #fff8ed;
  border: 1px solid #e9d7bd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.flow-rail span:nth-of-type(3) {
  color: var(--ink);
  background: var(--amber-soft);
  border-color: #e7b15f;
  box-shadow: 0 10px 24px rgba(200, 121, 54, 0.12);
}

.flow-rail i {
  position: relative;
  display: block;
  height: 2px;
  background: #e3c79b;
}

.flow-rail i::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--amber-strong);
  border-radius: 50%;
  animation: railPulse 1.8s ease-in-out infinite;
}

.flow-rail i:nth-of-type(2)::after {
  animation-delay: 0.28s;
}

.flow-rail i:nth-of-type(3)::after {
  animation-delay: 0.56s;
}

@keyframes railPulse {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(28px); opacity: 0; }
}

.flow-answer {
  position: relative;
  z-index: 1;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}

.flow-answer h3 {
  max-width: 640px;
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
}

.flow-answer p:not(.eyebrow) {
  max-width: 700px;
  margin: 14px 0 0;
  font-size: 18px;
}

.evidence-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.evidence-stack span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--brown);
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.evidence-stack span::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--green-text);
  border-radius: 50%;
}

.section,
.pilot-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.section-copy {
  max-width: 780px;
}

.section h2,
.pilot-section h2 {
  font-size: 64px;
}

.product-proof {
  background: #fff;
}

.product-proof img {
  display: block;
  width: min(100%, 1120px);
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(74, 50, 29, 0.1);
}

.workflow-band {
  background: var(--brown);
  color: #fff;
}

.workflow-band .eyebrow,
.workflow-band .section-copy p,
.workflow-band .workflow-steps p {
  color: rgba(255, 255, 255, 0.74);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.workflow-steps article {
  min-height: 260px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.workflow-steps h3 {
  margin: 58px 0 10px;
  font-size: 26px;
}

.split-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  background: #fff;
}

.proof-points {
  display: grid;
  gap: 16px;
}

.proof-points p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.pilot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: var(--sage);
}

.pilot-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(74, 50, 29, 0.1);
}

.pilot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pilot-links a,
.pilot-result a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--brown);
  background: #fff8ed;
  border: 1px solid #e7c99d;
  border-radius: 8px;
  font-weight: 850;
}

.pilot-form label {
  display: grid;
  gap: 7px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 850;
}

.pilot-form input,
.pilot-form select,
.pilot-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcc9ad;
  border-radius: 8px;
  font: inherit;
}

.pilot-form textarea {
  resize: vertical;
}

.pilot-form button {
  width: 100%;
  cursor: pointer;
}

.pilot-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.pilot-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff8ed;
  border: 1px solid #e7c99d;
  border-radius: 8px;
}

.pilot-result[hidden] {
  display: none;
}

.pilot-result strong {
  display: block;
  color: var(--ink);
}

.pilot-result p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pilot-result .template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

footer {
  min-height: 76px;
  padding: 0 clamp(18px, 6vw, 84px);
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 1020px) {
  .hero,
  .story-section,
  .split-proof,
  .pilot-section {
    grid-template-columns: 1fr;
  }

  .flow-story {
    position: relative;
    top: auto;
    min-height: 560px;
  }
}

@media (max-width: 920px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .site-nav nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-lede {
    font-size: 24px;
  }

  .section h2,
  .pilot-section h2,
  .story-head h2 {
    font-size: 48px;
  }

  .product-console {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .site-nav {
    position: static;
  }

  .site-brand {
    width: 100%;
  }

  .nav-action {
    width: 100%;
  }

  .brief-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 20px;
  }

  .section h2,
  .pilot-section h2,
  .story-head h2 {
    font-size: 38px;
  }

  .story-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .story-head p:not(.eyebrow),
  .flow-answer p:not(.eyebrow) {
    font-size: 17px;
  }

  .flow-story {
    min-height: auto;
  }

  .flow-rail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-rail i {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .flow-rail i::after {
    top: 0;
    left: -4px;
    animation-name: railPulseVertical;
  }

  @keyframes railPulseVertical {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
  }

  .flow-answer h3 {
    font-size: 30px;
  }

  .signal-list div {
    align-items: flex-start;
    flex-direction: column;
  }
}
