@font-face {
  font-family: "Integral CF";
  src: url("/static/fonts/IntegralCF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Integral CF";
  src: url("/static/fonts/IntegralCF-Heavy.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --primary: #00ff95;
  --secondary: #9dffd0;
  --accent: #00ff95;
  --bg: #030408;
  --card: rgba(12, 13, 18, 0.72);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(210, 218, 235, 0.55);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Integral CF", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.85;
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(0, 255, 149, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 100%, rgba(60, 100, 255, 0.06), transparent 50%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .bg-particles { display: none; }
}

.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-size: 2rem; font-weight: 800; letter-spacing: 0.2em; color: var(--primary);
}
.loader-logo-img {
  width: min(160px, 42vw); height: auto; object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0, 255, 149, 0.25));
}
.loader-bar { width: 120px; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--primary); animation: load 1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; gap: 1rem;
  background: rgba(3, 4, 8, 0.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.nav-logo {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(0, 255, 149, 0.12); color: var(--primary); font-weight: 800; font-size: 0.75rem;
}
.nav-logo-img {
  width: 42px; height: 42px; border-radius: 12px; object-fit: contain;
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border);
}
.nav-title { font-weight: 700; letter-spacing: 0.04em; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem; padding: 0.5rem 0.85rem;
  border-radius: 999px; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255,255,255,0.03); flex-shrink: 0;
}
.lang-btn {
  border: none; background: transparent; color: var(--text-dim); cursor: pointer;
  font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem; border-radius: 999px; transition: 0.25s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: rgba(0, 255, 149, 0.16); color: var(--primary);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: 0.3s;
}
.nav.open .nav-links {
  display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: rgba(8, 9, 14, 0.96); padding: 1rem; border-bottom: 1px solid var(--card-border);
}

main { position: relative; z-index: 1; padding-top: var(--nav-h); }
.section {
  padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section.visible { opacity: 1; transform: none; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.section-text { color: var(--text-dim); max-width: 640px; font-size: 1.05rem; }

.hero {
  min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 6rem;
}
.hero-inner { width: 100%; }
.hero-brand-logo {
  width: min(120px, 28vw); height: auto; object-fit: contain; margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 40px rgba(0, 255, 149, 0.2));
}
.hero-eyebrow { color: var(--primary); font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1rem; }
.hero-title span { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 520px; margin-bottom: 0.75rem; }
.hero-tag { font-size: 0.85rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #04140c; box-shadow: 0 8px 32px rgba(0, 255, 149, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(0, 255, 149, 0.35); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { border-color: rgba(0,255,149,0.35); background: rgba(0,255,149,0.06); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 2rem; }
.about-visual {
  aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}

.featured-video {
  margin-top: 2rem; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid var(--card-border); background: var(--card); box-shadow: var(--shadow);
}
.featured-video-thumb {
  position: relative; aspect-ratio: 16/9; cursor: pointer; background: #000 center/cover;
}
.featured-video-thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.85));
}
.featured-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(0,255,149,0.9); color: #04140c;
  display: grid; place-items: center; font-size: 1.5rem; z-index: 2; transition: transform 0.3s var(--ease);
}
.featured-video-thumb:hover .featured-play { transform: translate(-50%,-50%) scale(1.08); }
.featured-meta { padding: 1.25rem 1.5rem; }
.featured-meta h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.featured-meta p { color: var(--text-dim); font-size: 0.95rem; }

.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem;
}
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,255,149,0.25); box-shadow: var(--shadow); }
.card-thumb { aspect-ratio: 16/9; background: #111 center/cover; position: relative; cursor: pointer; }
.card-thumb .play-sm {
  position: absolute; inset: auto auto 12px 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,255,149,0.9); color: #04140c; display: grid; place-items: center; font-size: 0.75rem;
}
.card-body { padding: 1rem 1.15rem 1.25rem; }
.card-cat { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.35rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card-body p { font-size: 0.88rem; color: var(--text-dim); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem;
}
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--card-border); background: center/cover; transition: transform 0.35s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); }

.graphic-card .card-thumb { aspect-ratio: 4/5; }
.price-tag {
  display: inline-block; margin-top: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: rgba(0,255,149,0.1); color: var(--primary);
}

.server-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem;
}
.server-card {
  padding: 1.35rem; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  transition: border-color 0.3s;
}
.server-card:hover { border-color: rgba(0,255,149,0.2); }
.server-card .icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.server-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.server-card p { font-size: 0.88rem; color: var(--text-dim); }

.discord-box {
  margin-top: 2rem; padding: 2.5rem; text-align: center; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(0,255,149,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
}
.discord-logo {
  width: 72px; height: 72px; object-fit: contain; margin: 0 auto 1rem; display: block;
}
.discord-box .hero-actions { justify-content: center; margin-top: 1.5rem; }

.creators-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,255,149,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.creators-names {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.footer {
  position: relative; z-index: 1; padding: 2rem 1.5rem; text-align: center;
  color: var(--text-dim); font-size: 0.82rem; border-top: 1px solid var(--card-border);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.footer-logo { width: 48px; height: 48px; object-fit: contain; opacity: 0.9; }
.footer-admin { color: rgba(255,255,255,0.25); text-decoration: none; margin-left: 0.5rem; }
.footer-admin:hover { color: var(--primary); }

.lightbox, .video-modal { position: fixed; inset: 0; z-index: 200; }
.lightbox[hidden], .video-modal[hidden] { display: none !important; }
.lightbox { background: rgba(0,0,0,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; border-radius: var(--radius); }
.lightbox-close, .video-modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; z-index: 3;
}
#lightbox-caption { margin-top: 1rem; color: var(--text-dim); text-align: center; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); }
.video-modal-box {
  position: relative; z-index: 2; width: min(960px, 92vw); margin: 8vh auto 0;
  aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden;
}
#video-modal-embed {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.video-modal-box iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.video-modal-close {
  position: absolute; top: -2.5rem; right: 0; z-index: 3;
}

.empty-state { text-align: center; padding: 3rem; color: var(--text-dim); border: 1px dashed var(--card-border); border-radius: var(--radius); margin-top: 2rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-toggle { display: block; }
  .nav.open .nav-right .nav-links { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 4rem; }
  .nav-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
