:root {
  color-scheme: dark;
  --bg: #080a10;
  --surface: #121722;
  --surface-raised: #171d2a;
  --line: #263044;
  --text: #f7f8fb;
  --muted: #9da8bc;
  --accent: #5b8cff;
  --accent-bright: #72a2ff;
  --accent2: #7868ff;
  --danger: #ff667d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 15% 0, #18213b 0, transparent 35%), var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: #9fc0ff; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 48px)); margin: auto; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; min-height: 88px; padding: 18px 0; }
.brand { color: var(--text); font-size: 21px; font-weight: 850; letter-spacing: .08em; }
.brand b { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; align-items: center; }
.nav form { margin: 0; }
.nav-login { border: 1px solid #52617a; background: #20293a !important; color: #fff; }
.nav-login:hover { border-color: var(--accent-bright); background: #29364c !important; }
.nav-activate { box-shadow: 0 10px 30px #5b8cff3d; }

.card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 80px #0005;
}
.auth { width: min(460px, calc(100% - 32px)); margin: 8vh auto; }
.eyebrow { color: #91b5ff; font-weight: 750; text-transform: uppercase; font-size: 12px; letter-spacing: .15em; }
h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; margin: 10px 0 16px; }
h2 { margin: 0 0 18px; font-size: 22px; }
h3 { margin: 0 0 9px; font-size: 19px; line-height: 1.25; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 650; margin: 18px 0 7px; }
input, select { width: 100%; border: 1px solid var(--line); background: #0c111b; color: var(--text); padding: 13px 15px; border-radius: 12px; font: inherit; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #5b8cff22; }
.button, button { display: inline-flex; border: 0; border-radius: 12px; padding: 12px 18px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; font: 700 15px system-ui; cursor: pointer; justify-content: center; align-items: center; transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease; }
.button:hover, button:hover { filter: brightness(1.09); transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.button.secondary, button.secondary { background: #20293a; }
.button.danger, button.danger { background: #3a1821; color: #ff9daf; }
.button.compact, button.compact { padding: 10px 16px; }
.wide { width: 100%; margin-top: 22px; }
.alert { border: 1px solid #81384a; background: #32151d; padding: 12px 15px; border-radius: 12px; color: #ffb1c0; margin: 16px 0; }
.notice { border: 1px solid #355c91; background: #122b4b; padding: 12px 15px; border-radius: 12px; color: #bcd8ff; margin: 16px 0; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; margin: 35px 0; }
.metric { font-size: 45px; font-weight: 850; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0 50px; }
.device { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.device:first-of-type { border-top: 0; }
.device strong, .device span { display: block; }
.device span { overflow-wrap: anywhere; }
.device-copy { flex: 1 1 180px; min-width: 0; }
.device-actions { display: flex; flex: 1 1 300px; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.device-actions form { margin: 0; }
.nickname-form { display: flex; flex: 1 1 250px; gap: 8px; }
.nickname-form input { min-width: 120px; padding: 9px 11px; }
.nickname-form button { flex: 0 0 auto; }
.inline { display: flex; gap: 10px; align-items: end; }
.inline > * { flex: 1; }
.inline button { flex: 0 0 auto; }
.price { font-size: 34px; font-weight: 850; }
.price small { font-size: 14px; color: var(--muted); }

/* Public landing page */
.home-page { overflow: hidden; }
.home-nav { border-bottom: 1px solid #ffffff0d; }
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 86px 0 96px;
  text-align: center;
}
.landing-copy { width: min(760px, 100%); }
.landing h1 { font-size: clamp(54px, 6vw, 78px); letter-spacing: -.05em; margin-inline: auto; }
.landing h1 span { background: linear-gradient(115deg, #fff 5%, #8fb6ff 58%, #9d90ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }
.landing-actions { display: flex; justify-content: center; align-items: stretch; gap: 12px; margin-top: 30px; }
.button.download { gap: 12px; padding: 12px 18px; text-align: left; box-shadow: 0 12px 36px #5b8cff2c; }
.download-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #ffffff1c; font-size: 20px; }
.download small { display: block; font-size: 11px; font-weight: 500; color: #dbe5ff; }
.download.unavailable { cursor: default; opacity: .65; }
.download-note { margin-top: 13px; color: var(--muted); font-size: 13px; }
.hero-product { width: min(1040px, 100%); margin: 64px auto 0; }
.hero-product img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #7185ae4d; border-radius: 22px; box-shadow: 0 30px 90px #0009; }
.section { padding-block: 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.section-heading h2, .price-panel h2 { font-size: clamp(34px, 3.5vw, 50px); line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 0; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 17px; }
.section-heading.centered { justify-content: center; text-align: center; }
.feature-list-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-list-simple article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; min-height: 175px; padding: 32px 34px 30px 0; border-bottom: 1px solid var(--line); }
.feature-list-simple article:nth-child(odd) { margin-right: 34px; border-right: 1px solid var(--line); }
.feature-list-simple article span { color: #729cff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.feature-list-simple article p { max-width: 48ch; margin: 0; color: var(--muted); }
.setup-section { padding-top: 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps article { padding: 34px 34px 34px 0; }
.steps span { display: block; margin-bottom: 34px; color: #78a6ff; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.steps p { max-width: 30ch; margin: 0; color: var(--muted); }
.price-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: clamp(34px, 5vw, 58px); border: 1px solid #48628e; border-radius: 24px; background: #141b29; }
.price-panel p { color: var(--muted); font-size: 17px; max-width: 550px; margin: 20px 0 0; }
.price-actions { position: relative; z-index: 1; display: grid; gap: 12px; min-width: 250px; }
.site-footer { border-top: 1px solid #ffffff0d; margin-top: 40px; color: var(--muted); }
.site-footer .shell { min-height: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; font-size: 13px; }
.site-footer p { margin: 0; text-align: center; }
.footer-layout > p { flex: 1 1 260px; min-width: 0; }
.language-menu { position: relative; z-index: 30; }
.language-menu summary { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: #161d2a; color: var(--text); font-size: 13px; font-weight: 750; text-transform: uppercase; cursor: pointer; user-select: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::marker { content: ""; }
.language-menu[open] summary { border-color: var(--accent); box-shadow: 0 0 0 3px #5b8cff22; }
.language-menu nav { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 220px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #111722; box-shadow: 0 18px 55px #000a; }
.language-menu nav a { padding: 10px 12px; border-radius: 9px; color: var(--text); font-size: 14px; white-space: nowrap; }
.language-menu nav a:hover, .language-menu nav a:focus-visible { background: #202b3e; }
.language-menu nav a[aria-current="true"] { background: #263958; color: #fff; }
.auth-language { position: absolute; top: 22px; right: max(24px, calc((100vw - 1120px) / 2)); z-index: 30; }

@media (max-width: 1050px) {
  .landing { padding-top: 68px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1120px); }
  .hero, .grid { grid-template-columns: 1fr; }
  .nav .email { display: none; }
  .card { padding: 21px; }
  .inline { align-items: stretch; flex-direction: column; }
  .top { min-height: 72px; }
  .home-nav .nav { gap: 8px; }
  .home-nav .button { font-size: 13px; padding: 9px 11px; }
  .landing { padding: 48px 0 68px; }
  .landing h1 { font-size: clamp(43px, 13vw, 61px); }
  .landing-actions { flex-direction: column; }
  .landing-actions > .button { width: 100%; }
  .hero-product { margin-top: 42px; }
  .hero-product img { border-radius: 16px; }
  .section { padding-block: 68px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 18px; font-size: 16px; }
  .feature-list-simple { grid-template-columns: 1fr; }
  .feature-list-simple article { margin: 0 !important; padding-right: 0; border-right: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .steps article { padding-right: 0; border-bottom: 1px solid var(--line); }
  .steps article:last-child { border-bottom: 0; }
  .steps span { margin-bottom: 22px; }
  .price-panel { align-items: stretch; flex-direction: column; }
  .price-actions { min-width: 0; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; padding-block: 30px; }
  .site-footer p { text-align: left; }
  .auth-language { top: 14px; right: 16px; }
  .home-nav { align-items: flex-start; }
  .home-nav .nav { max-width: calc(100% - 105px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
