@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #020817;
  --bg-panel: #0a1628;
  --bg-card: #0d1f38;
  --accent-cyan: #00d4ff;
  --accent-blue: #2563eb;
  --accent-blue-bright: #3b82f6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: rgba(0, 212, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Animated starfield background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 35%, rgba(0,212,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  45%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 8%;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(2, 8, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header h1 {
  margin: 0;
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-left a:hover {
  color: var(--accent-cyan);
  background: var(--accent-glow);
}

.nav-right a {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
}

/* Login button - outlined */
.nav-right a:first-of-type {
  color: var(--accent-cyan);
  border: 1px solid var(--border-bright);
  background: transparent;
}

.nav-right a:first-of-type:hover {
  background: var(--accent-glow);
  border-color: var(--accent-cyan);
}

/* Sign Up button - filled */
.nav-right a:last-of-type {
  color: #fff;
  background: var(--accent-blue);
  border: 1px solid transparent;
  font-weight: 600;
}

.nav-right a:last-of-type:hover {
  background: var(--accent-blue-bright);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.nav-right span {
  font-size: 13px;
  color: var(--accent-cyan);
  padding: 6px 10px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 110px 8% 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 10% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    url('cyber_bg.jpg') center/cover no-repeat;
  filter: brightness(0.35);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-bright);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  max-width: 680px;
  letter-spacing: -0.01em;
}

.hero h2 span {
  color: var(--accent-cyan);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.hero p {
  font-size: 17px;
  max-width: 600px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.button::after {
  content: '→';
  transition: transform 0.2s ease;
}

.button:hover {
  background: var(--accent-blue-bright);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.button:hover::after {
  transform: translateX(4px);
}

/* ── CARDS SECTION ── */
.section {
  padding: 80px 8%;
  position: relative;
  z-index: 1;
}

.section > h2 {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 28px;
  background: var(--bg-panel);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header {
    padding: 0 5%;
    height: auto;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-left {
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-right {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    width: 100%;
  }

  .hero {
    padding: 70px 5% 60px;
  }

  .section {
    padding: 60px 5%;
  }
}