:root{
  --text: rgba(245,247,250,.92);
  --muted: rgba(245,247,250,.70);
  --glass: rgba(12, 13, 18, .50);
  --glass-2: rgba(12, 13, 18, .68);
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 18px 60px rgba(0,0,0,.60);

  --accent: 245 199 107;  /* gold */
  --warm: 255 147 77;     /* amber */
  --cool: 139 108 255;    /* subtle violet */
  --discord: 88 101 242;  /* Discord blurple */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:#06070b;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:12px;
  top:-60px;
  z-index:100;
  padding:10px 16px;
  border-radius:10px;
  background:#0a0e16;
  color:#fff;
  border:1px solid rgba(255,255,255,.24);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  transition: top .18s ease;
}
.skip-link:focus{ top:12px; }

.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #05070b; /* fallback color */
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;           /* This is the most important part */
  z-index: 1;
}

/* Optional: Slight enhancement for premium feel */
.bg-video {
  filter: saturate(1.05) contrast(1.08);
}

/* Mobile performance improvement */
@media (max-width: 768px) {
  .bg-video {
    object-fit: cover;
    filter: saturate(1.02) contrast(1.05);
  }
}



.vignette{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 520px at 50% 40%, rgba(0,0,0,.18), rgba(0,0,0,.20)),
    radial-gradient(1200px 700px at 50% 70%, rgba(0,0,0,.46), rgba(0,0,0,.20)),
    linear-gradient(180deg, rgba(3,5,10,.15), rgba(3,5,10,.22));
}

.grain{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  opacity:.04;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
  animation:
    grainMove .55s steps(2,end) infinite,
    grainFlicker 1.6s steps(3,end) infinite;
}

@keyframes grainMove {
  0%   { transform: translate3d(0,0,0) scale(1.02); }
  25%  { transform: translate3d(-1.2%, 0.8%, 0) scale(1.02); }
  50%  { transform: translate3d(1.0%, -1.0%, 0) scale(1.02); }
  75%  { transform: translate3d(-0.8%, -1.2%, 0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1.02); }
}

@keyframes grainFlicker {
  0%   { opacity:.03; }
  20%  { opacity:.045; }
  40%  { opacity:.035; }
  60%  { opacity:.05; }
  80%  { opacity:.04; }
  100% { opacity:.03; }
}

@media (max-width:768px){
  .grain{ opacity:.02; animation: none; }
}

/* Animated glow + subtle grid overlay */
.fx{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

.fx-grid{
  position:absolute;
  inset:0;
  opacity:.10;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(55deg) translateY(-18%);
  transform-origin: 50% 0%;
  mask-image: radial-gradient(60% 40% at 50% 35%, rgba(0,0,0,1), transparent 70%);
}

.fx-glow{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(900px 500px at 20% 25%, rgba(var(--cool), .22), transparent 55%),
    radial-gradient(900px 520px at 80% 40%, rgba(var(--accent), .18), transparent 58%),
    radial-gradient(850px 520px at 50% 80%, rgba(var(--warm), .16), transparent 60%);
  filter: blur(10px);
  opacity: .95;
  animation: fxDrift 10s ease-in-out infinite;
}

@keyframes fxDrift{
  0%{ transform: translate3d(0,0,0) scale(1.02); }
  50%{ transform: translate3d(-1.5%, 1.2%, 0) scale(1.03); }
  100%{ transform: translate3d(0,0,0) scale(1.02); }
}

.center{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding: 64px 18px 44px;
  max-width: 1050px;
  margin: 0 auto;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent), .55);
  background: linear-gradient(180deg, rgba(10,12,16,.68), rgba(10,12,16,.42));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--accent), .12),
    0 0 34px rgba(var(--accent), .30);
  color: #ffe9b3;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: clamp(15px, 2vw, 19px);
  margin: 0 0 14px;
  text-shadow: 0 0 18px rgba(255,200,110,.45);
  animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both, badgePulse 2.6s ease-in-out .9s infinite;
}

.badge::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background: rgb(var(--accent));
  box-shadow: 0 0 10px 2px rgba(var(--accent), .8);
  flex: none;
}

@keyframes badgePulse{
  0%, 100%{
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(var(--accent), .12),
      0 0 34px rgba(var(--accent), .30);
  }
  50%{
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(var(--accent), .18),
      0 0 50px rgba(var(--accent), .48);
  }
}

.brand-mark{
  margin: 10px 0;
  display:flex;
  justify-content:center;
  align-items:center;
}

.brand-mark img{
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 20px rgba(255, 170, 0, 0.35))
    drop-shadow(0 0 45px rgba(255, 120, 0, 0.2));
  transform: translate3d(0,0,0);
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1), filter 0.8s ease;
  will-change: transform, filter;
  animation: logoFloat 4s ease-in-out infinite;
}

.brand-mark img:hover{
  transform: translateY(-4px) scale(1.045);
  filter:
    drop-shadow(0 12px 28px rgba(0,0,0,0.55))
    drop-shadow(0 0 22px rgba(240,190,90,0.28));
}

@keyframes logoFloat{
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-2px) scale(1.01); }
}

.subtitle{
  margin: 4px 0 22px;
  max-width: 720px;
  color: rgba(245,247,250,.78);
  font-size: clamp(16px, 2.0vw, 20px);
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.social{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }

.btn{
  --padY: 12px;
  --padX: 16px;
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: var(--padY) var(--padX);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
  text-decoration:none;
  background: rgba(10,12,16,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 45px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor:pointer;
  user-select:none;
}

.btn::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    radial-gradient(160px 80px at 20% 10%, rgba(var(--warm), .22), transparent 70%),
    radial-gradient(180px 90px at 80% 120%, rgba(var(--accent), .22), transparent 65%);
  opacity:.0;
  pointer-events:none;
  transition: opacity .18s ease;
}

.btn:hover::before{ opacity:.75; }

.btn:focus-visible{
  outline: 2px solid rgba(var(--accent), .85);
  outline-offset: 3px;
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(var(--accent), .45);
  box-shadow:
    0 18px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(var(--accent), .10),
    0 0 42px rgba(var(--accent), .22);
}
.btn:active{ transform: translateY(0px); }

.btn .icon{ width:25px; height:25px; display:inline-grid; place-items:center; }
.btn .icon svg{ width:25px; height:25px; }
.btn .btn-text{ font-weight:800; font-size:14px; letter-spacing:.10em; text-transform: uppercase; }

.btn > .icon, .btn > .btn-text, .btn > .btn-arrow{ position:relative; z-index:1; }

.btn.ghost{ background: linear-gradient(180deg, rgba(10,12,16,.55), rgba(10,12,16,.35)); }

/* Discord CTA: brand blurple so it reads instantly as "go to Discord" */
.btn.discord-cta{
  background: linear-gradient(135deg, rgba(114,125,247,.98), rgba(71,82,196,.96));
  border-color: rgba(150,160,255,.55);
  color: #fff;
  box-shadow:
    0 14px 45px rgba(30,25,90,.5),
    0 0 0 1px rgba(var(--discord), .30);
}

.btn.discord-cta:hover{
  border-color: rgba(190,197,255,.8);
  box-shadow:
    0 18px 70px rgba(20,15,70,.6),
    0 0 0 1px rgba(var(--discord), .4),
    0 0 46px rgba(var(--discord), .55);
}

/* Idle sheen sweep across the primary CTA */
.btn-sheen{
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
}

.btn-sheen::before{
  content:"";
  position:absolute;
  top:0;
  left:-40%;
  width:32%;
  height:100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.30), rgba(var(--accent),.45), transparent);
  transform: skewX(-18deg);
  animation: btnSheenSweep 3.4s ease-in-out infinite;
}

@keyframes btnSheenSweep{
  0%   { left:-40%; }
  45%  { left:130%; }
  100% { left:130%; }
}

/* CTA attention cue: soft radiating ring + nudging pointer to lift click-through */
.cta-highlight{ position: relative; }

.cta-highlight::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: inherit;
  border: 2px solid rgba(var(--accent), .55);
  opacity: 0;
  pointer-events:none;
  animation: ctaPulse 2.2s ease-out infinite;
}

@keyframes ctaPulse{
  0%{ transform: scale(1); opacity:.6; }
  70%{ transform: scale(1.14); opacity:0; }
  100%{ opacity:0; }
}

.btn-arrow{
  display:inline-flex;
  width:16px;
  height:16px;
  color: rgb(var(--accent));
  animation: arrowNudge 1.6s ease-in-out infinite;
}
.btn-arrow svg{ width:100%; height:100%; }

@keyframes arrowNudge{
  0%, 100%{ transform: translateX(0); opacity:.75; }
  50%{ transform: translateX(4px); opacity:1; }
}

/* Feature cards */
.meta-images{
  list-style:none;
  margin: 30px 0 0;
  padding: 0;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width:min(980px, 100%);
  perspective: 900px;
}

.image-card{
  position:relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease;
}

.image-card figure{
  margin:0;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,22,.35);
  box-shadow: 0 15px 30px rgba(0,0,0,.35);
}

.image-card picture{ display:block; line-height:0; }

.image-card img{
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 5px 5px rgba(0,0,0,0.2))
    drop-shadow(0 0 5px rgba(244,194,51,0.15));
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1), filter 0.5s ease;
}

.image-card:hover img{
  transform: scale(1.04);
  filter:
    drop-shadow(0 18px 34px rgba(0,0,0,0.6));
}

.image-card figcaption{
  text-align:left;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.image-card figcaption strong{
  display:block;
  font-size:14px;
  color: #f5e6b3;
  letter-spacing:.02em;
}

@media (max-width: 860px){
  .meta-images{ grid-template-columns: 1fr; max-width: 420px; }
}

.footer{
  position:relative;
  z-index:2;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  padding: 18px 18px 26px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

/* Entry reveals */
.brand-mark, .subtitle, .actions, .meta-images{
  animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both;
}
.brand-mark{ animation-delay: .12s; }
.subtitle{ animation-delay: .18s; }
.actions{ animation-delay: .24s; }
.meta-images{ animation-delay: .30s; }

@keyframes riseIn{
  0%{ opacity:0; transform: translate3d(0,18px,0); }
  100%{ opacity:1; transform: translate3d(0,0,0); }
}

/* Cursor-follow glow (JS moves it on desktop) */
.cursor-glow{
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(var(--accent), .18) 0%, rgba(var(--accent), .06) 35%, transparent 68%),
    radial-gradient(circle at center, rgba(var(--cool), .14) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .25s ease;
}

@media (max-width: 860px){
  .actions{ justify-content:space-between; flex-wrap:wrap; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
  .bg{ transform:none; }
  .fx-glow, .badge, .brand-mark, .subtitle, .actions, .meta-images, .brand-mark img{ animation: none !important; }
  .cursor-glow{ display:none; }
  .cta-highlight::after{ display:none; }
  .btn-arrow{ animation:none !important; opacity:.9; }
  .btn-sheen::before{ animation:none !important; display:none; }
}
