:root {
  --ink: #191817;
  --muted: #66615b;
  --paper: rgb(240 244 255);
  --panel: #ffffff;
  --line: #e5dfd6;
  --green: #176b5f;
  --green-soft: #dcece7;
  --rust: #a74d2d;
  --mustard: #d5a02f;
  --blue: #355f8c;
  --shadow: 0 24px 80px rgba(34, 28, 22, 0.16);
  --intro-progress: 0;
  --experience-progress: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid rgba(229, 223, 214, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34px;
  padding: 3px;
  border: 1px solid rgba(25, 24, 23, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switch button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.scroll-stage {
  height: 420vh;
  min-height: 2600px;
}

.sticky-hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 112px clamp(18px, 4vw, 64px) 40px;
  overflow: hidden;
}

.sticky-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(23, 107, 95, 0.08), transparent 34%),
    linear-gradient(270deg, rgba(53, 95, 140, 0.1), transparent 44%),
    var(--paper);
}

.sticky-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 28vh;
  background: linear-gradient(0deg, var(--paper), transparent);
}

.intro-hero {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  text-align: center;
  opacity: calc(1 - var(--intro-progress));
  transform: translateY(calc(var(--intro-progress) * -56px)) scale(calc(1 - var(--intro-progress) * 0.06));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
  pointer-events: none;
}

.intro-hero img {
  width: clamp(140px, 15vw, 230px);
  height: clamp(140px, 15vw, 230px);
  object-fit: contain;
}

.intro-hero h1 {
  max-width: 15em;
  margin: 28px 0 0;
  color: #27324a;
  font-size: clamp(28px, 4.5vw, 58px);
  line-height: 1.18;
}

.hero-copy {
  max-width: 640px;
  opacity: var(--intro-progress);
  transform: translateY(calc((1 - var(--intro-progress)) * 36px));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}

.eyebrow {
  margin: 0 0 14px;
  color: #6f7580;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10em;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h2 {
  max-width: 15em;
  margin-bottom: 24px;
  font-size: clamp(40px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 39em;
  color: #413d39;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.cta-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-shell {
  position: relative;
  width: min(100%, 960px);
  min-height: 660px;
  border: 1px solid rgba(25, 24, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 80px rgba(36, 52, 92, 0.15);
  overflow: hidden;
  opacity: var(--intro-progress);
  transform: translateY(calc((1 - var(--intro-progress)) * 44px + var(--experience-progress, 0) * -18px));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}

.shell-topbar {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d0c5;
}

.window-dots span:nth-child(1) {
  background: #c7684a;
}

.window-dots span:nth-child(2) {
  background: #d5a02f;
}

.window-dots span:nth-child(3) {
  background: #4c9b83;
}

.topbar-title {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.topbar-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 606px;
}

.chat-panel,
.work-panel {
  padding: 20px;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--line);
  background: #f6f3ee;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.panel-heading strong {
  color: var(--ink);
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.user-message {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
}

.ai-message {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: #fff;
}

.step-message {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
}

body[data-step="1"] .step-1,
body[data-step="2"] .step-1,
body[data-step="2"] .step-2,
body[data-step="3"] .step-1,
body[data-step="3"] .step-2,
body[data-step="3"] .step-3,
body[data-step="4"] .step-1,
body[data-step="4"] .step-2,
body[data-step="4"] .step-3,
body[data-step="4"] .step-4 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.prompt-bar {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 18px;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #9a938a;
  font-size: 13px;
}

.prompt-bar button {
  width: 42px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.work-panel {
  background:
    linear-gradient(rgba(25, 24, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 24, 23, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.flow-map {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition:
    background 260ms ease,
    color 260ms ease,
    border-color 260ms ease;
}

.flow-node.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.flow-line {
  height: 1px;
  background: var(--line);
}

.visual-stack {
  position: relative;
  min-height: 470px;
}

.work-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(25, 24, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(34, 28, 22, 0.1);
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

body[data-step="0"] .invoice-card,
body[data-step="1"] .invoice-card,
body[data-step="2"] .approval-card,
body[data-step="3"] .match-card,
body[data-step="4"] .advisor-card {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.card-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.invoice-card > strong {
  color: var(--rust);
  font-size: 44px;
}

dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.confidence {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--green-soft);
}

.approval-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.approval-card li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  font-weight: 750;
}

.approval-card button {
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.match-row {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.match-meter {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8de;
}

.match-meter span {
  display: block;
  width: 98%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--mustard));
}

.match-card p,
.advisor-card p {
  color: #413d39;
  line-height: 1.8;
}

.advisor-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.advisor-logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.scroll-cue {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8d857c;
  font-size: 12px;
  font-weight: 800;
}

.scroll-cue span {
  width: 38px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: #ded6cb;
}

.scroll-cue span::after {
  content: "";
  display: block;
  width: calc(20% + var(--stage-progress, 0) * 80%);
  height: 100%;
  background: var(--green);
}

.detail-section,
.series-section,
.supervision-section,
.supported-section,
.roadmap-section,
.contact-section {
  padding: 112px clamp(18px, 5vw, 76px);
  background: var(--paper);
}

.section-copy {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-copy h2,
.supervision-section h2,
.contact-section h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.supervision-section p:not(.eyebrow),
.contact-section p:not(.eyebrow) {
  color: #4d4842;
  font-size: 17px;
  line-height: 1.9;
}

.principle-grid,
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-grid article,
.series-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.principle-grid article {
  padding: 26px;
}

.principle-grid span {
  color: var(--rust);
  font-weight: 900;
}

.principle-grid h3,
.series-item h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.principle-grid p,
.series-item p {
  color: var(--muted);
  line-height: 1.75;
}

.series-section {
  background: #e8eefc;
}

#series .section-copy {
  max-width: 1100px;
}

.series-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.series-item > div {
  min-height: 100%;
}

.series-item img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
}

.series-item h3 {
  margin-top: 0;
}

.series-status {
  float: right;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(167, 77, 45, 0.24);
  border-radius: 999px;
  background: rgba(167, 77, 45, 0.08);
  color: #a74d2d;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.supervision-section {
  display: block;
  border-top: 1px solid rgba(25, 24, 23, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2)),
    #f6f8ff;
  text-align: center;
}

.supervision-copy {
  max-width: 1040px;
  margin: 0 auto;
}

.supervision-copy .eyebrow,
.supervision-copy h2 {
  text-align: center;
}

.supervision-copy .eyebrow::after {
  content: "";
  display: block;
  width: 76px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(36, 71, 114, 0.34);
}

.supervision-copy h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  color: #1f2738;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.18;
}

.supervision-copy p:not(.eyebrow) {
  max-width: 830px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.95;
}

.workflow-panel {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 42px auto 0;
}

.security-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workflow-panel div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  text-align: left;
  padding: 22px;
  border: 1px solid rgba(25, 24, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.workflow-panel span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dce8ff;
  color: #315d91;
  font-size: 13px;
  font-weight: 850;
}

.workflow-panel strong {
  font-size: 19px;
}

.workflow-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.supported-section {
  padding-top: 56px;
  padding-bottom: 136px;
  border-top: 1px solid rgba(25, 24, 23, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
    #f6f8ff;
  text-align: center;
}

.supported-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.supported-section .eyebrow {
  margin-bottom: 22px;
}

.supported-section .eyebrow::after {
  content: "";
  display: block;
  width: 76px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(36, 71, 114, 0.34);
}

.supported-section h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  color: #1f2738;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.18;
  white-space: nowrap;
}

.supported-section figure {
  max-width: 560px;
  margin: 44px auto 34px;
  padding: 34px;
  border: 1px solid rgba(36, 71, 114, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(36, 52, 92, 0.055);
}

.supported-section img {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
}

  .supported-section figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

.supported-section p:not(.eyebrow) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.95;
}

.roadmap-section {
  background: #e8eefc;
}

.roadmap-section .section-copy {
  max-width: 1040px;
}

.roadmap-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: rgba(25, 24, 23, 0.14);
}

.roadmap-timeline article {
  position: relative;
  min-height: 260px;
  padding: 58px 20px 24px;
  border: 1px solid rgba(25, 24, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.roadmap-timeline article::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 22px;
  width: 15px;
  height: 15px;
  border: 3px solid #e8eefc;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 1px rgba(167, 77, 45, 0.32);
}

.roadmap-timeline span {
  color: #a74d2d;
  font-size: 13px;
  font-weight: 850;
}

.roadmap-timeline h3 {
  margin: 14px 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.roadmap-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-section {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--ink);
  color: #fff;
}

.contact-section .eyebrow {
  color: #86c9b9;
}

.contact-section p {
  max-width: 680px;
  color: #ded9d0;
}

.contact-section .primary-action {
  margin-top: 18px;
  background: #fff;
  color: var(--ink);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.contact-actions .primary-action {
  margin-top: 0;
}

.contact-section .cta-note {
  color: #c8c3ba;
}

@media (max-width: 1040px) {
  .sticky-hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 104px;
  }

  h1 {
    max-width: 11em;
    font-size: clamp(42px, 8vw, 72px);
  }

  .product-shell {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scroll-stage {
    height: auto;
    min-height: 0;
  }

  .sticky-hero {
    position: relative;
    min-height: auto;
    padding-bottom: 76px;
  }

  .intro-hero {
    position: relative;
    min-height: 68vh;
    padding-top: 44px;
    opacity: 1;
    transform: none;
  }

  .hero-copy,
  .product-shell {
    opacity: 1;
    transform: none;
  }

  .lead {
    font-size: 16px;
  }

  .supported-section h2 {
    white-space: normal;
  }

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

  .shell-topbar {
    grid-template-columns: 70px 1fr 70px;
    padding: 0 12px;
  }

  .topbar-status {
    font-size: 0;
  }

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

  .chat-panel {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visual-stack {
    min-height: 410px;
  }

  .work-card {
    padding: 20px;
  }

  .principle-grid,
  .series-grid,
  .supervision-section,
  .supported-section,
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }

  .detail-section,
  .series-section,
  .supervision-section,
  .roadmap-section,
  .contact-section {
    padding: 76px 18px;
  }

  .roadmap-timeline::before {
    top: 0;
    bottom: 0;
    left: 29px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .roadmap-timeline article {
    min-height: auto;
    padding: 22px 20px 22px 62px;
  }

  .roadmap-timeline article::before {
    top: 26px;
    left: 22px;
  }

  .scroll-cue {
    display: none;
  }
}
