/* ============================================
   home.css — Homepage-specific styles
   ============================================ */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--text-primary);
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56,29,146,0.06);
  border: 1px solid rgba(56,29,146,0.2);
  color: var(--purple);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

/* Terminal Block */
.hero-terminal {
  background: #0d1117;
  border: 1px solid rgba(56,29,146,0.2);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(11,6,32,0.12);
}

.terminal-bar {
  background: #161b22;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }

.t-title {
  margin-left: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #10b981;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.terminal-cursor {
  animation: blink 1s step-end infinite;
  color: #0693e3;
}

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

/* Hero CTA buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-cyan-purple);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56,29,146,0.3);
  filter: brightness(1.1);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56,29,146,0.06);
  border: 1px solid var(--border-accent);
  color: var(--purple);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(56,29,146,0.1);
  border-color: var(--purple);
  transform: translateY(-3px);
}

/* Hero Visual — Cyber Globe */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.cyber-globe {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,29,146,0.15);
}
.ring-1 { width: 220px; height: 220px; animation: spin 20s linear infinite; border-color: rgba(6,147,227,0.2); }
.ring-2 { width: 300px; height: 300px; animation: spin 30s linear infinite reverse; border-color: rgba(56,29,146,0.15); border-style: dashed; }
.ring-3 { width: 380px; height: 380px; animation: spin 45s linear infinite; border-color: rgba(5,150,105,0.1); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.globe-core {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(56,29,146,0.15), rgba(6,147,227,0.1));
  border: 1px solid rgba(56,29,146,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: core-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(56,29,146,0.08), inset 0 0 30px rgba(56,29,146,0.03);
  z-index: 2;
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(56,29,146,0.08); }
  50% { box-shadow: 0 0 70px rgba(56,29,146,0.15), 0 0 120px rgba(6,147,227,0.08); }
}

.globe-orbit {
  position: absolute;
  border-radius: 50%;
}
.o1 { width: 220px; height: 220px; animation: spin 8s linear infinite; }
.o2 { width: 300px; height: 300px; animation: spin 14s linear infinite reverse; }
.o3 { width: 380px; height: 380px; animation: spin 20s linear infinite; }

.orbit-dot {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--cyan);
}
.orbit-dot.d2 { background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.orbit-dot.d3 { background: var(--green); box-shadow: 0 0 12px var(--green); }

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 3rem;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suf {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-cyan-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: top;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== ROADMAP CARDS ===== */
.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.roadmap-card {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow-card);
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: var(--transition);
}

.roadmap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.roadmap-card:hover::before { opacity: 1; }
.roadmap-card:hover .rm-arrow { transform: translateX(5px); }

.card-red::before, .card-red .rm-icon { background: var(--grad-red); }
.card-red:hover { border-color: rgba(220,38,38,0.3); }
.card-blue::before { background: linear-gradient(135deg, #2563eb, #0693e3); }
.card-blue:hover { border-color: rgba(37,99,235,0.3); }
.card-green::before { background: var(--grad-green); }
.card-green:hover { border-color: rgba(5,150,105,0.3); }
.card-purple::before { background: linear-gradient(135deg, #381d92, #6d28d9); }
.card-purple:hover { border-color: rgba(56,29,146,0.3); }
.card-cyan::before { background: linear-gradient(135deg, #0693e3, #06b6d4); }
.card-cyan:hover { border-color: rgba(6,147,227,0.3); }
.card-orange::before { background: linear-gradient(135deg, #ea580c, #ca8a04); }
.card-orange:hover { border-color: rgba(234,88,12,0.3); }

.rm-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(56,29,146,0.04);
}

.roadmap-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.roadmap-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rm-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.rm-tags span {
  background: rgba(56,29,146,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.rm-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
}

/* ===== BLOG FEATURED GRID ===== */
.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.blog-featured {
  padding: 2rem;
}
.blog-featured .blog-card-title { font-size: 1.5rem; }

.blog-side-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-small {
  padding: 1rem 1.25rem;
}
.blog-small h4 { font-size: 0.92rem; }

.blog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-standard { padding: 1.5rem; }

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--bg-card-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow-card);
}
.cat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.cat-card:hover h4 { color: var(--purple); }
.cat-quantum:hover { border-color: rgba(56,29,146,0.4); box-shadow: var(--shadow-glow-purple); }

.cat-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.cat-card h4 { font-size: 0.9rem; margin-bottom: 0.35rem; transition: var(--transition-fast); }
.cat-card span { color: var(--text-muted); font-size: 0.78rem; font-family: var(--font-mono); }

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .roadmap-cards { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 7rem 1.5rem 3rem; }
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-grid-3 { grid-template-columns: 1fr; }
  .roadmap-cards { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { gap: 0; }
  .stat-item { padding: 0.5rem 1.5rem; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
