/* ------------------------------
   BASE STYLES
------------------------------ */
:root {
    --black: #0b0b0e;
    --purple: #7a00ff;
    --pink: #ff4fd8;
    --violet: #a14eff;
    --text: #eaeaea;
    --bg-gradient: linear-gradient(135deg, #0b0b0e 40%, #1a0a1f 100%);
    --glow: 0 0 15px rgba(255, 79, 216, 0.5);
    --transition: all 0.3s ease;
    --radius: 14px;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* ------------------------------
     HEADER
  ------------------------------ */
  .site-header {
    background: rgba(15, 0, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(162, 80, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 10px rgba(255, 79, 216, 0.2);
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .nav-toggle {
    display: none;
  }
  .nav-toggle span { display: none; }
  
  .menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu a {
    text-decoration: none;
    color: #e0d0ff;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
  }
  
  .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.3s ease;
  }
  
  .menu a:hover {
    color: var(--pink);
  }
  
  .menu a:hover::after {
    width: 100%;
  }

  .header-register-btn {
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border: none;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 79, 216, 0.4);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
  }

  .header-register-btn:hover {
    box-shadow: 0 0 25px rgba(255, 79, 216, 0.7);
    transform: translateY(-2px);
  }
  
  /* ------------------------------
     HERO
  ------------------------------ */
  .hero-banner { text-align: center; }
  .hero-banner img {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    border-bottom: 2px solid var(--purple);
    box-shadow: 0 0 30px rgba(122, 0, 255, 0.4);
  }

  /* ------------------------------
     BANNER CAROUSEL
  ------------------------------ */
  .banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
  }

  .banner-carousel-link {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 27.5%; /* 16:9 aspect ratio (810/1920) */
  }

  .banner-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-bottom: 2px solid var(--purple);
    box-shadow: 0 0 30px rgba(122, 0, 255, 0.4);
  }

  .banner-carousel-img.active {
    opacity: 1;
  }
  
  /* ------------------------------
     SECTIONS
  ------------------------------ */
  section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    scroll-margin-top: 88px; /* ensure anchors land below sticky header */
  }
  
  h1, h2, h3 {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 79, 216, 0.4);
  }
  
  h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--pink);
    padding-left: 1rem;
  }
  
  h2 {
    font-size: 1.7rem;
    margin-top: 2.5rem;
    border-left: 4px solid var(--violet);
    padding-left: 0.8rem;
  }
  
  p {
    color: #d8cfff;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  ul {
    padding-left: 1.2rem;
  }
  
  li {
    margin-bottom: 0.4rem;
  }
  
  /* ------------------------------
     MID BANNER
  ------------------------------ */
  .mid-banner { display:flex; justify-content:center; align-items:center; }
  .mid-banner img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(255, 79, 216, 0.3);
    margin: 3rem auto;
  }
  
  /* ------------------------------
     FOOTER
  ------------------------------ */
  .site-footer {
    background: rgba(15, 0, 25, 0.9);
    border-top: 1px solid rgba(162, 80, 255, 0.3);
    text-align: center;
    padding: 2rem 1rem;
    padding-bottom: calc(2rem + 80px);
    box-shadow: inset 0 0 40px rgba(255, 79, 216, 0.2);
  }

  /* 404 layout helpers */
  .page-404 { min-height: 100vh; display: flex; flex-direction: column; }
  .page-404 main { flex: 1 0 auto; display:flex; align-items:center; justify-content:center; padding: 3rem 1rem; }
  .page-404 footer { flex-shrink:0; }
  .panel-404 { max-width: 720px; width: 100%; padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); border: 1px solid rgba(162,80,255,0.25); box-shadow: 0 10px 40px rgba(0,0,0,0.35); text-align:center; }
  .panel-404 p { margin: 0 0 1rem; }
  
  .footer-inner {
    max-width: 1100px;
    margin: auto;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }
  
  .footer-links a {
    color: var(--violet);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: var(--pink);
    text-shadow: 0 0 6px rgba(255, 79, 216, 0.6);
  }
  
  .copy {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  
  /* ------------------------------
     BUTTONS (OPTIONAL)
  ------------------------------ */
  button, .btn {
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border: none;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 79, 216, 0.4);
  }
  
  button:hover, .btn:hover {
    box-shadow: 0 0 25px rgba(255, 79, 216, 0.7);
    transform: translateY(-2px);
  }

  /* Back to top */
  .back-to-top { position: fixed; right: 18px; bottom: 90px; width: 44px; height: 44px; border-radius: 12px; border: none; cursor: pointer; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 8px 24px rgba(255,79,216,.35); display: none; align-items: center; justify-content: center; z-index: 101; }
  .back-to-top.show { display: inline-flex; }
  .back-to-top:hover { box-shadow: 0 10px 30px rgba(255,79,216,.55); }

  /* Bottom promo banner */
  .bottom-promo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(122, 0, 255, 0.95), rgba(161, 78, 255, 0.95));
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 79, 216, 0.5);
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
  }

  .bottom-promo-banner.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .bottom-promo-banner-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .bottom-promo-banner-btn {
    background: linear-gradient(90deg, var(--pink), #ff0080);
    border: none;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 79, 216, 0.5);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
  }

  .bottom-promo-banner-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 79, 216, 0.7);
    transform: translateY(-2px);
  }
  
  /* ------------------------------
     RESPONSIVE
  ------------------------------ */
  @media (max-width: 768px) {
    .header-inner { position: relative; flex-wrap: wrap; }
    .header-register-btn { order: 3; width: 100%; margin-top: 0.75rem; padding: 0.65rem 1.25rem; font-size: 0.9rem; text-align: center; }
    .menu { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; flex-direction: column; padding: .75rem; gap: .25rem; background: rgba(20, 0, 35, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(162,80,255,0.3); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
    .menu.open { display: flex; }
    .menu a { padding: .9rem 1rem; border-radius: 10px; }
    .menu a:hover { background: rgba(122,0,255,0.12); }
    .nav-toggle { display: inline-block; width: 40px; height: 40px; position: relative; background: none; border: none; cursor: pointer; }
    .nav-toggle span { display: block; position: absolute; left: 6px; right: 6px; height: 2px; background: #e0d0ff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
    .nav-toggle span:nth-child(1){ top: 12px; }
    .nav-toggle span:nth-child(2){ top: 19px; }
    .nav-toggle span:nth-child(3){ top: 26px; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1){ top: 19px; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3){ top: 19px; transform: rotate(-45deg); }
    section {
      padding: 0 1rem;
    }
    h1 {
      font-size: 1.8rem;
    }
    h2 {
      font-size: 1.4rem;
    }
    .bottom-promo-banner {
      flex-direction: column;
      gap: 0.6rem;
      padding: 0.75rem 1rem;
    }
    .bottom-promo-banner-text {
      font-size: 0.85rem;
      line-height: 1.3;
    }
    .bottom-promo-banner-btn {
      padding: 0.55rem 1.25rem;
      font-size: 0.85rem;
    }
    .back-to-top {
      bottom: 100px;
    }
    .site-footer {
      padding-bottom: calc(2rem + 70px);
    }
    .banner-carousel {
      max-width: 100%;
    }

  }
  