/* =========================================================================
   RUSH TOWER PLAY — MASTER STYLESHEET
   Shared by every locale and page. Do not fork this file per language.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root{
  /* --- Palette --------------------------------------------------------- */
  --bg-deep:        #14102B;   /* page background, near-black indigo */
  --bg-panel:       #1E1840;   /* cards, header, table stripes */
  --bg-panel-alt:   #241C4E;   /* secondary panel tone */
  --line:           #352A6B;   /* hairlines / borders */
  --accent-cyan:    #4CE0D2;   /* primary accent — tower glow */
  --accent-violet:  #8B5CF6;   /* secondary accent — gradient end */
  --accent-pink:    #FF4D8D;   /* signal accent — CTA / highlight */
  --text-main:      #F1EDFF;   /* primary text on dark */
  --text-muted:     #A9A3C9;   /* secondary text on dark */
  --text-faint:     #786FA0;   /* tertiary / captions */

  /* --- Type -------------------------------------------------------------*/
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body:    'Manrope', 'Segoe UI', sans-serif;

  /* --- Layout ------------------------------------------------------------*/
  --max-w: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --header-h: 76px;
}

/* ---------------------------------------------------------------------- *
 * Reset
 * ---------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-deep);
  background-image:
    radial-gradient(700px 420px at 12% -8%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(650px 400px at 90% 8%, rgba(76,224,210,0.14), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* nothing may create horizontal page scroll */
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul, ol{ padding-left: 1.3em; }
:focus-visible{ outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html{ scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------- *
 * HEADER
 * ---------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(20, 16, 43, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  background: rgba(20, 16, 43, 0.95);
}
.header-inner{
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo{ display: flex; align-items: center; flex-shrink: 0; }
.logo img{ height: 32px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a{
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--text-main); background: rgba(255,255,255,0.06); }
.main-nav a[aria-current="page"]{ color: var(--accent-cyan); }

.header-right{ display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Language switcher --------------------------------------------------- */
.lang-switch{ position: relative; }
.lang-switch-btn{
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.lang-switch-btn .flag{ font-size: 16px; line-height: 1; }
.lang-switch-btn .chev{
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
  margin-top: -3px;
}
.lang-switch.is-open .lang-switch-btn .chev{ transform: rotate(-135deg); margin-top: 3px; }

.lang-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: none;
  z-index: 200;
}
.lang-switch.is-open .lang-menu{ display: block; }
.lang-menu a{
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--text-muted);
}
.lang-menu a:hover{ background: rgba(255,255,255,0.06); color: var(--text-main); }
.lang-menu a[aria-current="true"]{ color: var(--accent-cyan); }
.lang-menu a .flag{ font-size: 17px; }
.lang-menu a .check{ margin-left: auto; color: var(--accent-cyan); font-size: 13px; }

/* CTA buttons in header ------------------------------------------------ */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  border-radius: var(--radius-s);
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  color: var(--text-main);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-primary{
  color: #0F0B24;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  box-shadow: 0 8px 24px rgba(76, 224, 210, 0.25);
}
.btn-primary:hover{ box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4); }

/* Mobile nav toggle ------------------------------------------------------*/
.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block;
  width: 18px; height: 2px;
  background: var(--text-main);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------------- *
 * MAIN — every element inside <main> is styled directly (no wrapper divs)
 * ---------------------------------------------------------------------- */
main{
  display: block;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

main h1{
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  background: linear-gradient(120deg, var(--text-main) 40%, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
main h2{
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 48px 0 18px;
  color: var(--text-main);
}
main h3{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 34px 0 14px;
  color: var(--text-main);
}
main h4{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: .04em;
}
main p{
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 74ch;
}
main .lede{
  font-size: 19px;
  color: var(--text-main);
  max-width: 62ch;
}
main a.inline-link{
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(76,224,210,0.4);
}
main a.inline-link:hover{ border-color: var(--accent-cyan); }

main ul, main ol{
  color: var(--text-muted);
  max-width: 74ch;
  margin: 0 0 20px;
}
main li{ margin-bottom: 8px; }
main li::marker{ color: var(--accent-cyan); }

main blockquote{
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent-violet);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--text-main);
  font-style: italic;
}

main hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* Hero ------------------------------------------------------------------
   Single centred column — copy first, image below, nothing side-by-side. */
.hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  padding: 20px 0 12px;
}
.hero-copy{ max-width: 760px; }
.hero-copy h1{ margin: 0 auto 14px; }
.hero-copy .lede{ margin-left: auto; margin-right: auto; }
.hero-actions{ display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-figure{
  position: relative;
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.hero-figure img{ width: 100%; }

/* Content images ----------------------------------------------------------
   Reusable insertion point for images placed between paragraphs. */
main figure.content-image{
  margin: 32px 0;
}
main figure.content-image img{
  width: 100%;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
main figure.content-image figcaption{
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* Centered CTA button template ------------------------------------------ */
.cta-block{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: 46px auto;
  padding: 36px 24px;
  max-width: 560px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.cta-block .btn-primary{
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 999px;
}
.cta-block .cta-note{ font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* Table ------------------------------------------------------------------
   Wrapped so wide tables scroll internally on mobile instead of
   stretching the page. */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
main table{
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}
main table caption{
  text-align: left;
  padding: 14px 18px 0;
  color: var(--text-faint);
  font-size: 13px;
}
main thead th{
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-cyan);
  background: var(--bg-panel-alt);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
main tbody td{
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
main tbody tr:last-child td{ border-bottom: none; }
main tbody tr:nth-child(even){ background: rgba(255,255,255,0.02); }
main tbody tr:hover{ background: rgba(76,224,210,0.05); }

/* Author block ------------------------------------------------------------
   Placed in <main> after the body copy. */
.author-block{
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px 0 8px;
  padding: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.author-block .avatar{
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-cyan);
}
.author-block .avatar img{ width: 100%; height: 100%; object-fit: cover; }
.author-block .author-meta{ min-width: 0; }
.author-block .author-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}
.author-block .author-role{
  font-size: 12.5px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}
.author-block .author-opinion{
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* 404 page ---------------------------------------------------------------*/
.error-page{
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page .error-code{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1{ margin: 6px 0 12px; }
.error-page p{ margin: 0 auto 28px; }

/* ---------------------------------------------------------------------- *
 * FOOTER
 * ---------------------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 40px 24px 32px;
}
.footer-inner{ max-width: var(--max-w); margin: 0 auto; }

.footer-orgs{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-orgs a{
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease;
}
.footer-orgs a:hover{ border-color: var(--accent-cyan); color: var(--accent-cyan); }

.footer-disclaimer{
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 90ch;
  margin: 0;
}

/* ---------------------------------------------------------------------- *
 * BACK TO TOP
 * ---------------------------------------------------------------------- */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, border-color .2s ease;
  z-index: 90;
}
.back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ border-color: var(--accent-cyan); }
.back-to-top svg{ width: 18px; height: 18px; }

/* ---------------------------------------------------------------------- *
 * RTL support (Urdu)
 * ---------------------------------------------------------------------- */
html[dir="rtl"] main blockquote{ border-left: none; border-right: 3px solid var(--accent-violet); border-radius: var(--radius-s) 0 0 var(--radius-s); }
html[dir="rtl"] main thead th, html[dir="rtl"] main table caption{ text-align: right; }
html[dir="rtl"] .back-to-top{ right: auto; left: 22px; }
html[dir="rtl"] .lang-menu{ right: auto; left: 0; }
html[dir="rtl"] .author-block .author-role{ direction: rtl; }

/* ---------------------------------------------------------------------- *
 * RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 860px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }

  .header-right{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 20px 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .header-right.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .header-right .main-nav-mobile{
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 6px;
  }
  .header-right .main-nav-mobile a{
    padding: 10px 6px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
  }
  .header-right .main-nav-mobile a[aria-current="page"]{ color: var(--accent-cyan); }
  .lang-switch{ width: 100%; }
  .lang-switch-btn{ width: 100%; justify-content: space-between; }
  .lang-menu{ position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .header-right .btn{ width: 100%; }
}

@media (max-width: 640px){
  main{ padding: 36px 18px 64px; }
  .cta-block{ padding: 28px 18px; margin: 34px auto; }
  .author-block{ flex-direction: column; text-align: center; }
  .footer-orgs{ justify-content: center; }
}

@media (max-width: 420px){
  .logo img{ height: 26px; }
  main h1{ font-size: 30px; }
}
.demo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.demo-frame {
  position: relative;
  width: 100%;
  max-width: 850px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.demo-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .demo-wrapper {
    padding: 12px 8px;
  }

  .demo-frame {
    border-radius: 8px;
  }
}