:root {
  --bg: #070719;
  --bg-deep: #030414;
  --bg-soft: #101433;
  --panel: rgba(18, 22, 55, 0.72);
  --panel-strong: rgba(31, 36, 78, 0.82);
  --text: #fbf7ff;
  --muted: #c9c1dc;
  --faint: #9189ae;
  --line: rgba(226, 217, 255, 0.18);
  --accent: #d8c5ff;
  --accent-strong: #9b85ff;
  --gold: #ecd29d;
  --radius: 8px;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 6, 25, 0.18), var(--bg) 650px),
    url("/assets/night-sky.jpg") top center / 100% auto no-repeat,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 60px);
  background: rgba(5, 6, 24, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand,
.topbar nav,
.store-buttons,
.footer,
.locale-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.topbar nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a {
  white-space: nowrap;
}

.topbar nav a,
.footer a {
  text-decoration: none;
}

.topbar nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(216, 197, 255, 0.46);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(216, 197, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.locale-warning {
  padding: 10px 24px;
  text-align: center;
  background: rgba(236, 210, 157, 0.13);
  color: var(--gold);
  border-bottom: 1px solid rgba(236, 210, 157, 0.28);
}

.hero {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(300px, 0.82fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: 54px clamp(22px, 6vw, 84px) 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 19%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 28%, rgba(216, 197, 255, 0.42), transparent 28%),
    linear-gradient(90deg, rgba(5, 6, 24, 0.9) 0%, rgba(5, 6, 24, 0.36) 58%, rgba(5, 6, 24, 0.18) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 660px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.hero-title-stack span {
  display: block;
}

.hero-title-brand {
  font-size: 1.08em;
  line-height: 0.94;
}

.hero-title-descriptor {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.58em;
  line-height: 1.06;
}

.hero p,
.page-hero p {
  margin: 24px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.store-buttons {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  text-decoration: none;
  line-height: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.store-button img {
  display: block;
  width: auto;
  max-width: 100%;
}

.app-store-badge img,
.play-store-badge img {
  height: 48px;
}

.header-store-buttons {
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
}

.header-store-buttons .store-button {
  filter: none;
}

.header-store-buttons .app-store-badge img,
.header-store-buttons .play-store-badge img {
  height: 34px;
}

.trust-line {
  margin-top: 24px;
  color: var(--accent);
  font-size: 15px;
}

.hero-art {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-art::before {
  display: none;
}

.hero-guide {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  max-height: 540px;
  object-fit: cover;
  object-position: 50% 52%;
  border: 1px solid rgba(226, 217, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 34px 48px rgba(0, 0, 0, 0.44);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.82;
}

.section {
  padding: 66px clamp(22px, 6vw, 84px);
}

.center-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.center-heading p,
.meaning-intro p,
.privacy-copy p,
.download-section p,
.article-layout p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section h2,
.download-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.how-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(155, 133, 255, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(8, 10, 31, 0.96), rgba(13, 15, 45, 0.96));
  border-top: 1px solid rgba(226, 217, 255, 0.08);
  border-bottom: 1px solid rgba(226, 217, 255, 0.08);
  padding-top: 36px;
  padding-bottom: 42px;
}

.how-section .center-heading {
  margin-bottom: 30px;
}

.how-section h2 {
  font-size: 32px;
}

.how-section .center-heading p {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.45;
}

.step-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 96px);
  max-width: 1020px;
  margin: 0 auto;
}

.step-rail::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(216, 197, 255, 0.52) 0 7px, transparent 7px 16px);
}

.icon-step {
  position: relative;
  text-align: center;
}

.step-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--accent);
  border: 1px solid rgba(216, 197, 255, 0.32);
  border-radius: 50%;
  background: rgba(216, 197, 255, 0.07);
}

.step-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--text);
  border: 1px solid rgba(216, 197, 255, 0.42);
  border-radius: 50%;
  background: rgba(155, 133, 255, 0.44);
  font-weight: 850;
}

.icon-step h3,
.meaning-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.icon-step p,
.meaning-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.meaning-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(35, 40, 86, 0.76), rgba(22, 25, 62, 0.76)),
    var(--bg-soft);
  padding-top: 48px;
  padding-bottom: 48px;
}

.meaning-intro {
  max-width: 330px;
}

.outline-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid rgba(216, 197, 255, 0.42);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 750;
}

.meaning-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.meaning-card {
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 33, 76, 0.76);
  text-decoration: none;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.meaning-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 197, 255, 0.5);
  background: rgba(37, 43, 93, 0.86);
}

.meaning-card img {
  width: calc(100% - 20px);
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  margin: 10px 10px 0;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(216, 197, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(3, 5, 22, 0.28);
}

.meaning-card span,
.meaning-card h3,
.meaning-card p,
.meaning-card strong {
  display: block;
  margin-left: 20px;
  margin-right: 20px;
}

.meaning-card span {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 750;
}

.meaning-card h3 {
  margin-top: 9px;
}

.meaning-card strong {
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
}

.meaning-card strong span {
  display: inline;
  margin: 0;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: center;
  background:
    radial-gradient(circle at 25% 40%, rgba(155, 133, 255, 0.14), transparent 30%),
    var(--bg);
}

.privacy-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.privacy-art img {
  width: min(100%, 440px);
  object-fit: contain;
  border: 1px solid rgba(216, 197, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

.privacy-copy {
  max-width: 640px;
}

.privacy-copy ul {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.privacy-copy li {
  position: relative;
  padding-left: 42px;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: rgba(216, 197, 255, 0.08);
}

.privacy-copy li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.download-section,
.page-hero {
  padding: 88px clamp(22px, 6vw, 84px);
  text-align: center;
}

.download-section .store-buttons,
.page-hero .store-buttons {
  justify-content: center;
}

.scenic-download {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 10, 33, 0.24), rgba(9, 10, 33, 0.92)),
    url("/assets/night-sky.jpg") center 60% / cover no-repeat,
    var(--bg-soft);
  border-top: 1px solid var(--line);
}

.scenic-download h2,
.scenic-download p,
.scenic-download .store-buttons {
  position: relative;
  z-index: 1;
}

.page-hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(155, 133, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(7, 7, 25, 0.54), rgba(7, 7, 25, 0.96)),
    url("/assets/night-sky.jpg") top center / cover no-repeat;
}

.back-link {
  margin-bottom: 18px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 850;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.34fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.article-layout article {
  max-width: 780px;
}

.article-layout article h2 {
  margin: 42px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
}

.article-layout article h2:first-child {
  margin-top: 0;
}

.article-layout aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.article-layout aside img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.article-layout aside strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) minmax(260px, 1.2fr);
  align-items: start;
  gap: 32px;
  padding: 38px clamp(22px, 6vw, 84px) 28px;
  color: var(--muted);
  background: rgba(4, 6, 23, 0.96);
  border-top: 1px solid var(--line);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  display: inline-flex;
}

.footer p {
  line-height: 1.65;
}

.footer-column {
  display: grid;
  gap: 11px;
}

.footer-column strong,
.locale-list strong {
  color: var(--text);
  font-size: 13px;
}

.footer-column a {
  color: var(--muted);
  font-size: 13px;
}

.locale-list {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 9px;
}

.locale-list strong {
  flex-basis: 100%;
}

.locale-list a {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
}

.locale-list a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(216, 197, 255, 0.55);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  color: var(--faint);
  border-top: 1px solid rgba(226, 217, 255, 0.1);
  font-size: 12px;
  text-align: center;
}

[dir="rtl"] .hero,
[dir="rtl"] .meaning-section,
[dir="rtl"] .privacy-section,
[dir="rtl"] .article-layout {
  direction: rtl;
}

[dir="rtl"] .privacy-copy li {
  padding-right: 42px;
  padding-left: 0;
}

[dir="rtl"] .privacy-copy li::before {
  right: 0;
  left: auto;
}

[dir="rtl"] .privacy-copy li::after {
  right: 7px;
  left: auto;
}

@media (max-width: 1120px) {
  .hero h1,
  .page-hero h1 {
    font-size: 58px;
  }

  .hero-art {
    min-height: 500px;
  }

  .meaning-section {
    grid-template-columns: 1fr;
  }

  .meaning-intro {
    max-width: 760px;
  }

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

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
  }

  .topbar nav,
  .header-store-buttons {
    display: none;
  }

  .brand span {
    display: inline;
  }

  .hero,
  .privacy-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-art::before {
    width: 54px;
    height: 54px;
  }

  .hero-guide {
    max-height: 410px;
  }

  .section,
  .download-section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section h2,
  .download-section h2 {
    font-size: 36px;
  }

  .step-rail,
  .meaning-cards {
    grid-template-columns: 1fr;
  }

  .step-rail::before {
    display: none;
  }

  .store-button {
    width: auto;
  }

  .article-layout aside {
    position: static;
  }

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