/* Cubex Fitness — v1.30 site (hand-written, no build step). Logical properties only, so dir="rtl" mirrors it. */
:root {
  --bg: #0b0d12; --bg2: #11141b; --card: #161a23; --line: #232837;
  --text: #f3f4f7; --muted: #a2a9b8; --orange: #ff7a30; --orange2: #ffa25c; --cyan: #2ec5d3;
  --r: 22px; --maxw: 1160px;
  --display: "Sora", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(th) h1, :lang(th) h2 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
.sub, .lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.lead { font-size: 19px; }
.grad { background: linear-gradient(90deg, var(--orange), var(--orange2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 18, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  text-decoration: none; color: #fff; background: linear-gradient(90deg, var(--orange), var(--orange2)); box-shadow: 0 8px 30px rgba(255, 122, 48, .35); }
.btn-small { padding: 9px 18px; font-size: 14px; box-shadow: none; }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(900px 500px at 75% 10%, rgba(46, 197, 211, .16), transparent 60%),
  radial-gradient(800px 600px at 10% 0%, rgba(255, 122, 48, .14), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 122, 48, .4); color: var(--orange2);
  font-weight: 600; font-size: 14px; margin: 0 0 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.ctas.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: #fff; color: #0b0d12;
  text-decoration: none; font-weight: 700; font-size: 15px; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.note { color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; min-height: 640px; }
.phone { border-radius: 42px; padding: 10px; background: #050608; border: 1px solid #2a2f3d; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.phone img { border-radius: 32px; }
.phone-main { position: absolute; inset-inline-start: 4%; top: 0; width: 290px; z-index: 2; }
.phone-side { position: absolute; inset-inline-end: 0; top: 70px; width: 250px; opacity: .92; transform: rotate(4deg); }
[dir="rtl"] .phone-side { transform: rotate(-4deg); }
.bubble { position: absolute; z-index: 3; inset-inline-start: -10px; bottom: 30px; display: flex; gap: 10px; align-items: center; max-width: 330px;
  padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.bubble img { border-radius: 50%; width: 40px; height: 40px; border: 2px solid var(--cyan); }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg2); }
.coach-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.coach { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.coach img { aspect-ratio: 1; object-fit: cover; }
.coach div { padding: 14px 16px 18px; }
.coach b { font-family: var(--display); font-size: 18px; display: block; }
.coach small { color: var(--orange2); font-weight: 600; font-size: 13px; display: block; margin-bottom: 8px; }
.coach q { color: var(--muted); font-size: 14px; line-height: 1.5; quotes: "“" "”"; }
.how-grid, .free-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.free-grid { grid-template-columns: .8fr 1.2fr; }
.how-grid .phone, .free-grid .phone { max-width: 300px; justify-self: center; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; background: rgba(255, 122, 48, .14); color: var(--orange2); }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card b { display: block; font-size: 18px; margin: 10px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card.big p { font-size: 16px; margin-bottom: 14px; }
.card a { color: var(--orange2); font-weight: 600; text-decoration: none; }
.ico { font-size: 28px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { padding-inline-start: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--cyan); font-weight: 800; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.langs { color: var(--text) !important; font-size: 14px !important; line-height: 1.9; }
.final { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(255, 122, 48, .18), transparent 70%); }
.final .sub { margin: 0 auto; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.lang-pick { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.lang-pick select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .how-grid, .free-grid, .duo { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top-row .btn-small { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .phone-main { width: 230px; inset-inline-start: 0; }
  .phone-side { width: 190px; top: 60px; }
  .hero-visual { min-height: 500px; }
  .bubble { max-width: 260px; font-size: 14px; inset-inline-start: 0; }
  .cards4, .checks { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .lang-pick { margin-inline-start: 0; }
}
