/* Type next for Part 3: The separate index.css file which will hold the custom styles specific to the index.html page (like the .hero-section, .hero-glow, .lively-card platform blocks, and .btn-glow). Next

Here is Part 3: The index.css file.

By extracting these, the homepage gets its beautiful custom hero section and bubbly interactive cards, without unnecessarily loading these styles on the login or registration pages!

With this cleanly split architecture, your layout.css provides the secure foundation for the whole application, while index.css acts as an optional overlay module injected dynamically by your Go templates using {{ if eq .Page "home" }}. Everything will be remarkably fast to parse and strictly scoped! 
 */


/* /static/css/index.css */
/* Styles specific to the Home/Index Page */

/* ==========================================================================
   1. Hero Section & Typography
   ========================================================================== */
.hero-section {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
  padding: 10px 0;
}

@media (max-width: 640px) {
  .hero-section {
     margin-bottom: 10px;
  }
}

@media (max-width: 340px) {
  .hero-section {
    margin-bottom: 5px;
  }
}

/* Hero Bottom Light Effect */
.hero-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 600px;
  height: 80px;
  background: radial-gradient(ellipse at center, var(--hero-glow-color) 0%, transparent 70%);
  filter: blur(25px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--text-main-hero);
}

[data-theme="dark"] .hero-title {
  color: var(--brand-neon);
  text-shadow: 0 0 30px var(--brand-neon-glow);
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 1.875rem;
  }
}

/* ==========================================================================
   2. Ecosystem Platform Cards Grid
   ========================================================================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns */
  gap: 28px;
  padding-bottom: 40px;
}

/* Social Tech Bubbly Cards */
.lively-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  /* Bouncy physics animation */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.lively-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-neon);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px var(--brand-neon-glow);
}

.card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 0.625rem;
  background: var(--bg-body);
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-color);
}

.card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--card-icon-bg);
  color: var(--brand-neon);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lively-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0px;
  flex-grow: 1;
  line-height: 1.5;
}

@media (max-width: 540px) {
  .lively-card p {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   3. Glowing CTA Buttons (Used inside the cards)
   ========================================================================== */
.btn-glow {
  background: var(--brand-neon);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--brand-neon-glow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 640px) {
  .btn-glow {
    font-size: 0.975rem;
    padding-left: 18px;
    padding-right: 5px;
    margin-top: 24px;
  }
}
@media (max-width: 450px) {
  .btn-glow {
    margin-top: 18px;
  }
}

.btn-glow:hover {
  background: var(--brand-neon-hover);
  box-shadow: 0 0 30px var(--brand-neon-glow);
  transform: scale(1.03);
}
