/* figure landing */

:root {
  --accent: #c2603b;
  --accent-hover: #b0532f;
  --accent-soft: rgba(194, 96, 59, 0.10);
  --accent-quiet: rgba(194, 96, 59, 0.16);

  --bg: #f5f1ea;
  --bg-elev: #faf7f1;
  --bg-sunken: #efeadf;
  --ink: #1e1a16;
  --ink-1: #3a3429;
  --ink-2: #6e665b;
  --ink-3: #9b9387;
  --rule: #e3ddd0;
  --rule-strong: #d6cebd;
  --shadow-1: 0 1px 2px rgba(31, 24, 16, 0.04), 0 2px 6px rgba(31, 24, 16, 0.04);
  --shadow-staged:
    0 1px 1px rgba(31, 24, 16, 0.05),
    0 8px 18px -6px rgba(31, 24, 16, 0.10),
    0 28px 60px -20px rgba(31, 24, 16, 0.22),
    0 46px 100px -30px rgba(31, 24, 16, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --rad-sm: 6px;
  --rad-md: 10px;
  --rad-lg: 14px;
  --rad-xl: 20px;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

html[data-theme="dark"] {
  --bg: #161412;
  --bg-elev: #1d1a17;
  --bg-sunken: #121110;
  --ink: #f0ebe2;
  --ink-1: #d9d2c5;
  --ink-2: #8e867a;
  --ink-3: #6a635a;
  --rule: #2a2622;
  --rule-strong: #3a342e;
  --accent-soft: rgba(213, 117, 76, 0.14);
  --accent-quiet: rgba(213, 117, 76, 0.20);
  --accent: #d5754c;
  --accent-hover: #e5895f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-staged:
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 10px 22px -6px rgba(0, 0, 0, 0.45),
    0 36px 70px -20px rgba(0, 0, 0, 0.55),
    0 60px 120px -30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv02", "cv11";
  letter-spacing: -0.005em;
  line-height: 1.5;
  text-wrap: pretty;
  transition: background-color 200ms ease, color 200ms ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: opacity 150ms ease;
}
.nav-cta:hover { opacity: 0.88; }
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.theme-toggle:hover {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--rule-strong);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* hero */
.hero {
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}
h1.hero-title {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
}
h1.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
h1.hero-title .line:nth-child(1) { animation-delay: 80ms; }
h1.hero-title .line:nth-child(2) { animation-delay: 200ms; }
h1.hero-title .line:nth-child(3) { animation-delay: 320ms; color: var(--accent); }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0 0 36px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--rad-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px -2px var(--accent-quiet);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink-1);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--ink-2);
  color: var(--ink);
}
.size-hint {
  opacity: 0.7;
  font-size: 13px;
  margin-left: 4px;
}
.btn-coming-soon {
  background: var(--bg-elev);
  border-color: var(--rule);
  color: var(--ink-3);
  cursor: default;
  user-select: none;
  pointer-events: none;
}
.cta-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.cta-meta .sep {
  margin-inline: 10px;
  color: var(--ink-3);
  opacity: 0.6;
}

/* staged screenshot */
.stage {
  position: relative;
  perspective: 2200px;
}
.stage-image {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-staged);
  transform: rotateY(-8deg) rotateX(3deg) rotate(-0.8deg);
  transform-origin: 30% 50%;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage:hover .stage-image {
  transform: rotateY(-4deg) rotateX(1.5deg) rotate(-0.3deg);
}
.stage::after {
  content: "";
  position: absolute;
  inset: auto -8% -12% -8%;
  height: 60%;
  background: radial-gradient(ellipse at center top, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .stage-image { transform: rotate(-0.5deg); }
  .hero-sub { max-width: none; }
}

/* sections */
.sec {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.sec-heading {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 22ch;
}
.sec-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(48px, 6vw, 72px);
}
.step {
  display: flex;
  flex-direction: column;
}
.step-image {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--rad-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}
.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--obj, center);
  transition: transform 400ms ease;
}
.step:hover .step-image img { transform: scale(1.02); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.step-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.step-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step-image { aspect-ratio: 16/10; }
}

/* output gallery */
.output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(56px, 7vw, 88px);
}
.output-row + .output-row { margin-top: clamp(64px, 9vw, 120px); }
.output-row.reverse {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.output-row.reverse .output-caption { order: 2; }
.output-row.reverse .output-frame { order: 1; }

.output-caption .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.output-caption h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
}
.output-caption p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.output-caption .quoted {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--rad-md);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-1);
  font-style: italic;
}
.output-caption .quoted::before {
  content: "input";
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
  margin-bottom: 6px;
}

.output-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-staged);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
}
.output-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .output-row,
  .output-row.reverse {
    grid-template-columns: 1fr;
  }
  .output-row.reverse .output-caption { order: 1; }
  .output-row.reverse .output-frame { order: 2; }
}

/* setup */
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.setup-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.setup-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-1);
}
.setup-list li:last-child { border-bottom: 1px solid var(--rule); }
.setup-list .tick {
  margin-top: 4px;
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.setup-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.providers {
  border: 1px solid var(--rule);
  border-radius: var(--rad-lg);
  background: var(--bg-elev);
  padding: 22px;
}
.providers-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.providers-list {
  display: flex;
  flex-direction: column;
}
.provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink);
}
.provider:last-child { border-bottom: none; }
.provider .name { font-weight: 500; }
.provider .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.provider.recommended .badge {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 820px) {
  .setup-grid { grid-template-columns: 1fr; }
}

/* download */
.download {
  padding-block: clamp(80px, 12vw, 140px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.download .icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 24px -8px rgba(31, 24, 16, 0.18), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.download h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 18px;
}
.download p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 auto 36px;
}
.download .cta-row { justify-content: center; }

/* footer */
footer {
  border-top: 1px solid var(--rule);
  padding-block: 32px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-mit { opacity: 0.6; }
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a:hover { color: var(--ink-1); }

/* reveals */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  h1.hero-title .line { animation: none; opacity: 1; transform: none; }
  .stage-image { transition: none; }
}

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