/* =============================================
   BLACKSWARM — UI UX Pro Max Design System
   Dark Theme · Responsive · Vanilla CSS
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #07070a;
  color: #e4e4e7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- COLORS ---------- */
:root {
  --bg-primary: #07070a;
  --bg-secondary: #0d0d12;
  --bg-card: #111118;
  --bg-card-hover: #17171f;
  --border: #1e1e2a;
  --border-hover: #2a2a3e;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #6b6b7b;
  --accent: #7c5cfc;
  --accent-hover: #9b7fff;
  --accent-glow: rgba(124, 92, 252, 0.15);
  --accent-subtle: rgba(124, 92, 252, 0.08);
  --gradient-1: linear-gradient(135deg, #7c5cfc, #5b8def);
  --gradient-2: linear-gradient(135deg, #7c5cfc, #a855f7);
  --gradient-text: linear-gradient(135deg, #a78bfa, #60a5fa);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 92, 252, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124, 92, 252, 0.35);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.btn-nav {
  background: var(--accent-subtle);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* ---------- SECTION ---------- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.header-shrink {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.logo-text {
  letter-spacing: -0.02em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link:not(.btn-nav):hover {
  color: var(--text-primary);
}

.nav-link:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:not(.btn-nav):hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(124, 92, 252, 0.06), transparent),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(91, 141, 239, 0.04), transparent),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(168, 85, 247, 0.04), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(124, 92, 252, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

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

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  color: var(--accent);
  opacity: 0.08;
  font-size: 2rem;
  animation: float 20s infinite ease-in-out;
}

.p1 { top: 15%; left: 10%; font-size: 3rem; animation-delay: 0s; }
.p2 { top: 25%; right: 15%; font-size: 2.5rem; animation-delay: -4s; opacity: 0.05; }
.p3 { bottom: 30%; left: 5%; font-size: 4rem; animation-delay: -8s; opacity: 0.04; }
.p4 { bottom: 20%; right: 10%; font-size: 2rem; animation-delay: -12s; }
.p5 { top: 50%; left: 55%; font-size: 1.5rem; animation-delay: -16s; opacity: 0.06; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-40px) rotate(4deg); }
}

/* =============================================
   TEAM GRID
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: var(--transition);
}

.card-prime::before { background: linear-gradient(90deg, #7c5cfc, #a78bfa); }
.card-ghost::before { background: linear-gradient(90deg, #5b8def, #60a5fa); }
.card-don::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.card-teach::before { background: linear-gradient(90deg, #10b981, #34d399); }
.card-miranda::before { background: linear-gradient(90deg, #ec4899, #f472b6); }

.team-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-avatar {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1;
}

.card-body {}

.card-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-role {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.card-role-coming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-coming {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 10px;
  border-radius: 100px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-desc strong {
  color: var(--text-primary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(124, 92, 252, 0.1);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 252, 0.15);
}

.tag-coming {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.15);
}

.card-coming {
  opacity: 0.7;
}

.card-coming:hover {
  opacity: 0.9;
}

/* =============================================
   PROJECTS GRID
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.project-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =============================================
   CTA
   ============================================= */
.cta-section {
  padding-bottom: 120px;
}

.cta-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 30% 20%, rgba(124, 92, 252, 0.06), transparent),
    radial-gradient(ellipse 300px 300px at 80% 80%, rgba(91, 141, 239, 0.04), transparent);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-small {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-brand .logo-icon {
  font-size: 1.25rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Header */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    align-items: flex-start;
    transition: var(--transition);
    z-index: 998;
  }

  .nav-open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 999;
    position: relative;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-card {
    padding: 40px 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .team-card {
    padding: 24px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .card-avatar {
    font-size: 2.5rem;
  }
}
