:root {
  --paper: #fff1df;
  --paper-deep: #f6e4ce;
  --ink: #262321;
  --muted: #746c64;
  --line: rgba(38, 35, 33, .11);
  --navy: #111c31;
  --blue: #69b7e8;
  --green: #b7e676;
  --coral: #ff9f9b;
  --shadow: 0 14px 26px rgba(52, 40, 27, .17), 0 3px 8px rgba(52, 40, 27, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(100% - 52px, 1180px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 760; letter-spacing: -.04em; }
.brand img { border-radius: 11px; box-shadow: 0 2px 4px rgba(17,28,49,.12); }
.version-chip { align-self: center; color: #968d83; font-size: 12px; font-weight: 750; transform: translateY(-7px); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; font-size: 15px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.site-header nav a:hover { background: rgba(38,35,33,.055); transform: translateY(-1px); }
.site-header nav .nav-download { padding-inline: 21px; background: rgba(38,35,33,.055); }
.nav-icon { font-size: 10px; }

.hero { display: flex; flex-direction: column; align-items: center; padding-top: 78px; }
.hero-copy { width: min(100%, 820px); }
.hero h1 { margin: 0; font-size: clamp(62px, 7.45vw, 104px); line-height: .95; letter-spacing: -.072em; font-weight: 790; }
.marker { position: relative; display: inline-block; z-index: 0; padding-inline: .04em .1em; }
.marker::before { content: ""; position: absolute; left: -.03em; right: 0; bottom: .04em; height: .35em; background: var(--coral); z-index: -1; transform: rotate(-1.4deg); }
.hero-summary { width: min(100%, 610px); margin: 32px 0 0; color: var(--muted); font-size: 18px; font-weight: 560; line-height: 1.52; letter-spacing: -.015em; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 760; box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; box-shadow: var(--shadow); }
.button-dark:hover { box-shadow: 0 18px 30px rgba(52,40,27,.22), 0 4px 9px rgba(52,40,27,.13); }
.button-soft { background: rgba(255,255,255,.22); }
.button-tag { margin-left: 4px; background: rgba(38,35,33,.11); border-radius: 8px; padding: 5px 8px; font-size: 12px; }

.demo-stage { position: relative; width: min(100%, 1050px); margin-top: 82px; }
.desktop-demo { position: relative; width: 100%; height: 570px; overflow: hidden; border: 1px solid #53617a; border-radius: 38px; background: #293958; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 28px 60px rgba(45,34,24,.18); user-select: none; }
.desktop-demo::before, .desktop-demo::after { content: ""; position: absolute; border-radius: 80px; pointer-events: none; }
.desktop-demo::before { width: 330px; height: 240px; left: 50px; bottom: 60px; background: #334c74; transform: rotate(-12deg); }
.desktop-demo::after { width: 430px; height: 250px; right: 20px; bottom: 15px; background: #172740; transform: rotate(13deg); }
.desktop-menubar { position: relative; z-index: 5; height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; color: #182236; background: #deddd9; border-bottom: 1px solid rgba(24,34,54,.12); font-family: system-ui, sans-serif; font-size: 11px; }
.menu-left, .menu-right { display: flex; align-items: center; gap: 12px; }
.menu-right { justify-content: flex-end; }
.traffic-lights { display: flex; align-items: center; gap: 6px; }
.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }
.menu-clickshift { position: relative; display: grid; place-items: center; width: 47px; height: 30px; border: 0; border-radius: 11px; background: rgba(17,28,49,.09); cursor: pointer; }
.menu-clickshift img { border-radius: 7px; }
.menu-status-dot { position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #9a938a; border: 1px solid white; }
.desktop-demo[data-tone="ready"] .menu-status-dot, .desktop-demo[data-tone="ready"] .panel-dot { background: #58cc7c; }
.desktop-demo[data-tone="working"] .menu-status-dot, .desktop-demo[data-tone="working"] .panel-dot { background: #f4a950; }
.desktop-demo[data-tone="working"] .menu-status-dot { animation: pulse 1.1s infinite; }
.desktop-content { position: relative; z-index: 2; height: calc(100% - 40px); }
.gear-readout { position: absolute; left: 50%; bottom: 38px; width: 184px; height: 74px; display: grid; grid-template-columns: auto auto; place-items: center; justify-content: center; column-gap: 18px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(17,28,49,.8); color: white; box-shadow: 0 15px 30px rgba(2,8,18,.22); }
.gear-readout small { max-width: 54px; color: rgba(255,255,255,.5); font-size: 8px; font-weight: 800; line-height: 1.25; letter-spacing: .12em; }
.gear-readout strong { font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.gear-readout.bump strong { animation: gearBump .22s ease; }

.clickshift-panel { position: absolute; z-index: 6; width: 300px; top: 51px; left: 50%; transform: translateX(-50%); padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(31,35,42,.93); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); color: white; box-shadow: 0 24px 50px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06); font-family: system-ui, -apple-system, sans-serif; text-align: left; transition: opacity .22s ease, transform .22s ease; }
.clickshift-panel.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -12px) scale(.96); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 5px 8px 3px; }
.panel-head img { border-radius: 5px; }
.panel-head > b { font-size: 12.5px; }
.panel-badge { display: inline-flex; align-items: center; gap: 5px; height: 19px; margin-left: auto; padding: 0 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.62); font-size: 10px; font-weight: 600; }
.panel-dot { width: 6px; height: 6px; border-radius: 50%; background: #96989b; transition: background .2s ease; }
.panel-separator { height: 1px; margin: 5px 8px; background: rgba(255,255,255,.1); }
.panel-label { padding: 3px 8px; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 650; }
.device-row { display: flex; align-items: center; gap: 9px; padding: 4px 8px; }
.device-glyph { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); transition: background .2s ease, color .2s ease; }
.device-glyph svg { width: 13px; height: 13px; }
.device-glyph.is-on { color: white; background: linear-gradient(#5fd37e, #34b75b); }
.device-glyph.is-working { color: white; background: linear-gradient(#f7b25e, #ec8f2d); }
.device-row div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.device-row b { font-size: 11.5px; font-weight: 500; }
.device-row span { color: rgba(255,255,255,.5); font-size: 9.5px; }
.panel-hint { margin: 2px 8px 3px; color: rgba(255,255,255,.5); font-size: 9.5px; line-height: 1.35; }
.shift-control { width: 100%; height: 25px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; border-radius: 7px; color: white; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.shift-control:hover, .panel-item:hover { background: rgba(255,255,255,.07); }
.shift-arrow, .panel-item > span { width: 14px; color: rgba(255,255,255,.5); font-size: 11px; text-align: center; }
.shift-control b { font-size: 11.5px; font-weight: 500; }
.shift-caps { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.shift-caps kbd { min-width: 19px; height: 18px; display: grid; place-items: center; padding: 0 5px; border: .5px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(255,255,255,.08); font: 700 10px system-ui, sans-serif; transition: background .2s ease, border-color .2s ease; }
.shift-caps kbd.round { border-radius: 99px; }
.shift-caps i { color: rgba(255,255,255,.3); font-size: 9px; font-style: normal; }
.desktop-demo[data-state="mapping"] .shift-caps kbd { border-color: rgba(105,183,232,.7); background: rgba(105,183,232,.22); }
.panel-item { width: 100%; height: 23px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; border-radius: 7px; color: rgba(255,255,255,.9); background: transparent; font: inherit; font-size: 11.5px; text-align: left; cursor: pointer; }
.panel-item kbd { margin-left: auto; color: rgba(255,255,255,.34); font: 10.5px system-ui, sans-serif; }
.demo-hint { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); color: #9d9082; font-size: 12px; font-weight: 650; white-space: nowrap; }

.feature-section { padding-top: 104px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 26px; width: min(100%, 930px); margin: 0 auto; }
.feature { display: flex; flex-direction: column; align-items: center; border: 0; padding: 7px; color: var(--ink); background: transparent; cursor: pointer; }
.feature-icon { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 15px; border: 2px solid currentColor; border-radius: 19px; font-family: system-ui, sans-serif; font-size: 30px; font-weight: 720; transition: transform .2s ease, background .2s ease; }
.feature:hover .feature-icon, .feature:focus-visible .feature-icon { transform: translateY(-4px) rotate(-2deg); background: rgba(255,255,255,.25); }
.feature b { font-size: 21px; line-height: 1.08; letter-spacing: -.045em; }
.feature small { max-width: 150px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.center-download { margin-top: 64px; }

.wordmark-section { min-height: 425px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; }
.social-row { display: flex; gap: 10px; margin-bottom: 48px; }
.social-row a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(38,35,33,.055); color: #8a8076; font-size: 12px; font-weight: 800; transition: color .2s ease, transform .2s ease; }
.social-row a:hover { color: var(--ink); transform: translateY(-2px); }
.giant-wordmark { width: 100%; text-align: center; color: rgba(38,35,33,.055); font-size: clamp(116px, 18vw, 250px); font-weight: 820; line-height: .67; letter-spacing: -.085em; pointer-events: none; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 128px; border-top: 1px solid var(--line); color: #8a8178; font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-brand img { border-radius: 9px; }
.footer-links { justify-self: end; display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

@keyframes pulse { 50% { transform: scale(.65); opacity: .55; } }
@keyframes gearBump { 45% { transform: scale(1.2); color: var(--green); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 700px); }
  .site-header { height: 88px; }
  .site-header nav a:not(.nav-download) { display: none; }
  .site-header nav .nav-download { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .hero { padding-top: 48px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(53px, 15vw, 82px); }
  .hero-summary { font-size: 16px; }
  .desktop-demo { height: 510px; border-radius: 28px; }
  .menu-left span:not(:first-child), .menu-left b, .menu-right span:not(:last-child) { display: none; }
  .gear-readout { bottom: 30px; }
  .clickshift-panel { width: min(300px, calc(100% - 24px)); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 14px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 460px); }
  .brand span { display: none; }
  .site-header nav .nav-download span { display: none; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(47px, 15.3vw, 67px); }
  .hero-summary { margin-top: 24px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .demo-stage { margin-top: 58px; }
  .desktop-demo { height: 475px; }
  .gear-readout { bottom: 22px; width: 164px; height: 66px; border-radius: 21px; }
  .gear-readout strong { font-size: 36px; }
  .clickshift-panel { top: 48px; }
  .feature-section { padding-top: 90px; }
  .feature-grid { gap: 34px 8px; }
  .feature-icon { width: 55px; height: 55px; border-radius: 16px; font-size: 24px; }
  .feature b { font-size: 18px; }
  .feature small { display: none; }
  .wordmark-section { min-height: 300px; }
  .site-footer { min-height: 106px; }
  .footer-links a:not(:last-child) { display: none; }
}

/* Secondary pages */
.subpage-main { width: min(100% - 52px, 900px); margin: 0 auto; padding: 96px 0 150px; }
.subpage-eyebrow { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.subpage-main h1 { max-width: 820px; margin: 16px 0 22px; font-size: clamp(56px, 7vw, 92px); line-height: .95; letter-spacing: -.07em; }
.subpage-lead { max-width: 680px; margin: 0 0 62px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px 0; border: 0; color: var(--ink); background: transparent; text-align: left; font-size: 19px; font-weight: 720; cursor: pointer; }
.faq-question span:last-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(38,35,33,.06); transition: transform .2s ease; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 720px; margin: 0; padding: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.release-list { display: grid; gap: 22px; }
.release-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.18); }
.release-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.release-head h2 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.release-head time { color: var(--muted); font-size: 13px; font-weight: 650; }
.release-card ul { margin: 22px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.download-card { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 38px; border-radius: 28px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.download-card h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.download-card p { margin: 9px 0 0; color: rgba(255,255,255,.56); line-height: 1.5; }
.download-card .button { background: white; color: var(--ink); box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; counter-reset: steps; }
.step { position: relative; min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.14); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 42px; color: #a59a8d; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.step h3 { margin: 0; font-size: 19px; }
.step p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.note { margin-top: 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 700px) { .subpage-main { width: min(100% - 32px, 640px); padding-top: 60px; } .download-card { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } }
