/* ==========================================================================
   ANGMON.IO — Official Site Stylesheet
   Design tokens, layout, components, and motion.
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root{
  /* Colors */
  --void:        #050202;
  --void-2:      #0a0405;
  --ink:         #120709;
  --ink-2:       #1a0a0d;
  --red:         #ff1636;
  --red-bright:  #ff3b52;
  --red-deep:    #7a0016;
  --ember:       #ff7a2e;
  --ember-soft:  #ffb37a;
  --white:       #f7f1ee;
  --white-dim:   rgba(247,241,238,.62);
  --white-faint: rgba(247,241,238,.36);
  --line:        rgba(255,60,80,.16);
  --line-strong: rgba(255,60,80,.32);
  --glass:       rgba(20,8,10,.55);
  --glass-2:     rgba(28,11,14,.65);

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-in: cubic-bezier(.5,0,.75,0);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* Glow */
  --glow-red-sm: 0 0 18px rgba(255,22,54,.35);
  --glow-red-md: 0 0 46px rgba(255,22,54,.32);
  --glow-red-lg: 0 0 110px rgba(255,22,54,.28);

  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, figure{ margin: 0; }
ul{ list-style: none; padding: 0; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg{ display: block; }

html, body{
  min-height: 100%;
}
body{
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Body is locked while the loader is active */
body.is-loading{ overflow: hidden; height: 100vh; }

::selection{ background: var(--red); color: var(--white); }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--void); }
::-webkit-scrollbar-thumb{ background: linear-gradient(var(--red-deep), var(--red)); border-radius: var(--r-pill); }

.container{
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-sm);
}
.skip-link:focus{ left: var(--space-2); top: var(--space-2); }

/* ---------- 3. Typography helpers ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: var(--space-2);
}

.section-title{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.section-lead{
  max-width: 640px;
  color: var(--white-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: var(--space-5);
}

/* ---------- 4. Section rhythm ---------- */
.section{
  position: relative;
  padding-block: var(--space-8);
}
.section--alt{
  background: linear-gradient(180deg, var(--void) 0%, var(--void-2) 50%, var(--void) 100%);
}
.section--alt::before,
.section--alt::after{
  content:"";
  position:absolute; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section--alt::before{ top:0; }
.section--alt::after{ bottom:0; }

/* ---------- 5. Scroll-reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader{
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  background: radial-gradient(120% 120% at 50% 40%, var(--ink) 0%, var(--void) 65%);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }

.loader__core{
  position: relative; width: 96px; height: 96px;
  display: grid; place-items: center;
}
.loader__logo{
  width: 48px; height: 48px; border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(255,22,54,.65));
  animation: pulse-core 1.6s ease-in-out infinite;
}
.loader__ring{
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--red);
  animation: spin 1.1s linear infinite;
}
.loader__ring--2{
  inset: -14px;
  border-top-color: var(--ember);
  animation-duration: 2s;
  animation-direction: reverse;
  opacity: .6;
}
.loader__text{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white-dim);
  display: flex; align-items: center; gap: .35em;
}
.loader__dots i{
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); margin-inline: 1px;
  animation: dot-blink 1.2s ease-in-out infinite;
}
.loader__dots i:nth-child(2){ animation-delay: .15s; }
.loader__dots i:nth-child(3){ animation-delay: .3s; }

.loader__bar{
  width: 180px; height: 2px; background: rgba(255,255,255,.08); border-radius: var(--r-pill); overflow: hidden;
}
.loader__bar-fill{
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--ember));
  box-shadow: var(--glow-red-sm);
  transition: width .35s var(--ease);
}

@keyframes pulse-core{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.12); } }
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes dot-blink{ 0%,80%,100%{ opacity: .2; } 40%{ opacity: 1; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled{
  background: rgba(5,2,2,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner{
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}

.brand{ display: flex; align-items: center; gap: .6rem; }
.brand__logo{ border-radius: 50%; box-shadow: 0 0 14px rgba(255,22,54,.5); }
.brand__word{
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  font-size: 1.15rem; text-transform: uppercase;
}
.brand__dot{ color: var(--red); }

.nav{ display: flex; align-items: center; gap: var(--space-4); }
.nav__link{
  position: relative;
  font-size: .92rem; font-weight: 500; color: var(--white-dim);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after{
  content:""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--red); transition: width var(--dur-med) var(--ease);
}
.nav__link:hover{ color: var(--white); }
.nav__link:hover::after{ width: 100%; }

.site-header__actions{ display: flex; align-items: center; gap: var(--space-3); }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .88rem;
  border-radius: var(--r-pill);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative; overflow: hidden;
}
.btn--line{
  border: 1px solid var(--line-strong); color: var(--white);
  background: rgba(255,22,54,.05);
}
.btn--line:hover{ border-color: var(--red); box-shadow: var(--glow-red-sm); transform: translateY(-1px); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: var(--r-sm);
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--white); transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease); margin-inline: auto; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
  background: radial-gradient(120% 90% at 50% 20%, #170608 0%, var(--void) 60%);
}
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 0.5rem);
  background: radial-gradient(120% 90% at 50% 20%, #170608 0%, var(--void) 60%);
}
.hero__content{
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: var(--space-3);
  margin-top: -1rem;
}
.hero__title{
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
  margin-block: var(--space-1) var(--space-1);
}
.hero__subtitle{ margin-top: .75rem; }
.hero__desc{ margin-top: 1rem; }
.hero__actions{
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-3);
}
.hero__status{ margin-top: var(--space-2); }
.hero__socials{ margin-top: var(--space-2); }
.hero__canvas{ position: absolute; inset: 0; z-index: 1; opacity: .8; }

.hero__hexgrid{
  position: absolute; inset: -10%; z-index: 0;
  background-image:
    linear-gradient(30deg, rgba(255,30,55,.06) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255,30,55,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,30,55,.05) 1px, transparent 1px);
  background-size: 64px 110px, 64px 110px, 64px 110px;
  mask-image: radial-gradient(60% 60% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 20%, transparent 78%);
  animation: hex-drift 26s linear infinite;
}
@keyframes hex-drift{
  from{ background-position: 0 0, 0 0, 0 0; }
  to{ background-position: 128px 220px, -128px 220px, 64px 0; }
}

.hero__core{
  position: absolute; z-index: 1; top: 50%; left: 50%;
  width: 640px; height: 640px;
  transform: translate(-50%,-52%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,22,54,.30) 0%, rgba(255,122,46,.12) 32%, transparent 68%);
  filter: blur(6px);
  animation: core-pulse 4.5s ease-in-out infinite;
}
@keyframes core-pulse{
  0%,100%{ transform: translate(-50%,-52%) scale(1); opacity: .75; }
  50%{ transform: translate(-50%,-52%) scale(1.08); opacity: 1; }
}

.hero__vignette{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 100%, var(--void) 0%, transparent 42%),
              linear-gradient(180deg, rgba(5,2,2,.2), transparent 20%, transparent 70%, var(--void) 100%);
}

.hero__content{
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: var(--space-6);
}
.hero__socials{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-top: var(--space-3);
  z-index: 4;
}
.social-link{
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-link svg,
.social-link img{
  width: 24px; height: 24px;
}
.social-link:hover{
  transform: translateY(-3px);
  color: var(--red);
}

.hero__content{
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: var(--space-4);
  margin-top: -2rem;
}

.hero__title{
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  margin-block: var(--space-2) var(--space-2);
}
.hero__badge{
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255,22,54,.55), 0 0 70px rgba(255,122,46,.25);
  animation: badge-float 5s ease-in-out infinite;
}
@keyframes badge-float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

.hero__title-text{
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: .95; letter-spacing: .01em;
  color: var(--white);
  text-shadow: 0 0 40px rgba(255,22,54,.45), 0 0 90px rgba(255,22,54,.2);
}
.hero__dot{ color: var(--red); }

.hero__subtitle{
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--ember-soft);
  margin-top: var(--space-2);
}

.hero__desc{
  max-width: 560px; color: var(--white-dim);
  margin-top: var(--space-3);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.hero__actions{
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-5);
}

.store-btn{
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .85rem 1.5rem;
  background: #0b0b0d;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  color: var(--white);
  position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease);
}
.store-btn__icon{ width: 26px; height: 26px; flex-shrink: 0; }
.store-btn__text{ display: flex; flex-direction: column; text-align: left; line-height: 1.15; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: none; }
.store-btn__text small{ font-family: var(--font-body); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white-faint); }

.store-btn:hover{
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--glow-red-md);
}
.store-btn:active{ transform: translateY(-1px) scale(.98); }

/* click ripple */
.store-btn .ripple, .btn .ripple, .social-btn .ripple, .gallery__btn .ripple{
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.35);
  transform: scale(0); animation: ripple-anim .6s var(--ease-in) forwards;
}
@keyframes ripple-anim{ to{ transform: scale(3.4); opacity: 0; } }

.hero__status{ display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.status-pill{
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--white-dim);
}
.status-dot{
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: dot-live 1.6s ease-in-out infinite;
}
@keyframes dot-live{ 0%,100%{ opacity: 1; } 50%{ opacity: .3; } }

.scroll-cue{
  position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--white-dim);
  display: grid; place-items: center;
  animation: cue-bounce 2.2s ease-in-out infinite;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.scroll-cue svg{ width: 16px; height: 16px; }
.scroll-cue:hover{ color: var(--white); border-color: var(--red); }
@keyframes cue-bounce{ 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* ==========================================================================
   CARDS — About
   ========================================================================== */
.card-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.about-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-4);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,22,54,.08));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px rgba(0,0,0,.25);
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.about-card::before{
  content:"";
  position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 30%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.about-card::after{
  content:"";
  position: absolute; left: -24px; bottom: -28px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,22,54,.22), transparent 70%);
  filter: blur(8px);
  opacity: .7;
  transition: opacity var(--dur-med) var(--ease);
}
.about-card:hover{
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255,60,80,.44);
  box-shadow: 0 24px 55px rgba(0,0,0,.35), var(--glow-red-sm);
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,22,54,.12));
}
.about-card:hover::before{ transform: translateX(120%); }
.about-card:hover::after{ opacity: 1; }
.about-card__icon{
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: rgba(255,22,54,.08); color: var(--red-bright);
  margin-bottom: var(--space-2);
}
.about-card__icon svg{ width: 22px; height: 22px; }
.about-card h3{
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.15rem; margin-bottom: .5rem;
}
.about-card p{ color: var(--white-dim); font-size: .93rem; }

/* ==========================================================================
   FEATURES — glass icon cards
   ========================================================================== */
.feature-grid{
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3);
}
.feature-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,22,54,.06));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.22);
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.feature-card::before{
  content:"";
  position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.14) 35%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  z-index: -1;
}
.feature-card:hover{
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255,60,80,.42);
  background: linear-gradient(160deg, rgba(255,22,54,.1), rgba(255,255,255,.05));
  box-shadow: 0 18px 40px rgba(0,0,0,.3), var(--glow-red-sm);
}
.feature-card:hover::before{ transform: translateX(120%); }
.feature-card__icon{
  display: grid; place-items: center; margin-inline: auto;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--red-bright);
  margin-bottom: var(--space-2);
  transition: box-shadow var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.feature-card:hover .feature-card__icon{ box-shadow: var(--glow-red-sm); transform: scale(1.05); }
.feature-card__icon svg{ width: 24px; height: 24px; }
.feature-card h3{
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; margin-bottom: .4rem;
}
.feature-card p{ color: var(--white-dim); font-size: .85rem; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery__head{
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.gallery__controls{ display: flex; gap: .6rem; }
.gallery__btn{
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--white);
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.gallery__btn:hover{ border-color: var(--red); background: rgba(255,22,54,.08); }
.gallery__btn svg{ width: 18px; height: 18px; }

.gallery__track-wrap{
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: var(--space-2);
  scrollbar-width: none;
}
.gallery__track-wrap::-webkit-scrollbar{ display: none; }

.gallery__track{
  display: flex; gap: var(--space-3);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.gallery__item{
  flex: 0 0 auto; width: 240px; scroll-snap-align: start;
  text-align: center;
}
.phone-frame{
  width: 240px; height: 440px; border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1a0a0c, #0a0405);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  overflow: hidden;
}
.gallery__item:hover .phone-frame{
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), var(--glow-red-md);
}
.phone-frame__art{
  position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #24080c 0%, #0a0304 70%);
  transition: transform 8s var(--ease);
}
.gallery__item:hover .phone-frame__art{ transform: scale(1.12); }

/* Abstract concept-art variations, built from CSS only */
.art--1{ background: radial-gradient(80% 60% at 50% 20%, rgba(255,22,54,.55), transparent 60%), radial-gradient(60% 50% at 70% 80%, rgba(255,122,46,.35), transparent 70%), #0a0304; }
.art--1 .art__ring{ position:absolute; inset: 30% 20%; border: 2px solid rgba(255,120,60,.5); border-radius: 50%; box-shadow: 0 0 40px rgba(255,60,40,.4) inset; }

.art--2{ background: conic-gradient(from 180deg at 50% 60%, rgba(255,22,54,.5), rgba(255,122,46,.2), transparent, rgba(255,22,54,.4)); }
.art--2 .art__core{ position:absolute; top:45%; left:50%; width:70px; height:70px; transform: translate(-50%,-50%); border-radius:50%; background: radial-gradient(circle, #ffd9b3, var(--red) 55%, transparent 75%); filter: blur(1px); }

.art--3{ background: linear-gradient(200deg, #150609, #0a0304 70%); }
.art--3 .art__grid{ position:absolute; inset:15%; background-image: linear-gradient(rgba(255,90,60,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,90,60,.35) 1px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(circle, #000 40%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 75%); }

.art--4{ background: radial-gradient(60% 60% at 30% 30%, rgba(255,178,60,.4), transparent 65%), radial-gradient(60% 60% at 75% 75%, rgba(255,22,54,.45), transparent 65%), #0a0304; }
.art--4 .art__shard{ position:absolute; inset:35% 30%; background: linear-gradient(135deg, #fff, var(--red-bright)); clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); opacity:.85; }

.art--5{ background: linear-gradient(180deg, #0a0304 0%, #170609 100%); }
.art--5 .art__ember{ position:absolute; inset:0; background: radial-gradient(4px 4px at 30% 70%, var(--ember), transparent), radial-gradient(3px 3px at 60% 40%, var(--red-bright), transparent), radial-gradient(3px 3px at 80% 80%, var(--ember-soft), transparent), radial-gradient(2px 2px at 45% 20%, #fff, transparent); }

.art--6{ background: radial-gradient(70% 50% at 50% 30%, rgba(255,200,80,.35), transparent 65%), #0a0304; }
.art--6 .art__crown{ position:absolute; bottom:22%; left:50%; width:80px; height:40px; transform: translateX(-50%); background: linear-gradient(180deg, #ffd98a, #ff7a2e); clip-path: polygon(0 100%, 0 40%, 20% 70%, 50% 10%, 80% 70%, 100% 40%, 100% 100%); filter: drop-shadow(0 0 14px rgba(255,180,60,.6)); }

.gallery__caption{
  margin-top: var(--space-2);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  font-size: .85rem; color: var(--white-dim);
}
.gallery__note{
  margin-top: var(--space-3);
  font-size: .78rem; color: var(--white-faint); font-style: italic;
}

/* ==========================================================================
   COMMUNITY
   ========================================================================== */
.social-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
}
.social-btn{
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: var(--space-4) var(--space-2);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-btn svg{ width: 26px; height: 26px; transition: transform var(--dur-med) var(--ease); }
.social-btn span{ font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.social-btn:hover{ transform: translateY(-6px); border-color: var(--red); box-shadow: var(--glow-red-sm); }
.social-btn:hover svg{ transform: scale(1.15) rotate(-4deg); color: var(--red-bright); }

/* ==========================================================================
   DOWNLOAD CTA
   ========================================================================== */
.download-cta{
  text-align: center;
  overflow: hidden;
}
.download-cta__glow{
  position: absolute; z-index: 0; top: 10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,22,54,.22), transparent 68%);
  filter: blur(10px);
  animation: core-pulse 5s ease-in-out infinite;
}
.download-cta__content{ position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.download-cta .section-lead{ margin-inline: auto; }
.download-cta .hero__actions{ margin-top: var(--space-4); }

/* ==========================================================================
   FLOATING SUPPORT BUTTON
   ========================================================================== */
.support-fab{
  position: fixed; z-index: 150; right: var(--space-3); bottom: var(--space-3);
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at top, rgba(255,22,54,.12), var(--ink));
  color: var(--white);
  border: 1px solid rgba(255,22,54,.7);
  display: grid; place-items: center;
  box-shadow: 0 0 50px rgba(255,22,54,.2), 0 10px 30px rgba(0,0,0,.35);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.support-fab svg{ width: 30px; height: 30px; }
.support-fab:hover{ transform: translateY(-5px) scale(1.05); box-shadow: 0 0 60px rgba(255,22,54,.3), 0 14px 35px rgba(0,0,0,.38); }
.support-fab__icon{
  display: grid; place-items: center;
}
.support-fab__label{
  position: absolute;
  bottom: -1.4rem;
  left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(5,2,2,.8);
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}
.support-fab__ring{
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--red);
  animation: fab-pulse 2.2s ease-out infinite;
}
@keyframes fab-pulse{
  0%{ transform: scale(.9); opacity: .8; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{
  border-top: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-4);
  background: var(--void);
}
.footer__grid{
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer__brand p{ margin-top: var(--space-2); color: var(--white-faint); font-size: .88rem; max-width: 260px; }
.footer__col h3{
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white-faint); margin-bottom: var(--space-2);
}
.footer__col{ display: flex; flex-direction: column; gap: .6rem; }
.footer__col a{ color: var(--white-dim); font-size: .92rem; transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover{ color: var(--red-bright); }

.footer__bottom{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  padding-top: var(--space-3); border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--white-faint);
}
.footer__legal{ max-width: 520px; text-align: right; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .feature-grid{ grid-template-columns: repeat(3, 1fr); }
  .social-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__grid{ grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
}

@media (max-width: 760px){
  .nav{
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 190;
    flex-direction: column; justify-content: center; align-items: center; gap: var(--space-4);
    background: rgba(5,2,2,.97); backdrop-filter: blur(16px);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link{ font-size: 1.4rem; }
  .nav-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .card-grid{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .social-grid{ grid-template-columns: 1fr 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .footer__legal{ text-align: left; }
  .footer__bottom{ flex-direction: column; }

  .hero__core{ width: 420px; height: 420px; }
}

@media (max-width: 480px){
  .hero__actions{ flex-direction: column; width: 100%; }
  .store-btn{ width: 100%; justify-content: center; }
  .feature-grid{ grid-template-columns: 1fr; }
}

/* ========================================================================== 
   CURRENT SINGLE-SCREEN LOBBY + SUPPORT
   ========================================================================== */
.login-preview{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  height: 42px;
  padding-inline: 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(9,10,16,.78);
  color: var(--white);
  cursor: not-allowed;
}
.login-preview span{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}
.login-preview small{
  padding: .15rem .42rem;
  border-radius: 4px;
  background: var(--red-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .58rem;
  text-transform: uppercase;
}

.hero{
  min-height: 100svh;
  align-items: center;
  padding-top: var(--header-h);
}
.hero__content{
  margin-top: 0;
  padding-block: .75rem 1.5rem;
}
.hero__actions{
  margin-top: 1.4rem;
}
.store-btn{
  min-width: 210px;
  min-height: 66px;
  padding: .72rem 1.35rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 12px 30px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.13);
}
.store-btn:hover{ border-color: #fff; background: #111; box-shadow: 0 15px 38px rgba(0,0,0,.56), 0 0 24px rgba(255,22,54,.18); }
.store-btn__icon{ width: 32px; height: 32px; }
.store-btn__icon--play{ width: 29px; height: 33px; }
.store-btn__text{ font-size: 1.12rem; }

.hero__socials{
  gap: .55rem;
  margin-top: 1rem;
}
.social-link{
  min-width: 42px;
  height: 42px;
  gap: .45rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(7,7,12,.72);
  color: rgba(255,255,255,.9);
}
.social-link svg,
.social-link img{ width: 28px; height: 28px; object-fit: contain; }
.social-link span{
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
}

.support-fab{
  width: 76px;
  height: 76px;
  right: 1.25rem;
  bottom: 2rem;
  border-radius: 50%;
  background: #0c1019;
  border: 2px solid var(--red);
  box-shadow: 0 0 0 8px rgba(255,22,54,.08), 0 16px 38px rgba(0,0,0,.48);
}
.support-fab svg{ width: 34px; height: 34px; }
.support-fab__label{
  bottom: -1.15rem;
  border-radius: 5px;
  background: #07070b;
  border-color: rgba(255,22,54,.45);
  color: #fff;
}

.support-modal{
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(1,3,10,.88);
  backdrop-filter: blur(10px);
}
.support-modal.is-open{ display: flex; }
.support-panel{
  width: min(980px, 96vw);
  height: min(680px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(55,190,255,.68);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(4,18,43,.98), rgba(7,3,29,.99));
  box-shadow: 0 26px 80px rgba(0,0,0,.62), 0 0 52px rgba(40,146,255,.13);
}
.support-panel__header{
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(55,190,255,.28);
  background: linear-gradient(90deg, rgba(13,50,91,.88), rgba(47,8,79,.7));
}
.support-panel__eyebrow{
  color: #55d9ff;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
}
.support-panel h2{
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0;
}
.support-panel h2 span,
.support-faq h3 span,
.support-form label span,
.support-send span{
  font-family: 'Barlow', sans-serif;
}
.support-close{
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: #a40b24;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.support-panel__body{
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.7fr);
  height: calc(100% - 86px);
}
.support-faq{
  overflow-y: auto;
  padding: 1.25rem;
  border-right: 1px solid rgba(55,190,255,.22);
  background: rgba(4,10,28,.72);
}
.support-faq h3{
  margin-bottom: 1rem;
  color: #ffd14d;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}
.support-faq button{
  width: 100%;
  min-height: 56px;
  margin-bottom: .65rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(117,85,255,.55);
  border-radius: 6px;
  background: rgba(58,20,117,.76);
  text-align: left;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease;
}
.support-faq button span{
  display: block;
  color: rgba(255,255,255,.7);
  direction: rtl;
  font-size: .78rem;
}
.support-faq button:hover,
.support-faq button.is-selected{
  border-color: #ff9d2e;
  background: rgba(156,52,15,.9);
}
.support-form{
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem;
}
.support-form__intro{
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 70px;
  margin-bottom: 1.2rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(55,190,255,.25);
  border-radius: 6px;
  background: rgba(5,24,52,.65);
  color: rgba(255,255,255,.74);
}
.support-form__intro span[lang="ar"]{ direction: rtl; }
.support-status-dot{
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22d66d;
  box-shadow: 0 0 14px rgba(34,214,109,.8);
}
.support-form label{
  margin: .4rem 0 .35rem;
  color: #d8eaff;
  font-family: var(--font-display);
  font-weight: 600;
}
.support-form input,
.support-form textarea{
  width: 100%;
  border: 1px solid rgba(65,178,255,.42);
  border-radius: 6px;
  outline: none;
  background: rgba(0,7,24,.84);
  color: #fff;
  font: 500 1rem var(--font-body);
}
.support-form input{ height: 50px; padding: 0 .9rem; }
.support-form textarea{
  min-height: 150px;
  flex: 1;
  resize: none;
  padding: .85rem .9rem;
}
.support-form input:focus,
.support-form textarea:focus{
  border-color: #5bd8ff;
  box-shadow: 0 0 0 3px rgba(54,181,255,.13);
}
.support-form__state{
  min-height: 25px;
  margin-top: .55rem;
  color: #ffbd55;
  font-size: .86rem;
}
.support-form__state.is-success{ color: #54e791; }
.support-form__state.is-error{ color: #ff6f79; }
.support-send{
  min-height: 50px;
  border: 1px solid rgba(123,255,167,.55);
  border-radius: 6px;
  background: linear-gradient(180deg, #21bd55, #0c852f);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.support-send:disabled{ cursor: wait; opacity: .62; }
.site-toast{
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 900;
  max-width: min(480px, 90vw);
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(4,9,20,.96);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

.site-footer{
  position:relative;
  z-index:3;
  border-top:1px solid rgba(255,255,255,.1);
  background:#030203;
}
.site-footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:62px;
  color:rgba(255,255,255,.58);
  font-size:.86rem;
}
.site-footer__inner p{margin:0}
.site-footer__inner nav{display:flex;gap:1rem;flex-wrap:wrap;justify-content:flex-end}
.site-footer__inner a{color:rgba(255,255,255,.72);text-decoration:none}
.site-footer__inner a:hover{color:#fff}

@media (max-height: 720px){
  .hero{ align-items: flex-start; padding-top: calc(var(--header-h) + .25rem); }
  .hero__content{ padding-bottom: .5rem; }
  .hero__title{ margin-block: .25rem; }
  .hero__badge{ width: 54px; height: 54px; }
  .hero__title-text{ font-size: clamp(2.7rem, 8vw, 5.2rem); }
  .hero__desc{ margin-top: .45rem; }
  .hero__actions{ margin-top: .8rem; }
  .hero__status{ margin-top: .65rem; }
  .hero__socials{ margin-top: .55rem; }
}

@media (max-width: 760px){
  .login-preview{ padding-inline: .65rem; }
  .login-preview small{ display: none; }
  .social-link span{ display: none; }
  .support-panel__body{ grid-template-columns: 1fr; overflow-y: auto; }
  .support-panel{ height: min(760px, 94vh); }
  .support-faq{
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(55,190,255,.22);
  }
  .support-faq h3{ display: none; }
  .support-faq button{ min-width: 180px; margin: 0; }
  .support-form{ min-height: 480px; }
  .site-footer__inner{align-items:flex-start;flex-direction:column;padding-block:1rem}
  .site-footer__inner nav{justify-content:flex-start}
}

@media (max-width: 480px){
  .site-header__inner{ padding-inline: 1rem; }
  .brand__word{ font-size: 1rem; }
  .login-preview{ height: 38px; }
  .hero__content{ padding-inline: 1rem; }
  .store-btn{ min-width: 0; }
  .support-modal{ padding: .4rem; }
  .support-panel__header{ height: 76px; padding-inline: .85rem; }
  .support-panel h2{ font-size: 1.3rem; }
  .support-panel__body{ height: calc(100% - 76px); }
  .support-form{ padding: 1rem; }
  .support-fab{ width: 64px; height: 64px; right: .8rem; bottom: 1.5rem; }
}
