:root {
  --window: #11100f;
  --bg: var(--window);
  --bg-deep: #080706;
  --surface: #1b1a18;
  --surface-elevated: #211f1c;
  --surface-muted: #292620;
  --surface-strong: #302c27;
  --input: #171614;
  --sidebar: #161513;
  --text: #f2efe9;
  --text-muted: #b8b1a6;
  --text-subtle: #91897d;
  --text-dark: #f2efe9;
  --muted-dark: #b8b1a6;
  --text-on-accent: #17120d;
  --interactive: #c4915e;
  --interactive-hover: #d4a16b;
  --interactive-pressed: #a9784a;
  --interactive-muted: #33271d;
  --amber: #c29a57;
  --success: #76a58a;
  --warning: #c29a57;
  --danger: #c96f68;
  --outline: #48423a;
  --outline-strong: #665f55;
  --divider: #332f2a;
  --focus: #e2b47f;
  --line: rgba(226, 180, 127, 0.2);
  --line-light: rgba(242, 239, 233, 0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--window);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.12; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(2.7rem, 5.2vw, 4.75rem); font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4.25rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 3.9vw, 3.45rem); font-weight: 680; }
h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 650; }
p { color: var(--text-muted); }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { position: relative; padding: 104px 0; border-bottom: 1px solid var(--divider); }
section[id] { scroll-margin-top: 78px; }
.section-dark { background: var(--window); }
.section-light { background: var(--surface); color: var(--text); }
.section-light p { color: var(--text-muted); }

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 120ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--divider);
  background: var(--sidebar);
}
.nav-wrap { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.035em; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--outline); border-radius: var(--radius-md); object-fit: cover; }
.brand-accent { color: var(--interactive-hover); }
.site-nav { display: flex; align-items: center; gap: 21px; }
.site-nav > a:not(.button) { color: var(--text-muted); font-size: 0.82rem; transition: color 140ms ease; }
.site-nav > a:not(.button):hover { color: var(--text); }
.language-toggle { padding: 5px 8px; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: transparent; color: var(--text); font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.language-toggle:hover { border-color: var(--interactive); color: var(--interactive-hover); }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--text); }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid var(--outline); border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 700; line-height: 1; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.button:hover { border-color: var(--outline-strong); background: var(--surface-muted); }
.button-primary { border-color: var(--interactive); background: var(--interactive); color: var(--text-on-accent); }
.button-primary:hover { border-color: var(--interactive-hover); background: var(--interactive-hover); color: var(--text-on-accent); }
.button-ghost { background: transparent; color: var(--text); }
.button-ghost:hover { background: var(--surface-muted); }
.button-small { min-height: 34px; padding: 0 12px; font-size: 0.76rem; }
.button-large { min-height: 46px; padding: 0 18px; font-size: 0.88rem; }

.hero { padding: 104px 0 82px; border-bottom: 1px solid var(--divider); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 70px; }
.hero-copy { max-width: 660px; }
.hero-copy, .hero-visual, .video-copy, .video-shell, .requirements-grid > *, .about-grid > *, .donate-grid > *, .download-inner > *, .footer-grid > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--interactive); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.hero .eyebrow { text-transform: none; letter-spacing: 0.05em; }
.eyebrow-dark { color: var(--interactive); }
.hero-lead { max-width: 575px; margin-bottom: 28px; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.75; }
.hero-points { max-width: 620px; margin: -8px 0 24px; padding: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; text-align: left; list-style: none; }
.hero-points li { display: inline; padding: 0; color: inherit; }
.hero-points li + li::before { color: var(--interactive); content: " · "; white-space: pre; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-visual { min-width: 0; }
.hero-shot { margin: 0; overflow: hidden; border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.hero-shot-image { width: 100%; aspect-ratio: 16 / 8.35; object-fit: cover; object-position: center; background: var(--bg-deep); }
.image-zoom-link { display: block; cursor: zoom-in; }

.section-heading { margin-bottom: 52px; }
.feature-heading { max-width: 1100px; margin-bottom: 38px; }
.feature-heading h2 { max-width: 900px; margin-bottom: 18px; }
.feature-intro { display: grid; max-width: 68ch; gap: 14px; margin: 0; font-size: 1rem; line-height: 1.7; text-align: left; }
.feature-intro p { margin: 0; }
.centered-heading { max-width: 720px; margin-right: auto; margin-left: auto; text-align: center; }
.centered-heading .eyebrow { justify-content: center; }
.centered-heading p:last-child { font-size: 1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.feature-card { min-width: 0; overflow: hidden; padding: 0 0 16px; border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--surface); transition: border-color 140ms ease, background-color 140ms ease; }
.feature-card:hover { border-color: var(--interactive); background: var(--surface-elevated); }
.feature-media { margin: 0 0 16px; overflow: hidden; border-bottom: 1px solid var(--divider); background: var(--bg-deep); }
.feature-media img { width: 100%; aspect-ratio: 16 / 8.35; object-fit: cover; object-position: center; transition: transform 180ms ease; }
.feature-media .image-zoom-link:hover img { transform: scale(1.025); }
.feature-card h3, .feature-card p, .feature-card > .text-link { margin-right: 17px; margin-left: 17px; }
.feature-card h3 { color: var(--text); }
.feature-card p { max-width: 470px; font-size: 0.88rem; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: var(--interactive-hover); font-size: 0.82rem; font-weight: 700; }
.text-link:hover { color: var(--text); }
.text-link-light { color: var(--interactive-hover); }

.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { min-height: 175px; padding: 0 24px 0 0; border-top: 1px solid var(--outline); }
.workflow-list li + li { padding-left: 24px; border-left: 1px solid var(--divider); }
.step-number { display: block; margin-bottom: 14px; padding-top: 18px; color: var(--interactive); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; }
.workflow-list h3 { color: var(--text); }
.workflow-list p { max-width: 220px; font-size: 0.84rem; }
.video-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 70px; }
.video-copy h2 { max-width: 520px; }
.video-copy > p:not(.eyebrow) { max-width: 500px; font-size: 0.98rem; }
.video-shell { overflow: hidden; border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--input); box-shadow: var(--shadow); }
.video-poster { padding: 14px; }
.video-poster-art { position: relative; display: flex; min-height: 0; aspect-ratio: 16 / 9; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--divider); border-radius: var(--radius-sm); background: var(--bg-deep); }
.video-poster-art > .image-zoom-link { position: absolute; inset: 0; }
.video-poster-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.video-trigger { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--outline); border-radius: var(--radius-sm); background: var(--surface-strong); color: var(--text); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.video-trigger:hover { border-color: var(--interactive); color: var(--interactive-hover); }
.video-status { margin: 10px 4px 0; color: var(--text-subtle); font-size: 0.62rem; text-align: center; }
.video-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.image-lightbox { width: min(calc(100vw - 24px), 1200px); max-width: none; max-height: calc(100dvh - 24px); padding: 12px; border: 1px solid var(--outline-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.image-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(2px); }
.image-lightbox[open] { display: grid; place-items: center; grid-template-rows: minmax(0, 1fr); }
.image-lightbox-image { width: auto; max-width: 100%; max-height: calc(100dvh - 48px); margin: auto; object-fit: contain; }

.requirements-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.requirements-grid > div:first-child h2 { max-width: 500px; color: var(--text); }
.requirements-grid > div:first-child > p:last-child { max-width: 500px; font-size: 0.96rem; }
.requirements-card { border-top: 1px solid var(--outline); }
.requirement-row { display: grid; grid-template-columns: minmax(125px, 0.38fr) minmax(0, 0.62fr); gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--divider); }
.requirement-row strong, .requirement-row span { display: block; }
.requirement-row strong { margin-bottom: 3px; color: var(--text); font-size: 0.88rem; font-weight: 650; }
.requirement-row span { color: var(--text-muted); font-size: 0.82rem; overflow-wrap: anywhere; }

.about-section { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 86px; }
.about-avatar { display: block; width: 180px; height: 180px; margin-inline: auto; }
.about-app-mark { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.about-copy h2 { max-width: 680px; }
.about-copy > p:not(.eyebrow) { max-width: 650px; font-size: 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.about-links a { overflow-wrap: anywhere; }

.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr); align-items: center; gap: 72px; }
.donate-copy h2 { max-width: 570px; color: var(--text); }
.donate-copy > p:not(.eyebrow) { max-width: 620px; font-size: 1rem; }
.donate-qr { width: min(100%, 320px); margin: 0 auto; padding: 10px; border: 1px solid var(--outline); border-radius: var(--radius-md); background: #fff; }
.donate-qr-image { width: 100%; aspect-ratio: 1; object-fit: contain; }

.download-section { padding: 64px 0; border-bottom: 1px solid var(--divider); background: var(--surface-strong); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.download-inner h2 { margin-bottom: 7px; color: var(--text); }
.download-inner p:not(.eyebrow) { margin-bottom: 0; color: var(--text-muted); }
.download-meta { display: block; margin-top: 11px; color: var(--interactive-hover); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download-actions .button-ghost { border-color: var(--outline-strong); }

.site-footer { padding: 58px 0 22px; background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid .brand { margin-bottom: 15px; }
.footer-grid p { max-width: 250px; font-size: 0.78rem; }
.footer-grid h3 { margin-bottom: 14px; color: var(--text); font-size: 0.76rem; letter-spacing: 0; }
.footer-grid a:not(.brand) { display: block; width: fit-content; margin-bottom: 9px; color: var(--text-subtle); font-size: 0.76rem; overflow-wrap: anywhere; }
.footer-grid a:not(.brand):hover { color: var(--interactive-hover); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 45px; padding-top: 17px; border-top: 1px solid var(--divider); color: var(--text-subtle); font-size: 0.68rem; }
.footer-bottom span:last-child { text-align: right; }

@media (max-width: 1020px) {
  .site-nav { gap: 14px; }
  .site-nav > a:not(.button) { font-size: 0.78rem; }
  .hero-grid { gap: 42px; }
  .about-grid, .requirements-grid { gap: 52px; }
}

@media (max-width: 920px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 80px 0; }
  .nav-toggle { display: block; width: 44px; height: 44px; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--outline); border-radius: var(--radius-md); background: var(--sidebar); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button), .language-toggle { min-height: 44px; padding: 11px; }
  .site-nav > a:not(.button), .language-toggle { display: flex; align-items: center; }
  .language-toggle { text-align: left; }
  .site-nav .button, .site-nav .button-small, .site-nav .button-large { min-height: 44px; }
  .nav-download { margin-top: 5px; text-align: center; }
  .hero { padding-top: 78px; }
  .hero-grid, .video-grid, .requirements-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 700px; margin: 10px auto 0; }
  .about-avatar { width: 145px; height: 145px; }
  .donate-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-list { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .workflow-list li + li { padding-left: 0; border-left: 0; }
  .workflow-list li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--divider); }
  .download-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom span:last-child { text-align: left; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .download-actions, .download-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li, .workflow-list li:nth-child(even) { min-height: 0; padding: 0; border-left: 0; }
  .video-poster { padding: 10px; }
  .video-poster-art { min-height: 0; }
  .video-trigger { right: 16px; bottom: 17px; min-height: 44px; }
  .requirements-grid { gap: 32px; }
  .requirement-row { grid-template-columns: 1fr; gap: 4px; }
  .about-links { flex-direction: column; gap: 12px; }
  .footer-grid { gap: 25px 14px; }
  .footer-grid a:not(.brand) { font-size: 0.72rem; }
}

@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; }
}
