:root {
  color-scheme: light dark;
  --background: #f4f9fd;
  --surface: #ffffff;
  --surface-soft: #e9f3fc;
  --surface-blue: #d8ebfb;
  --text: #142235;
  --text-muted: #586a7e;
  --line: #c8d9e7;
  --accent: #075fb8;
  --accent-hover: #044b91;
  --accent-soft: #dceeff;
  --on-accent: #f7fbff;
  --navy: #132a45;
  --shadow: 0 26px 70px rgba(37, 92, 140, 0.16);
  --radius: 20px;
  --header-height: 72px;
  --content: 1240px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(167, 219, 255, 0.34), transparent 26rem),
    var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--background);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.navbar {
  width: 100%;
  height: 100%;
  padding-inline: max(32px, calc((100vw - var(--content)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brand strong {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .store-cta {
  min-height: 42px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links .store-cta:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

.hero {
  width: min(calc(100% - 64px), var(--content));
  min-height: calc(100dvh - var(--header-height));
  margin-inline: auto;
  padding: clamp(36px, 5vh, 64px) 0;
  display: grid;
  grid-template-columns: minmax(470px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(3.6rem, 6.2vw, 6rem);
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-intro {
  max-width: 550px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: min(68vh, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-window {
  width: min(100%, 650px);
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(77, 137, 186, 0.22);
  border-radius: var(--radius);
  background: #06182f;
  box-shadow: 0 28px 80px rgba(3, 14, 30, 0.32);
}

.hero-window img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.trust-bar p {
  padding: 21px 14px;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.trust-bar p:last-child {
  border-right: 0;
}

.features {
  padding-block: clamp(92px, 12vw, 160px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.section-heading h2,
.interface-copy h2,
.privacy-copy h2,
.download h2 {
  font-size: clamp(2.6rem, 5.3vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading p,
.interface-copy > p,
.privacy-copy > p,
.download-copy > p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "remap scope"
    "pause local";
  gap: 18px;
}

.feature {
  min-height: 310px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  margin-top: 32px;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.feature p {
  max-width: 490px;
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-remap {
  grid-area: remap;
  min-height: 390px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), transparent 58%),
    var(--surface-blue);
}

.feature-scope {
  grid-area: scope;
  background: var(--navy);
  color: #f4f8fc;
}

.feature-scope p {
  color: #b9cadb;
}

.feature-pause {
  grid-area: pause;
}

.feature-local {
  grid-area: local;
  background:
    radial-gradient(circle at 85% 10%, rgba(128, 190, 240, 0.48), transparent 12rem),
    var(--surface-soft);
}

.key-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.key-demo kbd {
  min-width: 62px;
  padding: 14px 17px;
  border: 1px solid #9abbd6;
  border-bottom-width: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font: inherit;
  text-align: center;
  box-shadow: 0 10px 22px rgba(45, 102, 149, 0.1);
}

.key-arrow {
  margin-inline: 9px;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 500;
}

.feature-mark {
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #9ccfff;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-local .feature-mark {
  border-color: var(--line);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.56);
}

.pause-control {
  max-width: 460px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.toggle {
  width: 54px;
  height: 30px;
  padding: 3px;
  display: flex;
  justify-content: flex-end;
  border-radius: 999px;
  background: var(--accent);
}

.toggle i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
}

.interface {
  padding-bottom: clamp(100px, 14vw, 180px);
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(480px, 1.16fr);
  grid-template-areas:
    "copy main"
    "editor note";
  align-items: center;
  gap: clamp(32px, 6vw, 78px);
}

.interface-copy {
  grid-area: copy;
  align-self: end;
}

.screenshot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot img {
  width: 100%;
  height: auto;
}

.screenshot-main {
  grid-area: main;
  transform: rotate(1.25deg);
}

.screenshot-editor {
  grid-area: editor;
  margin-top: -28px;
  transform: rotate(-1.5deg);
}

.interface-note {
  grid-area: note;
  max-width: 520px;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}

.interface-note p {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.interface-note footer {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.privacy {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--surface-blue) 70%, transparent), transparent 62%),
    var(--surface);
}

.privacy-inner {
  padding-block: clamp(88px, 11vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: clamp(50px, 9vw, 130px);
}

.privacy-points {
  display: grid;
}

.privacy-points article {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.privacy-points article:first-child {
  padding-top: 0;
}

.privacy-points article:last-child {
  border-bottom: 0;
}

.privacy-points strong {
  color: var(--accent);
  font-size: 1rem;
}

.privacy-points span {
  color: var(--text-muted);
}

.download {
  min-height: 480px;
  padding-block: clamp(92px, 12vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
}

.download-copy {
  max-width: 780px;
}

.download-copy > img {
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(39, 94, 142, 0.16);
}

.store-badge {
  display: block;
  transition: transform 180ms ease;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge img {
  width: 250px;
  height: auto;
}

.footer {
  background: #12253a;
  color: #edf5fc;
}

.footer-inner {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 36px;
}

.wpc-brand {
  display: block;
}

.wpc-brand img {
  width: 180px;
  height: auto;
}

.footer p {
  color: #afc1d1;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #d8e7f3;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-main.reveal {
  transform: translateY(24px) rotate(1.25deg);
}

.screenshot-main.reveal.active {
  transform: translateY(0) rotate(1.25deg);
}

.screenshot-editor.reveal {
  transform: translateY(24px) rotate(-1.5deg);
}

.screenshot-editor.reveal.active {
  transform: translateY(0) rotate(-1.5deg);
}

.delay-100 {
  transition-delay: 100ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101b2b;
    --surface: #16263a;
    --surface-soft: #1a3048;
    --surface-blue: #1d3d5b;
    --text: #edf5fc;
    --text-muted: #afc1d1;
    --line: #314b64;
    --accent: #70b9ff;
    --accent-hover: #93caff;
    --accent-soft: #183957;
    --on-accent: #092039;
    --navy: #0b1726;
    --shadow: 0 26px 70px rgba(1, 9, 18, 0.34);
  }

  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(49, 111, 164, 0.2), transparent 26rem),
      var(--background);
  }

  .key-demo kbd {
    border-color: #527392;
    background: rgba(22, 38, 58, 0.88);
    color: var(--text);
  }

  .feature-scope p {
    color: var(--text-muted);
  }
}

@media (max-width: 1080px) {
  .section-shell,
  .hero,
  .footer-inner {
    width: min(calc(100% - 48px), var(--content));
  }

  .hero {
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
    gap: 38px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  .interface {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 64px;
  }

  .section-shell,
  .hero,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .navbar {
    padding-inline: 16px;
  }

  .brand span {
    display: inline;
  }

  .nav-toggle {
    display: block;
    z-index: 102;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 101;
    width: min(88vw, 350px);
    height: 100dvh;
    padding: 92px 26px 32px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--line);
    background: var(--surface);
    transform: translateX(105%);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 13px 4px;
    font-size: 1rem;
  }

  .nav-links .store-cta {
    margin-top: 12px;
    justify-content: center;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: block;
    background: rgba(5, 14, 25, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: calc(100dvh - var(--header-height));
    padding: 32px 0 44px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }

  .hero-intro {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-visual {
    min-height: min(38vh, 360px);
  }

  .hero-window {
    width: min(100%, 360px);
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar p:nth-child(2) {
    border-right: 0;
  }

  .trust-bar p:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "remap"
      "scope"
      "pause"
      "local";
  }

  .feature,
  .feature-remap {
    min-height: 300px;
  }

  .interface {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "main"
      "note"
      "editor";
    gap: 38px;
  }

  .screenshot-editor {
    margin-top: 0;
  }

  .interface-note {
    margin-block: 12px;
  }

  .privacy-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .download {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 9px;
    font-size: 0.86rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .button {
    width: 100%;
  }

  .key-demo {
    gap: 6px;
    font-size: 0.9rem;
  }

  .key-demo kbd {
    min-width: 48px;
    padding: 11px 10px;
  }

  .key-arrow {
    margin-inline: 2px;
    font-size: 1.5rem;
  }

  .privacy-points article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-badge img {
    width: min(100%, 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .screenshot-main.reveal,
  .screenshot-editor.reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
