/* ---- Reset & Base ---- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #e6ecff;
  background: #0b0f1a;
  line-height: 1.6;
  overflow-x: hidden;
  font-family: system-ui;
}

a {
  color: #82c4ff;
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}

/* ---- Starry Background (static with varied brightness) ---- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%) 0 0 / 180px 180px,
    radial-gradient(1.5px 1.5px at 70% 10%, rgba(255,255,255,0.7), rgba(255,255,255,0) 60%) 0 0 / 240px 240px,
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.5), rgba(255,255,255,0) 60%) 0 0 / 220px 220px,
    radial-gradient(2px 2px at 85% 60%, rgba(255,255,255,1), rgba(255,255,255,0) 60%) 0 0 / 300px 300px,
    radial-gradient(0.8px 0.8px at 50% 50%, rgba(255,255,255,0.4), rgba(255,255,255,0) 60%) 0 0 / 160px 160px,
    radial-gradient(2.5px 2.5px at 15% 75%, rgba(255,255,200,0.95), rgba(255,255,255,0) 60%) 0 0 / 280px 280px,
    radial-gradient(1.8px 1.8px at 40% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 60%) 0 0 / 250px 250px,
    radial-gradient(3px 3px at 90% 40%, rgba(255,255,220,1), rgba(255,255,255,0) 60%) 0 0 / 320px 320px,
    radial-gradient(1.2px 1.2px at 75% 85%, rgba(200,220,255,0.8), rgba(255,255,255,0) 60%) 0 0 / 260px 260px,
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.95), rgba(255,255,255,0) 60%) 0 0 / 200px 200px,
    linear-gradient(#0b0f1a, #070a12 60%, #0b0f1a);
  background-repeat: repeat;
  filter: drop-shadow(0 0 0.25rem rgba(255,255,255,0.15));
}

/* ---- Rest of previous CSS ---- */
/* ---- Layout helpers ---- */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(8, 12, 22, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo-shiraz {
  display: block;             /* removes inline gap */
  max-width: 200px;           /* set your desired max size */
  width: 80%;                /* scale with container */
  height: auto;               /* keep aspect ratio */
  margin: 0 auto;             /* center horizontally */
 }

.brand-mark { width: 50px; height: 50px; display: block; }
.brand-name { font-size: 1.25rem; color: #cfe4ff; }

.site-nav a.ghost {
  color: #cfe4ff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(207,228,255,0.22);
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.site-nav a.ghost:hover {
  background: rgba(207,228,255,0.08);
  transform: translateY(-1px);
  border-color: rgba(207,228,255,0.35);
}

/* ---- Hero ---- */
.hero {
  padding: 84px 0 36px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem);
  letter-spacing: 0.4px;
  text-shadow: 0 2px 22px rgba(0,0,0,0.45);
}
.subtitle {
  color: #b9c9e8;
  margin: 0 auto 30px;
  max-width: 56ch;
}

/* ---- Store badges ---- */
.store-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.badge {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
.badge img {
  display: block;
  height: 56px;
}

/* ---- Features ---- */
.features {
  padding: 36px 0 84px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: #c2d3f2;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,12,22,0.7);
  padding: 18px 0 36px;
  text-align: center;
  color: #a7b9d9;
  font-size: 0.95rem;
}

.site-footer a {
  color: #82c4ff;        /* pick a highlight color */
  text-decoration: none; /* remove underline */
  font-weight: 600;      /* optional: make it bolder */
}

.site-footer a:hover {
  color: #ffffff;        /* lighter/brighter on hover */
  text-decoration: underline; /* or keep none */
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .badge img { height: 52px; }
}


/* ---- User Agreement Page ---- */
.legal {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.legal h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.legal p { color: #c2d3f2; margin: 0.4rem 0; }

.legal a { color: #cfe4ff; text-decoration: underline; }

.legal-cta .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(207,228,255,0.25);
  background: rgba(207,228,255,0.06);
  text-decoration: none;
  color: #e6ecff;
}
.legal-cta .btn:hover {
  background: rgba(207,228,255,0.12);
  border-color: rgba(207,228,255,0.38);
}

/* ---- Header tweaks for language switcher ---- */
.site-header .container {
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Language switcher ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.lang-switcher select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: #cfe4ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  position: relative;
}

/* dropdown arrow */
.lang-switcher select {
  background-image:
    linear-gradient(45deg, transparent 50%, #cfe4ff 50%),
    linear-gradient(135deg, #cfe4ff 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.lang-switcher select:hover {
  border-color: rgba(255,255,255,0.32);
  background-color: rgba(255,255,255,0.07);
}

.lang-switcher select:focus {
  border-color: #82c4ff;
  box-shadow: 0 0 0 1px rgba(130,196,255,0.5);
}

/* Screen-reader-only label */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ---- RTL helpers ---- */
body.rtl {
  direction: rtl;
}

/* Only right-align the User Agreement section in RTL */
body.rtl .legal {
  text-align: right;
}

/* Keep everything else centered/left as before */


/* ---- Responsive: stack nicely on small screens ---- */
@media (max-width: 600px) {
  .site-header .container {
    justify-content: space-between;
  }

  .lang-switcher {
    margin-left: auto;
  }
}

/* Make sure content is above the background */
body {
  position: relative;
  overflow-x: hidden;
}

/* Full-height faded background logo */
.bg-logo {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100vh;                /* height of the browser */
  pointer-events: none;
  z-index: -1;

  /* fade + image */
  background:
    linear-gradient(
      to bottom,
      rgba(3, 9, 25, 0.95) 0%,   /* darker at top */
      rgba(3, 9, 25, 0.6) 40%,   /* logo visible mid */
      rgba(3, 9, 25, 0.95) 100%  /* fade out at bottom */
    ),
    url("assets/shiraz.png") center 20% / auto 80% no-repeat;
  opacity: 0.2;                /* overall fade */
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Flag list next to dropdown */
.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Individual flag */
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  opacity: 0.8;
}

/* Highlight currently selected language */
.lang-flag.active {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}
