:root{
  --bg-1: #0b0f1a;
  --bg-2: #0a0714;
  --bg-3: #111a2b;
  --text: #e6f1ff;
  --muted: #9fb3c8;
  --accent-1: #7c4dff;
  --accent-2: #00e5ff;
  --accent-3: #ff3d7f;
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 12px 36px rgba(0,0,0,0.30); /* reduced shadow */
}

a, a:link, a:visited{
  text-decoration: none;
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #121a2f 0%, transparent 60%),
              radial-gradient(1100px 700px at 120% 20%, #1b1030 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  overflow-x:hidden;
}

/* Animated background gradients */
.animated-bg::before,
.animated-bg::after{
  content:"";
  position:fixed;
  inset:-10%;
  pointer-events:none;
  background:
    radial-gradient(600px 360px at 20% 10%, rgba(124,77,255,0.14), transparent 60%),
    radial-gradient(520px 330px at 80% 20%, rgba(0,229,255,0.12), transparent 60%),
    radial-gradient(660px 420px at 50% 100%, rgba(255,61,127,0.10), transparent 60%);
  filter: blur(14px); /* reduced blur */
  mix-blend-mode: screen;
  /* Removed continuous hueShift animation to save CPU */
  z-index: -2;
}
.animated-bg::after{
  opacity: 0.55; /* static, no animation */
}
/* Removed @keyframes hueShift */

header{
  position:fixed;
  top:0;left:0;right:0;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  background: linear-gradient(to bottom, rgba(10, 10, 18, 0.65), rgba(10, 10, 18, 0));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 50;
}
.brand{
  display:flex; align-items:center; gap:12px; letter-spacing:0.4px;
}
.logo{
  width:38px;
}
/* removed @keyframes slowSpin */
.brand h1{
  margin:0; font-size:16px; font-weight:700; color:var(--text);
}
.nav{
  display:flex; gap:10px;
}
.btn{
  appearance:none; border:1px solid var(--border);
  color:var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding:10px 14px; border-radius:10px;
  font-weight:600; letter-spacing:0.25px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.btn.primary{
  border-color: rgba(124,77,255,0.55);
  background:
    radial-gradient(120% 180% at 50% 0%, rgba(124,77,255,0.35), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow: 0 6px 26px rgba(124,77,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.btn.primary:hover{
  box-shadow: 0 10px 30px rgba(124,77,255,0.45);
}

main{
  position:relative;
  padding-top: 120px; /* more space below fixed header */
}

.hero{
  min-height: calc(100vh - 120px);
  display:grid;
  align-items:center;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1.2fr);
  gap:42px;
  padding: 54px 24px 96px; /* push content down and add bottom air */
  max-width: 1200px;
  margin: 0 auto;
}

/* Additional vertical rhythm between hero sections */
.hero + .hero{
  margin-top: clamp(20px, 6vw, 100px);
}

/* Slightly reduce spacing before the Items tools hero */
.hero + .hero[aria-label="Items tools preview"]{
  margin-top: clamp(12px, 4vw, 64px);
}

/* Keep generous spacing before the permissions hero */
.hero + .hero[aria-label="Permissions preview"]{
  margin-top: clamp(32px, 10vw, 160px);
}

.title{
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 10px 50px rgba(124,77,255,0.28);
}

.gradient-text{
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1), var(--accent-3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* remove continuous text animation to reduce CPU */
}

.fivem-text{
  color: var(--accent-2);
  font-weight: 700;
  background: linear-gradient(90deg, #ffdd00, #ff4400);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* removed @keyframes textFlow */

.subtitle{
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  margin: 0 0 22px;
}

/* Coming soon pill */
.coming-soon{
  margin: 0 0 10px;
  display: flex;
  align-items: center;
}
.coming-soon .pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(124,77,255,0.35), transparent 38%),
    radial-gradient(120% 200% at 100% 100%, rgba(0,229,255,0.28), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 6px 22px rgba(124,77,255,0.28), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.coming-soon .pill::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #a5eaff 30%, #07d5ff 70%);
  box-shadow: 0 0 12px rgba(7,213,255,0.6);
}
/* subtle pulse for attention, disabled with prefers-reduced-motion */
@keyframes csPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 6px 22px rgba(124,77,255,0.28), inset 0 0 0 1px rgba(255,255,255,0.06); }
  50% { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124,77,255,0.36), inset 0 0 0 1px rgba(255,255,255,0.08); }
}
.coming-soon .pill{
  animation: csPulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .coming-soon .pill{ animation: none !important; }
}

/* Features carousel (3 pages, 4 bullets each) */
.feature-bullets.carousel{
  position: relative;
  overflow: hidden;                 /* allow slide without adding any box visuals */
}
.feature-bullets .carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.feature-bullets .carousel-page{
  display: grid;
  gap: 12px;
}
.carousel-dots{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.carousel-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  opacity: 0.9;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease, width .2s ease;
}
.carousel-dot.is-active{
  background: #fff;
  width: 18px;                      /* minimal pill for active state */
  opacity: 1;
}
.carousel-dot:focus-visible{
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,1px,1px);
  white-space: nowrap;
  border: 0;
}

.feature-bullets{
  display:grid;
  gap:12px;
  margin: 22px 0 28px;
}
.feature{
  display:flex; align-items:center; gap:12px; color:#cfe0ff;
  font-weight:600;
  letter-spacing:0.2px;
}
.feature .dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #9bd4ff 30%, #0066ff 70%);
  /* Remove glow so it doesn't leak from adjacent carousel pages */
  box-shadow: none;
}
/* removed pulse animation */

/* Hero CTA row */
.cta-row{
  display:flex; flex-wrap:wrap; gap:12px;
}

/* Discord hero CTA (scoped so header .btn.primary remains unchanged) */
a.discord-cta{
  --disc-border: #08c9ff;
  --disc-fill-1: rgba(8,201,255,0.12);
  --disc-fill-2: rgba(8,201,255,0.06);
  --disc-panel: rgba(9,20,34,0.85);
  position: relative;
  display: inline-block;
  border-radius: 18px;
  padding: 2px;                           /* outer trim thickness */
  background:
    linear-gradient(180deg, rgba(8,201,255,0.55), rgba(8,201,255,0.35));
  box-shadow:
    0 0 0 1px rgba(8,201,255,0.35) inset,
    0 8px 26px rgba(8,201,255,0.20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  color: var(--text);
}
a.discord-cta .discord-cta__glow{
  position:absolute; inset:-8px;
  border-radius: 22px;
  background:
    radial-gradient(50% 70% at 50% 0%, var(--disc-fill-1), transparent 60%),
    radial-gradient(60% 90% at 50% 100%, var(--disc-fill-2), transparent 60%);
  filter: blur(8px);
  pointer-events:none;
  opacity: .9;
}
a.discord-cta .discord-cta__inner{
  display:flex; align-items:center; gap:12px;
  padding: 14px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(7,16,28,0.9), rgba(6,12,22,0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -6px 18px rgba(0,0,0,0.35);
  position: relative;
}
a.discord-cta .discord-cta__icon{
  display:grid; place-items:center;
  color: #19c3ff;
  text-shadow: 0 0 22px rgba(25,195,255,0.55);
}
a.discord-cta .discord-cta__label{
  font-weight: 800;
  letter-spacing: 0.2px;
}
a.discord-cta .discord-cta__online{
  margin-left: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #bfeaff;
  background: rgba(25,195,255,0.16);
  border: 1px solid rgba(25,195,255,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Hover/active states */
a.discord-cta:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(8,201,255,0.45) inset,
    0 14px 34px rgba(8,201,255,0.28);
}
a.discord-cta:active{ transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  a.discord-cta, a.discord-cta *{ transition: none !important; }
}

/* Showcase / Placeholder "Screenshots" */
.showcase{
  position:relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  min-height: 340px;
}

/* Video frame styling to match visual language */
.video-frame{
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  overflow: hidden;
}
.video-frame::before{
  content: "";
  position: absolute; inset: -10px;
  border-radius: 18px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(124,77,255,0.12), transparent 60%),
    radial-gradient(60% 40% at 50% 100%, rgba(0,229,255,0.08), transparent 60%);
  filter: blur(14px);
  pointer-events: none;
}
.video-frame video{
  display: block;
  width: 100%;
  height: auto;
}

.glow-ring{
  position:absolute; inset: -20px -20px -40px -20px;
  background:
    radial-gradient(520px 200px at 50% 35%, rgba(0,229,255,0.14), transparent 55%),
    radial-gradient(500px 200px at 50% 70%, rgba(124,77,255,0.14), transparent 52%);
  filter: blur(16px); /* reduced blur */
  z-index:0;
  pointer-events:none;
  mix-blend-mode: screen;
  /* static, no animation */
}
/* removed @keyframes ringFlow */

.cards{
  position:relative; z-index:1;
  width:100%; height:100%;
  transform-style: preserve-3d;
  will-change: transform;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0;                      /* overlap fully; spacing controlled by negative margin */
}

.card{
  --c1: 27, 141, 255;
  --c2: 185, 92, 255;
  position:relative;           /* relative for flex layout */
  width: auto;                 /* size from image intrinsic dimensions */
  height: auto;
  aspect-ratio: auto;          /* let images define ratio */
  border-radius:0;             /* no rounded corners */
  border: 0;                   /* remove border */
  background: none;            /* no background layers */
  box-shadow: none;
  overflow:hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 200ms ease, opacity 160ms ease;
  cursor: pointer;
  opacity: 0.5;                /* more overlap feel */
}
.card:hover{
  opacity: 1;                  /* reveal hovered card */
}
.card:hover{
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 40px rgba(124,77,255,0.25);
  filter: saturate(110%);
}

.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: linear-gradient(180deg, rgba(124,77,255,0.10), rgba(0,0,0,0)); /* static accent */
  filter: blur(10px);
  opacity: .35;
  transform: translateZ(-1px);
  pointer-events:none;
}
/* removed sweep animation */

/* Remove absolute positions; offset slightly like a deck */
.card.card-a{ transform: translateZ(60px); }
.card.card-b{ transform: translateZ(40px); }
.card.card-c{ transform: translateZ(20px); }

/* tighter overlap on small screens */
@media (max-width: 980px){
  .cards{ gap:0; }
  .card{ width: clamp(240px, 70vw, 360px); }
}

/* Title bars to mimic UI screenshots */
/* remove old UI chrome styling since images fill the cards */
.card .chrome{ display:none; }
.chrome .dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffdede 30%, #ff6b6b 70%);
  opacity:.9;
}
.chrome .dot:nth-child(2){ background: radial-gradient(circle at 30% 30%, #fff, #fff3d6 30%, #ffc947 70%); }
.chrome .dot:nth-child(3){ background: radial-gradient(circle at 30% 30%, #fff, #e0ffd8 30%, #6bff95 70%); }
.card .title{
  font-size: 12px; margin-left: 6px; color:#d9e5ff; font-weight:600; text-shadow:none;
}

/* remove old placeholder content styles */
.card .content, .block, .block.accent{ display:none; }

/* Gradient cycle overlay to give color-morphing feel */
.color-cycle{
  position:absolute; inset: -4%; pointer-events:none;
  background: radial-gradient(40% 60% at 40% 40%, rgba(124,77,255,0.08), transparent 60%),
              radial-gradient(40% 60% at 60% 60%, rgba(0,229,255,0.08), transparent 60%);
  mix-blend-mode: color-dodge;
  filter: blur(16px);
  opacity: .28;
  z-index: -1;
}
/* removed colorCycle animation */

/* Footer/secondary section */
.info{
  max-width: 1100px; margin: 64px auto 30px; padding: 0 24px;
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.info .tile{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.tile h3{ margin: 0 0 8px; font-size: 18px; }
.tile p{ margin: 0; color: var(--muted); line-height: 1.55; }

footer{
  color: #98a8bf;
  text-align:center;
  padding: 32px 16px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to top, rgba(10,10,18,0.6), rgba(10,10,18,0.0));
}

/* Framework logos band – visually harmonized with .info tiles */
.frameworks{
  position: relative;
  margin: 120px auto 0;
  padding: 0 24px;                    /* match .info side padding */
  max-width: 1100px;                  /* align with .info width */
}
.frameworks__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 6vw, 42px);
  padding: 16px;                      /* match .info tile padding scale */
  border: 1px solid var(--border);    /* same border color as .info tiles */
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); /* match .info tile bg */
  border-radius: 14px;                /* match .info tile radius */
  box-shadow: none;                   /* remove extra shadow to blend with tiles */
}

.frameworks__logo{
  height: clamp(22px, 3.2vw, 32px);   /* slightly smaller to feel subtle above tiles */
  width: auto;
  display: block;
  opacity: 0.5;                       /* requested 50% opacity */
  filter: grayscale(1);               /* requested grayscale */
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
  object-fit: contain;
}
.frameworks__logo:hover{
  opacity: 0.7;
  filter: grayscale(0.2);
  transform: translateY(-1px);
}

/* tighten spacing above .info when frameworks present */
.frameworks + .info{
  margin-top: 28px;
}

/* Modal styles */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,18,0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
}
.modal.is-open{ display: flex; }

.modal__backdrop{
  position: absolute;
  inset: 0;
}

.modal__content{
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(20,24,35,0.9), rgba(14,16,24,0.9));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.modal__image{
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0a0f1a;
}

.modal__close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.modal__close:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Responsive */
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase{ min-height: 340px; }
  .card{ width: auto; height: auto; }
  .info{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
  .animated-bg::before,
  .animated-bg::after,
  .color-cycle,
  .glow-ring,
  .logo,
  .card::before{ animation: none !important; }
  .cards, .card{ transition: none !important; }
}