:root {
  color-scheme: dark;
  --ink: #041022;
  --navy: #061a36;
  --navy-2: #0b2446;
  --navy-3: #132f58;
  --gold: #d7b56d;
  --gold-bright: #f1d89a;
  --ivory: #f7f1e3;
  --mist: #c9d4e3;
  --muted: #94a5ba;
  --line: rgba(215, 181, 109, 0.32);
  --glass: rgba(5, 22, 47, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 1.5rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(2, 11, 27, 0.58), rgba(2, 11, 27, 0.96) 42rem),
    url("assets/temple-background.jpg") top center / 100% auto no-repeat,
    var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 181, 109, 0.13), transparent 26rem),
    radial-gradient(circle at 10% 72%, rgba(34, 91, 148, 0.18), transparent 32rem);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .75rem;
  color: var(--ink);
  background: var(--gold-bright);
  font-weight: 900;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(215, 181, 109, 0.18);
  background: rgba(3, 14, 31, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 2rem));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav > *,
.hero > *,
.showcase > * { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: .25rem; }

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-inline: .25rem;
  padding: .35rem .45rem .35rem .7rem;
  border: 1px solid rgba(215, 181, 109, .28);
  border-radius: .8rem;
  color: var(--mist);
  background: rgba(8, 31, 62, .72);
  font-size: .78rem;
  font-weight: 800;
}

.language-picker select {
  min-height: 2rem;
  border: 0;
  border-radius: .55rem;
  padding: .2rem 1.65rem .2rem .55rem;
  color: var(--ivory);
  background: var(--navy-3);
  font: inherit;
  cursor: pointer;
}

.language-picker select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .store-button { text-align: right; }
[dir="rtl"] .check-list li { grid-template-columns: 1fr 1.6rem; }
[dir="rtl"] .check-list li::before { grid-column: 2; grid-row: 1; }
[dir="rtl"] .check-list li { text-align: right; }
[dir="rtl"] .legal-card ul,
[dir="rtl"] .legal-card ol { padding-left: 0; padding-right: 1.35rem; }

.nav-links a {
  padding: .65rem .85rem;
  border-radius: .75rem;
  color: var(--mist);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ivory);
  background: rgba(215, 181, 109, 0.12);
  outline: none;
}

.nav-links .nav-sign-in {
  margin-left: .35rem;
  padding-inline: 1rem;
  color: var(--ink);
  background: var(--gold);
}

.nav-links .nav-sign-in:hover,
.nav-links .nav-sign-in:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--ivory);
  background: var(--navy-2);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

main { overflow: hidden; }

.wrap { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }

.hero {
  min-height: calc(100svh - 4.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, .88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 13ch; font-size: clamp(3.25rem, 6vw, 5.35rem); }
h2 { max-width: 15ch; font-size: clamp(2.15rem, 4vw, 4rem); }
h3 { font-size: 1.35rem; }

.hero-copy { max-width: 38rem; }
.hero-copy .lead { max-width: 34rem; margin: 1.5rem 0 0; color: var(--mist); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.download-block { margin-top: 2rem; }

.download-label {
  margin: 0 0 .7rem;
  color: var(--gold-bright);
  font-size: .9rem;
  font-weight: 850;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.store-button {
  min-width: 12.5rem;
  min-height: 4rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(241, 216, 154, .62);
  border-radius: 1rem;
  color: #fff;
  background: #020713;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: #07172f;
  outline: none;
}

.store-button small,
.store-button strong { display: block; }
.store-button small { font-size: .68rem; line-height: 1.1; letter-spacing: .02em; }
.store-button strong { margin-top: .12rem; font-size: 1.18rem; line-height: 1.1; letter-spacing: -.02em; }

.store-symbol {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .7rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.play-symbol { padding-left: .12rem; font-size: .9rem; }
.ios-symbol { font-size: .72rem; letter-spacing: -.03em; }
.store-note { margin: .65rem 0 0; color: var(--muted); font-size: .84rem; }

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: .95rem;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(215, 181, 109, 0.17);
  transition: transform .18s ease, background .18s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--gold-bright); outline: none; }
.button.secondary { color: var(--ivory); background: rgba(6, 26, 54, 0.72); box-shadow: none; }

.web-access {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.web-access h2 { max-width: 16ch; }
.web-access p { max-width: 48rem; margin: 1.1rem 0 0; color: var(--mist); }
.web-access .web-access-note { color: var(--gold-bright); font-weight: 800; }
.web-access-actions { display: grid; gap: .75rem; }

.phone-stage {
  position: relative;
  min-height: 42rem;
  display: grid;
  place-items: center;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: min(34rem, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 109, .16), rgba(13, 43, 81, .09) 55%, transparent 70%);
}

.phone {
  position: relative;
  width: min(18.5rem, 73vw);
  padding: .55rem;
  border: 1px solid rgba(241, 216, 154, .55);
  border-radius: 2.65rem;
  background: #020915;
  box-shadow: var(--shadow), 0 0 80px rgba(215, 181, 109, .13);
  transform: rotate(2.5deg);
}

.phone img { width: 100%; border-radius: 2.15rem; }

.mini-mark {
  position: absolute;
  right: 3%;
  bottom: 16%;
  width: 6.5rem;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.35));
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head p { max-width: 36rem; margin: 0; color: var(--mist); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(14, 44, 82, .9), rgba(4, 17, 38, .94));
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
}

.feature { min-height: 19rem; padding: 1.6rem; display: flex; flex-direction: column; }
.feature-number { color: var(--gold); font-size: 2.2rem; font-weight: 900; }
.feature h3 { margin-top: auto; color: var(--ivory); }
.feature p { margin: .7rem 0 0; color: var(--mist); }

.showcase {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.screen-row { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .8rem; }
.screen-shot { padding: .32rem; border: 1px solid var(--line); border-radius: 1.5rem; background: #020915; box-shadow: var(--shadow); }
.screen-shot:nth-child(2) { transform: translateY(-2rem); }
.screen-shot img { border-radius: 1.18rem; }

.check-list { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.check-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; color: var(--mist); }
.check-list li::before { content: "✓"; color: var(--gold-bright); font-weight: 900; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.role { padding: 1.35rem; }
.role strong { display: block; color: var(--gold-bright); font-size: 1.15rem; }
.role span { display: block; margin-top: .4rem; color: var(--mist); font-size: .94rem; }

.trust {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.trust p { max-width: 44rem; margin: .8rem 0 0; color: var(--mist); }

.download-section { padding-top: 0; }

.download-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.3rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 10% 50%, rgba(215, 181, 109, .22), transparent 18rem),
    linear-gradient(135deg, rgba(14, 44, 82, .96), rgba(4, 17, 38, .98));
}

.download-panel h2 { max-width: 16ch; }
.download-panel p:not(.eyebrow) { max-width: 38rem; margin: .9rem 0 0; color: var(--mist); }
.download-mark { width: clamp(5.25rem, 10vw, 8rem); filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .38)); }
.store-links-stacked { min-width: 13rem; display: grid; }

.legal-main { min-height: calc(100svh - 4.75rem); padding-block: clamp(3rem, 7vw, 6rem); }
.legal-hero { max-width: 50rem; margin-bottom: 2rem; }
.legal-hero h1 { max-width: none; font-size: clamp(2.7rem, 6vw, 5rem); }
.legal-hero p { color: var(--mist); font-size: 1.08rem; }

.legal-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.toc { position: sticky; top: 6rem; padding: 1rem; }
.toc strong { display: block; margin: .25rem .55rem .7rem; color: var(--gold-bright); }
.toc a { display: block; padding: .5rem .55rem; border-radius: .55rem; color: var(--mist); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--ivory); background: rgba(215,181,109,.1); outline: none; }

.legal-card { padding: clamp(1.4rem, 4vw, 2.7rem); }
.legal-card section + section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(215,181,109,.18); }
.legal-card h2 { max-width: none; color: var(--gold-bright); font-size: 1.5rem; }
.legal-card p, .legal-card li { color: var(--mist); }
.legal-card ul, .legal-card ol { padding-left: 1.35rem; }
.legal-card a { color: var(--gold-bright); text-underline-offset: .2em; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.support-card { padding: 1.35rem; }
.support-card h2 { font-size: 1.2rem; color: var(--ivory); }
.support-card p { margin-bottom: 0; color: var(--mist); }
.contact-panel { margin-top: 1rem; padding: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact-panel p { margin: .35rem 0 0; color: var(--mist); }

.site-footer { border-top: 1px solid rgba(215, 181, 109, .18); background: rgba(2, 10, 23, .76); }
.footer-inner { min-height: 8rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-copy { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--mist); text-decoration: none; font-size: .92rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold-bright); outline: none; }

@media (max-width: 900px) {
  .hero, .showcase { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 4rem; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-copy h1, .hero-copy .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .phone-stage { min-height: 38rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature h3 { margin-top: 3rem; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: start; flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
  .toc strong { width: 100%; }
  .download-panel { grid-template-columns: auto minmax(0, 1fr); }
  .download-panel .store-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav,
  .wrap { width: calc(100% - 1.25rem); }
  .nav { min-height: 4.2rem; gap: .75rem; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand img { width: 2.35rem; height: 2.35rem; }
  .menu-button { display: grid; flex: 0 0 auto; place-items: center; }
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(3, 14, 31, .98);
    box-shadow: var(--shadow);
  }
  .nav-links[data-open="true"] { display: grid; }
  .nav-links a { padding: .85rem; }
  .language-picker { justify-content: space-between; margin: .25rem 0; padding: .55rem .65rem; }
  .language-picker select { min-width: 8.5rem; }
  .header-actions .language-picker { margin: 0; padding: .3rem .35rem .3rem .55rem; }
  .header-actions .language-picker select { min-width: 7.25rem; }
  .nav-links .nav-sign-in { margin: .25rem 0 0; text-align: center; }
  .hero { padding-top: 3rem; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(2.7rem, 13.5vw, 4.2rem); }
  .hero-copy .lead { max-width: 100%; }
  .actions { width: 100%; flex-direction: column; align-items: stretch; }
  .button { width: 100%; padding-inline: .9rem; text-align: center; white-space: normal; }
  .download-label { text-align: center; }
  .store-links { display: grid; grid-template-columns: 1fr; }
  .store-button { width: 100%; min-width: 0; }
  .store-note { text-align: center; }
  .phone-stage { width: 100%; min-width: 0; min-height: 33rem; }
  .mini-mark { width: 5rem; right: 1%; }
  .screen-row { gap: .35rem; }
  .screen-shot { border-radius: .8rem; padding: .2rem; }
  .screen-shot img { border-radius: .58rem; }
  .screen-shot:nth-child(2) { transform: translateY(-1rem); }
  .roles, .support-grid { grid-template-columns: 1fr; }
  .trust, .contact-panel, .web-access { grid-template-columns: 1fr; display: grid; }
  .download-panel { grid-template-columns: 1fr; text-align: center; }
  .download-mark { margin-inline: auto; }
  .download-panel h2,
  .download-panel p { margin-inline: auto; }
  .download-panel .store-links { grid-column: auto; grid-template-columns: 1fr; text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 2rem; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .header-actions .language-picker span { display: none; }
  .header-actions .language-picker::before { content: "🌐"; font-size: 1rem; }
  .header-actions .language-picker select { min-width: 6.5rem; }
}

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