/* landing.css - Proof Grid direction.
   Self-contained marketing surface aligned to the in-app workbench. */

:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #111827;
  --text: #243247;
  --muted: #64748b;
  --line: #d9e3ef;
  --line-strong: #b8c6d8;
  --accent: #2f6df6;
  --accent-deep: #194dbf;
  --success: #16a34a;
  --warning: #d97706;
  --success-soft: #eaf9f0;
  --warning-soft: #fff7e6;
  --shadow: 0 24px 70px rgba(26, 43, 70, 0.14);
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-x: 72px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--accent);
  color: var(--surface);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid rgba(184, 198, 216, 0.72);
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(14px);
}

.masthead__brand,
.masthead__brand:hover {
  color: var(--ink);
}

.masthead__logo {
  display: block;
  width: 132px;
  height: auto;
}

.masthead__nav,
.masthead__actions,
.hero__actions,
.colophon__right {
  display: flex;
  align-items: center;
}

.masthead__nav {
  justify-content: center;
  gap: 28px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.masthead__nav a,
.colophon__right a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.masthead__nav a:hover,
.colophon__right a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.masthead__actions {
  justify-content: flex-end;
  gap: 12px;
}

.masthead__cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.24);
}

.masthead__cta:hover {
  background: var(--accent-deep);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
}

.lang-toggle__opt {
  opacity: 0.42;
}

.lang-toggle__opt.is-active {
  color: var(--accent);
  opacity: 1;
}

.lang-toggle__sep {
  color: var(--muted);
}

main {
  overflow: hidden;
}

.hero,
.workflow,
.proof,
.engines,
.security,
.finale,
.colophon {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 54px;
}

.hero__copy {
  max-width: 660px;
}

.eyebrow,
.section-kicker,
.review-note__label,
.engine-card__label,
.memory-item__key {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__headline {
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 600px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.hero__actions {
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 14px 30px rgba(47, 109, 246, 0.24);
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line-strong);
  color: var(--text);
}

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

.btn--large {
  min-height: 48px;
  padding: 0 22px;
}

.hero__proof {
  position: relative;
  min-width: 0;
  padding-top: 52px;
}

.review-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 650px);
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  background: var(--ink);
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: var(--shadow);
}

.review-strip__file {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-strip__divider {
  width: 1px;
  height: 16px;
  background: rgba(219, 234, 254, 0.32);
}

.review-strip__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.review-strip__pill--ok {
  color: var(--success);
}

.review-strip__pill--review {
  color: var(--warning);
}

.proof-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 112px 142px 76px;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  animation: rowIn 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.proof-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-row span:nth-child(2) {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
}

.proof-row--head {
  min-height: 42px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
  animation: none;
}

.proof-row--review {
  background: var(--warning-soft);
}

.proof-row--accepted {
  background: var(--success-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 62px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.status--accepted {
  background: #dcfce7;
  color: #15803d;
}

.status--review {
  background: #fef3c7;
  color: #a16207;
}

.review-note {
  position: relative;
  z-index: 3;
  width: min(100%, 500px);
  margin: -14px 30px 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(26, 43, 70, 0.12);
}

.review-note__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workflow,
.proof,
.engines,
.security,
.finale {
  padding-top: 78px;
  padding-bottom: 78px;
  border-top: 1px solid rgba(184, 198, 216, 0.72);
}

.workflow__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-top: 16px;
}

.workflow__head h2,
.proof__copy h2,
.engine-card h2,
.security__layout h2,
.finale h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.workflow__head p,
.proof__copy p,
.engine-card p,
.security-list p,
.finale p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.pipeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 52px;
  height: 2px;
  background: var(--line-strong);
}

.pipeline-step {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.pipeline-step--review {
  background: var(--warning-soft);
}

.pipeline-step h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pipeline-step__icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pipeline-step__icon--files::before,
.pipeline-step__icon--files::after,
.pipeline-step__icon--review::before,
.pipeline-step__icon--review::after,
.pipeline-step__icon--workbook::before,
.pipeline-step__icon--workbook::after {
  content: "";
  position: absolute;
  border-radius: 4px;
}

.pipeline-step__icon--files::before,
.pipeline-step__icon--files::after {
  width: 28px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.pipeline-step__icon--files::before {
  left: 17px;
  top: 14px;
}

.pipeline-step__icon--files::after {
  left: 23px;
  top: 9px;
}

.pipeline-step__icon--engine {
  display: grid;
  place-items: center;
  background: #edf4ff;
}

.pipeline-step__icon--engine img {
  width: 42px;
  height: auto;
}

.pipeline-step__icon--review::before {
  inset: 15px 13px;
  border-top: 2px solid var(--warning);
  border-bottom: 2px solid var(--success);
}

.pipeline-step__icon--review::after {
  right: 14px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: var(--warning);
  box-shadow: 0 14px 0 var(--success), 0 28px 0 var(--success);
}

.pipeline-step__icon--workbook {
  background: var(--success-soft);
}

.pipeline-step__icon--workbook::before {
  inset: 15px 18px;
  border: 1px solid #bbf7d0;
  background:
    linear-gradient(#bbf7d0 1px, transparent 1px),
    linear-gradient(90deg, #bbf7d0 1px, transparent 1px),
    var(--surface);
  background-size: 9px 9px;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 0.7fr);
  gap: 52px;
  align-items: center;
}

.proof__copy h2,
.security__layout h2,
.finale h2 {
  margin-top: 14px;
}

.proof__copy p {
  max-width: 560px;
  margin-top: 18px;
}

.memory-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.memory-panel__header,
.memory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.memory-panel__header {
  color: var(--ink);
  font-weight: 700;
}

.memory-panel__header span:last-child {
  color: var(--success);
  font-family: var(--mono);
  font-size: 12px;
}

.memory-item {
  grid-template-columns: 112px minmax(0, 1fr);
  color: var(--text);
  font-size: 14px;
}

.memory-item:last-child {
  border-bottom: 0;
}

.engines__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.engine-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(26, 43, 70, 0.08);
}

.engine-card h2 {
  margin-top: 18px;
  font-size: 34px;
}

.engine-card p {
  margin-top: 18px;
}

.security__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.78fr);
  gap: 58px;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.security-list li {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.security-list li:last-child {
  border-bottom: 0;
}

.security-list span {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.finale {
  text-align: center;
}

.finale h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  font-size: 48px;
}

.finale p {
  max-width: 560px;
  margin: 14px auto 28px;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(184, 198, 216, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.colophon__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.colophon__brand {
  color: var(--ink);
  font-weight: 700;
}

.colophon__right {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1040px) {
  :root {
    --pad-x: 36px;
  }

  .masthead {
    grid-template-columns: auto auto;
  }

  .masthead__nav {
    display: none;
  }

  .hero,
  .proof,
  .security__layout,
  .workflow__head {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding-top: 48px;
  }

  .hero__headline {
    font-size: 52px;
  }

  .hero__proof,
  .review-strip,
  .proof-grid,
  .review-note {
    margin-left: 0;
  }

  .hero__proof {
    padding-top: 10px;
  }

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

  .pipeline::before {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --pad-x: 20px;
  }

  body {
    background-size: 48px 48px;
  }

  .masthead {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .masthead__actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .masthead__logo {
    width: 124px;
  }

  .masthead__cta {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .lang-toggle {
    min-height: 34px;
    padding: 0 9px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero__headline {
    font-size: 38px;
    line-height: 1;
  }

  .hero__lede {
    font-size: 16px;
  }

  .hero__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 22px;
  }

  .btn {
    flex: 1;
    min-height: 42px;
    padding: 0 12px;
  }

  .review-strip {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .review-strip__divider,
  .review-strip span[data-i18n="hero.queue"] {
    display: none;
  }

  .proof-row {
    grid-template-columns: minmax(126px, 1fr) 92px 58px;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .proof-row:nth-child(n+5) {
    display: none;
  }

  .proof-row span:nth-child(2) {
    display: none;
  }

  .proof-row span:nth-child(3) {
    text-align: left;
  }

  .proof-row--head,
  .status {
    font-size: 10px;
  }

  .review-note {
    margin-top: -8px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .workflow,
  .proof,
  .engines,
  .security,
  .finale {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .workflow__head h2,
  .proof__copy h2,
  .security__layout h2,
  .finale h2 {
    font-size: 34px;
  }

  .pipeline,
  .engines__grid {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    min-height: 0;
  }

  .engine-card {
    min-height: 0;
    padding: 22px;
  }

  .engine-card h2 {
    font-size: 28px;
  }

  .memory-panel__header,
  .memory-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .colophon {
    flex-direction: column;
  }

  .colophon__right {
    justify-content: flex-start;
  }
}
