:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --quiet: #8a94a3;
  --line: #dfe6ef;
  --paper: #fbfcfe;
  --paper-deep: #f3f7fb;
  --blue: #0b66e4;
  --blue-deep: #063b8f;
  --green: #0f7f68;
  --gold: #b8860b;
  --white: #ffffff;
  --radius: 8px;
  --page-pad: clamp(22px, 6vw, 88px);
  color-scheme: light;
}

* {
  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;
}

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

picture {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(22px);
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.brand-mark img,
.footer-brand img {
  object-fit: contain;
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a,
.header-cta {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  background: var(--white);
}

.header-cta:hover {
  border-color: rgba(11, 102, 228, 0.35);
  color: var(--blue);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - 170px), 760px);
  overflow: hidden;
  padding: 56px var(--page-pad) 50px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, #fbfcfe 0%, rgba(251, 252, 254, 0.99) 42%, rgba(251, 252, 254, 0.68) 64%, rgba(251, 252, 254, 0.18) 100%),
    linear-gradient(rgba(15, 39, 73, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 73, 0.04) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.hero-media {
  position: absolute;
  top: 8%;
  right: -33%;
  z-index: -2;
  width: min(72vw, 1040px);
  transform: rotate(-1.2deg);
  transform-origin: center;
}

.hero-media img {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: var(--radius);
  filter: saturate(0.96);
}

.hero-copy {
  width: min(610px, 100%);
  padding-top: 8px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 112px;
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-line {
  margin: 28px 0 0;
  max-width: 610px;
  font-size: 50px;
  font-weight: 760;
  line-height: 1.02;
}

.hero-subline {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.button-secondary {
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(11, 102, 228, 0.38);
  color: var(--blue);
}

.hero-thread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 22px;
  width: max-content;
  max-width: 100%;
  margin-top: 28px;
  padding-top: 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.hero-thread::before {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 127, 104, 0.72), rgba(11, 102, 228, 0.1));
  content: "";
}

.hero-thread span {
  position: relative;
  white-space: nowrap;
}

.hero-thread span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 127, 104, 0.05), rgba(11, 102, 228, 0.035)),
    var(--line);
}

.proof-item {
  min-height: 164px;
  padding: clamp(18px, 2.2vw, 30px);
  background: var(--white);
}

.proof-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 840;
}

.proof-item p {
  max-width: 380px;
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 720;
  line-height: 1.16;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: start;
  padding: clamp(78px, 11vw, 136px) var(--page-pad);
}

.section-copy,
.editorial-copy,
.knowledge-copy,
.system-heading {
  max-width: 620px;
}

.section h2,
.system-section h2,
.final-cta h2 {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy > p:not(.eyebrow),
.editorial-copy > p:not(.eyebrow):not(.section-note),
.knowledge-copy > p:not(.eyebrow):not(.section-note),
.final-inner > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.section-note {
  max-width: 520px;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(15, 127, 104, 0.28);
  color: var(--ink);
  font-size: 18px;
  font-weight: 660;
}

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

.workflow-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-row span {
  color: var(--ink);
  font-weight: 800;
}

.workflow-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.media-story {
  padding: 0 var(--page-pad) clamp(70px, 9vw, 120px);
}

.screenshot-frame,
.editorial-media,
.project-media {
  margin: 0;
}

.screenshot-frame img,
.editorial-media img,
.project-media img {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: var(--radius);
  background: var(--white);
}

.screenshot-frame {
  position: relative;
}

.media-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.media-caption span {
  padding-top: 12px;
}

.editorial-section {
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tight-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 680;
}

.tight-list li {
  position: relative;
  padding-left: 22px;
}

.tight-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.knowledge-section {
  grid-template-columns: minmax(480px, 0.84fr) minmax(500px, 1.16fr);
  gap: clamp(56px, 8vw, 128px);
  align-items: center;
}

.project-media {
  align-self: center;
  justify-self: end;
  width: min(100%, 900px);
}

.system-section {
  padding: clamp(78px, 11vw, 136px) var(--page-pad);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.system-heading {
  margin-bottom: clamp(38px, 6vw, 76px);
}

.system-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-step {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-step span {
  display: block;
  margin-bottom: 36px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 840;
}

.system-step p {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.17;
}

.final-cta {
  padding: clamp(90px, 13vw, 156px) var(--page-pad);
  background:
    linear-gradient(rgba(15, 39, 73, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 73, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px, 36px 36px, auto;
}

.final-inner {
  max-width: 780px;
}

.final-inner > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.legal-page {
  min-height: calc(100svh - 146px);
  padding: clamp(78px, 10vw, 130px) var(--page-pad);
}

.legal-hero {
  max-width: 780px;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.legal-hero h1 {
  margin: 0;
  font-size: 88px;
  line-height: 0.92;
  letter-spacing: 0;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  max-width: 1120px;
  border: 1px solid var(--line);
  background: var(--line);
}

.legal-block {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
}

.legal-block h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.legal-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--blue);
  font-weight: 700;
}

.legal-image {
  width: min(100%, 360px);
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .knowledge-section {
    grid-template-columns: 1fr;
  }

  .project-media {
    justify-self: stretch;
    width: min(100%, 900px);
  }
}

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

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
  }

  .hero::before {
    background:
      linear-gradient(180deg, #fbfcfe 0%, rgba(251, 252, 254, 0.98) 46%, rgba(251, 252, 254, 0.72) 100%),
      linear-gradient(rgba(15, 39, 73, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 39, 73, 0.04) 1px, transparent 1px);
    background-size: auto, 30px 30px, 30px 30px;
  }

  .hero-media {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 100%;
    margin-top: 44px;
    transform: none;
  }

  .hero-copy {
    order: 1;
  }

  .hero h1 {
    font-size: 92px;
  }

  .hero-line {
    font-size: 42px;
  }

  .section h2,
  .system-section h2,
  .final-cta h2 {
    font-size: 56px;
  }

  .proof-band,
  .section,
  .editorial-section,
  .knowledge-section,
  .system-steps {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: unset;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .editorial-section {
    grid-template-columns: 1fr;
  }

  .system-step {
    min-height: 150px;
  }

  .legal-content {
    grid-template-columns: 1fr;
  }

  .legal-hero h1 {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-mark span {
    display: none;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 32px 18px 30px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-line {
    margin-top: 20px;
    font-size: 32px;
    line-height: 1.04;
  }

  .hero-subline {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .hero-thread {
    display: none;
  }

  .hero-media {
    margin-top: 28px;
    max-height: none;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .button {
    width: 100%;
  }

  .proof-item,
  .section,
  .system-section,
  .final-cta,
  .site-footer,
  .media-story {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section h2,
  .system-section h2,
  .final-cta h2 {
    font-size: 40px;
  }

  .media-caption {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-page {
    padding: 56px 18px 72px;
  }

  .legal-hero h1 {
    font-size: 48px;
  }

  .legal-block {
    min-height: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
