/* =========================================================
   HOMEPAGE STYLES
   File: assets/css/homepage.css
   Purpose: Hero, about, services, featured mods, testimonials, CTA
   ========================================================= */

/* =======================================
   1. GLOBAL HOMEPAGE WRAPPER
   ======================================= */

.homepage {
  background: radial-gradient(circle at top, #151824 0, #050608 55%);
}

/* Common section spacing */
.section {
  padding: var(--space-lg) 0;
}

.section-inner {
  max-width: var(--gd-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Shared headings */

.section-heading {
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.section-heading h2 {
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--gd-muted);
  max-width: 52ch;
}

/* Eyebrow label */

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gd-accent-soft);
  margin-bottom: 0.4rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--gd-radius-pill);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gd-accent), var(--gd-accent-dark));
  color: #050608;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.9);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--gd-silver);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Inline text link */

.link-inline {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gd-muted);
}

.link-inline:hover {
  color: var(--gd-accent-soft);
}

/* =======================================
   2. HERO
   ======================================= */

.hero {
  position: relative;
  padding-top: calc(var(--space-xl) + 1.2rem);
  padding-bottom: var(--space-lg);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 179, 33, 0.16) 0, transparent 50%),
    radial-gradient(circle at top right, rgba(164, 186, 205, 0.16) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.9) 0, #050608 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--gd-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.3fr);
  gap: var(--space-lg);
  align-items: center;
  z-index: 1;
}

.hero-text h1 {
  font-size: 2.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-highlight {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gd-muted);
  margin-top: 0.3rem;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gd-accent-soft);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  max-width: 46ch;
  color: var(--gd-muted);
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.28rem 0.8rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gd-muted);
}

/* =======================================================
   HERO – RIGHT SIDE META PANEL
======================================================= */

.hero-showcase {
  flex: 0 0 36%;
  max-width: 420px;
  display: flex;
  justify-content: flex-end;
}

.hero-meta-panel {
  width: 100%;
  background: radial-gradient(circle at top,
              rgba(255, 215, 0, 0.12),
              rgba(6, 9, 16, 1));
  border-radius: 26px;
  padding: 1.5rem 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

/* subtle inner glow border */
.hero-meta-panel::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border-radius: 22px;
  border: 1px dashed rgba(255, 215, 0, 0.25);
  opacity: 0.35;
  pointer-events: none;
}

/* avatar + badges row */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.9);
  background: #05070c;
  flex-shrink: 0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* chips */
.hero-chip {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.hero-chip-primary {
  border-color: rgba(0, 255, 180, 0.9);
  color: #eaffff;
}

.hero-chip-accent {
  border-color: rgba(255, 215, 0, 0.9);
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.95),
    rgba(255, 170, 0, 0.9)
  );
  color: #050709;
}

/* stats row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero-stat-card {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 194, 214, 0.7);
  display: block;
  margin-bottom: 0.2rem;
}

.hero-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

/* footnote */
.hero-panel-note {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(200, 210, 232, 0.72);
}

/* responsive: stack hero on small screens */
@media (max-width: 960px) {
  .hero-showcase {
    max-width: 100%;
    flex: 1 1 100%;
    margin-top: 2rem;
    justify-content: flex-start;
  }

  .hero-meta-panel {
    margin: 0 auto;
  }
}


/* =========================
   HERO BACKGROUND
   ========================= */
.hero {
  position: relative;
  background-image: url("/assets/images/branding/hero-banner.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* dark overlay to keep text readable */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 200, 80, 0.12), transparent 60%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.96));
  pointer-events: none;
}



.tag-pill {
  padding: 0.24rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gd-silver);
}

.tag-pill.accent {
  border-color: rgba(244, 179, 33, 0.8);
}

/* Hero stat grid */

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(11, 13, 18, 0.9), rgba(13, 16, 24, 0.9));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.75rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gd-muted);
}

.stat-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.96rem;
}

/* Scroll indicator */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.scroll-indicator-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--gd-accent-soft), transparent);
  animation: scrollPulse 1.8s infinite;
}

.scroll-indicator-text {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gd-muted);
}

@keyframes scrollPulse {
  0% {
    opacity: 0.2;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0.2;
    transform: scaleY(0.6);
  }
}

/* =======================================
   3. ABOUT
   ======================================= */

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.about-card {
  background: linear-gradient(145deg, #181b24 0, #101218 100%);
  border-radius: 18px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gd-shadow-soft);
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.about-card p {
  color: var(--gd-muted);
  font-size: 0.9rem;
}

/* =======================================
   4. SERVICES
   ======================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.service-card {
  background: linear-gradient(145deg, #181b24 0, #101218 100%);
  border-radius: 18px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gd-shadow-soft);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(244, 179, 33, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
  border-color: rgba(244, 179, 33, 0.5);
}

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

.service-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(244, 179, 33, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gd-accent), var(--gd-accent-dark));
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.service-card p {
  color: var(--gd-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--gd-muted);
}

.service-list li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--gd-accent-soft);
}

/* =======================================
   5. FEATURED MODS TEASER
   ======================================= */

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.featured-card {
  max-width: 340px;
  flex: 1 1 280px;
}

.featured-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gd-accent-soft);
  margin-bottom: 0.4rem;
}

.featured-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.featured-card p {
  color: var(--gd-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.btn-text {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gd-silver);
}

.btn-text:hover {
  color: var(--gd-accent-soft);
}

/* =======================================
   6. TESTIMONIALS / COMMUNITY
   ======================================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.testimonial-card {
  background: linear-gradient(145deg, #181b24 0, #101218 100%);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--gd-shadow-soft);
}

.testimonial-quote {
  font-style: italic;
  color: var(--gd-silver);
  margin-bottom: 0.6rem;
}

.testimonial-name {
  font-size: 0.84rem;
  color: var(--gd-muted);
}

/* =======================================
   7. CTA
   ======================================= */

.cta {
  padding-bottom: calc(var(--space-xl));
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  background: linear-gradient(135deg, #181b24 0, #101218 50%, #24231a 100%);
  border-radius: 22px;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(244, 179, 33, 0.5);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* =======================================
   8. RESPONSIVE
   ======================================= */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  }

  .hero-stat-grid,
  .about-grid,
  .services-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    order: -1;
  }

  .hero {
    padding-top: var(--space-lg);
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-stat-grid,
  .about-grid,
  .services-grid,
  .featured-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 1.4rem 1.2rem;
  }
}

/* =======================================================
   SECTION SCROLL ANIMATIONS
======================================================= */

.section[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Default transform per animation type */
.section[data-animate="fade-up"] {
  transform: translateY(24px);
}

.section[data-animate="slide-left"] {
  transform: translateX(-32px);
}

.section[data-animate="slide-right"] {
  transform: translateX(32px);
}

/* When visible */
.section[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section[data-animate],
  .section[data-animate].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
