/* ===========================================================
   Thailand Game — real componentized landing page
   Neon / pink / teal / navy identity. RTL Arabic.
   Colors & sizes are driven by config.json via CSS variables.
   =========================================================== */

:root {
  --navy: #0a1130;
  --navy-deep: #060b22;
  --pink: #F72186;
  --teal: #38BF97;
  --purple: #7A2FF7;
  --gold: #DEC435;
  --cta: #25D366;
  --urgency: #F72186;
  --text: #eaf0ff;
  --muted: #9fb0d8;
  --max-width: 1200px;
  --font: 'Cairo', sans-serif;
  --card: rgba(255,255,255,.05);
  --card-brd: rgba(255,255,255,.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-deep);
  direction: rtl;
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- animated neon background ---------- */
.bg-neon { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(122,47,247,.28), transparent 60%),
              radial-gradient(1000px 700px at 0% 20%, rgba(247,33,134,.22), transparent 55%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.b1 { width: 420px; height: 420px; background: var(--pink); top: -80px; inset-inline-start: -60px; animation: float1 14s ease-in-out infinite; }
.b2 { width: 380px; height: 380px; background: var(--teal); top: 40%; inset-inline-end: -80px; animation: float2 18s ease-in-out infinite; }
.b3 { width: 340px; height: 340px; background: var(--purple); bottom: -60px; inset-inline-start: 30%; animation: float3 16s ease-in-out infinite; }
.grid-lines { position: absolute; inset: 0; opacity: .06;
  background-image: linear-gradient(var(--teal) 1px, transparent 1px), linear-gradient(90deg, var(--teal) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); }

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,50px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,-40px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }

main { position: relative; z-index: 1; }

/* ---------- text wordmark (replaces the raster logo — no baked-in date) ---------- */
.wordmark { display: inline-flex; gap: .3em; align-items: baseline; font-weight: 900; letter-spacing: 1px; line-height: 1; direction: ltr; }
.wordmark .w1 { color: #fff; }
.wordmark .w2 { background: linear-gradient(135deg, var(--pink), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark sup { font-size: .3em; color: var(--teal); }
.wordmark.wm-nav { font-size: 22px; }
.wordmark.wm-foot { font-size: 26px; opacity: .92; }
.wordmark.wm-price { font-size: clamp(30px, 6vw, 44px); justify-content: center; margin-bottom: 14px; }
.wordmark.wm-banner { font-size: clamp(34px, 7vw, 54px); justify-content: center; margin-bottom: 14px; filter: drop-shadow(0 4px 18px rgba(247,33,134,.5)); }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(6,11,34,.55); border-bottom: 1px solid var(--card-brd); transition: background .3s; }
.nav.scrolled { background: rgba(6,11,34,.9); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.nav-logo { min-width: 0; }
.wordmark.wm-nav { white-space: nowrap; }
.nav-logo img { height: 42px; width: auto; filter: drop-shadow(0 2px 8px rgba(247,33,134,.5)); }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; flex-wrap: wrap; }
.nav-links a { font-weight: 700; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; font-weight: 800;
  padding: 9px 20px; border-radius: 40px; box-shadow: 0 6px 20px rgba(247,33,134,.4); white-space: nowrap; }
.nav-cta:hover { transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; }

/* ---------- generic section ---------- */
.section { padding: 80px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-title { font-size: clamp(26px, 4vw, 44px); font-weight: 900; margin: 0 0 10px; }
.section-title .hl { color: var(--teal); }
.section-sub { color: var(--muted); font-size: 18px; margin: 0; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  padding: 6px 16px; border-radius: 40px; background: rgba(247,33,134,.16); color: var(--pink);
  border: 1px solid rgba(247,33,134,.4); margin-bottom: 14px; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px;
  padding: 14px 30px; border-radius: 50px; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s; }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff;
  box-shadow: 0 10px 30px rgba(247,33,134,.45); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(247,33,134,.6); }
.btn-teal { background: linear-gradient(135deg, var(--teal), #1f8f7a); color: #04231c;
  box-shadow: 0 10px 30px rgba(56,191,151,.4); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 90px 20px 70px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  transform: scale(1.15); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,11,34,.55) 0%, rgba(6,11,34,.75) 55%, var(--navy-deep) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-badge { display: inline-block; background: rgba(247,33,134,.9); color: #fff; font-weight: 800;
  font-size: 14px; padding: 8px 20px; border-radius: 40px; margin-bottom: 22px; box-shadow: 0 6px 20px rgba(247,33,134,.5);
  animation: pop 3s ease-in-out infinite; }
.hero-logo { max-width: 320px; margin: 0 auto 8px; filter: drop-shadow(0 6px 30px rgba(247,33,134,.55)); }
.hero-title { font-size: clamp(48px, 12vw, 120px); font-weight: 900; line-height: .92; margin: 6px 0 4px;
  letter-spacing: 2px; text-shadow: 0 0 30px rgba(122,47,247,.6); direction: ltr; }
.hero-title .t1 { color: #fff; }
.hero-title .t2 { background: linear-gradient(135deg, var(--pink), var(--teal)); -webkit-background-clip: text;
  background-clip: text; color: transparent; position: relative; }
.hero-title sup { font-size: .28em; color: var(--teal); vertical-align: super; }
.hero-date { display: inline-flex; align-items: center; gap: 12px; margin: 16px 0 6px;
  font-size: clamp(26px, 6vw, 44px); font-weight: 900; color: #fff;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(56,191,151,.6);
  border-radius: 16px; padding: 6px 26px; box-shadow: 0 0 30px rgba(56,191,151,.35); letter-spacing: 2px; }
.hero-date .cal { color: var(--teal); }
.hero-sub { font-size: clamp(18px, 3vw, 26px); font-weight: 800; margin: 14px 0 4px; }
.hero-tag { color: var(--muted); font-size: clamp(15px, 2.4vw, 19px); margin: 0 0 26px; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-cue::before { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: #fff; border-radius: 3px; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} }
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* ---------- INTRO ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; }
.intro-media { position: relative; }
.intro-media img { width: 100%; border-radius: 22px; border: 1px solid var(--card-brd);
  box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.intro-media::before { content: ""; position: absolute; inset: -14px; border-radius: 26px; z-index: -1;
  background: linear-gradient(135deg, var(--pink), var(--teal)); opacity: .35; filter: blur(24px); }
.intro-text h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; line-height: 1.3; margin: 0 0 18px; }
.intro-text p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.intro-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.intro-bullets li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.intro-bullets li::before { content: "✦"; color: var(--teal); font-size: 20px; }

/* ---------- FEATURES (islands) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; transition: transform .3s, border-color .3s; }
.feat-card:hover { transform: translateY(-8px); border-color: var(--teal); }
.feat-card .fi { font-size: 46px; margin-bottom: 12px; }
.feat-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: var(--teal); }
.feat-card p { color: var(--muted); margin: 0; }

/* ---------- CREATORS ---------- */
.creators-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.creator { background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: transform .3s, box-shadow .3s; will-change: transform; }
.creator:hover { box-shadow: 0 20px 40px rgba(247,33,134,.3); }
.creator .avatar { aspect-ratio: 1/1; width: 100%; object-fit: cover; background:
  linear-gradient(135deg, var(--purple), var(--pink)); display: flex; align-items: center; justify-content: center; }
.creator .avatar svg { width: 55%; height: 55%; opacity: .85; }
.creator .avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator .c-body { padding: 12px 10px 16px; }
.creator .c-name { font-weight: 800; font-size: 15px; margin: 0; }
.creator .c-handle { color: var(--muted); font-size: 13px; margin: 2px 0 0; direction: ltr; }
.creator .c-fol { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800;
  color: var(--teal); background: rgba(56,191,151,.14); padding: 3px 10px; border-radius: 30px; }
.creator.q .avatar { background: rgba(255,255,255,.05); font-size: 48px; font-weight: 900; color: var(--muted); }
.next-head { text-align: center; margin: 50px 0 26px; font-size: clamp(20px,3vw,30px); font-weight: 800; color: var(--pink); }

/* ---------- PRICING ---------- */
.pricing-wrap { max-width: 720px; margin: 0 auto; }
.price-card { background: linear-gradient(160deg, rgba(122,47,247,.22), rgba(247,33,134,.14));
  border: 1px solid rgba(247,33,134,.4); border-radius: 26px; padding: 44px 34px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.price-card img.plogo { max-width: 220px; margin: 0 auto 18px; filter: drop-shadow(0 4px 16px rgba(247,33,134,.5)); }
.price-amount { font-size: clamp(52px, 12vw, 88px); font-weight: 900; line-height: 1; color: #fff;
  text-shadow: 0 0 30px rgba(56,191,151,.5); }
.price-amount .cur { font-size: .3em; color: var(--teal); margin-inline-start: 8px; }
.price-note { color: var(--gold); font-weight: 700; margin: 8px 0 26px; }
.price-list { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 460px; text-align: right; display: grid; gap: 12px; }
.price-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.price-list li.inc::before { content: "✔"; color: var(--teal); font-weight: 900; }
.price-list li.exc { color: var(--muted); }
.price-list li.exc::before { content: "✕"; color: var(--pink); font-weight: 900; }

/* ---------- BANNER ---------- */
.banner { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; border-block: 1px solid var(--card-brd); }
.banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12); will-change: transform; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: rgba(6,11,34,.72); }
.banner-inner { position: relative; z-index: 2; padding: 60px 20px; }
.banner-inner img { max-width: 260px; margin: 0 auto 18px; filter: drop-shadow(0 4px 18px rgba(247,33,134,.6)); }
.banner-inner p { font-size: clamp(20px, 3.4vw, 32px); font-weight: 900; margin: 0 0 16px; max-width: 760px; }
.banner-badge { display: inline-block; background: var(--urgency); color: #fff; font-weight: 800;
  padding: 8px 22px; border-radius: 40px; box-shadow: 0 6px 20px rgba(247,33,134,.5); }

/* ---------- PROGRAM ---------- */
.program-track { display: grid; gap: 26px; }
.day-card { background: var(--card); border: 1px solid var(--card-brd); border-radius: 22px;
  padding: 26px; display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start;
  transition: border-color .3s, transform .3s; }
.day-card:hover { border-color: var(--pink); }
.day-num { text-align: center; }
.day-num .n { font-size: 46px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day-num .l { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.day-body h3 { margin: 0 0 8px; font-size: 24px; font-weight: 900; color: var(--teal); }
.day-body p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.day-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.day-imgs figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--card-brd); }
.day-imgs img { width: 100%; height: 150px; object-fit: cover; transition: transform .5s; }
.day-imgs figure:hover img { transform: scale(1.08); }
.day-imgs figcaption { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(transparent, rgba(6,11,34,.9));
  color: #fff; font-size: 13px; font-weight: 700; padding: 18px 10px 8px; }

/* ---------- GALLERY ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid a { border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--card-brd); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; transition: transform .6s; }
.gallery-grid a:hover img { transform: scale(1.1); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--card-brd); border-radius: 16px; overflow: hidden; }
.faq-q { width: 100%; text-align: right; background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 18px; padding: 20px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-q .ic { color: var(--teal); transition: transform .3s; flex: 0 0 auto; font-size: 22px; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); padding: 0 22px; }
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 20px; }

/* ---------- FINAL CTA ---------- */
.cta-band { text-align: center; }
.cta-inner { max-width: 760px; margin: 0 auto; background: linear-gradient(160deg, rgba(247,33,134,.2), rgba(56,191,151,.12));
  border: 1px solid rgba(247,33,134,.4); border-radius: 26px; padding: 52px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cta-inner h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; margin: 0 0 14px; }
.cta-inner p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }

/* ---------- FOOTER ---------- */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 40px 20px 110px; border-top: 1px solid var(--card-brd); }
.site-footer img { max-width: 150px; margin: 0 auto 12px; opacity: .9; }
.site-footer p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FIXED WHATSAPP CTA ---------- */
.wa-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.wa-btn { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  max-width: 520px; background: var(--cta); color: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: wa-pulse 1.9s infinite; }
.wa-btn .wa-icon { width: 32px; height: 32px; fill: #fff; flex: 0 0 auto; }
.wa-btn .btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.wa-btn .btn-title { font-size: 17px; font-weight: 800; }
.wa-btn .btn-sub { font-size: 13px; font-weight: 600; opacity: .95; }
.wa-btn .urgency-badge { position: absolute; top: -12px; inset-inline-start: 14px; background: var(--urgency);
  color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; box-shadow: 0 3px 8px rgba(0,0,0,.3); white-space: nowrap; }
@keyframes wa-pulse { 0%{box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 14px rgba(37,211,102,0)} 100%{box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 0 rgba(37,211,102,0)} }

/* ===========================================================
   RESPONSIVE — tablet
   =========================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; inset-inline: 0; flex-direction: column;
    background: rgba(6,11,34,.97); padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--card-brd); }
  .nav-cta { margin-inline-start: auto; }
  .nav-burger { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .feat-grid { grid-template-columns: 1fr; }
  .creators-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================================
   RESPONSIVE — mobile (poster-style vertical feel)
   =========================================================== */
@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 32px; }
  .day-card { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .day-num { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .day-num .l { margin: 0; }
  .day-body h3, .day-body p { text-align: center; }
  .day-imgs { grid-template-columns: 1fr 1fr; }
  .creators-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid img { height: 170px; }
  .price-card { padding: 34px 20px; }
  .price-list { text-align: right; }
  .hero { min-height: 92vh; }
  body { padding-bottom: 84px; }
  .nav-inner { gap: 10px; }
  .wordmark.wm-nav { font-size: 17px; letter-spacing: 0; }
  .nav-cta { padding: 8px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .hero-badge, .wa-btn { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
