:root {
  --bg: #09101d;
  --bg-soft: #111d31;
  --panel: rgba(14, 23, 40, 0.78);
  --panel-strong: rgba(245, 247, 251, 0.92);
  --text: #f4f7ff;
  --text-muted: #aeb8cd;
  --text-dark: #1c2433;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #69d0ff;
  --accent-strong: #3a86ff;
  --accent-warm: #ffbe63;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 208, 255, 0.2), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 190, 99, 0.18), transparent 24%),
    linear-gradient(180deg, #0a1020 0%, #10182b 42%, #090f1c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(58, 134, 255, 0.28);
}

.brand__text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.topnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.locale-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.locale-picker__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-picker__select {
  min-width: 128px;
  max-width: 160px;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.locale-picker__select option {
  color: #08111e;
}

.section {
  padding: 88px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.details h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  max-width: 10ch;
}

.hero__lede,
.details p,
.feature-card p,
.detail-item p,
.screen-card figcaption span {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__lede {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.04rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #04131f;
  background: linear-gradient(135deg, var(--accent) 0%, #b8f1ff 100%);
}

.button--store {
  color: #2e1900;
  border-color: rgba(255, 190, 99, 0.4);
  background: linear-gradient(135deg, var(--accent-warm) 0%, #ffe39a 100%);
  box-shadow: 0 16px 38px rgba(255, 190, 99, 0.26);
}

.button--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero__stats li,
.feature-card,
.screen-card,
.details__panel,
.detail-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__stats li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.hero__stats strong {
  font-size: 1.05rem;
}

.hero__stats span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero__visual {
  position: relative;
  min-height: 780px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-card img,
.screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card--main {
  top: 0;
  left: 0;
  width: min(100%, 470px);
}

.hero-card--accent {
  right: 0;
  bottom: 20px;
  width: min(56%, 280px);
  transform: rotate(8deg);
}

.hero-card__label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.74);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.details h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.feature-grid,
.gallery-grid,
.details {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.feature-card__index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-warm);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-card h3,
.detail-item h3,
.screen-card figcaption strong {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.screen-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.screen-card figcaption {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.details {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.details__panel,
.detail-item {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.details__panel {
  background:
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.16), transparent 22%),
    rgba(255, 255, 255, 0.05);
}

.details__list {
  display: grid;
  gap: 18px;
}

.detail-item {
  background: rgba(245, 247, 251, 0.95);
  color: var(--text-dark);
}

.detail-item p {
  margin: 0;
  color: #546071;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 120ms;
}

.reveal--delay-2 {
  transition-delay: 220ms;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .toolbar-actions,
html[dir="rtl"] .topnav,
html[dir="rtl"] .hero__actions,
html[dir="rtl"] .hero__stats {
  direction: rtl;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-card__label {
  left: auto;
  right: 18px;
}

@media (max-width: 1024px) {
  .hero,
  .details,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero__visual {
    min-height: 980px;
  }

  .hero-card--accent {
    width: min(52%, 320px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .topbar {
    top: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 28px;
    padding: 14px;
  }

  .topnav {
    display: none;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .locale-picker {
    margin-left: auto;
  }

  html[dir="rtl"] .locale-picker {
    margin-left: 0;
    margin-right: auto;
  }

  .section {
    padding-top: 72px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 760px;
  }

  .hero-card--main {
    width: min(100%, 360px);
  }

  .hero-card--accent {
    width: min(56%, 220px);
    right: 0;
    bottom: 0;
  }

  .feature-card,
  .details__panel,
  .detail-item,
  .screen-card figcaption {
    padding: 22px;
  }
}
