:root {
  --bg-deep: #0f0c0a;
  --bg-mid: #1a1210;
  --bg-panel: #241914;
  --stone: #3d2e24;
  --stone-lit: #5a4334;
  --ink: #f6efe6;
  --muted: rgba(246, 239, 230, 0.68);
  --gold: #ffc857;
  --gold-dim: rgba(255, 200, 87, 0.16);
  --pink: #ff85a2;
  --mint: #72f2a1;
  --sky: #5dccfc;
  --studio-name: #ffe08a;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Trebuchet MS", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-mid);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.mine {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 200, 87, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(190, 140, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #1c1410 0%, var(--bg-deep) 55%, #0a0807 100%);
}

.mine::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: pulse 6s ease-in-out infinite;
}

.glow-a {
  width: 180px;
  height: 180px;
  top: 12vh;
  right: 14vw;
  background: rgba(255, 200, 87, 0.35);
}

.glow-b {
  width: 140px;
  height: 140px;
  bottom: 18vh;
  left: 8vw;
  background: rgba(93, 204, 252, 0.25);
  animation-delay: -2s;
}

.gem {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  opacity: 0.55;
  animation: float-gem 9s ease-in-out infinite;
}

.gem-a {
  top: 22vh;
  left: 12vw;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(255, 133, 162, 0.5);
}

.gem-b {
  top: 36vh;
  right: 18vw;
  background: var(--mint);
  animation-delay: -3s;
  box-shadow: 0 0 18px rgba(114, 242, 161, 0.45);
}

.gem-c {
  bottom: 28vh;
  left: 28vw;
  background: var(--sky);
  animation-delay: -5s;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 16px rgba(93, 204, 252, 0.45);
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.site-nav-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}

.site-nav-link:hover {
  color: var(--ink);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(36, 25, 20, 0.85);
  border: 2px solid rgba(255, 200, 87, 0.28);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "▾";
  margin-inline-start: 0.5rem;
  font-size: 0.75rem;
  color: var(--gold);
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(8.8rem, 1fr));
  gap: 0.25rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem;
  background: rgba(26, 18, 16, 0.98);
  border: 2px solid rgba(255, 200, 87, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.language-menu nav a {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--muted);
}

.language-menu nav a:hover,
.language-menu nav a[aria-current="page"] {
  background: var(--gold-dim);
  color: var(--gold);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  min-height: calc(100svh - 72px);
}

.copy .brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}

.lede {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 18px;
  line-height: 1.55;
}

.platforms {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #1a1008;
  box-shadow: 0 8px 24px rgba(255, 200, 87, 0.28);
}

.btn-primary:hover {
  background: #ffd67a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-art-shell {
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255, 200, 87, 0.35),
    0 24px 60px var(--shadow);
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float {
  animation: float 5s ease-in-out infinite;
}

.block {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25), inset 0 4px 0 rgba(255, 255, 255, 0.35);
}

.block-pink { background: var(--pink); top: 12%; left: 8%; }
.block-mint { background: var(--mint); bottom: 18%; right: 6%; }
.block-gold { background: var(--gold); top: 48%; right: 4%; width: 28px; height: 28px; }

.drift-a { animation: drift 7s ease-in-out infinite; }
.drift-b { animation: drift 8s ease-in-out infinite reverse; animation-delay: -2s; }
.drift-c { animation: drift 6s ease-in-out infinite; animation-delay: -1s; }

.about,
.feature-grid,
.phone-showcase,
.faq-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

.seo-intro {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 12px;
  padding-bottom: 40px;
}

.seo-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.seo-intro p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.by {
  margin-top: 18px !important;
  font-size: 0.95rem !important;
}

.by a {
  text-decoration: none;
}

.by a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.studio-name {
  color: var(--studio-name);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-panel), rgba(26, 18, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.feature-number {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.feature-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.phone-showcase {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 56px;
}

.phone-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 200, 87, 0.28);
  box-shadow: 0 24px 48px var(--shadow);
  background: #000;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.section-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.phone-copy h2,
.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.phone-copy p {
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 20px;
  font-size: 1.05rem;
}

.faq-section {
  padding-bottom: 64px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--gold);
}

[dir="rtl"] .brand,
[dir="rtl"] h1,
[dir="rtl"] .lede,
[dir="rtl"] .platforms,
[dir="rtl"] .feature-card,
[dir="rtl"] .faq-section,
[dir="rtl"] .phone-copy,
[dir="rtl"] .seo-intro {
  text-align: right;
}

[dir="rtl"] .cta {
  justify-content: flex-start;
}

/* Legal */
body.legal-page {
  background: var(--bg-mid);
}

.legal-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.legal-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.legal-back {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.legal-back:hover {
  color: var(--ink);
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.legal h3 {
  font-size: 1.02rem;
  margin: 18px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.6;
}

.legal a {
  color: var(--gold);
}

.legal ul {
  padding-left: 1.2em;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(8px, -14px) rotate(6deg); }
}

@keyframes float-gem {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
  50% { transform: translateY(-18px) rotate(12deg); opacity: 0.8; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.08); }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    text-align: center;
  }

  .copy .brand {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta {
    justify-content: center;
  }

  .stage {
    order: -1;
    min-height: 240px;
  }

  .hero-art-shell {
    width: min(72vw, 280px);
  }

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

  .phone-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .phone-frame {
    max-width: 240px;
    margin: 0 auto;
  }

  .phone-copy .cta {
    justify-content: center;
  }

  .phone-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  [dir="rtl"] .copy,
  [dir="rtl"] .phone-copy,
  [dir="rtl"] .seo-intro {
    text-align: center;
  }

  [dir="rtl"] .cta {
    justify-content: center;
  }

  .language-menu nav {
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
  }
}

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