:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --text: #172026;
  --muted: #61707b;
  --line: #d8ded8;
  --line-strong: #aeb8b1;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --ink: #202733;
  --warm: #f59e0b;
  --approved: #18794e;
  --review: #a15c00;
  --empty: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}

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

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

.site-header nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.header-cta,
.primary-action,
.secondary-action,
.waitlist-form button,
.approve-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 750;
}

.header-cta {
  justify-self: end;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.72);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 22, 28, 0.82), rgba(10, 22, 28, 0.5) 48%, rgba(10, 22, 28, 0.16)),
    linear-gradient(0deg, rgba(10, 22, 28, 0.7), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 96px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c6f6e8;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-copy {
  max-width: 690px;
  margin: 18px 0 0;
  color: #edf7f3;
  font-size: 20px;
  line-height: 1.55;
}

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

.primary-action,
.waitlist-form button {
  background: var(--accent);
  color: #ffffff;
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.waitlist-band,
.workflow,
.beta-fit,
.review-demo {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 78px 0;
}

.waitlist-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 48px;
  align-items: start;
}

.waitlist-copy p,
.workflow article p,
.beta-fit li {
  color: var(--muted);
  line-height: 1.65;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(32, 39, 51, 0.08);
}

.waitlist-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea,
.search input,
.target-cell textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.waitlist-form input,
.waitlist-form select {
  height: 42px;
  padding: 0 11px;
}

.waitlist-form textarea {
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.45;
}

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

.form-status[data-state="success"] {
  color: var(--approved);
}

.form-status[data-state="error"] {
  color: #b42318;
}

.workflow {
  border-top: 1px solid var(--line);
}

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

.workflow article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.workflow article span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--warm);
  font-weight: 850;
}

.beta-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.beta-fit ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beta-fit li {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.62);
  padding: 14px 16px;
}

.review-demo {
  border-top: 1px solid var(--line);
}

.demo-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  gap: 8px;
}

.summary-grid div {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 12px;
}

.summary-grid span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.summary-grid p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--panel);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, max-content);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}

.filter-button {
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  padding: 0 13px;
  cursor: pointer;
}

.filter-button:last-child {
  border-right: 0;
}

.filter-button.is-active {
  background: #e7f5ef;
  color: var(--accent-dark);
  font-weight: 700;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search input {
  width: 340px;
  height: 36px;
  padding: 0 11px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
}

.table-header,
.translation-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.25fr) minmax(300px, 1.45fr) 150px minmax(180px, 0.9fr);
  min-width: 920px;
}

.table-header {
  position: sticky;
  top: 134px;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #f9fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.table-header div,
.translation-row > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 10px 12px;
}

.table-header div:last-child,
.translation-row > div:last-child {
  border-right: 0;
}

.translation-row {
  min-height: 116px;
  border-bottom: 1px solid var(--line);
}

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

.key-text {
  display: block;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.35;
}

.file-text,
.qa-note,
.context-cell {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.file-text {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.source-cell {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.context-cell {
  overflow-wrap: anywhere;
}

.context-cell p {
  margin: 0;
}

.screenshot-links {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.screenshot-links figure {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
}

.screenshot-links img {
  width: 42px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.screenshot-links figcaption {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.target-cell textarea {
  display: block;
  min-height: 72px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.4;
}

.qa-note {
  min-height: 18px;
  margin: 6px 0 0;
}

.qa-note.is-warning {
  color: #9f1239;
  font-weight: 700;
}

.status-cell {
  display: grid;
  align-content: start;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill[data-status="approved"] {
  background: #e8f5ee;
  color: var(--approved);
}

.status-pill[data-status="needs_review"] {
  background: #fff3df;
  color: var(--review);
}

.status-pill[data-status="untranslated"] {
  background: #f1f5f9;
  color: var(--empty);
}

.approve-button {
  min-height: 34px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--accent-dark);
  font-size: 13px;
}

.approve-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

  .site-header nav {
    display: none;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .waitlist-band,
  .workflow,
  .beta-fit,
  .review-demo {
    width: min(100% - 28px, 1180px);
    padding: 52px 0;
  }

  .waitlist-band,
  .beta-fit {
    grid-template-columns: 1fr;
  }

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

  .workflow article {
    min-height: 0;
  }

  .workflow article span {
    margin-bottom: 20px;
  }

  .demo-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .filter-button:nth-child(2) {
    border-right: 0;
  }

  .filter-button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }

  .search {
    align-items: stretch;
    flex-direction: column;
  }

  .search input {
    width: 100%;
  }
}
