:root {
  color-scheme: light;
  --ink: oklch(13% 0.01 245);
  --paper: oklch(98% 0.006 105);
  --surface: oklch(95% 0.012 105);
  --raised: oklch(100% 0 0);
  --line: oklch(78% 0.018 100);
  --line-soft: oklch(88% 0.014 100);
  --muted: oklch(45% 0.018 245);
  --teal: oklch(49% 0.12 190);
  --teal-dark: oklch(36% 0.11 190);
  --amber: oklch(72% 0.16 78);
  --coral: oklch(64% 0.15 35);
  --shadow: 0 24px 80px oklch(16% 0.02 245 / 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.topbar,
.section,
.proof-strip,
footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line-soft);
  background: oklch(98% 0.006 105 / 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.hero-actions,
.proof-strip,
.release-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.topbar nav {
  gap: 24px;
  color: var(--muted);
  font: 800 13px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, oklch(13% 0.01 245 / 0.78), oklch(13% 0.01 245 / 0.18) 48%, transparent 74%),
    radial-gradient(circle at 76% 18%, oklch(72% 0.16 78 / 0.36), transparent 24%),
    linear-gradient(135deg, var(--surface), var(--paper));
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  padding: 8vh max(36px, 5vw) 8vh 56vw;
}

.editor-plane {
  position: relative;
  width: min(580px, 42vw);
  min-height: 500px;
  padding: 34px;
  border: 1px solid oklch(35% 0.02 245 / 0.26);
  background: oklch(100% 0 0 / 0.86);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.editor-plane::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid oklch(28% 0.02 245 / 0.35);
  background: var(--amber);
  content: "";
}

.editor-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.editor-plane p {
  max-width: 530px;
  margin: 22px 0 0;
  font-size: 23px;
  line-height: 1.42;
}

.editor-plane .muted-line {
  color: var(--muted);
  font: 900 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

mark {
  background: oklch(72% 0.16 78 / 0.42);
  color: inherit;
}

.nativey-toolbar {
  position: absolute;
  left: 52px;
  top: 258px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid oklch(13% 0.01 245 / 0.24);
  background: oklch(100% 0 0 / 0.78);
  box-shadow: 0 16px 42px oklch(13% 0.01 245 / 0.16);
  backdrop-filter: blur(18px);
}

.nativey-toolbar .mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  font: 900 13px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nativey-toolbar button,
.result-panel button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: default;
  font: 850 13px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nativey-toolbar button {
  padding: 0 11px;
}

.nativey-toolbar button:first-of-type {
  background: oklch(49% 0.12 190 / 0.12);
  color: var(--teal-dark);
}

.result-panel {
  position: absolute;
  right: 36px;
  bottom: 34px;
  width: min(360px, calc(100% - 72px));
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 56px oklch(13% 0.01 245 / 0.24);
}

.result-panel span {
  color: var(--amber);
  font: 900 12px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.result-panel p {
  margin-top: 10px;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.48;
}

.result-panel div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.result-panel button {
  padding: 0 12px;
  border: 1px solid oklch(98% 0.006 105 / 0.22);
  color: var(--paper);
}

.result-panel button:last-child {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18vh 0 16vh;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font: 900 12px/1.1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(72px, 15vw, 170px);
  line-height: 0.82;
}

.lede {
  max-width: 590px;
  margin-top: 26px;
  color: oklch(96% 0.006 105);
  font-size: 22px;
  line-height: 1.5;
}

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

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font: 900 14px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.primary {
  background: var(--teal);
  color: oklch(99% 0 0);
}

.secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.proof-strip {
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
}

.proof-strip span,
.mode-rail span {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font: 800 13px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.proof-strip span {
  padding: 10px 14px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

h2 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.94;
}

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

.flow-grid article {
  min-height: 250px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}

.flow-grid span {
  color: var(--coral);
  font: 900 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h3 {
  margin-top: 76px;
  font-size: 28px;
}

.flow-grid p,
.privacy-copy p,
.release-panel p,
.legal-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.flow-grid p {
  margin-top: 12px;
}

.mode-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-rail span {
  display: inline-flex;
  gap: 12px;
  min-height: 52px;
  align-items: center;
  padding: 0 18px;
}

.mode-rail b {
  color: var(--ink);
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.privacy-copy p + p {
  margin-top: 16px;
}

.privacy-copy a {
  display: inline-flex;
  margin-top: 24px;
  color: var(--teal-dark);
  font: 900 14px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.release-section {
  padding-bottom: 92px;
}

.release-panel {
  max-width: 880px;
  padding: 42px;
  background: var(--ink);
  color: var(--paper);
}

.release-panel p {
  max-width: 660px;
  margin-top: 18px;
  color: oklch(89% 0.012 105);
}

.release-actions {
  gap: 12px;
  margin-top: 28px;
}

footer {
  justify-content: space-between;
  min-height: 86px;
  color: var(--muted);
  font: 800 14px/1 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page {
  max-width: 860px;
  padding: 54px 0 80px;
}

.legal-hero {
  padding: 28px 0 38px;
}

.legal-hero h1 {
  max-width: 820px;
  color: var(--ink);
  font-size: 54px;
  line-height: 1;
}

.legal-hero .lede {
  color: var(--muted);
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.legal-section p + p {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    background:
      radial-gradient(circle at 82% 8%, oklch(72% 0.16 78 / 0.26), transparent 24%),
      var(--ink);
  }

  .hero-visual {
    position: relative;
    padding: 22px 24px 72px;
    place-items: center;
  }

  .hero-copy {
    padding: 72px 0 36px;
  }

  .editor-plane {
    width: min(100%, 680px);
    transform: rotate(0deg);
  }

  .section-head,
  .privacy-section,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .topbar,
  .section,
  .proof-strip,
  footer,
  .hero-copy {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 16px 0;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  h1 {
    font-size: 72px;
  }

  .lede {
    font-size: 19px;
  }

  .hero-actions,
  .release-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-plane {
    min-height: 560px;
    padding: 22px;
  }

  .editor-plane p {
    font-size: 19px;
  }

  .nativey-toolbar {
    left: 18px;
    right: 18px;
    top: 252px;
    overflow-x: auto;
  }

  .result-panel {
    right: 18px;
    bottom: 22px;
    width: calc(100% - 36px);
  }

  .section {
    padding: 54px 0;
  }

  .release-panel {
    padding: 28px;
  }

  .legal-page {
    padding: 28px 0 56px;
  }

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