/* ==========================================================================
   SN1KYZZZ — style.css
   ========================================================================== */

:root{
  --bg:            #08080c;
  --bg-soft:       #0d0d13;
  --surface:       rgba(255,255,255,0.045);
  --surface-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);

  --text:          #f4f4f7;
  --text-muted:    #9a9aa7;
  --text-faint:    #5f5f6b;

  --violet:        #7c3aed;
  --pink:          #ec4899;
  --cyan:          #22d3ee;
  --gold:          #d4af37;

  --gradient-main: linear-gradient(135deg, var(--violet), var(--pink));
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,.35), rgba(236,72,153,.35));

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-glow: 0 8px 40px rgba(124,58,237,0.25);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }
h1,h2,h3{ font-family: var(--font-display); margin: 0; }
p{ margin: 0; }

::selection{ background: var(--pink); color: #fff; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Loading screen
   ========================================================================== */

.loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.04em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-bar{
  width: 160px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.loader-bar span{
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: var(--gradient-main);
  animation: loaderMove 1.1s ease-in-out infinite;
}
@keyframes loaderMove{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   Animated background
   ========================================================================== */

.bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
#bg-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.bg-blob{
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  will-change: transform;
}
.bg-blob--a{
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: floatA 22s ease-in-out infinite;
}
.bg-blob--b{
  bottom: -25vmax;
  right: -18vmax;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  animation: floatB 26s ease-in-out infinite;
}
@keyframes floatA{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6vmax, 8vmax) scale(1.12); }
}
@keyframes floatB{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-5vmax, -7vmax) scale(1.15); }
}
.bg-grain{
  position: absolute;
  inset: 0;
  opacity: 0.035;
  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");
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Topbar / navigation
   ========================================================================== */

.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8,8,12,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.is-scrolled{
  border-bottom-color: var(--border);
  background: rgba(8,8,12,0.78);
}
.topbar__logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.topbar__logo .dot{ color: var(--text-faint); }

.topbar__nav{
  display: flex;
  gap: 34px;
}
.topbar__nav a{
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.topbar__nav a::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gradient-main);
  transition: width .3s var(--ease);
}
.topbar__nav a:hover{ color: var(--text); }
.topbar__nav a:hover::after{ width: 100%; }

.menu-toggle{
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span{
  width: 16px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  z-index: 99;
  background: rgba(12,12,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-menu.is-open{ transform: translateX(0); }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
}
.hero__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 640px;
}

.avatar{
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}
.avatar__ring{
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--pink), var(--cyan), var(--violet));
  animation: spin 6s linear infinite;
  filter: blur(0.4px);
}
.avatar__img{
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 3px solid var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--text-muted);
  z-index: 1;
  overflow: hidden;
}
.avatar__img img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar__status{
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg);
  z-index: 2;
  box-shadow: 0 0 12px #22c55e;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

.hero__name{
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 30%, #c9c9d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline{
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__tagline .sep{
  color: var(--pink);
  margin: 0 4px;
}

.hero__cta{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-glow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero__cta:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(236,72,153,0.35);
}
.hero__cta svg{ transition: transform .3s var(--ease); }
.hero__cta:hover svg{ transform: translateY(2px); }

.hero__scroll{
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll span{
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--text-muted);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity: 0; transform: translateY(0); }
  30%{ opacity: 1; }
  100%{ opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section{
  padding: 100px clamp(20px, 6vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
}
.section__head{
  text-align: center;
  max-width: 520px;
  margin: 0 auto 50px;
}
.section__head h2{
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section__head p{
  color: var(--text-muted);
  font-size: 1rem;
}

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism base */
.glass{
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ==========================================================================
   Social links
   ========================================================================== */

.link-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.link-card{
  grid-column: span 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  opacity: 0;
  transform: translateY(18px);
}
.link-card.is-visible{ opacity: 1; transform: translateY(0); }

.link-card:hover{
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.link-card__icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.link-card__icon svg{ width: 22px; height: 22px; }
.link-card__body{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-card__name{ font-weight: 600; font-size: 0.98rem; }
.link-card__handle{ font-size: 0.82rem; color: var(--text-muted); }
.link-card__arrow{
  margin-left: auto;
  color: var(--text-faint);
  transition: transform .3s var(--ease), color .3s var(--ease);
  flex-shrink: 0;
}
.link-card:hover .link-card__arrow{
  transform: translate(3px,-3px);
  color: var(--text);
}

/* per-platform icon accent colors */
.link-card[data-platform="steam"] .link-card__icon{ color: #66c0f4; }
.link-card[data-platform="instagram"] .link-card__icon{ color: #e1306c; }
.link-card[data-platform="tiktok"] .link-card__icon{ color: #f2f2f2; }
.link-card[data-platform="youtube"] .link-card__icon{ color: #ff4444; }
.link-card[data-platform="twitch"] .link-card__icon{ color: #a970ff; }
.link-card[data-platform="discord"] .link-card__icon{ color: #7289da; }
.link-card[data-platform="x"] .link-card__icon{ color: #f5f5f5; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-radius: var(--radius-lg);
  padding: 50px clamp(20px, 5vw, 50px);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat__num{
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label{
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.about__frame{
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.about__frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__text h2{
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 18px;
}
.about__text p{
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 60ch;
}
.about__text p:last-child{ margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
}
.footer__inner{
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer__brand .dot{ color: var(--text-faint); }
.footer__socials{
  display: flex;
  gap: 14px;
}
.footer__socials a{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__socials a:hover{
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.footer__socials svg{ width: 17px; height: 17px; }
.footer__copy{
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
  .link-grid{ grid-template-columns: repeat(2, 1fr); }
  .about__grid{ grid-template-columns: 1fr; }
  .about__frame{ max-width: 260px; margin: 0 auto; }
}

@media (max-width: 720px){
  .topbar__nav{ display: none; }
  .menu-toggle{ display: flex; }
  .stats__grid{ grid-template-columns: 1fr; gap: 34px; }
  .section{ padding: 76px 20px; }
}

@media (max-width: 520px){
  .link-grid{ grid-template-columns: 1fr; }
  .hero{ padding-top: 110px; }
}

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