:root {
  --bg: #09070f;
  --surface: #12101a;
  --surface-2: #181522;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8f6fc;
  --muted: #aaa4b7;
  --violet: #9a67ff;
  --violet-strong: #7d3cff;
  --mint: #50ddb2;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(125, 60, 255, 0.13), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #09070f;
  background: white;
  border-radius: 9px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9, 7, 15, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(125,60,255,.22);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:first-child { color: var(--muted); font-size: .9rem; font-weight: 650; }
.nav-links > a:first-child:hover { color: var(--text); }

.language-picker { position: relative; display: inline-flex; }
.language-picker select {
  min-width: 58px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}
.language-picker select:hover { border-color: rgba(160,109,255,.5); }
.language-picker select:focus-visible { outline: 3px solid rgba(154,103,255,.42); outline-offset: 2px; }

.nav-button {
  padding: 10px 16px;
  border: 1px solid rgba(160, 109, 255, .48);
  border-radius: 11px;
  background: rgba(125, 60, 255, .14);
  font-size: .9rem;
  font-weight: 750;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  width: 680px;
  height: 680px;
  top: -180px;
  right: -150px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 78, 255, .23), transparent 65%);
  filter: blur(8px);
}

.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 34px;
  padding-block: 54px 38px;
}

.hero-copy { position: relative; z-index: 3; max-width: 570px; }

.eyebrow {
  margin: 0 0 20px;
  color: #cbb2ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(3.4rem, 5.3vw, 5rem);
  line-height: .98;
  letter-spacing: -.065em;
}

h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(112deg, #be9cff 8%, #8950ff 55%, #54dfb4 112%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 560px;
  margin: 25px 0 0;
  color: #bbb5c7;
  font-size: 1.08rem;
  line-height: 1.7;
}

.store-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

.store-button {
  min-width: 166px;
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: #f7f5fa;
  color: #0b0910;
  transition: transform .18s ease, border-color .18s ease;
}

.store-button:hover { transform: translateY(-2px); border-color: rgba(160, 109, 255, .8); }
.store-button:focus-visible { outline: 3px solid rgba(80,221,178,.65); outline-offset: 3px; }
.store-button svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.store-button span { display: flex; flex-direction: column; font-size: 1.05rem; font-weight: 800; line-height: 1.05; }
.store-button small { margin-bottom: 4px; font-size: .61rem; font-weight: 650; letter-spacing: .01em; }

.store-hint { min-height: 18px; margin: 10px 0 0; color: #8f899c; font-size: .76rem; }

.hero-facts {
  margin: 34px 0 0;
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li { display: flex; flex-direction: column; gap: 5px; }
.hero-facts strong { font-size: .84rem; }
.hero-facts span { color: #817b8e; font-size: .7rem; }

.device-stage {
  position: relative;
  min-height: 585px;
  perspective: 1200px;
}

.device-stage::before {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 76%;
  height: 54px;
  content: "";
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  filter: blur(22px);
  transform: translateX(-50%);
}

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 218px;
  margin: 0;
  overflow: hidden;
  border: 6px solid #1d1a24;
  border-radius: 34px;
  background: #111;
  box-shadow: 0 28px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14);
  transition:
    transform .9s cubic-bezier(.22, .8, .26, 1),
    width .9s cubic-bezier(.22, .8, .26, 1),
    opacity .7s ease,
    filter .7s ease;
  will-change: transform, width, opacity;
}

.phone img { width: 100%; height: auto; }
.phone[data-slot="main"] { z-index: 3; width: 250px; transform: translate(-50%, -50%); opacity: 1; filter: brightness(1); }
.phone[data-slot="left"] { z-index: 1; transform: translate(-108%, -48%) rotateY(13deg) rotateZ(-5deg); opacity: .87; filter: brightness(.76); }
.phone[data-slot="right"] { z-index: 2; transform: translate(7%, -48%) rotateY(-13deg) rotateZ(5deg); opacity: .9; filter: brightness(.8); }
.phone.is-swapping { opacity: 0; }

.features { padding: 92px 0 96px; }

.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading .eyebrow { justify-content: center; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.06; letter-spacing: -.045em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.feature-card {
  min-height: 205px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 13, 23, .78);
}

.featured-card { background: linear-gradient(145deg, rgba(125,60,255,.2), rgba(16,13,23,.82) 72%); }

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155,104,255,.35);
  border-radius: 11px;
  color: #c7aaff;
  background: rgba(125,60,255,.1);
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card h3 { margin: 0 0 9px; font-size: 1rem; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: #918b9e; font-size: .85rem; line-height: 1.55; }

.guides-cta {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(154,103,255,.28);
  border-radius: 15px;
  background: rgba(125,60,255,.08);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.guides-cta:hover { border-color: rgba(154,103,255,.58); background: rgba(125,60,255,.13); transform: translateY(-2px); }
.guides-cta > span:first-child { display: flex; flex-direction: column; gap: 5px; }
.guides-cta strong { font-size: .92rem; }
.guides-cta small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.guides-cta > span:last-child { color: #cbb2ff; font-size: 1.35rem; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 24px; color: #898390; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer .brand { color: var(--text); }
.footer-row p { margin: 0; font-size: .78rem; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; font-size: .72rem; }
.footer-links a { color: #aaa4b7; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 21px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: .67rem; line-height: 1.5; text-align: center; }

@media (max-width: 980px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 680px; margin-inline: auto; text-align: center; }
  .eyebrow, .store-row { text-align: center; justify-content: center; }
  .hero-facts { max-width: 600px; margin-inline: auto; margin-top: 32px; }
  .device-stage { min-height: 560px; max-width: 690px; width: 100%; margin: -8px auto 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav { min-height: 64px; }
  .brand { gap: 8px; font-size: .9rem; }
  .brand img { width: 34px; height: 34px; }
  .nav-links { gap: 14px; }
  .nav-links > a:first-child { display: none; }
  .nav-button { padding: 9px 13px; font-size: .78rem; }
  .hero-grid { padding: 50px 0 22px; gap: 10px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-lead { margin-top: 20px; font-size: .96rem; line-height: 1.6; }
  .store-row { gap: 8px; }
  .store-button { min-width: 145px; min-height: 50px; padding: 7px 11px; border-radius: 11px; }
  .store-button svg { width: 22px; height: 22px; }
  .store-button span { font-size: .9rem; }
  .store-button small { font-size: .55rem; }
  .hero-facts { gap: 8px; padding-top: 18px; }
  .hero-facts strong { font-size: .72rem; }
  .hero-facts span { font-size: .61rem; }
  .device-stage { min-height: 425px; margin-top: -2px; }
  .phone { width: 143px; border-width: 4px; border-radius: 23px; }
  .phone[data-slot="main"] { width: 174px; }
  .phone[data-slot="left"] { transform: translate(-110%, -48%) rotateY(10deg) rotateZ(-5deg); }
  .phone[data-slot="right"] { transform: translate(9%, -48%) rotateY(-10deg) rotateZ(5deg); }
  .features { padding: 62px 0 66px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 2rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 15px; }
  .feature-card { min-height: 175px; padding: 20px 16px; }
  .feature-icon { width: 33px; height: 33px; margin-bottom: 16px; border-radius: 9px; }
  .feature-card h3 { font-size: .9rem; }
  .feature-card p { font-size: .74rem; line-height: 1.45; }
  .footer-row { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-row > p:nth-of-type(1) { width: 100%; order: 3; }
  .footer-links { width: 100%; justify-content: center; }
}

@media (max-width: 390px) {
  .store-button { min-width: 137px; }
  .device-stage { min-height: 390px; }
  .phone { width: 132px; }
  .phone[data-slot="main"] { width: 160px; }
}

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