:root {
  --white: #fff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #ff6a2b;
  --link: #c2410c;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body {
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- local nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-title { font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.011em; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 0.75rem; letter-spacing: -0.01em; }
.nav nav a { color: var(--ink); opacity: 0.8; transition: opacity 160ms ease; }
.nav-btn {
  opacity: 1 !important;
  background: var(--accent); color: #fff !important;
  padding: 4px 11px; border-radius: 980px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease !important;
}
.nav-btn:active { transform: scale(0.97); }

/* ---------- type ---------- */
.eyebrow { font-size: 1.3125rem; font-weight: 600; color: var(--link); letter-spacing: 0.011em; }
h1 {
  font-size: clamp(3.25rem, 11vw, 7rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.04em;
}
.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
}
.sub {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400; line-height: 1.2; letter-spacing: 0.005em;
  color: var(--ink);
}

/* reference sections recede: smaller title, denser, less padding */
.minor .section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.025em; }
.minor { padding-top: 72px !important; padding-bottom: 72px !important; }
.minor .faq-list, .minor .spec-list { font-size: 0.9375rem; }

/* ---------- buttons + links ---------- */
.links { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  background: var(--accent); color: #fff;
  font-size: 1.0625rem; line-height: 1.18; letter-spacing: -0.022em;
  padding: 11px 21px; border-radius: 980px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.link { color: var(--link); font-size: 1.0625rem; }
.link::after { content: " ›"; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .nav-btn:hover { background: #ff7d45; }
  .link:hover { text-decoration: underline; }
  .nav nav a:hover { opacity: 1; }
}

/* not available yet: not a link, no press or hover state */
.soon { background: rgba(0, 0, 0, 0.08) !important; color: var(--ink-2) !important; cursor: default; user-select: none; }
.soon:active { transform: none !important; }
.nav .soon { opacity: 1 !important; }
.nav-btn.soon { font-weight: 500; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 22px 0; overflow: hidden; background: var(--white); }
.hero .eyebrow { margin-bottom: 8px; }
.hero .sub { margin-top: 16px; }
.hero-shot {
  max-width: 1200px; margin: 72px auto 0;
  transform-origin: 50% 0;
  will-change: transform;
}
.hero > :not(.hero-shot) { position: relative; z-index: 1; } /* text stays above the glow */
.hero-shot { position: relative; }
.glow {
  position: absolute; inset: 14% -22% 4%; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 45%, rgba(255, 106, 43, 0.8), rgba(255, 106, 43, 0.3) 52%, transparent 76%);
  filter: blur(64px);
  opacity: 0.6;
  will-change: opacity, transform;
}
.hero-shot img {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* ---------- tiles ---------- */
.tiles {
  background: var(--gray);
  padding: 96px max(22px, calc((100% - 1024px) / 2));
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.tiles .section-title { grid-column: 1 / -1; text-align: center; margin-bottom: 40px; }
.tile {
  background: var(--white);
  border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
}
.tile-wide { grid-column: 1 / -1; min-height: 0; }
.tile-copy { padding: 40px 40px 32px; text-align: center; }
.tile h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; line-height: 1.125; letter-spacing: -0.02em; }
.tile-copy p { margin-top: 10px; font-size: 1.0625rem; color: var(--ink-2); max-width: 30ch; margin-inline: auto; }

.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark .tile-copy p { color: #a1a1a6; max-width: 36ch; }
.crop {
  margin-top: 40px; aspect-ratio: 3.4 / 1;
  background: url("assets/editor.jpg") 0% 100% / 190% auto no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tile-img { width: 100%; margin-top: auto; border-radius: 18px 18px 0 0; }
.tile-ui { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px 24px 40px; }
.pill {
  background: #1c1c1e; color: #f5f5f7;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 980px;
  box-shadow: 0 12px 40px rgba(255, 106, 43, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.pill::before { content: "✦"; color: var(--accent); margin-right: 10px; }
.pill-2::before { content: "≡"; font-weight: 700; }

/* ---------- apps ---------- */
.apps { background: var(--white); text-align: center; padding: 96px 22px; }
.apps-grid {
  max-width: 1024px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.app { padding: 8px 32px; display: flex; flex-direction: column; align-items: center; }
.app + .app { border-left: 1px solid var(--line); }
.app > img { border-radius: 18px; }
.app h3 { margin-top: 20px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.app p { margin-top: 6px; color: var(--ink-2); }
.req { margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); }
.app .link { margin-top: 14px; }

/* ---------- export ---------- */
.export { background: #000; color: #f5f5f7; text-align: center; padding: 104px 22px; }
.export .sub { margin-top: 18px; color: #a1a1a6; }
.formats { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.formats span {
  font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em;
  padding: 14px 32px; border-radius: 980px;
  background: #1c1c1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---------- how ---------- */
.how { background: var(--white); text-align: center; padding: 96px 22px; }
.how .sub { margin-top: 16px; color: var(--ink-2); }
.steps { list-style: none; padding: 0; max-width: 1024px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.num { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--accent); }
.steps h3 { margin-top: 12px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.steps p { margin-top: 8px; color: var(--ink-2); }

/* ---------- export extras ---------- */
.formats-table { max-width: 1024px; margin: 64px auto 0; text-align: left; border-top: 1px solid rgba(255,255,255,0.15); }
.formats-table .row { display: grid; grid-template-columns: 0.7fr 1.5fr 1fr 2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.9375rem; color: #a1a1a6; }
.formats-table .head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6e6e73; padding: 12px 0; }
.formats-table b { color: #f5f5f7; font-weight: 600; font-size: 1.0625rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.875em; }
.formats-table code { color: #f5f5f7; word-break: break-all; }
.code { max-width: 1024px; margin: 64px auto 0; text-align: left; background: #1c1c1e; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.code-tabs { display: flex; gap: 4px; padding: 12px 12px 0; }
.code-tabs button {
  font: inherit; font-size: 0.875rem; color: #a1a1a6; background: none; border: 0;
  padding: 8px 16px; border-radius: 980px; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.code-tabs button:active { transform: scale(0.97); }
.code-tabs button[aria-selected="true"] { background: rgba(255,255,255,0.12); color: #fff; }
.code pre { margin: 0; padding: 24px; overflow-x: auto; font: 0.875rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: #f5f5f7; letter-spacing: 0; }
.code .c { color: #6e6e73; font-style: italic; }
.code .k { color: #ff7ab2; }
.code .t { color: #5dd8ff; }
.code .s { color: #ffb86b; }
.code .f { color: #b4a7ff; }
.note { margin-top: 20px; font-size: 0.875rem; color: #a1a1a6; }

/* ---------- trust ---------- */
.trust { background: var(--white); padding: 96px max(22px, calc((100% - 1024px) / 2)); text-align: center; }
.trust-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.trust-grid article { background: var(--gray); border-radius: 28px; padding: 36px; }
.ico { width: 32px; height: 32px; color: var(--accent); display: block; margin-bottom: 20px; }
.trust-grid h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.trust-grid p { margin-top: 10px; color: var(--ink-2); }

/* ---------- specs ---------- */
.specs { background: var(--gray); padding: 96px max(22px, calc((100% - 820px) / 2)); text-align: center; }
.spec-list { margin: 56px 0 0; text-align: left; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { background: var(--white); padding: 96px max(22px, calc((100% - 820px) / 2)); text-align: center; }
.faq-list { margin-top: 56px; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }
.faq a.link { font-size: inherit; }

/* ---------- close ---------- */
.close { background: var(--gray); text-align: center; padding: 104px 22px; }
.close .sub { margin-top: 16px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--gray); border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-2); letter-spacing: -0.01em; }
.foot-in { max-width: 1024px; margin: 0 auto; padding: 20px 22px 24px; }
.foot-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row a { margin-left: 20px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .steps, .trust-grid { grid-template-columns: 1fr; }
  .formats-table .head { display: none; }
  .formats-table .row { grid-template-columns: 1fr; gap: 4px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile-ui { padding: 48px 24px; }
  .crop { aspect-ratio: 2 / 1; }
  .apps-grid { grid-template-columns: 1fr; gap: 48px; }
  .app + .app { border-left: 0; border-top: 1px solid var(--line); padding-top: 48px; }
  .nav nav a:not(.nav-btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .hero-shot { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
