:root {
  color-scheme: light;
  --ink: #152024;
  --ink-strong: #071315;
  --muted: #5d6b70;
  --paper: #f7f6f1;
  --panel: #ffffff;
  --line: #d9dfdc;
  --line-strong: #bbc8c3;
  --forest: #0d6b57;
  --forest-dark: #074a3e;
  --copper: #b85b33;
  --gold: #d7a531;
  --coral: #c94d48;
  --aqua: #3d9f9a;
  --shadow: 0 18px 50px rgba(11, 24, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(247, 246, 241, 0.94);
  border-bottom: 1px solid rgba(21, 32, 36, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink-strong);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  color: #4b5b5f;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a,
.nav-action {
  text-decoration: none;
}

.site-nav a:hover,
.nav-action:hover {
  color: var(--forest);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0a1314;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/live-generated-preview.png");
  background-size: cover;
  background-position: 66% top;
  transform: scale(1.02);
  filter: saturate(0.72) contrast(1.08);
  opacity: 0.64;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 17, 0.98), rgba(6, 16, 17, 0.88) 45%, rgba(6, 16, 17, 0.56)),
    linear-gradient(0deg, rgba(6, 16, 17, 0.72), rgba(6, 16, 17, 0.22) 45%, rgba(6, 16, 17, 0.66));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 86px 0 96px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #93ddd2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-copy {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  overflow-wrap: anywhere;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-strong);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.button.primary:hover {
  background: var(--forest-dark);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.button.quiet {
  background: #fffdf8;
  border-color: var(--line-strong);
  color: #233135;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip article {
  min-height: 116px;
  padding: 22px clamp(18px, 3vw, 34px);
  background: #fffdf8;
}

.proof-strip span,
.metric-card span,
.offer-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  color: var(--ink-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.15;
}

.band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2,
.walkthrough-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(31px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.walkthrough-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.proof-band {
  background:
    linear-gradient(180deg, #f7f6f1 0%, #eef4f1 100%);
}

.proof-band .section-kicker,
.architecture-band .section-kicker,
.walkthrough-band .section-kicker,
.offer-band .section-kicker,
.console-band .section-kicker {
  color: var(--copper);
}

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

.metric-card,
.console-panel,
.offer-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-card {
  min-height: 150px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(14, 44, 39, 0.06);
}

.metric-card strong {
  display: block;
  color: var(--ink-strong);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.proof-ledger {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.ledger-list {
  display: grid;
  gap: 10px;
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ledger-item strong {
  overflow-wrap: anywhere;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--line-strong);
}

.status-dot.pass {
  background: var(--forest);
}

.status-dot.fail {
  background: var(--coral);
}

pre {
  margin: 0;
  min-height: 240px;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #1f3033;
  border-radius: 8px;
  background: #10191b;
  color: #e6f1ef;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.architecture-band {
  background: #fffdf8;
}

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

.architecture article {
  min-height: 244px;
  padding: 22px;
  border-top: 3px solid var(--forest);
  background: #f5faf7;
}

.architecture article:nth-child(2) {
  border-top-color: var(--gold);
}

.architecture article:nth-child(3) {
  border-top-color: var(--copper);
}

.architecture article:nth-child(4) {
  border-top-color: var(--aqua);
}

.architecture span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #102527;
  color: #fff;
  font-weight: 900;
}

.architecture h3,
.offer-grid h3,
.console-panel h3 {
  margin: 16px 0 8px;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.12;
}

.architecture p,
.offer-grid p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.walkthrough-band {
  background: #eaf2ef;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.timeline article {
  padding: 16px 18px;
  border-left: 3px solid var(--forest);
  background: rgba(255, 255, 255, 0.74);
}

.timeline span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-strong);
  font-weight: 900;
}

.preview-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}

.preview-figure figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.console-band {
  background: #162326;
  color: #edf5f3;
}

.console-band .section-heading h2 {
  color: #fff;
}

.console-band .section-heading p {
  color: rgba(237, 245, 243, 0.76);
}

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

.console-panel {
  padding: 18px;
  background: #f8fbf8;
  color: var(--ink);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.auth-panel,
.chat-panel {
  grid-column: span 4;
}

.build-panel,
.ops-panel {
  grid-column: span 8;
}

.artifact-panel {
  grid-column: span 12;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
  font-size: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e5f5ef;
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.locked {
  background: #fff0ed;
  color: #a4312c;
}

.pill.muted {
  background: #eff1ef;
  color: #526166;
}

.stack {
  display: grid;
  gap: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #536368;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(13, 107, 87, 0.14);
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.field-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.answer-box {
  min-height: 144px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #213135;
  overflow-wrap: anywhere;
}

.artifact-panel iframe {
  width: 100%;
  height: min(720px, 72vh);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.offer-band {
  background: #fffdf8;
}

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

.offer-grid article {
  min-height: 226px;
  padding: 22px;
}

.offer-grid h3 {
  margin-top: 0;
}

.offer-grid span {
  margin-top: 24px;
  color: var(--copper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #10191b;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

[data-console-locked="true"] .build-panel,
[data-console-locked="true"] .chat-panel,
[data-console-locked="true"] .ops-panel,
[data-console-locked="true"] .artifact-panel {
  opacity: 0.62;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .section-heading,
  .proof-ledger,
  .walkthrough-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .chat-panel,
  .build-panel,
  .ops-panel {
    grid-column: span 12;
  }
}

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

  .nav-action {
    width: 100%;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-inner {
    width: min(330px, calc(100vw - 36px));
    margin-left: 18px;
    margin-right: 0;
  }

  .hero h1 {
    font-size: clamp(35px, 10vw, 48px);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 17px;
    max-width: 100%;
  }

  .proof-strip,
  .proof-grid,
  .architecture,
  .offer-grid,
  .field-grid,
  .inline-control {
    grid-template-columns: 1fr;
  }

  .proof-strip article {
    min-height: auto;
  }

  .band {
    padding: 46px 18px;
  }

  .section-heading h2,
  .walkthrough-copy h2 {
    font-size: 34px;
  }

  .architecture article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
