/* =========================================================================
   Zeus Hades Slot -- shared stylesheet
   Theme: the page reads as a descent -- storm-blue sky at the top slowly
   gives way to underworld violet at the bottom. Two gods, one gradient.
   ========================================================================= */

:root{
  /* -- palette -------------------------------------------------------- */
  --void:        #0a0a13;
  --surface:     #14131f;
  --surface-2:   #1b1a2b;
  --surface-3:   #221f36;
  --line:        rgba(255,255,255,.09);
  --line-soft:   rgba(255,255,255,.05);

  --text:        #efeaf7;
  --text-dim:    #a49dc4;
  --text-faint:  #756e94;

  --zeus:        #4d8bff;   /* storm blue   */
  --zeus-bright: #7fd6ff;   /* lightning cyan */
  --hades:       #8b3ffb;   /* underworld violet */
  --hades-deep:  #4a1264;   /* deep plum */
  --ember:       #e2496b;   /* small warm accent, used sparingly */

  --grad-thunder: linear-gradient(120deg, var(--zeus) 0%, var(--zeus-bright) 45%, var(--hades) 100%);
  --grad-page:    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(77,139,255,.20), transparent 60%),
                   radial-gradient(ellipse 80% 60% at 85% 15%, rgba(127,214,255,.08), transparent 55%),
                   radial-gradient(ellipse 90% 70% at 20% 120%, rgba(139,63,251,.28), transparent 60%),
                   radial-gradient(ellipse 70% 50% at 90% 130%, rgba(74,18,100,.35), transparent 60%),
                   var(--void);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-glow: 0 10px 40px -12px rgba(77,139,255,.45);
  --shadow-card: 0 20px 50px -25px rgba(0,0,0,.65);

  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --header-h: 76px;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-width: 320px;
  background: var(--grad-page);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--hades); color: #fff; }

:focus-visible{
  outline: 2px solid var(--zeus-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* =====================  HEADER  ========================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10,10,19,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .container{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .03em;
  color: var(--text);
  flex-shrink: 0;
}
.logo img{ height: 36px; width: auto; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.main-nav a{
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--text); background: var(--line-soft); }
.main-nav a[aria-current="page"]{ color: var(--zeus-bright); background: var(--line-soft); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* -- language switcher ---------------------------------------------------- */

.lang-switch{ position: relative; }

.lang-switch-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.lang-switch-btn:hover{ border-color: var(--zeus); background: var(--surface-3); }
.lang-switch-btn .flag{ font-size: 1.05rem; line-height: 1; }
.lang-switch-btn .chevron{
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform .18s ease;
  margin-top: -3px;
}
.lang-switch.open .lang-switch-btn .chevron{ transform: rotate(-135deg); margin-top: 3px; }

.lang-switch-list{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.lang-switch.open .lang-switch-list{ display: flex; }

.lang-switch-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-s);
  font-size: .9rem;
  color: var(--text-dim);
}
.lang-switch-list a:hover{ background: var(--line-soft); color: var(--text); }
.lang-switch-list a[aria-current="true"]{ color: var(--zeus-bright); background: var(--line-soft); }
.lang-switch-list .flag{ font-size: 1.1rem; }

/* -- CTA buttons ------------------------------------------------------ */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-demo{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-demo:hover{ border-color: var(--zeus-bright); color: var(--zeus-bright); }

.btn-play{
  background: var(--grad-thunder);
  color: #0a0a13;
  box-shadow: var(--shadow-glow);
}
.btn-play:hover{ box-shadow: 0 12px 46px -10px rgba(139,63,251,.55); transform: translateY(-1px); }
.btn-play .btn-label-short{ display: none; }

.btn-cta{
  display: flex;
  margin: 48px auto;
  padding: 17px 44px;
  font-size: 1.02rem;
  border-radius: 999px;
  background: var(--grad-thunder);
  color: #0a0a13;
  box-shadow: var(--shadow-glow);
  width: fit-content;
}
.btn-cta:hover{ box-shadow: 0 16px 54px -10px rgba(139,63,251,.6); transform: translateY(-1px); }

/* -- mobile nav toggle -------------------------------------------------- */

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  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; }

/* =====================  MAIN  ============================================ */

main{
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

main h1{
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 18px;
  background: var(--grad-thunder);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main h2{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 46px 0 16px;
  color: var(--text);
}

main h3{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--zeus-bright);
}

main p{
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 1rem;
}

main p.lede{
  color: var(--text);
  font-size: 1.12rem;
}

main strong{ color: var(--text); }

main a.inline-link{
  color: var(--zeus-bright);
  text-decoration: underline;
  text-decoration-color: rgba(127,214,255,.35);
  text-underline-offset: 3px;
}
main a.inline-link:hover{ text-decoration-color: var(--zeus-bright); }

main ul, main ol{
  color: var(--text-dim);
  margin: 0 0 20px;
  padding-left: 22px;
}
main li{ margin-bottom: 8px; }

main blockquote{
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--hades);
  background: var(--surface);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  color: var(--text-dim);
  font-style: italic;
}

hr.divider{
  border: none;
  height: 1px;
  margin: 52px 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* -- content image template --------------------------------------------- */

figure.content-figure{
  margin: 32px 0;
}
figure.content-figure img{
  width: 100%;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
figure.content-figure figcaption{
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-faint);
  text-align: center;
}

/* -- table template ------------------------------------------------------ */

.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
table.data-table{
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .92rem;
}
table.data-table thead th{
  background: var(--surface-2);
  color: var(--zeus-bright);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td{
  padding: 13px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.data-table tbody tr:nth-child(even){ background: rgba(255,255,255,.02); }
table.data-table tbody tr:last-child td{ border-bottom: none; }

/* -- author block --------------------------------------------------------- */

.author-block{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 56px 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--zeus-bright);
  border-radius: var(--radius-m);
}
.author-block img{
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--line);
  object-fit: cover;
}
.author-block .author-name{
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px;
}
.author-block .author-role{
  font-size: .8rem;
  color: var(--text-faint);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.author-block p{ margin: 0; color: var(--text-dim); font-size: .95rem; }

/* -- lightning divider (signature element) -------------------------------- */

.lightning-divider{
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 44px auto;
  opacity: .85;
}

/* -- 404 -------------------------------------------------------------- */

.error-page{
  text-align: center;
  padding-top: 40px;
}
.error-page .error-code{
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 1;
  background: var(--grad-thunder);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.error-page p{ margin: 14px auto 30px; max-width: 460px; }

/* -- page-template placeholder blocks (bonus / reviews / app) ------------ */

.placeholder-block{
  padding: 26px;
  margin: 24px 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--text-faint);
  font-size: .9rem;
}

/* =====================  FOOTER  ========================================== */

footer.site-footer{
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(10,10,19,.5);
}

.footer-orgs{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-orgs a{
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color .18s ease, color .18s ease;
}
.footer-orgs a:hover{ border-color: var(--zeus-bright); color: var(--zeus-bright); }

.footer-legal{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}
.footer-legal p{
  color: var(--text-faint);
  font-size: .82rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.footer-legal .copyright{
  font-size: .78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

/* =====================  BACK TO TOP  ====================================== */

.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--zeus-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, border-color .18s ease;
  z-index: 150;
  box-shadow: var(--shadow-card);
}
.back-to-top.visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ border-color: var(--zeus-bright); }
.back-to-top svg{ width: 18px; height: 18px; }

/* =====================  RESPONSIVE  ======================================= */

@media (max-width: 900px){
  .main-nav{ display: none; }
  .header-actions .btn-demo{ display: none; }
  .nav-toggle{ display: flex; }

  .site-header.nav-open{
    height: auto;
    align-items: flex-start;
  }
  .site-header.nav-open .container{ flex-wrap: wrap; }
  .site-header.nav-open .main-nav{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 5;
    padding: 8px 0 18px;
    gap: 2px;
  }
  .site-header.nav-open .main-nav a{ padding: 12px 10px; }
  .site-header.nav-open .header-actions{
    order: 4;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-header.nav-open .header-actions .btn-demo{ display: inline-flex; }
}

@media (max-width: 640px){
  .container{ padding-inline: 16px; }
  main{ padding: 40px 16px 16px; }
  .author-block{ flex-direction: column; text-align: left; }
  .back-to-top{ right: 14px; bottom: 16px; width: 42px; height: 42px; }
  table.data-table{ min-width: 420px; }
  .btn-cta{
    white-space: normal;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: .98rem;
  }

  .site-header .container{ gap: 8px; }
  .logo img{ height: 28px; }
  .header-actions{ gap: 6px; }
  .lang-switch-btn{ padding: 8px 9px; }
  .btn-play{ padding: 10px 14px; font-size: .82rem; }
  .nav-toggle{ width: 38px; height: 38px; }
}

@media (max-width: 420px){
  .lang-switch-btn .lang-label{ display: none; }
  .lang-switch-btn{ padding: 8px; }
  .btn-play .btn-label-short{ display: inline; }
  .btn-play .btn-label-full{ display: none; }
}

@media (max-width: 360px){
  .logo img{ height: 22px; }
  .site-header .container{ gap: 6px; }
  .header-actions{ gap: 4px; }
  .btn-play{ padding: 8px 11px; font-size: .78rem; }
  .lang-switch-btn{ padding: 7px; }
  .nav-toggle{ width: 34px; height: 34px; }
}
