:root{
  --bg: #0F0B1E;
  --surface: #1A1330;
  --surface-2: #241B42;
  --line: rgba(245,243,255,0.10);
  --text: #F5F3FF;
  --muted: #A79FC7;
  --orange: #FF6B35;
  --orange-dim: #7a3a20;
  --violet: #7B61FF;
  --violet-soft: rgba(123,97,255,0.16);

  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-0.01em;
}

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

/* subtle grain texture for depth */
.noise{
  position:fixed; inset:0; pointer-events:none; z-index:2;
  opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 24px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  border-radius:6px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{
  background:var(--orange);
  color:#1a0e05;
}
.btn-primary:hover{background:#ff7f52;}
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{border-color:var(--violet);}
.btn-outline{
  width:100%;
  background:transparent;
  border-color:var(--line);
  color:var(--text);
  font-size:14px;
  padding:11px 18px;
}
.btn-outline:hover{border-color:var(--orange); color:var(--orange);}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(15,11,30,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  letter-spacing:0.02em;
}
.logo span{color:var(--orange);}
.main-nav{display:flex; gap:32px;}
.main-nav a{
  font-size:14.5px; color:var(--muted); font-weight:500;
  transition:color .15s ease;
}
.main-nav a:hover{color:var(--text);}
.nav-toggle{display:none; background:none; border:none; cursor:pointer; flex-direction:column; gap:5px;}
.nav-toggle span{width:22px; height:2px; background:var(--text);}

/* ---------- HERO ---------- */
.hero{
  padding:96px 0 80px;
  position:relative;
}
.hero::before{
  content:"";
  position:absolute; top:-120px; right:-160px;
  width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, var(--violet-soft), transparent 70%);
  z-index:0;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:start;
  position:relative; z-index:1;
}
.hero-kicker{
  color:var(--orange);
  font-weight:600;
  font-size:14px;
  text-transform:none;
  margin-bottom:18px;
}
.hero h1{
  font-size:clamp(42px, 6vw, 68px);
  margin-bottom:22px;
}
.hero-sub{
  color:var(--muted);
  font-size:17px;
  max-width:520px;
  margin-bottom:32px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.hero-trust{
  margin-top:28px;
  display:flex; gap:10px; flex-wrap:wrap;
  font-size:13px; color:var(--muted);
}

/* ticker card */
.ticker-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:26px;
  position:relative;
}
.ticker-head{
  display:flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:0.04em;
  color:var(--orange); margin-bottom:14px;
}
.live-dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 0 rgba(255,107,53,.6);
  animation:pulse 1.6s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(255,107,53,.5);}
  70%{box-shadow:0 0 0 8px rgba(255,107,53,0);}
  100%{box-shadow:0 0 0 0 rgba(255,107,53,0);}
}
.ticker-game{
  font-family:var(--font-display);
  font-size:19px; font-weight:600;
  margin-bottom:16px;
}
.ticker-row{
  display:flex; justify-content:space-between;
  font-size:14px; color:var(--muted);
  padding:9px 0;
  border-top:1px solid var(--line);
}
.ticker-row strong{color:var(--text); font-weight:600;}
.ticker-bar{
  height:5px; border-radius:3px; background:var(--surface-2);
  margin:18px 0 14px; overflow:hidden;
}
.ticker-bar-fill{
  height:100%; width:71%;
  background:linear-gradient(90deg, var(--violet), var(--orange));
}
.ticker-link{
  font-size:14px; font-weight:600; color:var(--violet);
}

/* ---------- SECTION HEAD ---------- */
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom:30px;
}
.section-head h2{font-size:clamp(26px,3.4vw,34px);}
.see-all{font-size:14px; color:var(--muted); font-weight:600;}
.see-all:hover{color:var(--orange);}

/* ---------- TOURNAMENTS ---------- */
.tournaments{padding:70px 0 40px;}
.tourney-scroll{
  display:flex; gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
  scrollbar-width:thin;
}
.tourney-card{
  flex:0 0 260px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:22px;
}
.tourney-top{
  display:inline-block;
  font-size:11.5px; font-weight:700; letter-spacing:0.03em;
  padding:5px 10px; border-radius:4px;
  margin-bottom:14px;
}
.valorant{background:rgba(255,70,85,0.16); color:#ff6b78;}
.bgmi{background:rgba(255,193,7,0.16); color:#ffcf4d;}
.freefire{background:rgba(255,107,53,0.16); color:var(--orange);}
.codm{background:rgba(123,97,255,0.16); color:#9c88ff;}

.tourney-card h3{font-size:19px; margin-bottom:6px;}
.tourney-meta{font-size:13px; color:var(--muted); margin-bottom:18px;}
.tourney-stats{
  display:flex; gap:22px;
  margin-bottom:20px;
}
.tourney-stats strong{display:block; font-size:17px; font-family:var(--font-display);}
.tourney-stats span{font-size:12px; color:var(--muted);}

/* ---------- FEATURES ---------- */
.features{padding:90px 0;}
.features-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:60px;
}
.feature-lead h2{font-size:clamp(28px,3.6vw,38px); margin-bottom:20px;}
.feature-lead p{color:var(--muted); max-width:420px; font-size:16px;}

.feature-row{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:20px;
  padding:26px 0;
  border-top:1px solid var(--line);
}
.feature-row:last-child{border-bottom:1px solid var(--line);}
.feature-num{
  font-family:var(--font-display);
  color:var(--violet);
  font-size:15px;
  font-weight:600;
  padding-top:2px;
}
.feature-row h3{font-size:19px; margin-bottom:8px;}
.feature-row p{color:var(--muted); font-size:15px; max-width:480px;}

/* ---------- COMMUNITIES ---------- */
.communities{padding:40px 0 90px;}
.community-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.community-tile{
  position:relative;
  height:150px;
  border-radius:10px;
  padding:18px;
  display:flex; flex-direction:column; justify-content:flex-end;
  border:1px solid var(--line);
  overflow:hidden;
  transition:transform .18s ease, border-color .18s ease;
}
.community-tile:hover{transform:translateY(-3px); border-color:var(--orange);}
.community-tile span{font-family:var(--font-display); font-size:18px; font-weight:600;}
.community-tile small{color:var(--muted); font-size:12.5px; margin-top:2px;}
.bgmi-bg{background:linear-gradient(135deg, rgba(255,193,7,0.14), var(--surface));}
.valorant-bg{background:linear-gradient(135deg, rgba(255,70,85,0.14), var(--surface));}
.freefire-bg{background:linear-gradient(135deg, rgba(255,107,53,0.14), var(--surface));}
.codm-bg{background:linear-gradient(135deg, rgba(123,97,255,0.14), var(--surface));}
.chess-bg{background:linear-gradient(135deg, rgba(80,200,150,0.12), var(--surface));}
.efootball-bg{background:linear-gradient(135deg, rgba(100,180,255,0.12), var(--surface));}

/* ---------- SPONSORS ---------- */
.sponsors{padding:40px 0 90px;}
.sponsors-note{color:var(--muted); font-size:15px; max-width:640px; margin-bottom:26px;}
.sponsor-slots{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
.sponsor-slot{
  height:100px;
  border:1px dashed var(--line);
  border-radius:10px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}
.sponsor-slot span{
  font-size:11.5px; font-weight:700;
  color:var(--violet);
  background:var(--violet-soft);
  padding:3px 10px; border-radius:20px;
}

/* ---------- CONTACT ---------- */
.contact{
  padding:80px 0;
  border-top:1px solid var(--line);
}
.contact-inner{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:40px;
  align-items:center;
}
.contact-inner h2{font-size:clamp(26px,3.4vw,32px); margin-bottom:12px;}
.contact-inner p{color:var(--muted); font-size:15px; max-width:420px;}
.contact-details{display:flex; flex-direction:column; gap:14px;}
.contact-line{
  font-size:15px; font-weight:600;
  padding:14px 18px;
  border:1px solid var(--line);
  border-radius:8px;
  transition:border-color .15s ease;
}
.contact-line:hover{border-color:var(--orange); color:var(--orange);}

/* ---------- STATS ---------- */
.stats{
  padding:70px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  text-align:left;
}
.stats-grid strong{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(28px,3.4vw,38px);
  color:var(--orange);
}
.stats-grid span{color:var(--muted); font-size:14px;}

/* ---------- TRUST ---------- */
.trust{padding:90px 0;}
.trust-copy h2{font-size:clamp(28px,3.6vw,38px); margin-bottom:18px;}
.trust-copy p{color:var(--muted); font-size:16px; max-width:640px; margin-bottom:26px;}
.trust-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 30px;
  max-width:640px;
}
.trust-list li{
  list-style:none;
  font-size:14.5px;
  padding-left:20px;
  position:relative;
  color:var(--text);
}
.trust-list li::before{
  content:"";
  position:absolute; left:0; top:7px;
  width:8px; height:8px;
  background:var(--violet);
  border-radius:2px;
}

/* ---------- CTA ---------- */
.cta{padding:100px 0 110px;}
.cta-inner{text-align:center;}
.cta h2{font-size:clamp(30px,4.4vw,46px); margin-bottom:30px;}
.cta .hero-actions{justify-content:center;}

/* ---------- FOOTER ---------- */
.site-footer{border-top:1px solid var(--line); padding:60px 0 0;}
.footer-inner{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:40px;
  padding-bottom:50px;
}
.footer-brand p{color:var(--muted); font-size:14px; margin-top:10px; max-width:220px;}
.footer-links{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.footer-links h4{font-size:13px; color:var(--muted); margin-bottom:14px; font-weight:600;}
.footer-links a{display:block; font-size:14.5px; padding:6px 0; color:var(--text);}
.footer-links a:hover{color:var(--orange);}
.footer-bottom{
  border-top:1px solid var(--line);
  padding:22px 0;
  font-size:13px;
  color:var(--muted);
}

/* ---------- FORM PAGES (register / login) ---------- */
.form-page{padding:80px 0 100px;}
.form-wrap{max-width:640px;}
.form-title{font-size:clamp(32px,5vw,46px); margin:16px 0 14px;}
.form-sub{color:var(--muted); font-size:16px; margin-bottom:36px; max-width:520px;}

.reg-form{display:flex; flex-direction:column; gap:22px;}
.field{display:flex; flex-direction:column; gap:8px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.field label{font-size:14px; font-weight:600; color:var(--text);}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  padding:13px 14px;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--violet);
}
.field textarea{resize:vertical;}
.hidden-field{position:absolute; left:-9999px; opacity:0;}
.checkbox-label{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14px; font-weight:400; color:var(--muted);
  cursor:pointer;
}
.checkbox-label input{margin-top:3px;}
.checkbox-label a{color:var(--violet); font-weight:600;}
.form-submit{margin-top:8px; align-self:flex-start; padding:14px 34px;}

/* login page */
.login-wrap{max-width:480px;}
.login-box{display:flex; flex-direction:column; gap:14px; margin-top:10px;}
.btn-oauth{
  display:flex; align-items:center; justify-content:center; gap:12px;
  width:100%; padding:14px 20px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  font-size:15px;
}
.btn-oauth:hover{border-color:var(--violet);}
.discord-btn svg{color:#8c9eff;}
.login-note{margin-top:26px; font-size:13px; color:var(--muted);}
.login-note a{color:var(--violet); font-weight:600;}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float{
  position:fixed;
  bottom:24px; right:24px;
  width:58px; height:58px;
  background:#25D366;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#0b3d1f;
  box-shadow:0 6px 20px rgba(0,0,0,0.35);
  z-index:50;
  transition:transform .15s ease;
}
.whatsapp-float:hover{transform:scale(1.08);}

/* ---------- SOCIAL PROOF / PRIZE INDICATOR ---------- */
.social-proof{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600;
  color:#FFCF4D;
  background:rgba(255,207,77,0.1);
  border:1px solid rgba(255,207,77,0.25);
  padding:9px 16px;
  border-radius:20px;
  margin-bottom:30px;
}
.prize-indicator{
  font-size:13.5px; color:var(--muted); margin-top:4px;
}
.prize-indicator strong{color:var(--orange); font-weight:700;}

/* ---------- ENTRY CODE BOX ---------- */
.entry-code-box{
  display:inline-flex; flex-direction:column; align-items:flex-start;
  gap:4px;
  background:var(--surface);
  border:1px dashed var(--orange);
  border-radius:10px;
  padding:16px 26px;
  margin:22px 0;
}
.entry-code-box span{font-size:12.5px; color:var(--muted); font-weight:600; letter-spacing:0.04em;}
.entry-code-box strong{font-family:var(--font-display); font-size:30px; color:var(--orange); letter-spacing:0.08em;}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .main-nav{
    display:none;
    position:absolute; top:74px; left:0; right:0;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    flex-direction:column;
    padding:10px 28px 20px;
    gap:0;
  }
  .main-nav.nav-open{display:flex;}
  .main-nav a{padding:12px 0; border-bottom:1px solid var(--line);}
  .nav-cta{display:none;}
  .nav-toggle{display:flex;}
  .hero-inner{grid-template-columns:1fr;}
  .features-grid{grid-template-columns:1fr;}
  .community-grid{grid-template-columns:repeat(2,1fr);}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .trust-list{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;}
  .footer-links{grid-template-columns:repeat(3,1fr);}
  .sponsor-slots{grid-template-columns:repeat(2,1fr);}
  .contact-inner{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .whatsapp-float{width:50px; height:50px; bottom:18px; right:18px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .live-dot{animation:none;}
  .btn:hover{transform:none;}
}

/* keyboard focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--orange);
  outline-offset:2px;
}
