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

:root {
  --bg: #050816;
  --primary: #7c3aed;
  --primary-light: #9f67ff;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glow-primary: rgba(124, 58, 237, 0.4);
  --glow-accent: rgba(59, 130, 246, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover { color: var(--white); }

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 80px;
  background: transparent;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--white);
  font-weight: 700;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 0 30px var(--glow-primary);
}

.btn-primary:hover {
  box-shadow: 0 0 50px var(--glow-primary), 0 0 20px var(--glow-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
  margin-top: 32px;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
}

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

/* ===== MAIN ===== */
main { padding: 80px 0; }

/* ===== SECTIONS ===== */
.section-3d {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: border-color 0.3s ease;
}

.section-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), rgba(59, 130, 246, 0.5), transparent);
}

.section-3d:hover { border-color: rgba(124, 58, 237, 0.2); }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

h2 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
}

.muted { color: var(--text-muted); }

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }

.card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--white); }

.card p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* ===== LIST ===== */
.list { padding-left: 0; list-style: none; }

.list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}

.list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.contact-item strong {
  display: block;
  color: var(--primary-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--accent-light); }

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 40px 0;
}

footer p { margin: 6px 0; font-size: 0.9rem; }
footer a { color: var(--accent-light); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--white); }

.footer-links { margin-top: 16px; display: flex; gap: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  nav a {
    margin-left: 0;
    margin-right: 14px;
    display: inline-block;
    margin-top: 6px;
  }

  .section-3d { padding: 28px 20px; }
  .stats-bar { gap: 24px; }
}
