:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-2: #101010;
  --text: #f8f8f8;
  --muted: #b7b7b7;
  --line: rgba(255,255,255,.12);
  --yellow: #f0b108;
  --yellow-bright: #ffd400;
  --yellow-soft: #efc749;
  --max: 1420px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 21%, rgba(240,177,8,.13), transparent 24rem),
    radial-gradient(circle at 12% 76%, rgba(240,177,8,.06), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 170px;
  top: 390px;
  right: -140px;
  background: linear-gradient(90deg, transparent, rgba(255,208,0,.3), rgba(255,208,0,.78));
  transform: rotate(-15deg) skewX(-18deg);
  filter: blur(28px);
  opacity: .22;
  pointer-events: none;
}

.site-header {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand img,
.footer-brand img {
  display: block;
  object-fit: contain;
}

.brand img {
  width: 170px;
  height: 82px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #c8c8c8;
}

.language-switch button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 5px 2px;
  cursor: pointer;
  font: inherit;
}

.language-switch button.active { color: white; }
.language-switch button:hover { color: var(--yellow-bright); }

.primary-btn {
  display: inline-flex;
  min-width: 146px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  color: #080808;
  background: linear-gradient(180deg, #ffe01d 0%, #f4bd00 100%);
  box-shadow: 0 10px 32px rgba(240,177,8,.22), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(240,177,8,.32); }

.hero {
  width: min(calc(100% - 72px), var(--max));
  min-height: 735px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  position: relative;
  isolation: isolate;
  direction: ltr;
}

.hero-copy {
  position: relative;
  z-index: 8;
  padding: 22px 0 70px 0;
}

.eyebrow {
  display: flex;
  gap: 15px;
  align-items: center;
  letter-spacing: .33em;
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 31px;
}
.eyebrow i { width: 4px; height: 4px; background: var(--yellow-bright); border-radius: 50%; }

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(56px, 5.2vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 900;
  max-width: 770px;
}
h1 strong { color: var(--yellow-bright); font-weight: 900; }

.hero-description {
  color: #d1d1d1;
  max-width: 560px;
  font-size: 21px;
  line-height: 1.55;
  margin: 36px 0 37px;
}

.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.store-badge {
  min-width: 190px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 10px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4,4,4,.82);
  backdrop-filter: blur(10px);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--yellow); background: #0a0a0a; }
.store-badge small { display: block; font-size: 10px; line-height: 1; margin-bottom: 4px; color: #e7e7e7; }
.store-badge b { display: block; font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.store-icon { font-size: 34px; line-height: 1; }
.play-icon {
  width: 31px; height: 34px; display: block;
  clip-path: polygon(0 0,100% 50%,0 100%);
  background: linear-gradient(145deg,#38d2ff 0 35%,#4ee25c 35% 48%,#ffd436 48% 68%,#ff4e58 68%);
}

.hero-art {
  position: relative;
  height: 735px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: calc(100% + 100px);
  margin-left: -100px;
  pointer-events: none;
}
.hero-art img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 735px;
  object-fit: contain;
  object-position: right bottom;
  position: relative;
  z-index: 2;
  /* Hide the baked-in text at the left edge, then blend the original art.
     Intersect both masks so the top and floor also dissolve into the page. */
  -webkit-mask-image: linear-gradient(to right, transparent 12%, rgba(0,0,0,.85) 18%, #000 24%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent, #000 8%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent 12%, rgba(0,0,0,.85) 18%, #000 24%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent, #000 8%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.yellow-glow { position: absolute; background: rgba(255,208,0,.22); filter: blur(36px); border-radius: 50%; z-index: 0; }
.yellow-glow.one { width: 430px; height: 230px; right: 30px; top: 70px; }
.yellow-glow.two { width: 380px; height: 160px; right: 150px; bottom: 60px; opacity: .55; }

.features {
  width: min(calc(100% - 72px), var(--max));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 62px;
}
.feature-card {
  min-height: 235px;
  padding: 36px 28px 32px;
  border: 1px solid rgba(240,177,8,.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17,17,17,.78), rgba(7,7,7,.95));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,212,0,.72); background: linear-gradient(180deg, rgba(24,24,24,.88), rgba(7,7,7,.98)); }
.feature-card h2 { margin: 17px 0 11px; font-size: 23px; line-height: 1.15; }
.feature-card p { margin: 0; max-width: 330px; color: #c5c5c5; line-height: 1.55; font-size: 16px; }

.feature-icon { color: var(--yellow-bright); min-height: 50px; display: grid; place-items: center; }
.feature-icon.ai { width: 54px; height: 54px; border: 3px solid currentColor; border-radius: 8px; font-weight: 900; font-size: 20px; position: relative; }
.feature-icon.ai::before,.feature-icon.ai::after { content:""; position:absolute; left:-9px; right:-9px; height:2px; background:currentColor; box-shadow:0 -10px 0 currentColor,0 10px 0 currentColor; }
.feature-icon.dumbbell { font-size: 52px; font-weight: 900; transform: rotate(-35deg); }
.feature-icon.chart { width: 54px; height: 54px; display:flex; gap:6px; align-items:flex-end; }
.feature-icon.chart span { width:10px; border:3px solid currentColor; border-bottom-width:3px; display:block; }
.feature-icon.chart span:nth-child(1){height:22px}.feature-icon.chart span:nth-child(2){height:35px}.feature-icon.chart span:nth-child(3){height:49px}

.site-footer {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  padding: 32px 0 38px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
}
.footer-brand img { width: 150px; height: 66px; }
.footer-brand small { color: #808080; display: block; margin-top: 12px; font-size: 12px; }
.footer-links { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #c6c6c6; }
.footer-links a:hover { color: var(--yellow-bright); }
.footer-links span { color: #606060; }
.socials { display: flex; align-items: center; gap: 18px; font-size: 22px; }
.socials a { color: #e2e2e2; transition: color .18s ease, transform .18s ease; }
.socials a:hover { color: var(--yellow-bright); transform: translateY(-2px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #111;
  color: white;
  border: 1px solid rgba(240,177,8,.5);
  box-shadow: 0 15px 50px rgba(0,0,0,.55);
  border-radius: 10px;
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
html[dir="rtl"] .hero-copy { direction: rtl; text-align: right; }
html[dir="rtl"] .eyebrow { letter-spacing: .12em; }
html[dir="rtl"] .hero-description { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .store-buttons { justify-content: flex-start; direction: ltr; }
html[dir="rtl"] .site-footer { direction: rtl; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 50% 50%; min-height: 640px; }
  .hero-art { height: 640px; width: calc(100% + 60px); margin-left: -60px; }
  h1 { font-size: clamp(48px, 6vw, 68px); }
  .hero-description { font-size: 18px; }
  .hero-art img { max-height: 640px; }
}

@media (max-width: 820px) {
  .page-shell::before { display: none; }
  .site-header { width: min(calc(100% - 34px), var(--max)); height: 88px; }
  .brand img { width: 128px; height: 62px; }
  .header-actions { gap: 13px; }
  .primary-btn { min-width: auto; min-height: 43px; padding: 0 16px; font-size: 13px; }
  .language-switch { font-size: 12px; gap: 7px; }

  .hero {
    width: min(calc(100% - 34px), var(--max));
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }
  .hero-copy { padding: 0; text-align: center; }
  .eyebrow { justify-content: center; font-size: 9px; gap: 10px; letter-spacing: .18em; margin-bottom: 24px; }
  h1 { font-size: clamp(47px, 13vw, 76px); align-items: center; }
  .hero-description { margin: 28px auto 28px; font-size: 17px; max-width: 560px; }
  .store-buttons { justify-content: center; }

  .hero-art { height: auto; min-height: 0; width: 100%; margin: 18px 0 0; justify-content: center; }
  .hero-art img { width: min(100%, 660px); height: auto; max-height: none; object-position: center bottom; }
  .yellow-glow.one { width: 65%; right: 5%; }
  .yellow-glow.two { width: 60%; right: 15%; }
  html[dir="rtl"] .hero-copy { text-align: center; }
  html[dir="rtl"] .hero-description { margin-left: auto; margin-right: auto; }
  html[dir="rtl"] .store-buttons { justify-content: center; }

  .features { width: min(calc(100% - 34px), var(--max)); grid-template-columns: 1fr; gap: 14px; margin-top: 0; padding-bottom: 42px; }
  .feature-card { min-height: 190px; }

  .site-footer { width: min(calc(100% - 34px), var(--max)); grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; padding-bottom: 36px; }
  .footer-brand img { margin: 0 auto; }
}

@media (max-width: 520px) {
  .site-header { width: calc(100% - 28px); }
  .brand img { width: 108px; height: 56px; }
  .primary-btn { display: none; }
  .hero { width: calc(100% - 28px); padding-top: 18px; }
  .eyebrow { gap: 8px; font-size: 8px; }
  h1 { font-size: clamp(43px, 14vw, 62px); }
  .hero-description { font-size: 16px; line-height: 1.6; }
  .store-buttons { flex-direction: column; align-items: stretch; gap: 10px; max-width: 330px; margin: 0 auto; }
  .store-badge { width: 100%; justify-content: center; }
  .hero-art { margin-top: 8px; }
  .features { width: calc(100% - 28px); }
  .feature-card { padding: 28px 20px; }
  .feature-card h2 { font-size: 21px; }
  .feature-card p { font-size: 14px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

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