:root {
  color-scheme: light;
  --landing-bg: oklch(98% 0.008 255);
  --landing-surface: oklch(100% 0.003 255);
  --landing-surface-soft: oklch(96.5% 0.014 255);
  --landing-ink: oklch(19% 0.026 257);
  --landing-muted: oklch(47% 0.028 257);
  --landing-line: oklch(88% 0.017 255);
  --landing-accent: oklch(57% 0.218 260);
  --landing-accent-dark: oklch(47% 0.22 260);
  --landing-cyan: oklch(78% 0.13 220);
  --landing-success: oklch(60% 0.15 150);
  --landing-danger: oklch(58% 0.2 28);
  --landing-shadow: 0 28px 80px oklch(24% 0.04 255 / 0.12);
  --landing-font: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--landing-bg);
  color: var(--landing-ink);
  font-family: var(--landing-font);
  font-size: 1rem;
  font-kerning: normal;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 3px solid var(--landing-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--landing-ink);
  color: var(--landing-surface);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out-expo);
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--landing-line);
  background: oklch(98% 0.008 255 / 0.92);
  backdrop-filter: blur(18px);
}

.landing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1480px);
  min-height: 72px;
  margin-inline: auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 44px;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.landing-brand-mark {
  position: relative;
  width: 27px;
  height: 31px;
  border: 2px solid var(--landing-accent);
  border-radius: 4px 7px 5px 4px;
  background: var(--landing-surface);
  transform: rotate(-2deg);
}

.landing-brand-mark::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--landing-accent);
  border-left: 2px solid var(--landing-accent);
  background: var(--landing-bg);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 0.92rem;
  font-weight: 600;
}

.landing-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.landing-nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--landing-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out-expo);
}

.landing-nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--landing-ink);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    color 160ms var(--ease-out-expo),
    background 160ms var(--ease-out-expo),
    transform 160ms var(--ease-out-expo);
}

.nav-cta:hover {
  background: var(--landing-ink);
  color: var(--landing-surface);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(660px, 1.42fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: center;
  width: min(100% - 64px, 1480px);
  min-height: calc(100svh - 72px);
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 132px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background-image: radial-gradient(circle, oklch(72% 0.028 255 / 0.42) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -12%;
  width: 58%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(86% 0.06 247 / 0.56), transparent 67%);
  filter: blur(22px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: hero-in 680ms var(--ease-out-expo) both;
}

.eyebrow,
.section-index {
  margin: 0 0 20px;
  color: var(--landing-accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8.5ch;
  margin: 0 0 26px -0.055em;
  font-size: clamp(4rem, 5.75vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.95;
}

.hero-lede {
  max-width: 34ch;
  margin: 0 0 34px;
  color: var(--landing-muted);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 220px;
  min-height: 58px;
  padding: 0 19px 0 24px;
  border: 1px solid var(--landing-accent);
  border-radius: 7px;
  background: var(--landing-accent);
  box-shadow: 0 14px 30px oklch(57% 0.218 260 / 0.22);
  color: oklch(99% 0.004 255);
  font-size: 1rem;
  font-weight: 750;
  transition:
    background 160ms var(--ease-out-expo),
    box-shadow 160ms var(--ease-out-expo),
    transform 160ms var(--ease-out-expo);
}

.primary-cta svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms var(--ease-out-expo);
}

.primary-cta:hover {
  background: var(--landing-accent-dark);
  box-shadow: 0 18px 38px oklch(47% 0.22 260 / 0.28);
  transform: translateY(-2px);
}

.primary-cta:hover svg {
  transform: translateX(3px);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-line svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--landing-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.product-preview {
  position: relative;
  z-index: 2;
  animation: preview-in 780ms 100ms var(--ease-out-expo) both;
}

.product-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% -6% -8% 8%;
  border: 1px solid oklch(77% 0.09 250 / 0.45);
  border-radius: 32px 18px 36px 22px;
  transform: rotate(2deg);
}

.preview-window {
  overflow: hidden;
  border: 1px solid oklch(82% 0.028 255);
  border-radius: 12px;
  background: var(--landing-surface);
  box-shadow: var(--landing-shadow);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  padding: 0 19px;
  border-bottom: 1px solid var(--landing-line);
  color: var(--landing-ink);
  font-size: 0.72rem;
}

.preview-title,
.preview-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-title small,
.preview-actions {
  color: var(--landing-muted);
}

.preview-menu {
  position: relative;
  width: 13px;
  height: 9px;
  margin-right: 8px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.preview-menu::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  border-top: 1.5px solid currentColor;
}

.saved-dot {
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--landing-accent);
}

.preview-actions i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid var(--landing-muted);
  border-radius: 50%;
}

.preview-actions b {
  letter-spacing: 0.05em;
}

.preview-canvas {
  position: relative;
  min-height: clamp(470px, 39vw, 590px);
  overflow: hidden;
  background-color: oklch(99% 0.004 255);
  background-image: radial-gradient(circle, oklch(77% 0.025 255 / 0.5) 0.7px, transparent 0.8px);
  background-size: 15px 15px;
}

.preview-toolbar {
  position: absolute;
  z-index: 8;
  top: 7%;
  left: 1.8%;
  display: grid;
  gap: 4px;
  width: 38px;
  padding: 5px;
  border: 1px solid var(--landing-line);
  border-radius: 7px;
  background: var(--landing-surface);
  box-shadow: 0 8px 22px oklch(25% 0.03 255 / 0.1);
  color: var(--landing-muted);
}

.preview-toolbar span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.preview-toolbar .is-active {
  background: var(--landing-accent);
  color: var(--landing-surface);
}

.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: oklch(32% 0.025 255);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.diagram-lines path:not(.accent-line) {
  marker-end: url(#arrow);
}

.diagram-lines .dashed {
  stroke-dasharray: 6 5;
  animation: dash-flow 7s linear infinite;
}

.diagram-lines .accent-line {
  stroke: var(--landing-accent);
  stroke-width: 2;
}

.diagram-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 15%;
  min-height: 9.4%;
  padding: 7px 12px;
  border: 1px solid oklch(37% 0.025 255);
  border-radius: 6px;
  background: var(--landing-surface);
  box-shadow: 0 3px 8px oklch(25% 0.02 255 / 0.04);
  font-size: clamp(0.56rem, 0.75vw, 0.72rem);
  white-space: nowrap;
}

.node-icon {
  color: var(--landing-muted);
  font-size: 0.9em;
}

.node-web {
  top: 7%;
  left: 29%;
}

.node-api {
  top: 26%;
  left: 29%;
}

.node-auth {
  top: 49%;
  left: 17%;
}

.node-billing {
  top: 49%;
  left: 46%;
}

.node-event {
  top: 73%;
  left: 34%;
}

.node-db {
  top: 11%;
  left: 54%;
  min-width: 10%;
  min-height: 12%;
  border-radius: 50%;
  font-size: clamp(0.48rem, 0.62vw, 0.62rem);
}

.node-db::before,
.node-db::after {
  content: "";
  position: absolute;
  right: -1px;
  left: -1px;
  height: 11px;
  border: 1px solid oklch(37% 0.025 255);
  border-radius: 50%;
  background: var(--landing-surface);
}

.node-db::before {
  top: -1px;
}

.node-db::after {
  bottom: -1px;
  border-top-color: transparent;
}

.diagram-node.is-selected {
  border: 2px solid var(--landing-accent);
  box-shadow: 0 0 0 1px oklch(57% 0.218 260 / 0.12);
}

.diagram-node.is-selected::before {
  content: "";
  position: absolute;
  inset: -5px;
  background:
    linear-gradient(var(--landing-accent), var(--landing-accent)) left top / 6px 6px no-repeat,
    linear-gradient(var(--landing-accent), var(--landing-accent)) right top / 6px 6px no-repeat,
    linear-gradient(var(--landing-accent), var(--landing-accent)) left bottom / 6px 6px no-repeat,
    linear-gradient(var(--landing-accent), var(--landing-accent)) right bottom / 6px 6px no-repeat;
}

.diagram-note {
  position: absolute;
  z-index: 3;
  top: 65%;
  left: 5.5%;
  padding: 8px 10px;
  border: 1px solid oklch(81% 0.04 255);
  border-radius: 4px;
  background: oklch(95% 0.04 250);
  color: var(--landing-muted);
  font-size: clamp(0.48rem, 0.6vw, 0.6rem);
  line-height: 1.25;
  transform: rotate(-2deg);
}

.suggestion-panel {
  position: absolute;
  z-index: 7;
  top: 8%;
  right: 2.2%;
  width: 27%;
  padding: 14px;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  background: var(--landing-surface);
  box-shadow: 0 12px 32px oklch(25% 0.03 255 / 0.12);
  font-size: clamp(0.51rem, 0.67vw, 0.68rem);
}

.suggestion-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}

.suggestion-heading > span {
  color: var(--landing-accent);
}

.suggestion-heading i {
  color: var(--landing-muted);
  font-size: 1.2em;
  font-style: normal;
}

.suggestion-panel p {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 5px;
  background: var(--landing-surface-soft);
  line-height: 1.45;
}

.suggestion-action {
  display: block;
  margin-bottom: 10px;
  padding: 8px 6px;
  border-radius: 5px;
  background: var(--landing-accent);
  color: var(--landing-surface);
  font-weight: 750;
  text-align: center;
}

.suggestion-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-top: 5px;
  padding: 0 8px;
  border: 1px solid var(--landing-line);
  border-radius: 5px;
}

.suggestion-question span {
  font-size: 1.45em;
  line-height: 1;
}

.preview-minimap {
  position: absolute;
  right: 2.2%;
  bottom: 3%;
  width: 21%;
  height: 15%;
  border: 1px solid var(--landing-line);
  border-radius: 6px;
  background: oklch(99% 0.004 255 / 0.94);
}

.preview-minimap span {
  position: absolute;
  width: 15%;
  height: 18%;
  border: 1px solid oklch(76% 0.025 255);
}

.preview-minimap span:nth-child(1) { top: 24%; left: 12%; }
.preview-minimap span:nth-child(2) { top: 54%; left: 27%; }
.preview-minimap span:nth-child(3) { top: 18%; left: 56%; }
.preview-minimap span:nth-child(4) { top: 58%; left: 68%; }

.preview-minimap i {
  position: absolute;
  inset: 12% 18% 10% 34%;
  border: 2px solid oklch(62% 0.18 258 / 0.75);
}

.hero-decoration {
  position: absolute;
  z-index: -1;
  color: oklch(71% 0.035 255 / 0.55);
}

.hero-decoration-one {
  top: 7%;
  left: -4%;
  width: 170px;
  height: 80px;
}

.hero-decoration-one span {
  position: absolute;
  top: 12px;
  left: 0;
  width: 46px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 5px 8px 4px 7px;
  transform: rotate(-4deg);
}

.hero-decoration-one i {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 2px dashed currentColor;
  border-radius: 50%;
}

.hero-decoration-one::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 55px;
  width: 45px;
  border-top: 2px solid currentColor;
}

.hero-decoration-two {
  bottom: 6%;
  left: 14%;
  width: 220px;
  height: 105px;
}

.hero-decoration-two span,
.hero-decoration-two i,
.hero-decoration-two b {
  position: absolute;
  border: 2px solid currentColor;
}

.hero-decoration-two span {
  bottom: 0;
  left: 0;
  width: 40px;
  height: 44px;
  border-radius: 4px;
  transform: rotate(2deg);
}

.hero-decoration-two i {
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hero-decoration-two b {
  right: 78px;
  bottom: 2px;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  transform: rotate(45deg);
}

.story-section,
.ai-section,
.local-section {
  scroll-margin-top: 88px;
}

.story-section,
.ai-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(540px, 1.18fr);
  gap: clamp(64px, 8vw, 132px);
  align-items: center;
  width: min(100% - 64px, 1360px);
  margin-inline: auto;
  padding-block: clamp(108px, 12vw, 180px);
}

.story-copy h2,
.local-section h2,
.final-cta h2 {
  margin: 0 0 24px -0.04em;
  font-size: clamp(2.65rem, 4.4vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.story-copy > p:not(.section-index) {
  max-width: 46ch;
  margin: 0;
  color: var(--landing-muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--landing-line);
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--landing-line);
  font-size: 0.94rem;
  font-weight: 650;
}

.feature-list span {
  color: var(--landing-accent-dark);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.thinking-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 430px;
  padding: clamp(30px, 4vw, 64px);
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  background: linear-gradient(135deg, oklch(98% 0.008 255), oklch(94% 0.024 252));
}

.thinking-visual > svg {
  width: 100%;
  fill: none;
  stroke: var(--landing-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.rough-cluster,
.clear-cluster {
  position: relative;
  min-height: 250px;
}

.rough-cluster span,
.clear-cluster span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 94px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid oklch(55% 0.03 255);
  background: var(--landing-surface);
  font-size: 0.7rem;
  font-weight: 650;
}

.rough-cluster span:nth-child(1) { top: 8%; left: 4%; transform: rotate(-3deg); }
.rough-cluster span:nth-child(2) { top: 43%; right: 0; transform: rotate(2deg); }
.rough-cluster span:nth-child(3) { bottom: 5%; left: 10%; transform: rotate(-1deg); }

.rough-cluster i {
  position: absolute;
  width: 70px;
  border-top: 1px dashed oklch(60% 0.035 255);
}

.rough-cluster i:nth-of-type(1) { top: 35%; left: 33%; transform: rotate(36deg); }
.rough-cluster i:nth-of-type(2) { bottom: 30%; left: 36%; transform: rotate(-39deg); }

.clear-cluster .clear-root {
  top: 2%;
  left: 50%;
  border-color: var(--landing-accent);
  background: oklch(95% 0.04 255);
  transform: translateX(-50%);
}

.clear-cluster span:nth-child(2) { bottom: 8%; left: 0; }
.clear-cluster span:nth-child(3) { right: 0; bottom: 8%; }

.clear-cluster i,
.clear-cluster b {
  position: absolute;
  border-top: 1.5px solid oklch(40% 0.03 255);
}

.clear-cluster i:nth-of-type(1) { top: 43%; left: 22%; width: 45%; transform: rotate(-48deg); }
.clear-cluster i:nth-of-type(2) { top: 43%; right: 22%; width: 45%; transform: rotate(48deg); }
.clear-cluster b { top: 29%; left: 50%; height: 28%; border-top: 0; border-left: 1.5px solid oklch(40% 0.03 255); }

.ai-section {
  position: relative;
}

.ai-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: oklch(95% 0.025 255);
}

.review-workflow {
  overflow: hidden;
  border: 1px solid oklch(82% 0.03 255);
  border-radius: 10px;
  background: var(--landing-surface);
  box-shadow: 0 24px 64px oklch(30% 0.04 255 / 0.1);
}

.workflow-header,
.workflow-item,
.workflow-apply {
  display: flex;
  align-items: center;
}

.workflow-header {
  justify-content: space-between;
  min-height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--landing-line);
  font-weight: 750;
}

.workflow-header small {
  color: var(--landing-muted);
  font-weight: 600;
}

.workflow-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  min-height: 104px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--landing-line);
}

.workflow-status {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--landing-line);
  border-radius: 50%;
  color: var(--landing-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.workflow-item.is-reviewed .workflow-status {
  border-color: var(--landing-success);
  background: oklch(95% 0.045 150);
  color: oklch(42% 0.13 150);
}

.workflow-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.workflow-item p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.82rem;
}

.workflow-item > small {
  color: var(--landing-accent-dark);
  font-size: 0.72rem;
  font-weight: 750;
}

.workflow-apply {
  justify-content: space-between;
  min-height: 72px;
  padding: 0 22px;
  background: var(--landing-surface-soft);
  color: var(--landing-muted);
  font-size: 0.8rem;
}

.workflow-apply strong {
  padding: 9px 13px;
  border-radius: 5px;
  background: var(--landing-accent);
  color: var(--landing-surface);
  font-size: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--landing-accent-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.text-link span {
  transition: transform 160ms var(--ease-out-expo);
}

.text-link:hover span {
  transform: translateX(4px);
}

.local-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(390px, 1.1fr);
  gap: 64px 100px;
  align-items: end;
  padding: clamp(100px, 11vw, 164px) max(32px, calc((100vw - 1360px) / 2));
  background: oklch(19% 0.026 257);
  color: oklch(97% 0.01 255);
}

.local-section .section-index {
  color: var(--landing-cyan);
}

.local-heading h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

.local-copy {
  max-width: 48ch;
  margin: 0 0 4px;
  color: oklch(79% 0.025 255);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
}

.local-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid oklch(42% 0.03 255);
}

.local-flow > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  min-height: 82px;
}

.local-flow span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid oklch(62% 0.07 250);
  border-radius: 50%;
  color: var(--landing-cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.local-flow strong {
  align-self: end;
  font-size: 0.94rem;
}

.local-flow small {
  align-self: start;
  color: oklch(68% 0.025 255);
}

.local-flow > i {
  position: relative;
  display: block;
  border-top: 1px dashed oklch(61% 0.06 250);
}

.local-flow > i::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid oklch(61% 0.06 250);
  border-right: 1px solid oklch(61% 0.06 250);
  transform: rotate(45deg);
}

.final-cta {
  display: grid;
  justify-items: center;
  padding: clamp(108px, 13vw, 190px) 32px;
  text-align: center;
}

.final-cta > p {
  margin: 0 0 18px;
  color: var(--landing-muted);
  font-size: 0.95rem;
}

.final-cta h2 {
  max-width: 12ch;
  margin-bottom: 40px;
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1480px);
  min-height: 112px;
  margin-inline: auto;
  border-top: 1px solid var(--landing-line);
  color: var(--landing-muted);
  font-size: 0.82rem;
}

.landing-footer .landing-brand {
  color: var(--landing-ink);
  font-size: 0.96rem;
}

.landing-footer .landing-brand-mark {
  width: 22px;
  height: 25px;
}

.landing-footer p {
  margin: 0;
}

.landing-footer > a:last-child {
  justify-self: end;
  color: var(--landing-ink);
  font-weight: 750;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -44;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 44px;
    width: min(100% - 48px, 1120px);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 6.4vw, 5.3rem);
  }

  .suggestion-panel {
    width: 30%;
  }

  .story-section,
  .ai-section {
    gap: 64px;
    width: min(100% - 48px, 1080px);
  }
}

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

  .hero-copy {
    display: grid;
    justify-items: start;
    max-width: 720px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(4rem, 10vw, 6.3rem);
  }

  .hero-lede {
    max-width: 40ch;
  }

  .preview-canvas {
    min-height: 560px;
  }

  .story-section,
  .ai-section {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .story-copy {
    max-width: 680px;
  }

  .ai-section .story-copy {
    grid-row: 1;
  }

  .local-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .local-copy {
    max-width: 60ch;
  }

  .local-flow {
    margin-top: 36px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 720px);
  }

  .landing-nav-links {
    display: none;
  }

  .hero,
  .story-section,
  .ai-section {
    width: min(100% - 32px, 720px);
  }

  .hero {
    padding-block: 64px 96px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15vw, 5.25rem);
  }

  .preview-canvas {
    min-height: 470px;
  }

  .preview-actions i {
    display: none;
  }

  .suggestion-panel {
    top: 6%;
    width: 37%;
  }

  .diagram-node {
    min-width: 18%;
  }

  .thinking-visual {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 760px;
  }

  .thinking-visual > svg {
    width: 84px;
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .local-flow {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .local-flow > i {
    width: 1px;
    height: 24px;
    margin-left: 21px;
    border-top: 0;
    border-left: 1px dashed oklch(61% 0.06 250);
  }

  .local-flow > i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .landing-footer {
    grid-template-columns: 1fr auto;
    gap: 20px;
    width: min(100% - 32px, 720px);
  }

  .landing-footer p {
    display: none;
  }
}

@media (max-width: 520px) {
  .landing-brand {
    font-size: 0.98rem;
  }

  .nav-cta {
    padding-inline: 13px;
    font-size: 0.8rem;
  }

  .hero {
    gap: 58px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 15vw, 4.2rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .product-preview {
    width: calc(100% + 20px);
    margin-left: -10px;
  }

  .preview-topbar {
    padding-inline: 12px;
  }

  .preview-title small,
  .preview-actions {
    display: none;
  }

  .preview-canvas {
    min-height: 420px;
  }

  .preview-toolbar {
    top: 5%;
    left: 2%;
    width: 31px;
    padding: 3px;
  }

  .preview-toolbar span {
    width: 23px;
    height: 23px;
    font-size: 0.68rem;
  }

  .diagram-node {
    min-width: 23%;
    min-height: 9%;
    padding: 5px 7px;
    font-size: 0.49rem;
  }

  .node-web,
  .node-api {
    left: 24%;
  }

  .node-auth {
    left: 13%;
  }

  .node-billing {
    left: 42%;
  }

  .node-event {
    left: 28%;
  }

  .node-db,
  .diagram-note,
  .preview-minimap {
    display: none;
  }

  .suggestion-panel {
    top: 8%;
    right: 2%;
    width: 43%;
    padding: 9px;
    font-size: 0.5rem;
  }

  .suggestion-question:last-child {
    display: none;
  }

  .story-section,
  .ai-section {
    padding-block: 96px;
  }

  .story-copy h2,
  .local-section h2 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .thinking-visual {
    min-height: 700px;
    padding: 28px 20px;
  }

  .workflow-item {
    grid-template-columns: 30px 1fr;
    padding-inline: 16px;
  }

  .workflow-item > small {
    grid-column: 2;
  }

  .workflow-apply {
    padding-inline: 16px;
  }

  .local-section {
    padding-inline: 24px;
  }

  .final-cta {
    padding-inline: 20px;
  }

  .landing-footer > a:last-child {
    font-size: 0.75rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .primary-cta,
  .nav-cta,
  .landing-nav-links a,
  .text-link {
    cursor: pointer;
  }
}

@media (pointer: coarse) {
  .landing-nav-links a,
  .nav-cta,
  .primary-cta,
  .text-link,
  .landing-footer a {
    min-height: 48px;
  }
}

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

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