:root {
    --bg: #080c10;
    --surface: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.10);
    --glass-blur: blur(18px);
    --accent: #5eb8ff;
    --accent-soft: #a8d8ff;
    --accent-glow: rgba(94,184,255,0.18);
    --text: #e8f0ff;
    --muted: rgba(232,240,255,0.45);
    --radius: 20px;
  }

  /* ── Light mode ── */
  body.light {
    --bg: #f0f4f8;
    --surface: rgba(255,255,255,0.55);
    --glass-border: rgba(0,0,0,0.08);
    --text: #0d1117;
    --muted: rgba(13,17,23,0.5);
    --accent-glow: rgba(94,184,255,0.12);
  }
  body.light::before {
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(94,184,255,0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 80%, rgba(130,100,255,0.08) 0%, transparent 55%);
  }
  body.light nav {
    background: rgba(240,244,248,0.8);
    border-bottom-color: rgba(0,0,0,0.07);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
  }

  /* ── Background mesh ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(94,184,255,0.09) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 80%, rgba(130,100,255,0.07) 0%, transparent 55%),
      radial-gradient(ellipse 40% 35% at 50% 50%, rgba(94,184,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* Noise overlay */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: .4;
    pointer-events: none;
    z-index: 0;
  }

  section, header, footer { position: relative; z-index: 1; }

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

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ── Navigation ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,12,16,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color .2s;
  }

  .nav-links a:hover { color: var(--text); }

  /* ── Hero ── */
  #hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(94,184,255,0.3);
    background: rgba(94,184,255,0.08);
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp .7s ease both;
  }

  .hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: .4; }
  }

  .hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    animation: fadeUp .7s .1s ease both;
  }

  .hero-title span {
    color: var(--accent);
    position: relative;
  }

  .hero-title span::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
  }

  .hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 480px;
    margin-top: 20px;
    line-height: 1.7;
    animation: fadeUp .7s .2s ease both;
  }

  .hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
  }

  .btn {
    padding: 12px 26px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-primary {
    background: var(--accent);
    color: #050810;
    border: none;
  }

  .btn-primary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94,184,255,0.3);
  }

  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--glass-border);
  }

  .btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
  }

  /* Hero card floating */
  .hero-card {
    padding: 28px 32px;
    min-width: 220px;
    animation: fadeUp .7s .15s ease both, float 6s ease-in-out infinite;
    text-align: center;
  }

  @keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .hero-card-num {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
  }

  .hero-card-label {
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
  }

  .hero-divider { width: 1px; background: var(--glass-border); height: 36px; margin: 12px auto; }

  /* ── Section commons ── */
  section:not(#hero) {
    padding: 100px 24px;
  }

  .section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    max-width: 80px;
  }

  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .section-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
  }

  /* ── Social Bar ── */
  #social {
    padding: 48px 24px;
  }

  .social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .875rem;
    transition: all .25s;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
  }

  .social-link:hover {
    color: var(--text);
    transform: translateY(-3px);
  }

  .social-link.twitch:hover  { border-color: rgba(145,71,255,0.6); box-shadow: 0 6px 20px rgba(145,71,255,0.2); color: #b086ff; }
  .social-link.youtube:hover { border-color: rgba(255,60,60,0.6);  box-shadow: 0 6px 20px rgba(255,60,60,0.2);  color: #ff7070; }
  .social-link.discord:hover { border-color: rgba(88,101,242,0.6); box-shadow: 0 6px 20px rgba(88,101,242,0.2); color: #8891f5; }
  .social-link.insta:hover   { border-color: rgba(255,130,90,0.6); box-shadow: 0 6px 20px rgba(255,130,90,0.2);  color: #ffaa80; }
  .social-link.tiktok:hover  { border-color: rgba(255,0,80,0.6);  box-shadow: 0 6px 20px rgba(255,0,80,0.2);    color: #ff4d7d; }

  .social-icon { width: 20px; height: 20px; flex-shrink: 0; }

  /* ── YouTube ── */
  #youtube .yt-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }

  .video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
  }

  .video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .video-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .875rem;
  }

  /* ── Community ── */
  #community .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 0;
  }

  .fam-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    transition: transform .3s, box-shadow .3s;
  }

  .fam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  .fam-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
  }

  .fam-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .fam-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
  }

  .members-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .member-chip {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(94,184,255,0.1);
    border: 1px solid rgba(94,184,255,0.2);
    color: var(--accent-soft);
  }

  /* ── Tech Stack ── */
  #tech {
    text-align: center;
  }

  #tech .section-label { justify-content: center; }
  #tech .section-label::after { display: none; }

  .tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 0;
  }

  .tech-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    font-weight: 600;
    font-size: .9rem;
    transition: all .25s;
    cursor: default;
  }

  .tech-pill:hover {
    border-color: rgba(94,184,255,0.4);
    background: rgba(94,184,255,0.07);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94,184,255,0.15);
  }

  .tech-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }

  /* ── Footer ── */
  footer {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: .85rem;
  }

  footer span { color: var(--accent); }

  /* ── Scroll reveal ── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ── Animations ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card  { display: none; }
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    #community .cards-grid { grid-template-columns: 1fr; }
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: rgba(94,184,255,0.3); border-radius: 3px; }

  /* ── Parallax orbs ── */
  .parallax-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: .18;
    transition: transform .1s linear;
  }
  .orb-1 { width: 500px; height: 500px; background: #5eb8ff; top: -100px; left: -100px; }
  .orb-2 { width: 400px; height: 400px; background: #8264ff; bottom: -80px; right: -80px; }
  .orb-3 { width: 300px; height: 300px; background: #5eb8ff; top: 40%; left: 60%; }

  /* ── Dark/Light toggle ── */
  .theme-toggle {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 200;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all .25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .theme-toggle:hover { transform: scale(1.1); border-color: rgba(94,184,255,0.4); }

  /* ── Now Playing widget ── */
  .now-playing {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: .8rem;
    color: var(--muted);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: all .25s;
    max-width: 240px;
    cursor: default;
  }
  .now-playing:hover { border-color: rgba(94,184,255,0.3); color: var(--text); }
  .np-bars {
    display: flex; align-items: flex-end; gap: 3px; height: 18px; flex-shrink: 0;
  }
  .np-bar {
    width: 3px; border-radius: 2px;
    background: var(--accent);
    animation: npBounce 1.2s ease-in-out infinite;
  }
  .np-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
  .np-bar:nth-child(2) { height: 16px; animation-delay: .2s; }
  .np-bar:nth-child(3) { height: 8px;  animation-delay: .4s; }
  .np-bar:nth-child(4) { height: 14px; animation-delay: .1s; }
  @keyframes npBounce {
    0%,100% { transform: scaleY(1); }
    50%      { transform: scaleY(.4); }
  }
  .np-info { overflow: hidden; }
  .np-title {
    font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: .8rem;
  }
  .np-artist { font-size: .72rem; color: var(--muted); }

  /* ── Cookie banner ── */
  .cookie-banner {
    position: fixed;
    bottom: 90px; left: 50%; transform: translateX(-50%);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    font-size: .85rem;
    color: var(--muted);
    max-width: 560px;
    width: calc(100% - 48px);
    transition: opacity .4s, transform .4s;
  }
  .cookie-banner.hidden {
    opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px);
  }
  .cookie-text { flex: 1; line-height: 1.5; }
  .cookie-text a { color: var(--accent); text-decoration: none; }
  .cookie-text a:hover { text-decoration: underline; }
  .cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
  .cookie-accept {
    padding: 8px 18px; border-radius: 10px; border: none;
    background: var(--accent); color: #050810;
    font-weight: 700; font-size: .8rem; cursor: pointer;
    font-family: inherit;
    transition: all .2s;
  }
  .cookie-accept:hover { background: var(--accent-soft); }
  .cookie-decline {
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: transparent; color: var(--muted);
    font-weight: 600; font-size: .8rem; cursor: pointer;
    font-family: inherit;
    transition: all .2s;
  }
  .cookie-decline:hover { color: var(--text); }

  @media (max-width: 480px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .now-playing { display: none; }
  }
    /* ── Age counter ── */
  .age-widget {
    position: fixed;
    top: 80px; right: 28px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: .78rem;
    color: var(--muted);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 160px;
  }
  .age-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .age-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
 
  @media (max-width: 768px) {
    .age-widget { display: none; }
  }