:root {
    --black: #020408;
    --navy: #030d1a;
    --blue: #0af;
    --blue-dim: #0077aa;
    --blue-glow: rgba(0,170,255,0.18);
    --blue-glow2: rgba(0,170,255,0.07);
    --white: #e8f4ff;
    --grey: #7a9ab5;
    --gold: #f0c040;
    --sidebar-w: 240px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    overflow-x: hidden;
  }

  /* ── PARTICLES ── */
  #particles {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .particle {
    position: absolute;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0;
    animation: floatUp linear infinite;
  }
  @keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
  }

  /* ── SIDEBAR ── */
  #sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(2,10,20,0.95);
    border-right: 1px solid rgba(0,170,255,0.15);
    display: flex;
    flex-direction: column;
    padding: 36px 0 24px;
    z-index: 100;
    backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  }
  #sidebar .logo-wrap {
    padding: 0 28px 32px;
    border-bottom: 1px solid rgba(0,170,255,0.1);
    margin-bottom: 24px;
  }
  #sidebar .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--blue);
    text-transform: uppercase;
    line-height: 1.3;
  }
  #sidebar .logo-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--grey);
    letter-spacing: 2px;
    margin-top: 4px;
  }
  #sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    color: var(--grey);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    position: relative;
  }
  #sidebar nav a:hover, #sidebar nav a.active {
    color: var(--blue);
    border-left-color: var(--blue);
    background: var(--blue-glow2);
  }
  #sidebar nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; }
  #sidebar .sidebar-footer {
    margin-top: auto;
    padding: 24px 28px 0;
    border-top: 1px solid rgba(0,170,255,0.1);
  }
  #sidebar .discord-btn {
    display: block;
    background: var(--blue);
    color: var(--black);
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
  }
  #sidebar .discord-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--blue);
  }

  /* ── HAMBURGER ── */
  #hamburger {
    display: none;
    position: fixed;
    top: 18px; left: 18px;
    z-index: 200;
    background: rgba(2,10,20,0.9);
    border: 1px solid rgba(0,170,255,0.3);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }
  #hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--blue);
    transition: all 0.3s;
  }

  /* ── MAIN CONTENT ── */
  #main {
    margin-left: var(--sidebar-w);
    position: relative;
    z-index: 1;
  }

  /* ── SECTIONS ── */
  section {
    min-height: 100vh;
    padding: 100px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* ── HERO ── */
  #hero {
    align-items: flex-start;
    padding-top: 120px;
    overflow: hidden;
  }
  .hero-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
  }
  .hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 6vw, 82px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
  }
  .hero-title .line1 { color: var(--white); }
  .hero-title .line2 { color: var(--blue); }
  .hero-title .line3 {
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,170,255,0.4);
  }
  .hero-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--grey);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 28px 0 48px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
  }
  .hero-tagline span { color: var(--blue); font-weight: 600; }
  .hero-cta {
    display: flex; gap: 16px; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
  }
  .btn-primary {
    padding: 16px 36px;
    background: var(--blue);
    color: var(--black);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.2s;
    position: relative;
  }
  .btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--blue), 0 0 60px rgba(0,170,255,0.3);
    transform: translateY(-2px);
  }
  .btn-secondary {
    padding: 16px 36px;
    background: transparent;
    color: var(--blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(0,170,255,0.4);
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.2s;
  }
  .btn-secondary:hover {
    border-color: var(--blue);
    background: var(--blue-glow);
    transform: translateY(-2px);
  }
  .hero-stats {
    display: flex; gap: 48px; margin-top: 80px;
    opacity: 0;
    animation: fadeUp 0.8s 1.1s forwards;
  }
  .stat { display: flex; flex-direction: column; gap: 4px; }
  .stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
  }
  .stat-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
  }

  /* Typing cursor */
  .typed-cursor {
    display: inline-block;
    width: 3px; height: 1em;
    background: var(--blue);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s infinite;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

  /* Hero grid bg */
  .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }
  .hero-glow {
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,170,255,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  /* ── SECTION HEADERS ── */
  .section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .section-title .accent { color: var(--blue); }
  .section-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    margin-bottom: 48px;
  }

  /* ── ABOUT ── */
  #about { background: var(--navy); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .about-text p {
    color: var(--grey);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
  }
  .about-text p strong { color: var(--white); }
  .about-quote {
    border-left: 2px solid var(--blue);
    padding: 20px 28px;
    background: var(--blue-glow2);
    margin-top: 32px;
    font-style: italic;
    color: var(--white);
    font-size: 16px;
    line-height: 1.7;
  }
  .about-quote cite {
    display: block;
    margin-top: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--blue);
    font-style: normal;
  }
  .about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .axiom-ring {
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(0,170,255,0.2);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: rotate 20s linear infinite;
  }
  .axiom-ring::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,170,255,0.1);
  }
  .axiom-ring::after {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px dashed rgba(0,170,255,0.08);
  }
  .axiom-center {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--blue);
    text-shadow: 0 0 40px var(--blue);
    animation: rotate-rev 20s linear infinite;
  }
  .orbit-dot {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--blue);
  }
  .orbit-dot:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
  .orbit-dot:nth-child(2) { bottom: -4px; left: 50%; transform: translateX(-50%); }
  .orbit-dot:nth-child(3) { left: -4px; top: 50%; transform: translateY(-50%); }
  .orbit-dot:nth-child(4) { right: -4px; top: 50%; transform: translateY(-50%); }
  @keyframes rotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
  @keyframes rotate-rev { from{transform:rotate(0deg)} to{transform:rotate(-360deg)} }

  /* ── FEATURES ── */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
  }
  .feature-card {
    background: rgba(3,13,26,0.8);
    border: 1px solid rgba(0,170,255,0.1);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  }
  .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .feature-card:hover {
    border-color: rgba(0,170,255,0.35);
    transform: translateY(-4px);
    background: rgba(0,170,255,0.05);
  }
  .feature-card:hover::before { opacity: 1; }
  .feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
  }
  .feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .feature-desc {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
  }
  .feature-num {
    position: absolute;
    top: 16px; right: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: rgba(0,170,255,0.2);
    letter-spacing: 1px;
  }

  /* ── HALL OF FAME ── */
  #halloffame { background: var(--navy); }
  .hof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
  }
  .hof-card {
    background: rgba(2,8,16,0.9);
    border: 1px solid rgba(0,170,255,0.12);
    padding: 28px;
    position: relative;
    transition: all 0.3s;
  }
  .hof-card:hover {
    border-color: rgba(0,170,255,0.4);
    box-shadow: 0 0 20px rgba(0,170,255,0.08);
  }
  .hof-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0,170,255,0.1);
    border: 1px solid rgba(0,170,255,0.2);
    color: var(--blue);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .hof-question {
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.5;
  }
  .hof-summary {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .hof-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,170,255,0.08);
    padding-top: 14px;
  }
  .hof-solver {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 1px;
  }
  .hof-trophy { font-size: 18px; }
  .hof-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    border: 1px dashed rgba(0,170,255,0.15);
    color: var(--grey);
  }
  .hof-empty p { font-size: 14px; letter-spacing: 2px; margin-top: 12px; }

  /* ── SYLLABUS ── */
  .syllabus-note {
    font-size: 13px;
    color: var(--grey);
    border-left: 2px solid var(--blue);
    padding: 12px 18px;
    background: rgba(0,170,255,0.05);
    margin-bottom: 28px;
    line-height: 1.6;
    letter-spacing: 0.3px;
  }
  .syllabus-note strong { color: var(--white); }

  .syllabus-tabs {
    display: flex; gap: 0; margin-bottom: 40px;
  }
  .tab-btn {
    padding: 12px 32px;
    background: transparent;
    color: var(--grey);
    border: 1px solid rgba(0,170,255,0.15);
    border-right: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .tab-btn:last-child { border-right: 1px solid rgba(0,170,255,0.15); }
  .tab-btn.active, .tab-btn:hover {
    background: var(--blue-glow);
    color: var(--blue);
    border-color: rgba(0,170,255,0.4);
  }
  .tab-content { display: none; }
  .tab-content.active { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .syllabus-topic {
    background: rgba(3,13,26,0.8);
    border: 1px solid rgba(0,170,255,0.1);
    padding: 24px;
    transition: all 0.2s;
  }
  .syllabus-topic:hover {
    border-color: rgba(0,170,255,0.3);
    background: rgba(0,170,255,0.04);
  }
  .topic-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
  }
  .topic-title::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .topic-list {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .topic-list li {
    font-size: 12px;
    color: var(--grey);
    background: rgba(0,170,255,0.06);
    padding: 4px 10px;
    border: 1px solid rgba(0,170,255,0.1);
    letter-spacing: 0.5px;
  }

  /* ── TEAM ── */
  #team { background: var(--navy); }
  .team-grid {
    display: flex; gap: 32px; flex-wrap: wrap;
    margin-top: 16px;
  }
  .team-card {
    background: rgba(2,8,16,0.9);
    border: 1px solid rgba(0,170,255,0.12);
    padding: 36px 32px;
    flex: 1; min-width: 220px; max-width: 280px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  }
  .team-card:hover {
    border-color: rgba(0,170,255,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0,170,255,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--blue);
    background: rgba(0,170,255,0.06);
    box-shadow: 0 0 20px rgba(0,170,255,0.1);
  }
  .team-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 8px;
  }
  .team-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .team-bio {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
  }

  /* ── JOIN ── */
  #join {
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0,170,255,0.06) 0%, transparent 70%);
  }
  #join .section-divider { margin: 20px auto 48px; }
  .join-desc {
    font-size: 18px;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
  }
  .join-desc strong { color: var(--white); }
  .join-steps {
    display: flex; gap: 0;
    margin: 0 auto 56px;
    max-width: 700px;
  }
  .join-step {
    flex: 1;
    padding: 24px 20px;
    border: 1px solid rgba(0,170,255,0.12);
    border-right: none;
    position: relative;
    text-align: center;
  }
  .join-step:last-child { border-right: 1px solid rgba(0,170,255,0.12); }
  .step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: rgba(0,170,255,0.2);
    margin-bottom: 8px;
  }
  .step-text {
    font-size: 13px;
    color: var(--grey);
    letter-spacing: 1px;
  }
  .join-arrow {
    position: absolute;
    right: -10px; top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 16px;
    z-index: 1;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--black); }
  ::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 2px; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    #hamburger { display: flex; }
    #main { margin-left: 0; }
    section { padding: 80px 28px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .hof-grid { grid-template-columns: 1fr; }
    .tab-content.active { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .join-steps { flex-direction: column; }
    .join-step { border-right: 1px solid rgba(0,170,255,0.12); border-bottom: none; }
    .join-step:last-child { border-bottom: 1px solid rgba(0,170,255,0.12); }
  }

  /* ── FOOTER ── */
  #footer {
    background: rgba(2,10,20,0.98);
    border-top: 1px solid rgba(0,170,255,0.12);
    padding: 48px 80px 36px;
    margin-left: var(--sidebar-w);
    position: relative;
    z-index: 1;
  }
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }
  .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--blue);
    text-transform: uppercase;
  }
  .footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-links a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--grey);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--blue); }
  .footer-copy {
    font-size: 12px;
    color: rgba(122,154,181,0.5);
    line-height: 1.8;
    letter-spacing: 0.5px;
  }
  .footer-copy span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
  }

  @media (max-width: 900px) {
    #footer { margin-left: 0; padding: 36px 28px 28px; }
    .footer-links { gap: 16px; }
  }
