:root {
  color-scheme: light;
  --ink: #13212c;
  --muted: #526574;
  --navy: #24445e;
  --blue: #397aa5;
  --blue-soft: #b7d4e8;
  --gray: #d4dce2;
  --paper: #e8edf0;
  --line: #aebbc4;
  --white: #f7fafb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gray), var(--blue-soft) 48%, var(--paper));
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: rgba(25, 48, 65, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; }
nav { display: flex; gap: clamp(12px, 3vw, 28px); }
nav a { font-size: .95rem; font-weight: 700; text-decoration: none; }
.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 64px));
  overflow: hidden;
  color: var(--white);
  background: #20384a;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; filter: saturate(.8); }
.hero-shade { position: absolute; inset: 0; background: rgba(18, 35, 48, .73); }
.hero-content { position: relative; width: min(760px, calc(100% - 36px)); padding: clamp(92px, 17vh, 170px) 0 72px; margin: 0 auto; overflow-wrap: anywhere; text-align: center; }
.version, .eyebrow { margin: 0 0 12px; color: #d9edf9; font-weight: 800; text-transform: uppercase; font-size: .84rem; }
h1 { margin: 0; font-size: 5rem; line-height: .98; }
.hero-content > p:not(.version):not(.hero-note) { max-width: 680px; margin: 24px auto; font-size: 1.3rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 52px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 7px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); border-color: #8bc5e8; }
.button.secondary { color: #fff; background: rgba(19, 33, 44, .72); border-color: rgba(255, 255, 255, .65); }
.button:focus-visible, a:focus-visible { outline: 4px solid #ffd56a; outline-offset: 3px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #dce9f1; }
section:not(.hero) { padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 88px); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading .eyebrow, .privacy .eyebrow { color: var(--blue); }
h2 { margin: 0 0 12px; font-size: 3rem; line-height: 1.1; }
h3 { margin: 8px 0; }
.intro, .install, .support { background: rgba(247, 250, 251, .68); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid article { padding: 22px; background: rgba(247, 250, 251, .85); border: 1px solid var(--line); border-radius: 6px; }
.feature-grid span { font-size: 1.7rem; }
.feature-grid p { margin: 0; color: var(--muted); }
.screens { background: rgba(38, 73, 98, .93); color: var(--white); }
.screens .eyebrow { color: #bfe4f8; }
.screen-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
figure { margin: 0; overflow: hidden; background: #122431; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; }
figure img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
figcaption { padding: 10px 12px; font-weight: 800; }
.text-link { display: inline-block; margin-top: 24px; color: #d4efff; font-weight: 800; }
.steps { max-width: 900px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 56px; padding: 9px 0 18px 64px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 4px; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 900; }
.notice { max-width: 900px; margin: 28px 0; padding: 20px; border-left: 6px solid var(--blue); background: #d8e5ed; }
.notice code { display: block; padding: 12px; overflow-wrap: anywhere; background: #263c4b; color: #fff; border-radius: 4px; }
.copy-button { margin-top: 12px; min-height: 44px; padding: 9px 14px; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 5px; font: inherit; font-weight: 800; cursor: pointer; }
.copy-status { display: inline-block; min-height: 24px; margin-left: 10px; color: var(--navy); font-weight: 800; }
.standalone { width: min(100%, 460px); }
.privacy { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 28px; align-items: start; background: #c7d8e3; }
.privacy p { margin-top: 0; }
.support-links { display: flex; flex-wrap: wrap; gap: 10px; }
.support-links a { padding: 11px 14px; border: 1px solid var(--navy); border-radius: 5px; font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, .5); }
.support > p { max-width: 880px; margin-top: 28px; }
footer { padding: 30px 18px; text-align: center; color: #dce8ef; background: #172c3b; }
footer p { margin: 5px; }
.error-page { min-height: 100vh; padding: 15vh 20px; text-align: center; background: #d7e3ea; }
.error-page h1 { font-size: 3rem; }
.error-page p { max-width: 620px; margin: 20px auto; }
.gallery-page { min-height: 100vh; background: var(--paper); }
.gallery-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.gallery-intro h1 { font-size: 4rem; }
.gallery-intro p { color: var(--muted); font-size: 1.08rem; }
.gallery-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gallery-section { max-width: 1240px; margin: 0 auto; }
.gallery-section h2 { font-size: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-grid figure { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: 0 8px 24px rgba(19, 33, 44, .1); }
.gallery-grid figure img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.gallery-grid figcaption { color: var(--ink); text-align: center; }
.policy-page { background: var(--paper); }
.policy-content { width: min(860px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 88px; }
.policy-content h1 { margin: 0 0 24px; font-size: 3.6rem; line-height: 1.05; }
.policy-content h2 { margin-top: 44px; font-size: 1.7rem; }
.policy-content p, .policy-content li { color: var(--muted); font-size: 1.04rem; }
.policy-content li { margin-bottom: 12px; }
.policy-content a { color: var(--navy); font-weight: 800; }

@media (max-width: 820px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.4rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy { grid-template-columns: 1fr; gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 6px; }
  nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hero { min-height: calc(100vh - 92px); }
  .hero-content { padding-top: 88px; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 2rem; }
  .hero-content > p:not(.version):not(.hero-note) { font-size: 1rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-intro h1 { max-width: 100%; overflow-wrap: anywhere; }
  .gallery-intro p { overflow-wrap: anywhere; }
  .gallery-intro, .gallery-section { width: min(100%, 390px); }
  .gallery-intro h1 { font-size: 2.2rem; }
  .gallery-actions, .gallery-actions .button { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .policy-content h1 { font-size: 2.35rem; }
  section:not(.hero) { padding-left: 18px; padding-right: 18px; }
}

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