:root {
  color-scheme: dark;
  --canvas: #0b0d0f;
  --surface: #15191d;
  --surface-raised: #1d2227;
  --line: #343b42;
  --text: #f5f6f7;
  --muted: #9da6ad;
  --red: #ef343f;
  --red-pressed: #c81f2a;
  --green: #62c18a;
  --steel: #bec7ce;
  --content: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - var(--content)) / 2)); background: rgba(11, 13, 15, .88); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; }
.brand img { border-radius: 7px; }
nav { display: flex; gap: 24px; margin-right: auto; color: var(--muted); font-size: 14px; }
nav a:hover, .footer-links a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.language-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.language-switch button { width: 42px; height: 32px; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--text); background: var(--surface-raised); }

.hero { min-height: 88svh; position: relative; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-light-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.motion-paused .hero-backdrop, .motion-paused .hero-live::after, .motion-paused .scroll-cue { animation-play-state: paused; }
.hero-backdrop { position: absolute; inset: -2%; background-color: rgba(0,0,0,.32); background-image: url("assets/wilswitch-hero.webp"); background-blend-mode: multiply; background-size: cover; background-position: center; animation: hero-drift 18s ease-in-out infinite alternate; }
.hero-content { position: relative; width: min(560px, calc(50% - 64px)); margin-left: max(24px, calc(50% + 40px)); margin-right: 24px; padding: 112px 0 68px; text-shadow: 0 2px 18px rgba(0,0,0,.9); animation: hero-arrive .72s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 760; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 88px; line-height: .95; letter-spacing: 0; }
.hero-lead { margin: 22px 0 8px; font-size: 36px; font-weight: 650; line-height: 1.12; }
.hero-copy { max-width: 590px; margin: 0; color: var(--steel); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { color: var(--muted); font-size: 13px; }
.hero-github { display: inline-block; margin-top: 18px; color: var(--steel); font-size: 13px; font-weight: 600; }
.hero-github:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.platform-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--steel); font-size: 12px; }
.platform-note span:last-child { padding-left: 10px; color: #b3a3d2; border-left: 1px solid #60536f; }
.purchase .platform-note { justify-content: center; margin: 2px 0; font-size: 12px; }
.hero-live { width: min(100%, 470px); min-height: 58px; margin-top: 24px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; overflow: hidden; position: relative; background: rgba(12,15,17,.76); border: 1px solid rgba(190,199,206,.32); border-radius: 7px; box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.hero-live::after { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 1px; background: var(--red); animation: live-scan 4.8s ease-in-out infinite; }
.hero-live-label { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.hero-live-text { display: inline-flex; align-items: baseline; gap: 10px; font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-live-text s { color: var(--muted); text-decoration-color: var(--red); }
.hero-live-text span { color: var(--green); }
.hero-live-layout { color: var(--steel); font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; animation: scroll-cue 2.4s ease-in-out infinite; }

.button { min-height: 44px; min-width: 176px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 680; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; }
.button.compact { min-width: auto; min-height: 36px; padding: 0 15px; }
.button-primary { background: #d82433; color: white; }
.button-primary:hover { background: #e02b39; transform: translateY(-2px); box-shadow: 0 9px 26px rgba(239,52,63,.24); }
.button-primary:active { background: var(--red-pressed); }
.button-secondary { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-raised); border-color: #59626a; transform: translateY(-2px); }

.band { max-width: var(--content); margin: 0 auto; padding: 108px 24px; }
.section-heading { max-width: 720px; }
h2 { margin: 0; font-size: 54px; line-height: 1.08; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }

.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr); align-items: center; gap: 64px; padding-top: 48px; }
.demo-stage { min-height: 350px; overflow: hidden; background: #101317; border: 1px solid #454d55; border-radius: 8px; box-shadow: 0 32px 80px rgba(0,0,0,.36); }
.demo-toolbar { height: 46px; display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; padding: 0 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; text-align: center; }
.window-controls { display: flex; gap: 7px; }
.window-controls i { width: 10px; height: 10px; border-radius: 50%; background: #4c5359; }
.window-controls i:first-child { background: var(--red); }
.demo-replay { justify-self: end; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font: 18px/1 system-ui; cursor: pointer; transition: color .16s ease, border-color .16s ease, transform .22s ease; }
.demo-replay:hover { color: var(--text); border-color: #66717a; transform: rotate(-45deg); }
.demo-editor { min-height: 304px; padding: 50px 34px 28px; display: flex; flex-direction: column; }
.demo-editor > p { margin: 0; color: var(--muted); font-size: 15px; }
.demo-input-line { min-height: 70px; margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--text); font: 720 36px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-prompt { color: var(--red); }
.demo-caret { width: 2px; height: 38px; background: var(--red); animation: caret-blink .82s steps(1) infinite; }
.demo-status { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.demo-status > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.demo-status i { width: 7px; height: 7px; border-radius: 50%; background: #727b82; transition: background-color .18s ease, box-shadow .18s ease; }
.demo-layout { display: inline-flex; align-items: center; gap: 8px; }
.demo-layout kbd { min-width: 30px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--steel); background: var(--surface); font: inherit; text-align: center; }
.demo-layout b { color: var(--red); }
.demo-stage.is-correcting .demo-input-line { animation: correction-pulse .26s ease; }
.demo-stage.is-corrected .demo-input-line { color: var(--green); }
.demo-stage.is-corrected .demo-status i { background: var(--green); box-shadow: 0 0 0 4px rgba(98,193,138,.12); }

.product { max-width: none; padding-left: max(24px, calc((100vw - var(--content)) / 2)); padding-right: 0; display: grid; grid-template-columns: minmax(340px, 470px) minmax(560px, 1fr); gap: 72px; align-items: center; background: var(--surface); border-block: 1px solid var(--line); }
.feature-list { list-style: none; margin: 34px 0 0; padding: 0; }
.feature-list li { position: relative; padding: 19px 0 19px 16px; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .2s ease, transform .2s ease; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 5px; height: 5px; background: #626c74; transition: height .2s ease, background-color .2s ease; }
.feature-list li:hover { color: var(--steel); transform: translateX(4px); }
.feature-list li:hover::before { height: 18px; background: var(--red); }
.feature-list strong { color: var(--text); }
.app-shot { --tilt-x: 0deg; --tilt-y: 0deg; margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; box-shadow: 0 30px 80px rgba(0,0,0,.36); transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-origin: center left; transition: transform .18s ease-out; }
.app-shot img { display: block; width: 100%; height: auto; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 44px 0 0; padding: 0; }
.step-grid li { min-height: 200px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.step-grid span { color: var(--red); font: 700 13px/1 ui-monospace, SFMono-Regular, monospace; }
.step-grid h3 { margin: 42px 0 8px; font-size: 22px; }
.step-grid p { margin: 0; color: var(--muted); }

.privacy { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; border-block: 1px solid var(--line); }
.privacy-mark { width: 200px; aspect-ratio: 1; display: grid; place-items: center; color: var(--steel); background: var(--surface-raised); border: 1px solid #566069; border-radius: 8px; font: 800 118px/1 Georgia, serif; text-shadow: 4px 4px 0 #090a0b; }
.privacy p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 18px; }
.text-link { color: var(--red); font-weight: 650; }

.license-strip { max-width: var(--content); margin: 24px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.license-strip div { min-height: 124px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.license-strip div:last-child { border-right: 1px solid var(--line); }
.license-strip strong { font-size: 25px; }
.license-strip span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.purchase { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: center; padding: 72px 24px; }
.purchase p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 17px; }
.purchase-actions { display: grid; gap: 12px; }
.purchase-actions .button { width: 100%; }
.purchase-actions small { color: var(--muted); text-align: center; }

.faq { display: grid; grid-template-columns: 320px 1fr; gap: 72px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 22px 36px 22px 0; font-weight: 650; cursor: pointer; }
details p { margin: -7px 0 22px; color: var(--muted); }

footer { max-width: var(--content); min-height: 120px; margin: 0 auto; padding: 36px 24px; display: flex; align-items: center; gap: 32px; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin-right: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; }

.legal { max-width: 840px; margin: 0 auto; padding: 120px 24px 80px; }
.legal h1 { font-size: 68px; letter-spacing: 0; }
.legal h2 { margin-top: 42px; font-size: 24px; }
.legal p, .legal li { color: var(--muted); }
.legal-nav { position: static; padding-inline: 24px; }
.legal h1 { font-size: 42px; line-height: 1.15; overflow-wrap: anywhere; }
.legal section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.legal .policy-links { margin-block: 28px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; color: var(--steel); }
.policy-links a:hover { text-decoration: underline; }
.purchase .launch-status { font-size: 14px; color: var(--steel); }
footer .brand { flex-shrink: 0; }
footer .footer-links { flex: 1; }

.motion-enabled .reveal { opacity: 0; transform: translateY(30px); transition: opacity .62s ease, transform .72s cubic-bezier(.2,.8,.2,1); }
.motion-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-drift {
  from { transform: scale(1.01) translate3d(-.3%, 0, 0); }
  to { transform: scale(1.055) translate3d(.6%, -.5%, 0); }
}
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes live-scan {
  0%, 18% { transform: translateX(0); opacity: 0; }
  30% { opacity: .9; }
  68% { opacity: .45; }
  82%, 100% { transform: translateX(470px); opacity: 0; }
}
@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes correction-pulse {
  50% { transform: translateX(5px); color: var(--red); }
}

@media (max-width: 1100px) {
  nav { display: none; }
  .site-header { padding-inline: 18px; }
  .hero { min-height: 88svh; align-items: flex-end; }
  .hero-backdrop { background-color: rgba(0,0,0,.48); background-position: 36% center; }
  .hero-content { width: auto; margin: 0; padding: 110px 24px 76px; }
  .hero h1 { font-size: 72px; }
  .hero-lead { font-size: 31px; }
  .hero-copy { font-size: 16px; }
  .demo, .product, .privacy, .purchase, .faq { grid-template-columns: 1fr; }
  .demo { align-items: start; }
  .demo-stage { width: min(100%, 760px); }
  .product { padding: 78px 0 0 24px; gap: 42px; }
  .product-copy { padding-right: 24px; }
  .app-shot { border-bottom: 0; }
  .privacy-mark { width: 120px; }
  .purchase { margin-inline: 18px; padding: 32px 24px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 160px; }
  .step-grid h3 { margin-top: 26px; }
  .license-strip { grid-template-columns: repeat(2, 1fr); }
  .license-strip div:nth-child(3) { border-top: 1px solid var(--line); }
  .license-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { margin: 0; }
}

@media (max-width: 560px) {
  .site-header .brand span, .header-actions .compact { display: none; }
  .hero-content { padding-top: 88px; padding-bottom: 64px; }
  .hero h1 { font-size: 54px; }
  .hero-lead { font-size: 26px; }
  h2 { font-size: 38px; }
  .hero-live { grid-template-columns: 1fr auto; }
  .hero-live-label { grid-column: 1 / -1; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .band { padding-block: 72px; }
  .demo { gap: 38px; padding-top: 40px; }
  .demo-stage { min-height: 320px; }
  .demo-toolbar { grid-template-columns: 70px 1fr 70px; }
  .demo-editor { min-height: 274px; padding: 38px 20px 22px; }
  .demo-input-line { font-size: 28px; }
  .demo-status { align-items: flex-start; flex-direction: column; }
  .product { padding-top: 68px; }
  .privacy { gap: 30px; }
  .license-strip { grid-template-columns: 1fr 1fr; padding-inline: 18px; }
  .license-strip div { min-height: 112px; padding: 20px 16px; }
  .license-strip strong { font-size: 20px; }
  .purchase { padding-block: 34px; }
  .legal h1 { font-size: 34px; }
}

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

@media (max-width: 560px) and (max-height: 700px) {
  .hero-content { padding-top: 76px; padding-bottom: 24px; }
  .hero h1 { font-size: 48px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 11px; }
  .hero-lead { margin-top: 16px; font-size: 22px; }
  .hero-copy, .hero-live, .scroll-cue { display: none; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-github { margin-top: 10px; }
  .hero-note { margin-block: 8px; }
  .hero .platform-note { margin-top: 10px; }
}
