:root {
  --ink: #f4f1e8;
  --muted: #aeb8b6;
  --night: #0b1115;
  --panel: #111c21;
  --panel-soft: #17262a;
  --line: rgba(238, 231, 209, 0.15);
  --gold: #d7ba72;
  --gold-bright: #f0d58b;
  --teal: #659c99;
  --max: 1180px;
  color-scheme: dark;
  font-family: "Avenir Next", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  background: var(--night);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: var(--night); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.is-scrolled { height: 64px; background: rgba(8, 14, 17, .9); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .75rem; width: max-content; font-family: Georgia, serif; font-size: .76rem; letter-spacing: .18em; }
.brand img { border-radius: 12px; }
nav { display: flex; gap: clamp(1rem, 2.8vw, 2.5rem); }
nav a { color: rgba(255, 255, 255, .74); font-size: .86rem; letter-spacing: .12em; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--gold-bright); }
.language-switch { justify-self: end; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: .42rem .78rem; cursor: pointer; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: url('/assets/world-hero.png') center / cover no-repeat; transform: scale(1.04); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 14, .48) 0%, rgba(7, 13, 16, .24) 45%, #0b1115 100%), linear-gradient(90deg, rgba(7, 13, 16, .6), transparent 60%); }
.hero-copy { width: min(900px, calc(100% - 2.5rem)); margin-top: 4rem; text-align: center; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; font-weight: 700; }
.hero-logo { width: min(610px, 82vw); height: auto; margin: -3.6rem auto -4.2rem; filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .28)); }
h1, h2, h3 { font-family: Georgia, "Noto Serif SC", serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(2.1rem, 5.5vw, 4.9rem); line-height: 1.08; letter-spacing: -.025em; }
.hero-description { width: min(660px, 100%); margin: 1.5rem auto 0; color: rgba(244, 241, 232, .78); line-height: 1.9; font-size: clamp(.98rem, 1.6vw, 1.12rem); }
.hero-actions { display: flex; justify-content: center; gap: .8rem; margin-top: 2.1rem; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: 4px; font-weight: 700; letter-spacing: .05em; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #101718; background: var(--gold-bright); }
.button-primary:not(.is-disabled):hover { background: #ffe7a2; }
.button-quiet { border-color: rgba(255, 255, 255, .32); background: rgba(10, 17, 20, .3); }
.button.is-disabled { background: rgba(211, 205, 186, .14); color: rgba(244, 241, 232, .5); border-color: var(--line); cursor: not-allowed; pointer-events: none; }
.scroll-cue { position: absolute; bottom: 1.5rem; width: 32px; height: 48px; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 32px; background: linear-gradient(var(--gold), transparent); animation: drift 1.8s ease-in-out infinite; }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { max-width: 800px; }
.section-heading h2, .download h2, .support h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.18; }
.section-heading > p:last-child, .download-copy > p:not(.eyebrow), .support .section-heading p { color: var(--muted); font-size: 1.02rem; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4.5rem; background: var(--line); border: 1px solid var(--line); }
.feature-card { position: relative; min-height: 300px; padding: 2rem; background: var(--night); }
.feature-number { color: var(--gold); font-family: Georgia, serif; font-size: .82rem; letter-spacing: .15em; }
.feature-card h3 { margin: 5.5rem 0 .8rem; font-size: 1.55rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.8; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: #0d171a; }
.gallery-wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.015); }
.gallery figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; padding: .55rem .75rem; background: rgba(7, 13, 16, .74); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .82); font-size: .8rem; letter-spacing: .08em; }

.download-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.security-note { border-left: 2px solid var(--gold); padding-left: 1rem; font-size: .88rem !important; }
.download-card { padding: clamp(1.5rem, 4vw, 2.4rem); background: linear-gradient(145deg, var(--panel-soft), var(--panel)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
.download-status { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; color: var(--ink); }
.download-status span { width: 8px; height: 8px; border-radius: 50%; background: #78b896; box-shadow: 0 0 0 5px rgba(120, 184, 150, .12); }
.download-card p { color: var(--muted); line-height: 1.7; }
.download-card .button { width: 100%; margin-top: .5rem; }
.platforms { margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.platforms h3 { font-size: 1.25rem; }
.platform-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.platform-list div { display: flex; justify-content: space-between; padding: 1.15rem; background: var(--night); }
.platform-list small { color: var(--muted); }

.support { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.support-links { border-top: 1px solid var(--line); }
.support-links a { display: flex; justify-content: space-between; padding: 1.25rem .2rem; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s ease, padding .2s ease; }
.support-links a:hover { color: var(--gold-bright); padding-left: .6rem; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.2rem clamp(1.25rem, 4vw, 4.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer > div { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
footer strong { color: var(--ink); letter-spacing: .15em; }
.filings { justify-content: flex-end; }
.filings a:hover { color: var(--gold-bright); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible, .hero .reveal { opacity: 1; transform: none; }
@keyframes drift { 0%, 100% { transform: translateY(-5px); opacity: .4; } 50% { transform: translateY(7px); opacity: 1; } }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 64px; padding-inline: 1rem; }
  .brand span, nav { display: none; }
  .hero-logo { margin-top: -2.5rem; margin-bottom: -2.7rem; }
  .feature-grid, .platform-list { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .feature-card h3 { margin-top: 3.2rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }
  .download-panel, .support { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .filings { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
