:root {
  --ink: #1d2523;
  --muted: #5b6864;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #d9e1dc;
  --deep: #111816;
  --teal: #0b7d71;
  --teal-dark: #075e56;
  --mint: #a9ecd8;
  --sun: #f5c95b;
  --coral: #ee715f;
  --blue: #4c7cff;
  --leaf: #7aa65d;
  --shadow: 0 24px 70px rgba(17, 24, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  color: var(--deep);
  background: var(--sun);
  border-radius: 6px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 24, 22, 0.66);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--deep);
  background: var(--mint);
  border-radius: 6px;
  font-size: 0.8rem;
}

.nav-links {
  gap: 1rem;
  font-size: 0.94rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--white);
}

.nav-cta {
  padding: 0.52rem 0.75rem;
  color: var(--deep) !important;
  background: var(--sun);
  border-radius: 6px;
  font-weight: 750;
}

.hero-board-scene {
  position: absolute;
  inset: -6rem -4rem -4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(13rem, 1fr));
  gap: 1.2rem;
  z-index: 0;
  opacity: 0.56;
  transform: rotate(-4deg) scale(1.08);
  transform-origin: center;
}

.scene-column {
  min-height: 88vh;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.scene-column span {
  display: block;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.scene-card {
  height: 8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.scene-card.is-blue {
  background: var(--blue);
}

.scene-card.is-yellow {
  background: var(--sun);
}

.scene-card.is-coral {
  background: var(--coral);
}

.scene-card.is-green {
  background: var(--leaf);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-hero .eyebrow {
  color: var(--mint);
}

.hero-copy h1,
.section-heading h2,
.signup-copy h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: 4.6rem;
}

.hero-line {
  max-width: 19ch;
  margin: 1.15rem 0 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-support,
.hero-note {
  max-width: 42rem;
}

.hero-support {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.76rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--deep);
  background: var(--sun);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.hero-note {
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.proof-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem max(1rem, calc((100vw - 1120px) / 2));
  color: var(--deep);
  background: var(--sun);
}

.proof-strip p {
  margin: 0;
  font-weight: 800;
}

.proof-strip p + p {
  font-weight: 650;
}

.section,
.signup-band,
.site-footer {
  padding-right: max(1rem, calc((100vw - 1120px) / 2));
  padding-left: max(1rem, calc((100vw - 1120px) / 2));
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-heading {
  max-width: 48rem;
}

.section-heading h2,
.signup-copy h2 {
  font-size: 3rem;
}

.section-heading p,
.signup-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.workflow-table {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.workflow-row {
  display: grid;
  grid-template-columns: 0.75fr 1.45fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

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

.workflow-row span:first-child {
  font-weight: 850;
}

.workflow-head {
  color: var(--white);
  background: var(--teal-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.split-section {
  background: #eef6f1;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.runtime-item,
.visual-panel,
.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.runtime-item {
  padding: 1.25rem;
}

.runtime-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.runtime-item p {
  margin: 0;
  color: var(--muted);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.visual-panel {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-panel > div {
  min-height: 18rem;
  padding: 1rem;
  background: #f5f7f5;
}

.product-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  background: #f5f7f5;
}

.visual-panel figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.board-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.mini-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.7rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-column strong {
  font-size: 0.82rem;
}

.mini-column span,
.mock-title,
.mock-toolbar,
.mock-field,
.run-history-preview > div,
.chat-row {
  border-radius: 6px;
}

.mini-column span {
  height: 3rem;
  background: var(--mint);
}

.mini-column:nth-child(2) span {
  background: var(--sun);
}

.mini-column:nth-child(3) span {
  background: #d7e0ff;
}

.mini-column:nth-child(4) span {
  background: #ffdcd4;
}

.card-detail-preview,
.run-history-preview,
.session-preview {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mock-toolbar {
  width: 42%;
  height: 1rem;
  background: var(--teal);
}

.mock-title {
  width: 72%;
  height: 2.4rem;
  background: var(--deep);
}

.mock-field {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.mock-field span,
.run-history-preview span {
  color: var(--muted);
  font-size: 0.84rem;
}

.mock-field.accent {
  border-color: var(--teal);
}

.run-history-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.session-preview {
  justify-content: center;
}

.chat-row {
  max-width: 84%;
  padding: 0.8rem 0.9rem;
}

.chat-row.user {
  align-self: flex-end;
  color: var(--white);
  background: var(--teal);
}

.chat-row.agent {
  color: var(--ink);
  background: var(--mint);
}

.signup-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--deep);
}

.signup-copy {
  color: var(--white);
}

.signup-copy .eyebrow {
  color: var(--mint);
}

.signup-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.signup-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.signup-form label,
.signup-form legend {
  font-weight: 800;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: #fbfcfb;
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: 3px solid rgba(11, 125, 113, 0.18);
  border-color: var(--teal);
}

.signup-form fieldset {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-form legend {
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
}

.check {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  font-weight: 700 !important;
}

.check input {
  width: auto;
}

.turnstile-slot {
  min-height: 4.2rem;
}

.turnstile-slot[hidden] {
  display: none;
}

.form-button {
  width: 100%;
  border: 0;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.5rem;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--teal-dark);
}

.form-status.is-error {
  color: #b23025;
}

.site-footer {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  background: #0c1110;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-copy h1 {
    font-size: 3.7rem;
  }

  .hero-line,
  .section-heading h2,
  .signup-copy h2 {
    font-size: 2.35rem;
  }

  .proof-strip,
  .runtime-grid,
  .visual-grid,
  .signup-band {
    grid-template-columns: 1fr;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .workflow-head {
    display: none;
  }

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

@media (max-width: 620px) {
  .site-hero {
    min-height: 88svh;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-copy {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .hero-line,
  .section-heading h2,
  .signup-copy h2 {
    font-size: 2rem;
  }

  .hero-support {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section,
  .signup-band {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-board-scene {
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }

  .signup-form fieldset {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 440px) {
  .board-preview,
  .signup-form fieldset {
    grid-template-columns: 1fr;
  }

  .visual-panel > div {
    min-height: 15rem;
  }

  .run-history-preview > div {
    display: grid;
  }
}
