/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s, visibility .4s;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: preloaderSpin .7s linear infinite;
}
@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0b0f;
  --surface: #111116;
  --border: #1e1e26;
  --text: #e4e4e7;
  --muted: #71717a;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, .1);
  --glow: rgba(59, 130, 246, .15);
}

html { scroll-behavior: smooth; }

/* ── Page Fade-In Transition ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn .6s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.alt-bg { background: #0d0d12; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 2rem;
  background: rgba(11, 11, 15, .75);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,.04);
  z-index: 100;
  transition: transform .35s ease, opacity .35s ease;
  gap: 1rem;
}
nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.nav-links { display: flex; gap: 1.5rem; }

/* ── Hamburger Button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Hero ── */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6rem 2rem 3rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,.1) 0%, rgba(59,130,246,.03) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  animation: heroFadeIn .8s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-info {
  text-align: left;
}

.label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: .4rem;
}

#hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.subtitle {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .5rem;
  max-width: 400px;
}

.hero-info .tags {
  margin-top: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.6rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  border-radius: 8px;
  border: 1px solid rgba(59,130,246,.3);
  transition: all .3s;
  letter-spacing: .3px;
}

.btn::after {
  content: '\2193';
  font-size: .9rem;
  transition: transform .3s;
}

.btn:hover {
  background: rgba(59,130,246,.08);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(59,130,246,.12);
}

.btn:hover::after {
  transform: translateY(2px);
}

/* ── Section ── */
section { padding: 5rem 0; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s ease;
}

section:hover h2::after {
  width: 60px;
}

/* ── Avatar ── */.avatar-wrap {
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  padding: 2px;
  isolation: isolate;
}

/* Rotating gradient ring — always visible (subtle), strong on hover */
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    #3b82f6, #60a5fa, #3b82f6, #2563eb, #3b82f6
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradientRotate 4s linear infinite;
  z-index: -1;
  opacity: .45;
  transition: opacity .4s;
}

.avatar-wrap:hover::before {
  opacity: 1;
}

/* Blurry glow behind avatar */
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    #3b82f6, #60a5fa, #3b82f6, #2563eb, #3b82f6
  );
  filter: blur(18px);
  opacity: .1;
  z-index: -2;
  animation: gradientRotate 4s linear infinite;
  transition: opacity .4s;
  pointer-events: none;
}

.avatar-wrap:hover::after {
  opacity: .35;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.avatar-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
}

.about-text h2 { margin-bottom: 1rem; }

.about-text p {
  color: var(--muted);
  max-width: 520px;
  font-size: .95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.tags span {
  padding: .25rem .7rem;
  font-size: .7rem;
  font-weight: 500;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: .3px;
  transition: all .3s;
}

.tags span:hover {
  background: rgba(59,130,246,.18);
}

/* ── Setup ── */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.setup-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setup-card {
  padding: 1.5rem;
  border-radius: 10px;
  transition: all .3s;
}

.setup-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,246,.05);
}

.setup-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .75rem;
  color: var(--accent);
}

.setup-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .85rem;
  color: var(--muted);
}

.setup-card li a {
  color: var(--text);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.setup-card li a::after {
  content: '\2197';
  font-size: .6rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all .25s;
  color: var(--accent);
}

.setup-card li a:hover {
  color: var(--accent);
}

.setup-card li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.setup-type {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  background: rgba(30,30,38,.8);
  padding: .15rem .5rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: .75rem;
  border: 1px solid transparent;
  transition: all .3s;
}

.setup-card li:hover .setup-type {
  border-color: var(--border);
  color: var(--accent);
}

.setup-card li + li {
  border-top: 1px solid var(--border);
}

/* ── Contact ── */
.contact-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.social-link {
  padding: .55rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .3s;
  letter-spacing: .3px;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.social-link[data-social="discord"]:hover {
  border-color: #5865F2;
  color: #5865F2;
}

.social-link[data-social="twitch"]:hover {
  border-color: #9146FF;
  color: #9146FF;
}

.social-link[data-social="youtube"]:hover {
  border-color: #FF0000;
  color: #FF0000;
}

.social-link[data-social="tiktok"]:hover {
  border-color: #00F2EA;
  color: #00F2EA;
}

.social-link[data-social="instagram"]:hover {
  border-color: #E1306C;
  color: #E1306C;
}

/* ── Setup Total Card ── */
.setup-total-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}

.setup-total-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: -1px;
  line-height: 1.2;
  transition: transform .3s, color .3s;
}

.setup-total-value.flash {
  animation: totalPulse .4s ease;
}

@keyframes totalPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); color: #34d399; }
  100% { transform: scale(1); }
}

.setup-total-count {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .5px;
}

/* ── Price Tooltip ── */
.setup-card li a[data-price] {
  position: relative;
}

.setup-card li a[data-price]::before {
  content: attr(data-price);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(17, 17, 22, .95);
  border: 1px solid var(--accent);
  color: #10b981;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.setup-card li a[data-price]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent);
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  pointer-events: none;
  z-index: 10;
}

.setup-card li a[data-price]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.setup-card li a[data-price]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ── Footer ── */
footer {
  padding: 2.5rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.15), transparent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

footer .footer-tagline {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: .75rem;
}

.footer-socials a {
  color: var(--muted);
  transition: color .2s, transform .2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .5px;
}

.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-links {
    gap: 1rem;
  }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero loads instantly */
#hero .reveal { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
.setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-profile { flex-direction: column; text-align: center; }
  .hero-info { text-align: center; }
  .hero-info .tags { justify-content: center; }

  /* Hamburger Menu */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(11, 11, 15, .95);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 105;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  nav { padding: 1rem 1.25rem; }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 104;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
  }
  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ── Active Nav Link ── */
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  width: 100%;
}

/* ── Hero Particles Canvas ── */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(59, 130, 246, .3);
  border-radius: 12px;
  background: rgba(17, 17, 22, .92);
  backdrop-filter: blur(12px);
  color: var(--accent);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.8);
  transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1), visibility .4s, border-color .3s, color .3s, box-shadow .3s, background .3s;
  z-index: 99;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(59, 130, 246, .1);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(59, 130, 246, .2);
  box-shadow: 0 0 25px rgba(59,130,246,.25);
  transform: translateY(-3px) scale(1.08);
}
.back-to-top:active {
  transform: translateY(0) scale(.95);
  transition-duration: .1s;
}

/* ── Social Icons ── */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.social-link svg {
  flex-shrink: 0;
  transition: transform .3s;
}

.social-link:hover svg {
  transform: scale(1.15);
}

/* ── Magnetic Hover on Social Links ── */
.social-link {
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.25,.8,.25,1);
}

.social-link .social-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s;
}

.social-link:hover .social-glow {
  opacity: 1;
}

/* ── Gradient Section Dividers ── */
section.alt-bg {
  position: relative;
}
section.alt-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .3;
}

/* ── Animated Gradient Border ── */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradientRotate {
  to { --gradient-angle: 360deg; }
}

/* ── Glassmorphism Cards ── */
.glass-card,
.setup-card,
.social-link {
  background: rgba(17, 17, 22, .55);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .06);
}

.setup-card:hover,
.glass-card:hover {
  border-color: var(--accent);
  background: rgba(17, 17, 22, .65);
  box-shadow: 0 0 20px rgba(59, 130, 246, .1);
}

