/* =========================================================
   ARISE CLASH — Design tokens
   Palette grounded in the brand's own chrome/red/gold logo.
   ========================================================= */
:root{
  --bg:            #050309;
  --bg-soft:       #0b0713;
  --surface:       #120c1d;
  --surface-2:     #1a1128;
  --line:          rgba(255,255,255,.08);
  --line-strong:   rgba(255,255,255,.16);

  --red:           #8a3ffc;
  --red-2:         #b57bff;
  --red-dark:      #3d1580;
  --gold:          #c8a2ff;
  --chrome:        #eef1f5;
  --chrome-dim:    #b9bcc5;
  --text:          #f3f3f5;
  --text-dim:      #9b9ba6;
  --text-faint:    #6c6c78;
  --live:          #33d17a;

  --grad-flame: linear-gradient(115deg, var(--red-2) 0%, var(--red) 55%, var(--red-dark) 100%);
  --grad-gold:  linear-gradient(120deg, #e6d4ff 0%, var(--gold) 60%, #8a3ffc 100%);

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --edge: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --edge-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);

  --shadow-card: 0 8px 30px rgba(0,0,0,.45);
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:.01em;
  color:var(--chrome);
  margin:0;
}

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

.eyebrow{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:600;
  color:var(--red-2);
  letter-spacing:.06em;
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--grad-flame);
  display:inline-block;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

/* ---------------------------------------------------------
   Buttons — the "mast buttons" : angular clipped corners,
   flame gradient, layered glow + shine sweep on hover.
   --------------------------------------------------------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 34px;
  border:none;
  border-radius:0;
  clip-path:var(--edge);
  font-family:var(--font-display);
  font-size:18px;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  isolation:isolate;
  overflow:hidden;
  white-space:nowrap;
}
.btn img{ width:20px; height:20px; filter:brightness(0) invert(1); }
.btn-primary{
  background:var(--grad-flame);
  color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -8px rgba(138,63,252,.65);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 0 0 1px rgba(255,255,255,.12) inset, 0 16px 34px -6px rgba(255,91,46,.75); filter:brightness(1.05); }
.btn-primary:active{ transform:translateY(0); }
.btn-primary::after{
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%);
  transform:translateX(-120%);
  transition:transform .7s ease;
}
.btn-primary:hover::after{ transform:translateX(120%); }

.btn-ghost{
  background:rgba(255,255,255,.03);
  color:var(--chrome);
  box-shadow:0 0 0 1px var(--line-strong) inset;
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{ box-shadow:0 0 0 1px var(--red-2) inset; color:#fff; transform:translateY(-2px); }

.btn-gold{
  background:var(--grad-gold);
  color:#13041f;
  box-shadow:0 10px 26px -8px rgba(200,162,255,.55);
}
.btn-gold:hover{ transform:translateY(-2px); filter:brightness(1.05); }

.btn-sm{ padding:11px 22px; font-size:15px; clip-path:var(--edge-sm); }

.btn-block{ width:100%; }

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(8,8,11,.72);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:46px; width:40px; object-fit:contain; }
.brand span{
  font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--chrome);
  letter-spacing:.03em;
}
.brand span em{ font-style:normal; color:var(--red-2); }

.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a, .nav-links button{
  background:none; border:none; color:var(--text-dim);
  font-size:15.5px; font-weight:500; padding:6px 2px;
  position:relative;
}
.nav-links a:hover, .nav-links button:hover{ color:var(--chrome); }
.nav-links a::after, .nav-links button::after{
  content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0;
  background:var(--grad-flame); transition:width .25s ease;
}
.nav-links a:hover::after, .nav-links button:hover::after{ width:100%; }

.nav-actions{ display:flex; align-items:center; gap:18px; }
.burger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px;
}
.burger span{ width:26px; height:2px; background:var(--chrome); display:block; }

.mobile-drawer{
  display:none;
}

@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-actions .btn-desktop-only{ display:none; }
  .burger{ display:flex; }
  .mobile-drawer{
    display:flex; flex-direction:column; gap:2px;
    position:fixed; top:0; right:0; height:100vh; width:78%; max-width:320px;
    background:var(--bg-soft); border-left:1px solid var(--line);
    padding:26px 22px; transform:translateX(100%); transition:transform .3s ease;
    z-index:200;
  }
  .mobile-drawer.open{ transform:translateX(0); }
  .mobile-drawer .drawer-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
  .mobile-drawer a, .mobile-drawer button{
    background:none; border:none; text-align:left; color:var(--text); font-size:19px;
    font-family:var(--font-display); font-weight:600; padding:14px 4px; border-bottom:1px solid var(--line);
  }
  .drawer-close{ background:none; border:none; color:var(--chrome); font-size:26px; padding:4px 10px; }
  .drawer-backdrop{
    display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.55); z-index:190;
  }
  .drawer-backdrop.open{ display:block; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{
  position:relative;
  min-height:calc(100vh - 72px);
  display:flex; align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-bg{
  position:absolute; top:0; left:0; right:0; bottom:0;
  background-image:url("assets/Hero-Banner.png");
  background-position:center right;
  background-size:cover;
  background-repeat:no-repeat;
}
.hero-bg::after{
  content:"";
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:
    linear-gradient(100deg, var(--bg) 18%, rgba(8,8,11,.86) 40%, rgba(8,8,11,.35) 62%, rgba(8,8,11,.75) 100%),
    linear-gradient(180deg, rgba(8,8,11,.15) 0%, rgba(8,8,11,.55) 100%);
}
.hero-inner{
  position:relative; z-index:2;
  padding:36px 24px 48px;
  width:100%; max-width:var(--container); margin:0 auto;
}
.hero-word{ display:block; width:auto; max-width:100%; height:clamp(170px,36vh,300px); object-fit:contain; margin-bottom:14px; filter:drop-shadow(0 12px 30px rgba(138,63,252,.35)); }
.hero p.lead{
  font-size:19px; color:var(--text-dim); max-width:520px; margin:0 0 24px;
}
.hero p.lead b{ color:var(--chrome); font-weight:600; }
.hero-ctas{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:46px; }

.stat-strip{
  display:flex; gap:0; flex-wrap:wrap;
  border-top:1px solid var(--line-strong);
  max-width:620px;
}
.stat-strip div{
  padding:18px 26px 0 0; margin-right:26px;
  border-right:1px solid var(--line);
}
.stat-strip div:last-child{ border-right:none; }
.stat-strip strong{
  display:block; font-family:var(--font-display); font-size:28px; color:var(--chrome);
}
.stat-strip span{ font-size:13.5px; color:var(--text-faint); }

/* ---------------------------------------------------------
   Section shells
   --------------------------------------------------------- */
section{ padding:104px 0; position:relative; }
.section-head{ max-width:620px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(30px,4vw,44px); margin-top:14px; line-height:1.1; }
.section-head p{ color:var(--text-dim); font-size:16.5px; margin-top:14px; max-width:520px; }

.bg-alt{ background:var(--bg-soft); }

/* ---------------------------------------------------------
   Features
   --------------------------------------------------------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.feature-card{
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--line);
  clip-path:var(--edge);
  padding:30px 24px;
  position:relative;
}
.feature-card::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:var(--grad-flame); transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
.feature-card:hover::before{ transform:scaleX(1); }
.feature-icon{
  width:52px; height:52px; border-radius:50%;
  background:var(--surface-2); border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.feature-icon img{ width:28px; height:28px; object-fit:contain; }
.feature-card h4{ font-size:19px; margin-bottom:8px; }
.feature-card p{ color:var(--text-dim); font-size:14.5px; margin:0; }

@media (max-width:960px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .feature-grid{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------
   Games showcase (slider)
   --------------------------------------------------------- */
.showcase-wrap{ position:relative; }
.slider{
  position:relative; border:1px solid var(--line-strong);
  clip-path:var(--edge); overflow:hidden; background:var(--surface);
  box-shadow:var(--shadow-card);
}
.slider-track{ display:flex; transition:transform .5s cubic-bezier(.65,0,.35,1); }
.slide{ min-width:100%; }
.slide img{ width:100%; display:block; max-height:560px; object-fit:cover; }

.slider-nav{
  display:flex; align-items:center; justify-content:center; gap:18px; margin-top:26px;
}
.slider-arrow{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong);
  background:var(--surface); color:var(--chrome); display:flex; align-items:center; justify-content:center;
  transition:border-color .2s ease, color .2s ease;
}
.slider-arrow:hover{ border-color:var(--red-2); color:var(--red-2); }
.dots{ display:flex; gap:9px; }
.dot{ width:9px; height:9px; border-radius:50%; background:var(--line-strong); border:none; padding:0; transition:background .2s ease, width .2s ease; }
.dot.active{ background:var(--grad-flame); width:26px; border-radius:5px; }

/* Game tiles */
.game-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:22px; margin-top:56px;
}
.game-tile{
  position:relative; clip-path:var(--edge); overflow:hidden;
  border:1px solid var(--line-strong); aspect-ratio:16/9;
}
.game-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.game-tile:hover img{ transform:scale(1.06); }
.game-tile .tag{
  position:absolute; top:16px; left:16px;
  display:flex; align-items:center; gap:7px;
  background:rgba(8,8,11,.72); border:1px solid var(--line-strong);
  padding:6px 12px; font-size:12.5px; font-weight:600; color:var(--chrome);
  backdrop-filter:blur(6px);
}
.game-tile .tag .pulse{
  width:7px; height:7px; border-radius:50%; background:var(--live);
  box-shadow:0 0 0 0 rgba(51,209,122,.6); animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(51,209,122,.55); }
  70%{ box-shadow:0 0 0 9px rgba(51,209,122,0); }
  100%{ box-shadow:0 0 0 0 rgba(51,209,122,0); }
}
.game-tile .tile-foot{
  position:absolute; left:0; right:0; bottom:0; padding:18px 20px;
  background:linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  display:flex; align-items:center; justify-content:space-between;
}
.game-tile .tile-foot h4{ font-size:20px; color:#fff; }

@media (max-width:760px){
  .game-grid{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;
}
.about-copy p{ color:var(--text-dim); font-size:16px; margin:20px 0 30px; max-width:540px; }
.about-badges{ display:flex; gap:14px; margin-bottom:32px; flex-wrap:wrap; }
.about-badges span{
  border:1px solid var(--line-strong); padding:8px 16px; font-size:13.5px; color:var(--chrome-dim);
  font-family:var(--font-display); font-weight:600; letter-spacing:.02em;
}
.about-art{
  position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
}
.about-art::before{
  content:""; position:absolute; top:8%; left:8%; right:8%; bottom:8%;
  border:1px solid var(--line-strong); clip-path:var(--edge);
}
.about-art img{ width:52%; filter:drop-shadow(0 20px 50px rgba(138,63,252,.35)); position:relative; z-index:2; }
.about-art::after{
  content:""; position:absolute; width:70%; height:70%; border-radius:50%;
  background:radial-gradient(circle, rgba(138,63,252,.25), transparent 70%);
  filter:blur(10px);
}

@media (max-width:860px){
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .about-art{ order:-1; max-width:280px; margin:0 auto; }
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list{ max-width:820px; }
.faq-item{
  border:1px solid var(--line); border-bottom:none; background:var(--surface);
}
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; background:none; border:none; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:22px 26px; color:var(--chrome); font-size:16.5px; font-weight:600; font-family:var(--font-body);
}
.faq-q .plus{
  width:26px; height:26px; flex:none; border:1px solid var(--line-strong); border-radius:50%;
  display:flex; align-items:center; justify-content:center; position:relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background:var(--chrome-dim);
}
.faq-q .plus::before{ width:11px; height:1.5px; }
.faq-q .plus::after{ width:1.5px; height:11px; transition:transform .25s ease; }
.faq-item.open .faq-q .plus::after{ transform:rotate(90deg) scale(0); }
.faq-item.open .faq-q .plus{ border-color:var(--red-2); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a-inner{ padding:0 26px 22px; color:var(--text-dim); font-size:15px; max-width:680px; }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band{
  position:relative; overflow:hidden;
  padding:74px 0;
  background:radial-gradient(120% 160% at 15% 20%, rgba(138,63,252,.18), transparent 60%), var(--bg-soft);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.cta-row{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-row h3{ font-size:clamp(24px,3vw,34px); max-width:520px; }
.cta-row p{ color:var(--text-dim); margin:10px 0 0; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer{ background:var(--bg); padding:70px 0 0; border-top:1px solid var(--line); }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px; padding-bottom:50px;
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.footer-brand img{ height:38px; width:38px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--chrome); }
.footer-col p{ color:var(--text-dim); font-size:14.5px; max-width:340px; }
.footer-col h5{ font-family:var(--font-display); color:var(--chrome); font-size:15px; letter-spacing:.04em; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ color:var(--text-dim); font-size:14.5px; }
.footer-col ul a:hover{ color:var(--red-2); }
.footer-social{ display:flex; flex-direction:column; gap:12px; margin-top:6px; }
.footer-social a{
  display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-dim);
  border:1px solid var(--line); padding:9px 14px; width:fit-content;
}
.footer-social a:hover{ border-color:var(--red-2); color:var(--chrome); }
.footer-social img{ width:18px; height:18px; }
.footer-bottom{
  border-top:1px solid var(--line); padding:22px 0; display:flex; justify-content:space-between;
  flex-wrap:wrap; gap:10px; color:var(--text-faint); font-size:13px;
}

@media (max-width:860px){
  .footer-grid{ grid-template-columns:1fr; gap:34px; }
  .cta-row{ flex-direction:column; align-items:flex-start; }
}

/* ---------------------------------------------------------
   Reveal-on-load orchestration (single moment, not per-card)
   --------------------------------------------------------- */
.js /* ---------------------------------------------------------
   Reveal-on-load orchestration (single moment, pure CSS —
   no JS dependency so it always plays, even if scripts fail)
   --------------------------------------------------------- */
@keyframes riseIn{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:none; }
}
.reveal{
  animation:riseIn .7s ease both;
}
.reveal:nth-child(1){ animation-delay:.05s; }
.reveal:nth-child(2){ animation-delay:.18s; }
.reveal:nth-child(3){ animation-delay:.31s; }
.reveal:nth-child(4){ animation-delay:.44s; }


/* utility */
.desktop-only{ display:block; }
.mobile-only{ display:none; }
@media (max-width:760px){
  .desktop-only{ display:none; }
  .mobile-only{ display:block; }
}

/* hero fit: keep Download button visible above the fold */
.hero-ctas .btn{ min-height:50px; }
@media (max-width:600px){
  .hero{ min-height:auto; align-items:flex-start; }
  .hero-inner{ padding:20px 18px 36px; text-align:left; }
  .hero-word{ height:clamp(130px,24vh,200px); }
  .hero p.lead{ font-size:16px; margin-bottom:18px; }
  .hero-ctas{ margin-bottom:26px; }
  .hero-ctas > a{ width:100%; }
  .hero-ctas .btn{ width:100%; justify-content:center; }
  .stat-strip div{ padding:14px 14px 0 0; margin-right:14px; }
}

/* ---- Download button always visible (desktop + mobile) ---- */
.hero{ min-height:auto; align-items:flex-start; }
.hero-inner{ padding:28px 24px 40px; }
.hero-word{ height:clamp(120px,24vh,210px); width:auto; max-width:100%; margin-bottom:10px; }
.hero p.lead{ font-size:18px; margin:0 0 20px; }
.hero-ctas{ margin-bottom:28px; }
@media (max-height:700px) and (min-width:761px){
  .hero-word{ height:clamp(100px,20vh,150px); }
  .hero p.lead{ font-size:16px; margin-bottom:14px; }
}
.sticky-dl{ display:none; }
@media (max-width:760px){
  .sticky-dl{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(5,3,9,.92); backdrop-filter:blur(10px);
    border-top:1px solid var(--line-strong);
  }
  .sticky-dl a{ flex:1; display:block; }
  .sticky-dl .btn{ width:100%; justify-content:center; min-height:50px; }
  body{ padding-bottom:76px; }
}
