:root {
  color-scheme: light;
  --paper: #f4f0e9;
  --paper-raised: #fbf8f3;
  --surface: #fffdf9;
  --ink: #191815;
  --muted: #6f6a62;
  --line: #cec7bc;
  --line-strong: #9a9286;
  --accent: #ce4a17;
  --accent-deep: #a9340b;
  --accent-soft: #f7d8ca;
  --lavender: #b4a2ef;
  --yellow: #f2be43;
  --green: #2b7b58;
  --shadow: 0 30px 80px rgba(58, 40, 26, 0.12);
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(88px, 10vw, 156px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17120f;
  --paper-raised: #211915;
  --surface: #2a1e18;
  --ink: #f3ede5;
  --muted: #b9aa9d;
  --line: #4c3b31;
  --line-strong: #796558;
  --accent: #ff7848;
  --accent-deep: #ff9d78;
  --accent-soft: #4b281b;
  --lavender: #a999e6;
  --yellow: #e4ae36;
  --green: #6ec89e;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .025; content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: white; }
code { font-family: "DM Mono", monospace; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: var(--gutter); z-index: 30; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: -.025em; }
.brand img { border-radius: 9px; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { width: 22px; height: 1px; display: block; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-header nav { position: absolute; top: 78px; right: 0; left: 0; padding: 18px var(--gutter) 24px; display: none; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header nav.is-open { display: flex; }
.site-header nav > a:not(.nav-cta) { min-height: 48px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.theme-toggle { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.nav-cta { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; }

.hero { min-height: calc(100vh - 78px); padding-block: clamp(64px, 8vw, 112px); display: grid; align-items: center; gap: 64px; }
.kicker, .section-index { margin: 0 0 28px; font: 500 11px/1.3 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 15%, transparent); }
h1, h2 { margin: 0; max-width: 10ch; font-size: clamp(48px, 9vw, 120px); font-weight: 600; line-height: .94; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 650px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5; letter-spacing: -.025em; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.button { min-height: 58px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid var(--accent); font-size: 14px; font-weight: 700; transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.button:hover { transform: translateY(-3px); }
.button.primary:hover { background: var(--accent-deep); }
.text-link { min-height: 48px; display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.hero-meta { margin: 46px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font: 500 11px/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .03em; }

.hero-visual { position: relative; min-height: 570px; }
.visual-label { position: absolute; top: 4%; left: 0; z-index: 3; width: min(82%, 390px); min-height: 58px; padding: 0 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font: 12px "DM Mono", monospace; }
.visual-label span { color: var(--accent); font-size: 10px; }
.visual-label strong { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.visual-label i { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--green); }
.browser-card, .figma-card { position: absolute; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.browser-card { top: 15%; left: 5%; width: 72%; transform: rotate(-2.5deg); }
.browser-top { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.browser-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); opacity: .65; }
.browser-top b { width: 45%; height: 9px; margin-left: 8px; border-radius: 9px; background: var(--paper); }
.browser-page { min-height: 310px; padding: 23px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; background: var(--paper-raised); }
.web-nav { grid-column: 1/-1; width: 100%; height: 10px; border-radius: 8px; background: var(--line); }
.web-copy { padding: 18px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); }
.web-copy b { width: 88%; height: 18px; background: var(--ink); }
.web-copy b:nth-child(2) { width: 68%; }
.web-copy i { width: 94%; height: 6px; margin-top: 8px; background: var(--line); }
.web-copy i:last-child { width: 76%; margin-top: 0; }
.web-image { display: grid; place-items: center; background: var(--accent-soft); }
.web-image img { width: 62px; height: 62px; border-radius: 14px; transform: rotate(4deg); }
.web-grid { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.web-grid i { height: 70px; border: 1px solid var(--line); background: var(--surface); }
.transfer-line { position: absolute; top: 49%; right: 0; z-index: 4; width: 48%; height: 2px; background: var(--accent); transform: rotate(15deg); transform-origin: right; }
.transfer-line::before, .transfer-line::after { position: absolute; right: -1px; content: ""; }
.transfer-line::before { top: -6px; width: 14px; height: 14px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.transfer-line::after { top: -5px; right: 48%; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.transfer-line span { position: absolute; top: -26px; left: 32%; padding: 3px 7px; background: var(--paper); color: var(--accent); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.figma-card { right: 1%; bottom: 2%; z-index: 5; width: 72%; transform: rotate(2deg); }
.figma-top, .preview-toolbar { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.figma-top i, .preview-toolbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }
.figma-canvas { position: relative; min-height: 265px; overflow: hidden; background: #deddda; }
[data-theme="dark"] .figma-canvas { background: #403e3a; }
.layer { position: absolute; padding: 7px; border: 1px solid #6556c7; background: color-mix(in srgb, white 94%, var(--lavender)); color: #413a72; font: 8px "DM Mono", monospace; }
.layer::before { position: absolute; inset: -4px; border: 1px solid #7767d9; content: ""; }
.layer-1 { top: 26px; left: 34px; width: 78%; height: 210px; }
.layer-2 { top: 58px; left: 54px; width: 64%; height: 62px; background: #f4d7ca; }
.layer-3 { top: 77px; left: 69px; width: 38%; height: 22px; background: #fff; }
.layer-4 { right: 14%; bottom: 24px; width: 27%; height: 88px; background: var(--accent-soft); }
.figma-foot { min-height: 45px; padding: 0 15px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px "DM Mono", monospace; }
.figma-foot b { color: var(--accent); font-size: 15px; }

.proof-strip { border-block: 1px solid var(--line); }
.proof-inner { min-height: 110px; display: grid; grid-template-columns: repeat(2, 1fr); }
.proof-inner span { min-height: 56px; padding: 16px 10px 16px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 500 10px/1.3 "DM Mono", monospace; text-transform: uppercase; }
.proof-inner b { color: var(--accent); font-weight: 500; }

.section { padding-block: var(--section-space); }
.section-head { margin-bottom: clamp(50px, 7vw, 88px); display: grid; gap: 28px; }
.section-head h2, .section-content h2, .install h2, .preview-copy h2 { max-width: 12ch; font-size: clamp(44px, 7vw, 88px); }
.section-head > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; border-top: 1px solid var(--line); }
.feature-card { min-height: 360px; padding: 30px 0 38px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.feature-number { color: var(--muted); font: 10px "DM Mono", monospace; }
.feature-icon { width: 96px; height: 96px; margin: 52px 0 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper-raised); color: var(--accent); font: 500 31px/1 Manrope, sans-serif; }
.feature-card h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.035em; }
.feature-card p { max-width: 38ch; margin: 0; color: var(--muted); font-size: 14px; }
.auto-layout-icon { display: flex; align-items: center; justify-content: center; gap: 5px; }
.auto-layout-icon i { width: 14px; height: 45px; border: 1px solid currentColor; }
.auto-layout-icon i:nth-child(2) { height: 64px; background: var(--accent-soft); }
.devices-icon { position: relative; display: block; }
.devices-icon i { position: absolute; bottom: 23px; border: 2px solid currentColor; }
.devices-icon i:nth-child(1) { left: 18px; width: 50px; height: 39px; }
.devices-icon i:nth-child(2) { right: 17px; width: 21px; height: 32px; background: var(--paper-raised); }
.devices-icon i:nth-child(3) { left: 28px; bottom: 17px; width: 30px; height: 2px; border: 0; background: currentColor; }
.pages-icon { position: relative; display: block; }
.pages-icon i { position: absolute; width: 42px; height: 51px; border: 1px solid currentColor; background: var(--paper-raised); }
.pages-icon i:nth-child(1) { top: 20px; left: 26px; transform: rotate(-8deg); }
.pages-icon i:nth-child(2) { top: 24px; left: 33px; transform: rotate(2deg); }
.pages-icon i:nth-child(3) { top: 29px; left: 40px; transform: rotate(9deg); }
.theme-icon i { width: 52px; height: 52px; display: block; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.vector-icon { font-size: 55px; font-weight: 400; }

.section-grid { padding-block: var(--section-space); display: grid; gap: 52px; border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: flex-start; gap: 20px; font: 500 11px "DM Mono", monospace; text-transform: uppercase; }
.section-label span { color: var(--accent); }
.section-label p { margin: 0; color: var(--muted); }
.steps { margin: clamp(56px, 8vw, 100px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 28px 0; display: grid; grid-template-columns: 48px 1fr; gap: 8px; border-bottom: 1px solid var(--line); }
.steps > li > span { padding-top: 5px; color: var(--accent); font: 11px "DM Mono", monospace; }
.steps h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.03em; }
.steps p { max-width: 600px; margin: 0; color: var(--muted); font-size: 15px; }

.product-preview { padding-block: var(--section-space); overflow: hidden; background: var(--ink); color: var(--paper); }
[data-theme="dark"] .product-preview { background: #0f0c0a; color: #f4f0e9; }
.preview-grid { display: grid; gap: 70px; align-items: center; }
.preview-copy p:not(.section-index) { max-width: 500px; margin: 32px 0; color: color-mix(in srgb, var(--paper) 68%, transparent); font-size: 18px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 13px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); font: 11px "DM Mono", monospace; text-transform: uppercase; }
.check-list li::before { color: var(--accent); content: "↗"; }
.preview-frame { width: min(100%, 520px); margin-inline: auto; border: 1px solid #5d5650; background: #fff9f5; color: #2a1a11; box-shadow: 35px 45px 0 var(--accent); transform: rotate(1.5deg); }
.preview-frame img { width: 100%; height: auto; display: block; }

.install { padding-block: var(--section-space); background: var(--accent); color: #fff; }
.install .kicker { color: #fff; opacity: .78; }
.install h2 { max-width: 13ch; }
.install-layout { margin-top: clamp(58px, 8vw, 100px); display: grid; gap: 64px; }
.install-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
.install-steps li { padding: 26px 0; display: grid; grid-template-columns: 48px 1fr; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.35); }
.install-steps > li > span { padding-top: 5px; font: 11px "DM Mono", monospace; opacity: .7; }
.install-steps h3 { margin: 0 0 7px; font-size: 19px; }
.install-steps p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.install-steps strong { color: #fff; font-weight: 700; }
.install-steps code { color: #fff; font-size: 12px; }
.figma-menu-path { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.figma-menu-path span { min-height: 36px; padding: 8px 10px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.09); color: #fff; font: 500 11px/1.35 "DM Mono", monospace; }
.figma-menu-path b { font-size: 13px; font-weight: 400; opacity: .58; }
.download-card { order: -1; padding: clamp(28px, 5vw, 50px); border: 1px solid rgba(255,255,255,.55); background: var(--paper); color: var(--ink); box-shadow: 24px 24px 0 rgba(94, 27, 3, .34); }
.download-label { font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.download-card > img { margin: 48px 0 20px; display: block; border-radius: 18px; }
.download-card h3 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.05em; }
.download-card > p { margin: 12px 0 30px; color: var(--muted); }
.download-button { width: 100%; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.manifest-path { margin-top: 20px; padding: 10px 10px 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); }
.manifest-path code { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.manifest-path button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; }
.download-card small { margin-top: 18px; display: block; color: var(--muted); font-size: 11px; }

.faq { border-top: 0; }
.faq-list { margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 78px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font: 300 28px/1 Manrope, sans-serif; transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 700px; margin: -4px 0 26px; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; color: var(--muted); font: 11px "DM Mono", monospace; text-transform: uppercase; }
.footer-brand { color: var(--ink); font-family: Manrope, sans-serif; text-transform: none; }
.footer-inner p { margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 720px) {
  .proof-inner { grid-template-columns: repeat(4, 1fr); }
  .proof-inner span + span { padding-left: 18px; border-left: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { padding-right: 32px; }
  .feature-card:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head .section-index { grid-column: 1/-1; }
  .section-head > p:last-child { align-self: end; }
  .section-grid { grid-template-columns: minmax(150px, .42fr) 1fr; }
  .preview-grid, .install-layout { grid-template-columns: .9fr 1.1fr; }
  .download-card { order: 0; }
}

@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .site-header nav { position: static; padding: 0; display: flex; flex-direction: row; align-items: center; gap: clamp(18px, 2.4vw, 36px); border: 0; background: transparent; }
  .site-header nav > a:not(.nav-cta) { position: relative; min-height: 44px; font-size: 13px; }
  .site-header nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; content: ""; transform: scaleX(0); transform-origin: right; background: currentColor; transition: transform 200ms var(--ease); }
  .site-header nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .theme-toggle { width: 44px; height: 44px; border: 0; }
  .nav-cta { min-height: 44px; }
  .hero { grid-template-columns: 1.04fr .96fr; gap: 5vw; }
  .hero-visual { min-height: 650px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card { padding: 30px clamp(24px, 3vw, 48px) 42px; border-left: 1px solid var(--line); }
  .feature-card:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .feature-card:nth-child(3n) { padding-right: 0; }
  .preview-grid { grid-template-columns: 1fr 1fr; gap: 10vw; }
  .install-layout { grid-template-columns: 1fr minmax(420px, .72fr); gap: 10vw; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #17120f; --paper-raised: #211915; --surface: #2a1e18; --ink: #f3ede5; --muted: #b9aa9d;
    --line: #4c3b31; --line-strong: #796558; --accent: #ff7848; --accent-deep: #ff9d78; --accent-soft: #4b281b;
    --lavender: #a999e6; --yellow: #e4ae36; --green: #6ec89e; --shadow: 0 30px 90px rgba(0,0,0,.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
