:root {
  color-scheme: light;
  --bg: #f0fcfde0;
  --panel: #ffffff;
  --sidebar: #fbfcfd;
  --field: #ffffff;
  --line: #d9dee7;
  --line-strong: #b9c7d4;
  --text: #17202a;
  --muted: #5b6675;
  --accent: #176b87;
  --accent-strong: #0f5066;
  --ok: #187348;
  --warn: #9a6500;
  --code: #eef3f7;
  --hover: #eef3f7;
  --subtle: #f8fafc;
  --user-message: #e9f4f2;
  --user-message-line: #c8dfda;
  --progress-bg: #f3f8fb;
  --progress-line: #c8d8e1;
  --shadow-color: rgba(23, 32, 42, .17);
  --shadow: 0 24px 70px rgba(23, 32, 42, .17);
  --app-background-image: url("./assets/background.svg");
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111418e0;
    --panel: #181d23;
    --sidebar: #14191f;
    --field: #101419;
    --line: #2b3541;
    --line-strong: #465566;
    --text: #e6edf3;
    --muted: #9aa8b7;
    --accent: #4fa3bd;
    --accent-strong: #77bed2;
    --ok: #4fbf86;
    --warn: #d5a94e;
    --code: #101820;
    --hover: #202832;
    --subtle: #151b22;
    --user-message: #12302d;
    --user-message-line: #24544e;
    --progress-bg: #14202a;
    --progress-line: #284153;
    --shadow-color: rgba(0, 0, 0, .45);
    --shadow: 0 24px 70px rgba(0, 0, 0, .45);
    --app-background-image: url("./assets/background-dark.svg");
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--app-background-image);
  background-attachment: fixed;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  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;
}

code {
  border-radius: 6px;
  padding: 2px 5px;
  background: var(--code);
  color: var(--text);
  font-size: .94em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}

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

.brand-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 1px 2px var(--shadow-color);
}

.brand-icon-dark,
.mock-logo-dark {
  display: none;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-strong);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 16px;
  font-weight: 750;
}

.header-cta,
.button.primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--accent-strong);
}

.header-cta:hover,
.button.primary:hover {
  filter: brightness(.92);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 4vw, 54px) 42px;
}

.hero-copy {
  max-width: 690px;
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.hero-stats dt {
  font-size: 13px;
  font-weight: 850;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-visual {
  min-width: 0;
}

.visual-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.app-frame {
  display: grid;
  grid-template-columns: 184px 1fr;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 14px;
  background: var(--bg);
}

.mock-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  margin-bottom: 6px;
}

.mock-brand strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 1px 2px var(--shadow-color);
}

.mock-search {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
}

.mock-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mock-section.active {
  background: var(--user-message);
  color: var(--accent-strong);
}

.mock-section em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mock-sidebar-tools {
  display: grid;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.mock-sidebar-tools span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--field);
}

.mock-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: color-mix(in srgb, var(--subtle) 88%, transparent);
}

.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.mock-title {
  display: block;
  font-weight: 800;
}

.mock-toolbar small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--ok) 42%, var(--line));
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--ok) 14%, var(--panel));
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
}

.mock-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
  gap: 14px;
  min-height: 0;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.chat-card,
.trace-card,
.answer-card,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.chat-card {
  align-self: flex-end;
  max-width: 88%;
  padding: 13px 15px;
  border-color: var(--user-message-line);
  background: var(--user-message);
  font-weight: 700;
}

.trace-card {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.trace-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--warn);
}

.answer-card {
  padding: 16px;
}

.answer-card p,
.mini-panel p {
  color: var(--muted);
}

.table-preview {
  display: grid;
  grid-template-columns: 1.35fr .7fr .85fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

.table-preview span,
.table-preview strong {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.table-preview span {
  background: var(--hover);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.table-preview strong {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-preview strong:nth-last-child(-n+3) {
  border-bottom: 0;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.response-actions span {
  border: 1px solid var(--progress-line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--progress-bg);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.mock-panels {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mini-panel {
  padding: 14px;
}

.mini-panel h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  color: var(--text);
  font-size: 24px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 7px;
  height: 76px;
  margin-top: 12px;
}

.bar-chart span {
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.store-panel div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.store-panel div:last-child {
  padding-bottom: 0;
}

.store-panel em {
  color: var(--ok);
  font-style: normal;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 54px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow),
.feature-copy p {
  color: var(--muted);
}

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

.safety-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.benefit-grid article,
.safety-grid article,
.setup-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.benefit-grid p,
.safety-grid p,
.setup-card p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.workflow,
.setup-section,
.cta-section {
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

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

.steps span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-weight: 850;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 38px;
  align-items: start;
  background: var(--accent-strong);
  color: #ffffff;
}

.feature-band .eyebrow,
.feature-copy p {
  color: #bfe4ec;
}

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

.feature-list div {
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 17px;
  background: rgba(255, 255, 255, .08);
  font-weight: 760;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, .64fr);
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.cta-copy {
  max-width: 820px;
}

.cta-copy p:not(.eyebrow) {
  color: var(--muted);
}

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.form-row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-row.full,
.access-form .button,
.form-status {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}

.form-row textarea {
  min-height: 108px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 2px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.success {
  color: var(--ok);
  font-weight: 750;
}

.form-status.error {
  color: var(--warn);
  font-weight: 750;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 54px);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 850;
}

@media (prefers-color-scheme: dark) {
  .brand-icon-light,
  .mock-logo-light {
    display: none;
  }

  .brand-icon-dark,
  .mock-logo-dark {
    display: block;
  }

  .header-cta,
  .button.primary {
    color: #0d1518;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-visual {
    order: -1;
  }

  .app-frame {
    min-height: 520px;
  }
}

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

  .nav {
    display: none;
  }

  .benefit-grid,
  .steps,
  .safety-grid,
  .setup-layout,
  .feature-band,
  .cta-section {
    grid-template-columns: 1fr 1fr;
  }

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

  .mock-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

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

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    padding: 28px 16px;
  }

  h1 {
    font-size: 39px;
  }

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

  .hero-stats,
  .benefit-grid,
  .steps,
  .safety-grid,
  .setup-layout,
  .feature-band,
  .feature-list,
  .mock-panels,
  .cta-section,
  .access-form {
    grid-template-columns: 1fr;
  }

  .app-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-main {
    padding: 14px;
  }

  .mock-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-card {
    max-width: 100%;
  }

  .table-preview {
    font-size: 12px;
  }

  .table-preview span,
  .table-preview strong {
    padding: 8px;
  }

  .section {
    padding: 54px 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
