:root {
  --paper: #f4f1e9;
  --ink: #171815;
  --muted: #67675f;
  --line: rgba(23, 24, 21, .17);
  --white: #fffef9;
  --acid: #d9ff57;
  --orange: #e95d39;
  --purple: #6f61ff;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); }
.wordmark { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.wordmark-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font-family: var(--serif); font-style: italic; }
.site-header nav { display: flex; gap: 28px; font-size: 12px; font-weight: 650; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { min-height: calc(100vh - 66px); padding: clamp(72px, 10vw, 140px) clamp(20px, 8vw, 128px) 72px; background: radial-gradient(circle at 85% 12%, rgba(217,255,87,.72) 0 9%, transparent 31%), linear-gradient(135deg, transparent 0 65%, rgba(111,97,255,.08) 65%); }
.kicker { margin: 0 0 22px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1, .section-heading h2, .closing h2 { margin: 0; max-width: 1100px; font: 400 clamp(54px, 9.2vw, 132px)/.9 var(--serif); letter-spacing: -.06em; }
.hero h1 em, .closing h2 em { color: var(--orange); font-weight: 400; }
.hero-copy { max-width: 690px; margin: 42px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; letter-spacing: -.02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 750; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--orange); border-color: var(--orange); }
.button-secondary:hover { background: var(--white); }
.install { display: flex; align-items: center; gap: 16px; max-width: 860px; margin-top: 68px; padding: 13px 14px 13px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.install code { flex: 1; overflow: auto; white-space: nowrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-button { flex: none; border: 0; padding: 9px 13px; color: var(--white); background: var(--purple); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.copy-button:hover { background: var(--ink); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.hero-notes span::before { content: "✓"; margin-right: 7px; color: var(--orange); font-weight: 900; }
.section { padding: clamp(82px, 10vw, 150px) clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 62px; }
.section-heading h2 { max-width: 980px; font-size: clamp(42px, 6.2vw, 88px); line-height: .98; }
.transformation { display: grid; grid-template-columns: minmax(0, .85fr) auto minmax(0, 1.15fr); align-items: center; gap: 28px; }
.source-card, .result-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.card-topline { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.source-card pre { min-height: 430px; margin: 0; padding: 28px; overflow: auto; white-space: pre-wrap; color: #35362f; font: 13px/1.82 ui-monospace, SFMono-Regular, Menlo, monospace; }
.transform-arrow { display: grid; gap: 8px; place-items: center; color: var(--orange); font: 34px var(--serif); }
.transform-arrow span { color: var(--muted); font: 9px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.result-card { padding: 16px; background: var(--ink); }
.result-card > p { margin: 18px 6px 4px; color: #dddcd4; font-size: 12px; line-height: 1.6; }
.result-card > p strong { color: var(--acid); }
.mini-browser { overflow: hidden; border-radius: 2px; background: var(--white); }
.mini-browser-bar { display: flex; gap: 5px; padding: 8px; background: #ecebe6; }
.mini-browser-bar i, .browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #aaa9a3; }
.mini-browser img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: top; }
.gallery { background: #dedbd2; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.tour-status { width: min(270px, 30vw); }
.tour-status button { padding: 0; border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
#tour-progress { display: block; height: 2px; margin-top: 12px; overflow: hidden; background: rgba(0,0,0,.12); }
#tour-progress i { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--orange); animation: tour-progress 4s linear infinite; }
.is-paused #tour-progress i { animation-play-state: paused; }
@keyframes tour-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gallery-toolbar { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.style-tabs, .viewport-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.style-tabs button, .viewport-tabs button { border: 1px solid rgba(0,0,0,.16); padding: 11px 14px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.style-tabs button b { margin-right: 7px; color: var(--muted); font: 10px ui-monospace, monospace; }
.style-tabs button[aria-selected="true"], .viewport-tabs button.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.style-tabs button[aria-selected="true"] b { color: var(--acid); }
.preview-stage { display: flex; min-height: 760px; padding: 26px; background: #aaa8a0; transition: padding .3s ease; }
.browser-frame { width: 100%; margin: auto; overflow: hidden; border: 1px solid rgba(0,0,0,.25); border-radius: 7px; box-shadow: 0 28px 70px rgba(25,25,22,.2); background: white; transition: width .35s cubic-bezier(.22,1,.36,1); }
.preview-stage[data-viewport="mobile"] .browser-frame { width: 390px; max-width: 100%; }
.browser-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 42px; padding: 0 14px; background: #eeece7; color: #65645e; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.browser-dots { display: flex; gap: 6px; }
.browser-bar > a { justify-self: end; color: #34342f; text-decoration: none; font-family: var(--sans); font-weight: 750; }
.browser-bar > a:hover { text-decoration: underline; }
#preview-frame { display: block; width: 100%; height: 715px; border: 0; background: white; }
.style-caption { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-top: 22px; font-size: 13px; }
.style-caption p { margin: 0; }
.style-caption p:first-child { font-weight: 800; }
.style-caption p:last-child { color: var(--muted); }
.demo-reel { background: var(--ink); color: var(--white); }
.demo-reel .kicker { color: var(--acid); }
.reel-note { max-width: 360px; margin: 0; color: #b7b6af; font-size: 13px; line-height: 1.65; }
.reel-frame { max-width: 1280px; margin: 0 auto; padding: 10px; border: 1px solid rgba(255,255,255,.2); background: #282925; }
.reel-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #11120f; }
.screen-grid { display: grid; grid-template-columns: 1.4fr .65fr .65fr; gap: 18px; align-items: start; }
.screen-card { margin: 0; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.screen-card img { display: block; width: 100%; height: 650px; object-fit: cover; object-position: top; background: #e8e5dd; }
.screen-phone img { height: 650px; }
.screen-card figcaption { display: flex; justify-content: space-between; padding: 12px 3px 2px; color: var(--muted); font-size: 10px; }
.prompt-section { background: var(--purple); color: var(--white); }
.prompt-section .kicker { color: var(--acid); }
.prompt-card { position: relative; max-width: 1100px; border: 1px solid rgba(255,255,255,.35); background: rgba(22,22,22,.25); }
.prompt-card pre { margin: 0; padding: 38px 170px 38px 38px; white-space: pre-wrap; font: 15px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt-copy { position: absolute; top: 24px; right: 24px; background: var(--acid); color: var(--ink); }
.principle-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principle-list li { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principle-list li > b { color: var(--orange); font: 22px var(--serif); }
.principle-list h3 { margin: 0 0 8px; font: 400 28px var(--serif); }
.principle-list p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.6; }
.closing { padding: clamp(100px, 13vw, 190px) clamp(20px, 8vw, 128px); text-align: center; background: var(--acid); }
.closing h2 { margin: 0 auto 42px; font-size: clamp(52px, 8vw, 112px); }
.closing h2 em { color: var(--purple); }
.disclaimer { max-width: 720px; margin: 54px auto 0; color: #515347; font-size: 10px; line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 4vw, 64px); background: var(--ink); color: #d8d7cf; font-size: 10px; }

@media (max-width: 820px) {
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .install { align-items: stretch; flex-direction: column; }
  .copy-button { align-self: end; }
  .transformation { grid-template-columns: 1fr; }
  .transform-arrow { grid-template-columns: auto auto auto; }
  .source-card pre { min-height: 320px; }
  .split-heading { align-items: start; flex-direction: column; }
  .tour-status { width: 100%; }
  .gallery-toolbar { flex-direction: column; }
  .preview-stage { min-height: 650px; padding: 12px; }
  #preview-frame { height: 610px; }
  .browser-bar { grid-template-columns: 1fr 1fr; }
  .browser-bar > span:nth-child(2) { display: none; }
  .style-caption { grid-template-columns: 1fr; gap: 6px; }
  .screen-grid { grid-template-columns: 1fr 1fr; }
  .screen-wide { grid-column: 1 / -1; }
  .screen-card img, .screen-phone img { height: 500px; }
  .prompt-card pre { padding: 84px 24px 28px; font-size: 13px; }
  .prompt-copy { top: 22px; left: 24px; right: auto; }
}

@media (max-width: 520px) {
  .wordmark span:last-child { display: none; }
  .hero h1 { font-size: 52px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .style-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-wide { grid-column: auto; }
  .principle-list li { grid-template-columns: 54px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #tour-progress i { animation: none; }
  .browser-frame { transition: none; }
}
