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

:root {
  --bg: #080c10;
  --bg2: #0c1018;
  --bg3: #101520;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --text: #e0eef8;
  --text-dim: #4a6a80;
  --border: rgba(0, 212, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.35);
  --grid-color: rgba(0, 212, 255, 0.03);
  --font: 'JetBrains Mono', 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* NAV */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icons a {
  color: var(--text-dim);
  transition: color 0.2s;
  display: flex;
}

.nav-icons a:hover { color: var(--accent); }

/* GRID BACKGROUND */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* HOME */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 2rem 0;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(0,212,255,0.4);
}

.glitch { position: relative; }

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
}

.glitch::before {
  color: #0055ff;
  animation: glitch1 4s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch::after {
  color: #00ffcc;
  animation: glitch2 4s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {
  0%, 90%, 100% { opacity: 0; transform: none; }
  92% { opacity: 0.7; transform: translateX(-3px); }
  94% { opacity: 0.7; transform: translateX(3px); }
  96% { opacity: 0; }
}

@keyframes glitch2 {
  0%, 88%, 100% { opacity: 0; transform: none; }
  90% { opacity: 0.5; transform: translateX(3px); }
  92% { opacity: 0.5; transform: translateX(-3px); }
  94% { opacity: 0; }
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  min-height: 1.5em;
}

.prompt { color: var(--accent); margin-right: 0.5rem; }
.typewriter { color: var(--text); }
.cursor { color: var(--accent); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary { background: var(--accent); color: #0a0a0f; }
.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* SECTIONS */
section { padding: 6rem 2rem; }
section:nth-child(even) { background: var(--bg2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-sub { color: var(--text-dim); font-size: 14px; }

/* ABOUT */
#about { text-align: center; }

.about-lead {
  font-size: 18px;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.terminal-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title { margin-left: 0.5rem; color: var(--text-dim); font-size: 12px; }

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 13px;
  line-height: 1.6;
}

.t-prompt { color: var(--accent); }
.t-key { color: #7eb8f7; }
.t-val { color: var(--text); }
.t-str { color: #f9c74f; }
.t-green { color: #27c93f; }

.skills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 12px;
  transition: all 0.2s;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.05);
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.member-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.member-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.1);
}

.member-card:hover::before { transform: scaleX(1); }

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-bright);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.member-card:hover .member-avatar { border-color: var(--accent); }

.member-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.member-role {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 11px;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.role-lead {
  background: rgba(0,212,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
}

.role-player {
  background: rgba(100,100,150,0.15);
  color: var(--text-dim);
  border: 1px solid rgba(100,100,150,0.25);
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.skill-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 10px;
}

.skill-pill.primary {
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.25);
}

.skill-pill.secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ACHIEVEMENTS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 30px rgba(0,212,255,0.08);
}

.stat-icon {
  margin-bottom: 0.75rem;
  color: var(--accent);
  display: flex;
  justify-content: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }

.ctf-table-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.ctf-table { width: 100%; border-collapse: collapse; }

.ctf-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: rgba(0,212,255,0.03);
}

.ctf-table td {
  padding: 0.875rem 1.25rem;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  transition: background 0.15s;
}

.ctf-table tr:last-child td { border-bottom: none; }
.ctf-table tr:hover td { background: rgba(0,212,255,0.04); }
.ctf-table tr.top-place td { background: rgba(0,212,255,0.04); }

.place { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.place.gold { color: #ffd700; }

/* JOIN */
.join-title { font-size: clamp(2rem, 5vw, 3.5rem); }

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.join-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.join-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.join-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.join-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.join-list li svg { flex-shrink: 0; margin-top: 2px; }
.join-list strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 0.2rem; }
.join-list p { color: var(--text-dim); font-size: 12px; line-height: 1.5; }

.join-cta { text-align: center; }

.join-footer-cmd { margin-top: 1.5rem; color: var(--text-dim); font-size: 13px; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 768px) {
  #navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1rem; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
