:root {
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
  --bg: #0b1423;
  --text: #edf2fa;
  --muted: #b5c3d5;
  --mint: #9ae6d2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 280px;
  background: var(--bg);
}
body::before,
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 540px at 0% 0%, #548ce866, transparent 75%),
    radial-gradient(ellipse 48% 720px at 105% 50%, #5be0c34d, transparent 74%),
    radial-gradient(ellipse 65% 400px at 15% 100%, #5e8fea59, transparent 76%),
    radial-gradient(ellipse 40% 320px at 95% 100%, #83e8d23b, transparent 75%),
    linear-gradient(145deg, #15263d 0%, #0b1423 48%, #15283a 100%);
}
body::after {
  z-index: -1;
  background: url('/assets/background-contours.svg') center top / 100% auto repeat-y;
  mask-image: linear-gradient(90deg, #000, #0009 36%, #0009 64%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, #0009 36%, #0009 64%, #000);
}
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mint); outline-offset: 6px; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 12px 18px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(6px, 1.3dvh, 14px);
  width: min(100%, 1160px);
  height: 100svh;
  height: 100dvh;
  margin: 0 auto;
  padding: calc(clamp(8px, 1.8dvh, 20px) + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: clamp(36px, 6.5dvh, 60px); height: clamp(36px, 6.5dvh, 60px); object-fit: contain; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.launch { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; gap: clamp(10px, 2dvh, 24px); }
.launch-copy { position: relative; z-index: 1; text-align: center; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(8px, 1.6dvh, 19px);
  padding: 7px 12px;
  border: 1px solid #9ae6d22b;
  border-radius: 30px;
  color: #b8f3e1;
  background: #9ae6d209;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
}
.availability > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px #9ae6d255; }
h1 { margin: 0; font-size: clamp(28px, min(9.2vw, 6.2dvh), 54px); line-height: 1.09; font-weight: 700; letter-spacing: -.055em; }
h1 > span { color: var(--mint); background: linear-gradient(100deg, #8cbcff, #9ae6d2); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.announcement { max-width: 410px; margin: clamp(10px, 1.8dvh, 20px) auto 0; color: #d6dfeb; font-size: clamp(12px, 1.9dvh, 15px); line-height: 1.5; text-wrap: pretty; }
.announcement strong { font-weight: 600; color: var(--text); }
.description { max-width: 370px; margin: clamp(6px, 1.2dvh, 12px) auto 0; color: var(--muted); font-size: clamp(11px, 1.7dvh, 13px); line-height: 1.5; text-wrap: pretty; }
.downloads { --store-gap: 10px; display: flex; justify-content: center; gap: var(--store-gap); width: min(100%, 370px); margin: clamp(12px, 2dvh, 25px) auto 0; }
.store-link { display: flex; flex: 0 1 calc(40.5% - var(--store-gap) * .405); min-width: 0; min-height: 48px; align-items: center; border-radius: 9px; transition: transform .18s ease; }
.store-link img { width: 100%; height: auto; }
.store-link:hover { transform: translateY(-3px); }
.app-preview {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  min-width: 0;
  padding: clamp(10px, 2dvh, 28px) 20px clamp(10px, 1.8dvh, 22px);
  overflow: hidden;
  border: 1px solid #ffffff12;
  border-radius: 24px;
  background: #13263a;
}
.landscape, .landscape img, .preview-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.landscape { display: block; opacity: 0; transition: opacity 800ms ease-in-out; }
.landscape.is-active { opacity: 1; }
.landscape img { object-fit: cover; object-position: var(--preview-focus, center 47%); }
.preview-shade { background: linear-gradient(180deg, #0b142326, #0b14233b 35%, #0b1423e6 90%, #0b1423); }
.phone { position: relative; flex: 0 1 auto; min-height: 0; height: 100%; max-height: 465px; max-width: 65%; aspect-ratio: 894 / 1760; margin-left: 28px; }
.phone-image { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px #0009); }
.mascot { position: absolute; width: 63%; max-width: none; height: auto; left: -44%; bottom: -1px; filter: drop-shadow(0 8px 12px #0005); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; color: #a4b4ca; font-size: 10px; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer .cookie-settings-footer--fingerprint { width: 44px; height: 44px; min-width: 44px; margin-left: 0; }
.footer .cookie-settings-footer--fingerprint svg { width: 40px; height: 40px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (min-width: 600px) {
  .page { padding-right: 36px; padding-left: 36px; }
  .app-preview { width: 100%; max-width: 480px; margin-right: auto; margin-left: auto; }
}

@media (min-width: 900px), (min-width: 600px) and (max-height: 500px) {
  .header-note { font-size: 13px; }
  .launch { grid-template-columns: 1.12fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(0px, 2dvh, 24px) 0; }
  .launch-copy { text-align: left; }
  h1 { font-size: clamp(28px, min(4.7vw, 7dvh), 58px); }
  .announcement { margin-left: 0; margin-right: 0; font-size: clamp(12px, 2.1dvh, 17px); }
  .description { margin-left: 0; margin-right: 0; font-size: clamp(11px, 1.8dvh, 14px); }
  .downloads { --store-gap: 12px; justify-content: flex-start; margin-left: 0; margin-right: 0; }
  .app-preview { align-self: stretch; max-width: none; margin: 0; border-radius: 30px; }
  .phone { margin-left: 36px; }
  .footer { font-size: 11px; }
}

@media (max-height: 500px) and (min-width: 600px) {
  .page { gap: 4px; }
  .launch { padding: 0; }
  .availability { margin-bottom: 6px; padding: 4px 10px; font-size: 10px; }
  .announcement { margin-top: 8px; }
  .description { margin-top: 6px; }
  .downloads { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .landscape { transition: none; }
  .store-link { transition: none; }
  .store-link:hover { transform: none; }
}
