@font-face { font-family: "Monocraft"; src: url("fonts/monocraft-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Monocraft"; src: url("fonts/monocraft-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #f4f8fa;
  --muted: #aeb9bf;
  --panel: rgba(14, 21, 25, 0.91);
  --line: rgba(168, 218, 230, 0.16);
  --accent: #44dff2;
  --accent-2: #0aaed0;
  --violet: #b9afff;
  --pixel-font: "Monocraft", ui-monospace, monospace;
  font-family: "Monocraft", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-gutter: stable;
  scrollbar-color: #41cadd #071114;
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #071114 url("stone-background.png") center / 128px 128px; }
html::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #071114;
  border-radius: 0;
  background: linear-gradient(90deg, #167f96, #62e5f5 45%, #149fbd);
  box-shadow: inset 1px 1px rgba(255,255,255,.28), inset -1px -1px rgba(0,0,0,.45);
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #1ba0ba, #91f3fc 45%, #1ab2cf); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #111719 url("stone-background.png") center top / 256px 256px repeat;
  font-size: 17px;
  line-height: 1.62;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 8%, rgba(34, 207, 230, 0.13), transparent 32rem),
    radial-gradient(circle at 18% 35%, rgba(68, 117, 242, 0.08), transparent 30rem),
    linear-gradient(rgba(8, 13, 16, 0.74), rgba(8, 13, 16, 0.91));
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 17, 0.9);
  backdrop-filter: blur(18px);
}
.brand { transition: transform 260ms cubic-bezier(.2,.8,.2,1), filter 260ms ease; transform-origin: left center; }
.brand:hover { transform: scale(1.035); filter: drop-shadow(0 0 13px rgba(68,223,242,.22)); }
.brand img { display: block; width: 238px; max-width: 38vw; height: auto; }
nav { display: flex; justify-content: center; gap: clamp(14px, 3vw, 38px); }
nav a { color: #c6d1d5; font-family: var(--pixel-font); font-weight: 700; text-decoration: none; transition: color 220ms ease, text-shadow 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1); }
nav a:hover { color: var(--accent); text-shadow: 0 0 16px rgba(68, 223, 242, 0.5); transform: scale(1.09); }
.header-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.glass-control,
.feature-grid article,
.security dl,
.status-box,
.legal-page > section {
  border: 2px solid rgba(176, 242, 249, .40);
  background-color: rgba(38, 102, 113, .12);
  background-image: linear-gradient(145deg, rgba(219, 253, 255, .11), rgba(17, 55, 63, .13) 45%, rgba(2, 14, 18, .28)), url("glass-tile.svg");
  background-size: auto, 32px 32px;
  backdrop-filter: blur(5px) saturate(1.13);
  box-shadow: inset 3px 3px 0 rgba(235,253,255,.12), inset -3px -3px 0 rgba(4,29,35,.30), 5px 6px 0 rgba(68,175,189,.24), 0 18px 38px rgba(0,0,0,.28);
}
.weather-toggle { position: relative; display: grid; place-items: center; width: 45px; height: 43px; padding: 0; color: #d9fbff; cursor: pointer; }
.weather-toggle[aria-pressed="false"] { color: #7f9196; filter: saturate(.2); opacity: .72; }
.weather-toggle[aria-pressed="false"]::after { content: ""; position: absolute; width: 24px; height: 2px; background: #f06c72; transform: rotate(-45deg); }
.weather-icon { font-family: "Segoe UI Symbol", sans-serif; font-size: 1.15rem; text-shadow: 0 0 10px rgba(150,240,255,.7); }
.language-switch { position: relative; min-width: 88px; }
.language-current,
.language-menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; color: #e5f8fa; background: transparent; font-family: var(--pixel-font); cursor: pointer; }
.language-current { justify-content: center; min-height: 39px; padding: 5px 10px; }
.current-flag,
.language-menu button span { font-family: "Segoe UI Emoji", sans-serif; font-size: 1.2rem; line-height: 1; }
.language-caret { margin-left: 1px; color: var(--accent); transition: transform 200ms ease; }
.language-switch.is-open .language-caret { transform: rotate(180deg); }
.language-menu { position: absolute; top: calc(100% + 10px); right: -2px; z-index: 40; display: grid; width: 116px; padding: 5px; visibility: hidden; opacity: 0; transform: translateY(-7px) scale(.96); transform-origin: top right; border: 2px solid rgba(176,242,249,.42); background: rgba(7,22,27,.96) url("glass-tile.svg") 0 0 / 32px 32px; box-shadow: inset 2px 2px rgba(255,255,255,.1), 5px 6px 0 rgba(41,127,140,.35), 0 18px 42px rgba(0,0,0,.5); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), visibility 180ms; }
.language-switch.is-open .language-menu { visibility: visible; opacity: 1; transform: none; }
.language-menu button { padding: 10px; transition: color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1); }
.language-menu button:hover,
.language-menu button[aria-pressed="true"] { color: #061316; background: rgba(102,226,241,.9); transform: scale(1.035); }
.glass-control { transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, box-shadow 220ms ease; }
.glass-control:hover { transform: scale(1.07); border-color: rgba(202,250,255,.75); box-shadow: inset 3px 3px 0 rgba(255,255,255,.17), inset -3px -3px 0 rgba(4,29,35,.30), 5px 6px 0 rgba(68,175,189,.3), 0 17px 36px rgba(0,0,0,.35), 0 0 22px rgba(68,223,242,.12); }
.glass-control:focus-visible,
.button:focus-visible,
nav a:focus-visible { outline: 3px solid #c9faff; outline-offset: 4px; }

#weather-canvas { position: fixed; inset: 0; z-index: 16; width: 100%; height: 100%; pointer-events: none; opacity: .82; transition: opacity 500ms ease; }
#weather-canvas.is-hidden { opacity: 0; }

main { overflow: hidden; }
.hero, .section, .feature-grid, .legal-page { width: min(1320px, calc(100% - 44px)); margin-inline: auto; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  min-height: calc(100vh - 76px);
  padding: 90px 0 110px;
}
.ambient-grid {
  position: absolute;
  inset: 5% -12% 4% 38%;
  z-index: -1;
  opacity: .23;
  background-image: linear-gradient(rgba(56, 214, 237, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 214, 237, .18) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle, #000 0%, transparent 67%);
  animation: grid-drift 14s linear infinite;
}
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 15px; color: #b7c5ca; font-family: var(--pixel-font); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow i { font-style: normal; }
.eyebrow span { width: 30px; height: 3px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
h1, h2, h3 { font-family: var(--pixel-font); line-height: 1.08; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 6.1vw, 6.7rem); letter-spacing: -.045em; }
.hero h1 strong { color: var(--accent); text-shadow: 0 0 38px rgba(68, 223, 242, .18); }
.hero-copy { position: relative; z-index: 2; animation: hero-in .85s cubic-bezier(.2,.75,.25,1) both; }
.lead { max-width: 740px; color: #bfcbcf; font-size: clamp(1.1rem, 2vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.button { display: inline-block; padding: 13px 20px; border: 1px solid var(--line); font-family: var(--pixel-font); font-size: .83rem; text-decoration: none; font-weight: 700; transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, filter 260ms ease; }
.button.primary { color: #071417; border-color: #9cf5ff; background: linear-gradient(#7becf9, #29c8e0); box-shadow: 0 9px 34px rgba(39, 201, 226, .24); }
.button.secondary { color: #d9e3e6; background: rgba(255,255,255,.055); }
.button:hover { transform: translateY(-3px) scale(1.055); filter: brightness(1.08); }
.button.primary:hover { box-shadow: 0 13px 40px rgba(39,201,226,.34), 0 0 22px rgba(76,227,245,.18); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; color: var(--muted); font-size: .83rem; list-style: none; }
.hero-facts li::before { content: "◆"; margin-right: 8px; color: var(--accent); font-size: .6em; }

.launcher-shot { position: relative; z-index: 1; width: min(860px, 76vw); margin: 0 0 0 -26px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg); transform-origin: center; animation: shot-in .95s .1s cubic-bezier(.2,.75,.25,1) both, shot-float 7s 1.1s ease-in-out infinite; }
.launcher-shot img { position: relative; display: block; width: 100%; height: auto; border: 1px solid rgba(143, 238, 249, .4); box-shadow: 0 36px 100px rgba(0,0,0,.62), 0 0 80px rgba(28,196,224,.11); }
.shot-glow { position: absolute; inset: 10% 2% -2% 15%; filter: blur(50px); background: rgba(29, 192, 220, .17); }
.launcher-shot figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 16px; color: #9fb0b5; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.launcher-shot figcaption span { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

.section { padding: 110px 0; }
.section-heading { max-width: 850px; }
.section h2, .legal-page h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -.04em; }
.section p, .legal-page p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-grid article {
  position: relative;
  min-height: 280px;
  padding: 34px;
  overflow: hidden;
  border-bottom-width: 8px;
  border-right-width: 7px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: transform 310ms cubic-bezier(.2,.8,.2,1), border-color 250ms ease, box-shadow 250ms ease, filter 250ms ease;
}
.feature-grid article::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-top: 1px solid rgba(211, 251, 255, .3);
  border-left: 1px solid rgba(211, 251, 255, .22);
  opacity: .75;
}
.feature-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 16%, rgba(207, 252, 255, .08) 33%, transparent 50%);
  transform: translateX(-110%);
  transition: transform 600ms ease;
}
.feature-grid article:hover { z-index: 2; transform: translateY(-9px) scale(1.035); filter: brightness(1.12); border-color: rgba(200,249,255,.76); box-shadow: inset 3px 3px 0 rgba(255,255,255,.19), inset -3px -3px 0 rgba(4,29,35,.32), 7px 10px 0 rgba(68,175,189,.28), 0 30px 65px rgba(0,0,0,.43), 0 0 35px rgba(43,202,225,.16); }
.feature-grid article:hover::after { transform: translateX(110%); }
.feature-number { color: var(--accent); font-family: var(--pixel-font); font-weight: 700; text-shadow: 0 0 14px rgba(68,223,242,.45); }
.feature-grid h3 { margin: 52px 0 14px; font-size: 1.65rem; }
.feature-grid p { color: var(--muted); }
.download-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px,8vw,110px); align-items: center; }
.download-copy { max-width: 760px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.release-meta span { padding: 8px 12px; border: 1px solid rgba(163,236,245,.26); color: #aebfc4; background: rgba(7,19,23,.62); font-size: .74rem; }
.release-meta b { color: #e8fbfd; }
.download-card { position: relative; display: grid; justify-items: center; padding: 38px 30px 30px; text-align: center; border: 3px solid rgba(185,244,250,.5); border-right-width: 8px; border-bottom-width: 9px; background: linear-gradient(145deg, rgba(219,253,255,.12), rgba(12,50,58,.22)), url("glass-tile.svg") 0 0 / 32px 32px; box-shadow: inset 4px 4px rgba(255,255,255,.14), inset -4px -4px rgba(2,19,23,.35), 8px 10px rgba(61,158,172,.28), 0 28px 65px rgba(0,0,0,.42); }
.download-cube { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 24px; border: 5px solid rgba(205,249,253,.7); background: rgba(72,205,224,.28) url("glass-tile.svg") 0 0 / 32px 32px; box-shadow: inset 6px 6px rgba(255,255,255,.15), inset -7px -7px rgba(5,38,44,.38), 8px 9px rgba(34,118,132,.46), 0 0 35px rgba(68,223,242,.18); transform: rotate(4deg); }
.download-cube span { width: 24px; height: 24px; border: 5px solid #d9fbff; border-left-color: var(--accent); border-bottom-color: var(--accent-2); }
.download-card small { color: var(--muted); }
.download-card > strong { margin: 8px 0 22px; color: #f5ffff; font-size: 1.55rem; }
.download-button { display: grid; width: min(100%, 340px); color: #06171b; background: linear-gradient(#8cf1fb,#42cade); cursor: pointer; filter: none; text-decoration: none; }
.download-button:hover { color: #020a0c; border-color: #d9fcff; box-shadow: 0 0 28px rgba(66,216,235,.25), inset 0 0 0 2px rgba(255,255,255,.12); }
.download-button em { color: var(--accent); font-size: .66rem; font-style: normal; }
.download-card p { margin: 16px 0 0; max-width: 390px; color: #83969b; font-size: .72rem; }
.security, .status { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px,8vw,110px); align-items: center; }
.security dl, .status-box { margin: 0; padding: 9px 30px; }
.security dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.security dl div:last-child { border-bottom: 0; }
dt, .status-box span { color: var(--muted); }
dd { margin: 0; font-weight: 600; text-align: right; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.status-box { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding-block: 30px; }
.status-box strong, .status-box code { text-align: right; overflow-wrap: anywhere; }
.status-box code { color: var(--accent); font-family: var(--pixel-font); font-size: .7rem; }

.legal-page { max-width: 920px; padding: 100px 0; }
.legal-page > section { margin-top: 36px; padding: 30px; }
.legal-page h2 { margin-top: 0; color: var(--accent); font-size: 1.7rem; }
.legal-page a { color: var(--accent); }

footer { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 32px; padding: 56px max(24px,calc((100vw - 1320px)/2)); border-top: 1px solid rgba(255,255,255,.15); background: #1b120c url("dirt-footer.png") center / 256px 256px repeat; box-shadow: inset 0 30px 75px rgba(0,0,0,.48); }
footer img { width: 190px; }
footer p, footer small { color: #d3cbc4; }
footer div { display: flex; gap: 20px; }
footer a { color: #e8f9fb; text-decoration-color: var(--accent); }
footer small { grid-column: 1/-1; opacity: .72; }

.motion-ready .reveal { opacity: 0; transform: translateY(36px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.25,1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes shot-in { from { opacity: 0; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(42px) scale(.95); } to { opacity: 1; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg) translateY(0) scale(1); } }
@keyframes shot-float { 0%,100% { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) rotateZ(1deg) translateY(0); } 50% { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) rotateZ(.3deg) translateY(-11px); } }
@keyframes grid-drift { to { background-position: 46px 46px; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr; }
  nav { display: none; }
  .language-switch { justify-self: end; }
  .hero { grid-template-columns: 1fr; }
  .launcher-shot { width: 100%; margin: 6px 0 0; transform: none; animation: hero-in .8s .1s both; }
  .feature-grid, .download-section, .security, .status { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer small { grid-column: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { min-height: 64px; gap: 12px; padding-inline: 13px; }
  .brand img { width: 160px; max-width: 46vw; }
  .language-switch button { padding: 6px; }
  .language-switch b { display: none; }
  .hero, .section, .feature-grid, .legal-page { width: min(100% - 26px,1320px); }
  .hero { min-height: auto; padding: 58px 0 74px; }
  .hero h1 { font-size: clamp(3rem,15vw,4.4rem); }
  .section { padding: 76px 0; }
  .security dl, .status-box { padding-inline: 18px; }
  .status-box { grid-template-columns: 1fr; }
  .status-box strong, .status-box code { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
