:root {
  color-scheme: dark;
  --text: #f5f5f7;
  --secondary: rgba(245, 245, 247, .68);
  --hairline: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #07080d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#aurora, .noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#aurora { z-index: 0; }

.noise {
  z-index: 1;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; min-height: 100svh; }

.nav {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { display: block; width: 29px; height: 29px; object-fit: contain; }

.language {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 94px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 99px;
  padding: 0 9px;
  color: var(--secondary);
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.language:hover, .language:focus-within { color: #fff; border-color: rgba(92,221,212,.38); background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.075)); }
.language > button {
  flex: 1;
  min-height: 32px;
  padding: 0 2px 0 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.globe { color: #64ded6; font-size: 13px; text-shadow: 0 0 14px rgba(83,214,207,.65); }
.chevron { margin-top: -3px; color: rgba(255,255,255,.55); font-size: 13px; pointer-events: none; transition: transform .25s; }
.language.open .chevron { transform: rotate(180deg) translateY(-2px); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  max-height: min(430px, calc(100vh - 100px));
  padding: 7px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30,34,37,.88), rgba(12,15,17,.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.language-menu[hidden] { display: none; }
.language-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.language-option:hover, .language-option:focus-visible { color: #fff; outline: 0; background: rgba(255,255,255,.09); }
.language-option[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, rgba(46,199,191,.2), rgba(229,143,48,.12)); }
.language-option[aria-selected="true"]::after { content: "✓"; color: #63ddd5; font-weight: 700; }

.hero { min-height: 100svh; display: grid; place-content: center; justify-items: center; padding: 108px 24px 44px; perspective: 1000px; }

.glass-card {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  padding: 58px 62px 54px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 40px 100px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  animation: arrive 1s cubic-bezier(.16,1,.3,1) both;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.16), transparent 38%);
}

.app-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 30px;
  display: block;
  border-radius: 22%;
  box-shadow: 0 18px 42px rgba(42, 205, 197, .18), 0 10px 28px rgba(221, 139, 45, .12);
}

h1 { margin: 0; font-size: clamp(58px, 9vw, 88px); line-height: .94; letter-spacing: -.065em; font-weight: 720; }
.subtitle { margin: 24px 0 0; font-size: clamp(21px, 3.2vw, 28px); line-height: 1.15; letter-spacing: -.035em; font-weight: 590; }
.description { max-width: 430px; margin: 18px auto 30px; color: var(--secondary); font-size: 16px; line-height: 1.55; letter-spacing: -.01em; }

.app-store {
  display: inline-block;
  line-height: 0;
}
.app-store img { display: block; width: 176px; height: auto; }
.footnote { margin: 24px 0 0; color: rgba(255,255,255,.38); font-size: 12px; letter-spacing: .02em; }

.site-footer {
  position: fixed;
  z-index: 3;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 0;
  padding: 0 20px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.site-footer[hidden] { display: none; }
.site-footer a { color: rgba(255,255,255,.32); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: rgba(255,255,255,.58); }

@keyframes arrive { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .nav { width: calc(100% - 36px); height: 66px; }
  .glass-card { padding: 44px 24px 42px; border-radius: 32px; }
  .app-icon { width: 80px; height: 80px; margin-bottom: 26px; }
  .description { font-size: 15px; }
  .site-footer { bottom: max(8px, env(safe-area-inset-bottom)); font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-card { animation: none; }
  .language, .app-store { transition: none; }
}
