:root {
  --ink: #16181c;
  --muted: #646873;
  --line: #e4e6eb;
  --surface: #f4f5f7;
  --accent: #3355ff;
  --accent-dark: #2c48e2;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 48px, 1080px); margin-inline: auto; }
.accent { color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .025em; color: var(--muted); }
.fineprint { font-size: 13px; color: var(--muted); }
.icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 90%); border-bottom: 1px solid rgb(0 0 0 / 7%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nav-inner { min-height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 16px; font-weight: 650; text-decoration: none; }
.brand img { display: block; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; color: var(--muted); font-size: 13px; }
.nav-links a, .nav-links button { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.nav-links button { min-width: 44px; border: 0; padding: 0; background: transparent; color: inherit; }
.nav-links a:hover, .nav-links button:hover { color: var(--ink); }
.nav-links .github-link { flex: none; width: 44px; }
.github-icon { width: 20px; height: 20px; fill: currentColor; }

.hero { padding: 78px 0 64px; text-align: center; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 6.7vw, 84px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { display: block; }
.lede { max-width: 28em; margin: 25px auto 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 26px; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 550; line-height: 1.5; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover { background: var(--accent-dark); }
.button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent); text-decoration: none; font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero .fineprint { margin-top: 17px; }

.demo { display: grid; grid-template-columns: .38fr .62fr; align-items: center; gap: 38px; padding: 48px; background: var(--surface); border: 1px solid #eceef2; border-radius: 24px; }
.demo h2 { margin-top: 15px; font-size: clamp(29px, 3vw, 36px); line-height: 1.3; letter-spacing: -.035em; white-space: pre-line; }
.demo-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.context-switch { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid #dde0e7; border-radius: 12px; }
.context-switch button { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; }
.context-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 7%); }
.context-switch button:hover { color: var(--ink); }
.demo-copy > .demo-feedback { min-height: 3.6em; font-size: 13px; color: #515969; }
.demo-preview { min-width: 0; }
.preview-context { margin: 0 0 15px 7px; color: #757b87; font-size: 12px; }
.menu-stage { min-height: 338px; padding-top: 3px; }
.menu, .submenu { padding: 6px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 8%), 0 8px 16px -6px rgb(0 0 0 / 12%), 0 24px 40px -20px rgb(0 0 0 / 24%); }
.menu { width: 264px; }
.menu-block { position: relative; }
.menu-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 35px; padding: 6px 9px; border: 0; border-radius: 5px; background: transparent; color: #272c35; font-size: 13px; line-height: 1.5; text-align: left; white-space: nowrap; }
.menu-button .icon { width: 16px; height: 16px; }
.menu-button:hover, .menu-button[aria-expanded="true"] { background: var(--accent); color: #fff; }
.menu-button:focus-visible { outline-offset: 1px; }
.chevron { margin-left: auto; padding-left: 8px; font-size: 20px; line-height: 16px; color: #9095a0; }
.menu-button:hover .chevron, .menu-button[aria-expanded="true"] .chevron { color: #fff; }
.separator { height: 1px; background: #e8e9ec; margin: 5px 7px; }
.submenu { position: absolute; top: -6px; left: calc(100% + 6px); width: 223px; z-index: 3; }
.file-type { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; min-height: 20px; color: #757b87; font: 600 9px/1.2 var(--font); }
.word { color: #245bc3; }
.excel { color: #247e52; }
.powerpoint { color: #b65a39; }
.menu-button:hover .file-type { color: #fff; }
.menu-button [data-t="templateExample"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-tag { flex: none; margin-left: auto; color: #828895; font-size: 10px; }
.menu-button:hover .menu-tag { color: #fff; }
.preview-caption { margin-top: 15px; color: #757b87; font-size: 12px; }

.features { padding-top: 100px; }
.section-heading { margin-bottom: 44px; text-align: center; }
.section-heading h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.25; font-weight: 650; letter-spacing: -.04em; white-space: pre-line; }
.feature-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; }
.feature-card { padding: 32px; border: 1px solid #eceef2; border-radius: 20px; background: #f8f9fb; }
.feature-card h3 { margin-top: 12px; font-size: clamp(23px, 2.6vw, 29px); line-height: 1.35; font-weight: 650; letter-spacing: -.025em; text-wrap: pretty; }
.feature-card > p:not(.eyebrow) { margin-top: 14px; max-width: 32em; color: var(--muted); font-size: 15px; line-height: 1.8; }
.creation-card { background: #f2f5ff; border-color: #e9edfc; }
.creation-card .eyebrow { color: #5069bc; }
.document-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.document-type { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 19px 8px 15px; background: rgb(255 255 255 / 85%); border: 1px solid rgb(0 0 0 / 4%); border-radius: 11px; font-size: 12px; }
.document-extension { font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.template-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 23px; color: #556487; }
.template-note .icon { width: 18px; height: 18px; margin-top: 3px; }
.template-note p { font-size: 13px; line-height: 1.7; }
.folder-list, .layout-preview { margin-top: 28px; padding: 5px 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.folder-list > div, .layout-preview > div { display: flex; align-items: center; gap: 11px; min-height: 47px; font-size: 13px; }
.folder-list > div + div, .layout-preview > div + div { border-top: 1px solid #f0f1f4; }
.folder-list .icon { width: 20px; height: 20px; color: #6e91c4; }
.folder-path { margin-left: auto; color: #878d99; font-size: 11px; }
.layout-card { background: #fff; }
.layout-preview { background: var(--surface); border-color: transparent; }
.layout-preview .icon { width: 18px; height: 18px; color: #727c91; }
.location-tag { margin-left: auto; padding: 2px 9px; background: #e8edff; border-radius: 5px; color: #4860a6; font-size: 11px; }
.location-tag.subtle { background: #e7e9ee; color: #666f80; }
.apps-card { background: #fff; }
.app-options { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }
.app-options > div { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.app-options .icon { color: #5b6579; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.tools .icon { color: #6e788b; }
.tools h3 { margin-top: 13px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.tools p { margin-top: 7px; font-size: 13px; line-height: 1.8; color: var(--muted); }

.dark { margin-top: 90px; padding: 66px 0; background: #12141b; color: #f4f5f8; }
.download-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.dark h2 { font-size: clamp(30px, 3.7vw, 40px); font-weight: 650; line-height: 1.35; letter-spacing: -.035em; text-wrap: pretty; }
.dark p:not(.fineprint) { margin-top: 13px; color: #a7acbb; font-size: 15px; }
.download-options { text-align: center; }
.download-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.download-buttons .button { padding-inline: 22px; font-size: 14px; }
.button-secondary { border-color: #434856; background: transparent; }
.button-secondary:hover { background: #252a36; }
.dark .fineprint { margin-top: 17px; color: #a7acbb; font-size: 11px; }
.dark :focus-visible { outline-color: #a9b6ff; }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 16px 18px; color: var(--muted); font-size: 13px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.spacer { flex: 1; }

@media (max-width: 1050px) {
  .demo { gap: 24px; padding: 36px; grid-template-columns: .36fr .64fr; }
  .menu { width: 232px; }
  .submenu { width: 210px; }
  .context-switch button { padding-inline: 10px; }
}

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 32px; }
  .demo-copy { max-width: 540px; }
  .demo-copy > .demo-feedback { min-height: 0; }
  .demo h2 { white-space: normal; }
  .demo-preview { width: 490px; max-width: 100%; margin-inline: auto; }
  .menu { width: 264px; }
  .submenu { width: 215px; }
  .menu-stage { min-height: 337px; }
  .features { padding-top: 76px; }
  .feature-card { padding: 25px; }
  .document-types { gap: 8px; }
  .document-extension { font-size: 20px; }
  .download-layout { grid-template-columns: 1fr; text-align: center; }
  .dark { padding-block: 48px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: min(100% - 40px, 1080px); }
  .nav-inner { min-height: 58px; gap: 12px; }
  .nav-links { gap: 14px; }
  .brand { font-size: 15px; }
  .brand img { width: 28px; height: 28px; }
  .hero { padding: 51px 0 42px; }
  .hero .eyebrow { font-size: 12px; }
  .hero h1 { font-size: clamp(39px, 10.5vw, 58px); }
  .lede { margin-top: 21px; font-size: 16px; line-height: 1.85; }
  .hero-actions { margin-top: 24px; gap: 22px; }
  .fineprint { font-size: 11px; }
  .demo { gap: 24px; padding: 25px 21px; border-radius: 18px; }
  .demo h2 { font-size: 29px; }
  .demo-copy > p:not(.eyebrow) { font-size: 14px; }
  .context-switch button { min-height: 44px; padding-inline: 16px; }
  .demo-copy > .demo-feedback { font-size: 12px; }
  .demo-preview { width: 100%; }
  .preview-context { margin-left: 0; font-size: 11px; }
  .menu-stage { min-height: 0; }
  .menu { width: 100%; }
  .menu-button { min-height: 44px; font-size: 13px; padding-inline: 10px; }
  .submenu { position: static; width: 100%; margin: 5px 0 7px; border-radius: 7px; background: #f3f4f7; box-shadow: none; }
  .menu-button[aria-expanded="true"] .chevron { transform: rotate(90deg); }
  .preview-caption { margin-top: 18px; font-size: 11px; }
  .features { padding-top: 60px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 31px; }
  .feature-grid { grid-template-columns: 1fr; gap: 15px; }
  .feature-card { padding: 25px; border-radius: 16px; }
  .feature-card h3 { font-size: 24px; }
  .feature-card > p:not(.eyebrow) { font-size: 14px; }
  .document-types { margin-top: 24px; }
  .document-type { font-size: 10px; padding: 17px 5px 13px; gap: 9px; }
  .document-extension { font-size: 20px; }
  .folder-list, .layout-preview { padding-inline: 12px; }
  .folder-path { font-size: 10px; }
  .app-options { gap: 10px; margin-top: 23px; }
  .app-options > div { padding-inline: 13px; font-size: 12px; }
  .tools { grid-template-columns: repeat(2, 1fr); gap: 27px 22px; margin-top: 32px; padding-top: 30px; }
  .tools h3 { font-size: 14px; }
  .tools p { font-size: 12px; }
  .dark { margin-top: 56px; }
  .dark h2 { font-size: 30px; }
  .dark p:not(.fineprint) { font-size: 14px; }
  .download-layout { gap: 26px; }
  .download-buttons { gap: 10px; }
  .download-buttons .button { padding-inline: 20px; font-size: 13px; }
  .dark .fineprint { font-size: 10px; }
  footer { gap: 0 20px; padding-block: 12px 16px; font-size: 12px; }
  footer > span:first-child { flex-basis: 100%; }
  .spacer { display: none; }
}

@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .nav-links { gap: 8px; font-size: 12px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand img { width: 25px; height: 25px; }
}

@media (max-width: 420px) {
  .nav-links a[href="#download"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
