@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
  --bg:          #080b14;
  --bg-2:        #0d1117;
  --surface:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.18);
  --text:        #e2e8f0;
  --text-2:      #94a3b8;
  --text-muted:  #475569;
  --cyan:        #06b6d4;
  --violet:      #7c3aed;
  --green:       #10b981;
  --red:         #ef4444;
  --orange:      #f97316;
  --yellow:      #f59e0b;
  --purple:      #a855f7;
  --blue:        #3b82f6;
  --grad:        linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-hover:  linear-gradient(135deg, #6d28d9, #0891b2);
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', system-ui, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; }

code, pre { font-family: var(--mono); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(8,11,20,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-family: var(--mono);
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  user-select: none;
}

.nav-logo:hover { text-decoration: none; }

.logo-prompt {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.logo-name {
  color: var(--text);
  margin-left: 6px;
}

.logo-cursor {
  color: var(--cyan);
  font-weight: 300;
  animation: cursorBlink 1.1s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9em;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--cyan); }

.nav-discord {
  background: var(--grad);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85em !important;
  font-weight: 500;
  transition: opacity 0.2s !important;
}

.nav-discord:hover { opacity: 0.85; color: #fff !important; }

/* ===== BANNER ===== */
.teaser-banner {
  background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08), rgba(124,58,237,0.12));
  background-size: 200% 100%;
  animation: bannerShift 6s ease infinite;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.83em;
  color: var(--text-2);
  letter-spacing: 0.2px;
}

@keyframes bannerShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px var(--green); }
}

.teaser-banner a { color: var(--cyan); font-weight: 500; }
.teaser-banner a:hover { color: var(--text); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 20px 56px;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4em, 6vw, 4em);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tagline {
  font-size: 1.1em;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px;
}

section h2 {
  font-size: 1.5em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text);
}

/* ===== GLASS CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 32px rgba(124,58,237,0.15), 0 0 0 1px rgba(124,58,237,0.1);
  transform: translateY(-3px);
  text-decoration: none;
}

.card h3 {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
  color: var(--text);
}

.card p { color: var(--text-2); font-size: 0.9em; line-height: 1.6; }

.card .tag {
  display: inline-block;
  font-size: 0.72em;
  font-family: var(--mono);
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--violet);
  margin-bottom: 12px;
}

/* ===== CONSOLE BOX ===== */
.console-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text-2);
}

.console-box p { margin-bottom: 6px; }
.console-box ul { padding-left: 20px; margin-top: 8px; }
.console-box li { margin-bottom: 6px; color: var(--text-2); }
.console-box a { color: var(--cyan); }

/* ===== DISCORD CTA ===== */
.discord-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(88,101,242,0.1);
}

.discord-cta h2 {
  font-size: 1.4em;
  font-weight: 600;
  color: #7289da;
  margin-bottom: 12px;
}

.discord-cta p { color: var(--text-2); max-width: 400px; margin: 0 auto; }

.btn-discord {
  display: inline-block;
  background: #5865F2;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  margin-top: 20px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none !important;
}

.btn-discord:hover { background: #4752c4; transform: translateY(-1px); text-decoration: none !important; }

/* ===== EMAIL FORM ===== */
.signup-form { text-align: center; margin-top: 20px; }

.signup-form input[type="email"] {
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 280px;
  font-family: var(--sans);
  font-size: 0.9em;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
}

.signup-form input[type="email"]::placeholder { color: var(--text-muted); }

.signup-form button {
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 8px;
  font-family: var(--sans);
  transition: opacity 0.2s, transform 0.2s;
}

.signup-form button:hover { opacity: 0.88; transform: translateY(-1px); }
.note { text-align: center; font-size: 0.82em; margin-top: 10px; color: var(--text-muted); }

/* ===== BLOG POST CARDS ===== */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  display: block;
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.post-card:hover {
  border-color: rgba(6,182,212,0.4);
  box-shadow: 0 0 24px rgba(6,182,212,0.08);
  text-decoration: none;
}

.post-card h3 {
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: left;
  color: var(--text);
}

.post-card .meta { font-size: 0.8em; color: var(--text-muted); margin-bottom: 10px; }
.post-card .meta span { margin-right: 12px; }
.post-card p { color: var(--text-2); font-size: 0.9em; margin: 0; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72em;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid;
  margin-right: 6px;
}

.badge-web      { border-color: var(--cyan);   color: var(--cyan);   background: rgba(6,182,212,0.08); }
.badge-crypto   { border-color: var(--yellow);  color: var(--yellow);  background: rgba(245,158,11,0.08); }
.badge-forensics{ border-color: var(--purple);  color: var(--purple);  background: rgba(168,85,247,0.08); }
.badge-re       { border-color: var(--red);     color: var(--red);     background: rgba(239,68,68,0.08); }
.badge-pwn      { border-color: var(--orange);  color: var(--orange);  background: rgba(249,115,22,0.08); }
.badge-osint    { border-color: var(--blue);    color: var(--blue);    background: rgba(59,130,246,0.08); }
.badge-misc     { border-color: var(--text-muted); color: var(--text-muted); background: rgba(71,85,105,0.08); }

/* ===== CHALLENGE CARDS ===== */
.challenge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  backdrop-filter: blur(8px);
}

.challenge-card:hover { border-color: var(--border-hover); }
.challenge-card .chall-info h3 { margin: 0 0 4px; text-align: left; font-size: 0.95em; font-weight: 500; }
.challenge-card .chall-info p { margin: 0; color: var(--text-muted); font-size: 0.82em; }

.difficulty { font-family: var(--mono); font-size: 0.75em; padding: 3px 12px; border-radius: 20px; font-weight: 500; }
.diff-easy   { border: 1px solid var(--green);  color: var(--green);  background: rgba(16,185,129,0.08); }
.diff-medium { border: 1px solid var(--yellow); color: var(--yellow); background: rgba(245,158,11,0.08); }
.diff-hard   { border: 1px solid var(--red);    color: var(--red);    background: rgba(239,68,68,0.08); }

/* ===== PAGE HERO ===== */
.page-hero {
  text-align: center;
  padding: 56px 24px 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p { color: var(--text-2); font-size: 1em; }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 920px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 0.82em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }
