/*
 * Global Styles for FTA Lab Website
 *
 * This stylesheet defines a high‑energy, modern design inspired by
 * performance marketing and the prestige of ranked play. Colors are
 * deliberately bold: dark backgrounds, vibrant red accents and warm
 * gold tones signal intensity, exclusivity and competitive drive.
 */

/* CSS Variables */
:root {
  --color-bg: #0a0a10; /* base dark background */
  --color-surface: #111119; /* slightly lighter surface */
  --color-overlay: rgba(255, 255, 255, 0.05); /* subtle overlay */
  --color-text: #f4f4f8; /* primary text */
  --color-muted: #8a8a9a; /* secondary text */
  --color-accent: #e50914; /* energy red accent */
  --color-accent-light: #ff3347; /* lighter accent for gradients */
  --color-premium: #d4af37; /* gold for premium items */
  --color-card-border: rgba(255, 255, 255, 0.15);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--color-accent);
}

/* Logo icon style */
.logo-icon {
  width: 32px;
  height: 32px;
  /* Adjust vertical alignment so the icon sits closer to the FTA text */
  transform: translateY(-3px);
}
.main-nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text);
  /* Use the stadium lights image as a subtle hero backdrop with overlays.  */
  background-image:
    linear-gradient(180deg, rgba(10, 10, 16, 0.8) 0%, rgba(10, 10, 16, 0.8) 100%),
    radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.3), transparent 60%),
    url("assets/images/generated/madden_hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-content {
  padding-top: 6rem; /* offset for fixed header */
  max-width: 700px;
}
.headline {
  font-family: var(--font-heading);
  font-size: 6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.subhead {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border: 2px solid var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-card-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Problem Section */
.problem-section {
  background-color: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.problem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.problem-col {
  flex: 1 1 300px;
}
.problem-col h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.problem-col p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* Section Titles & Subtitles */
.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle,
.rank-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Game Selection Section */
.select-section {
  background: var(--color-bg);
  padding-bottom: 6rem;
}
.select-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.select-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  padding: 2rem;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Prepare each card to accept a background image via class selectors. */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.select-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.select-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-top: 1rem;
  color: var(--color-accent);
}

/* Assign unique background images to the game select cards.  */
.madden-card {
  /* Madden gameplay screenshot for Madden card */
  background-image: linear-gradient(rgba(10, 10, 16, 0.7), rgba(10, 10, 16, 0.7)), url("assets/images/generated/madden_gameplay.png");
}

.cfb-card {
  /* College football gameplay or scoreboard screenshot for CFB card */
  background-image: linear-gradient(rgba(10, 10, 16, 0.7), rgba(10, 10, 16, 0.7)), url("assets/images/generated/cfb_gameplay.png");
}
.select-description {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  min-height: 60px;
}
.icon-wrapper {
  /* Hide the SVG icons when background images are used for the cards */
  display: none;
  height: 60px;
}

/* Rank Ladder Section */
.rank-section {
  background: var(--color-surface);
  padding-top: 4rem;
  padding-bottom: 6rem;
}
.rank-ladder {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.rank-node {
  flex: 1;
  margin: 0.5rem;
  padding: 1rem;
  text-align: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1rem;
  position: relative;
  color: var(--color-text);
  min-width: 80px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}
.rank-node:hover {
  transform: scale(1.1);
}
.rank-node.bronze {
  background: radial-gradient(circle at top left, #8c6239, #6b4f30);
}
.rank-node.silver {
  /* Silver rank: lighter, more metallic gradient */
  background: radial-gradient(circle at top left, #d4d4d4, #b0b0b0);
  color: #0a0a10;
}
.rank-node.gold {
  background: radial-gradient(circle at top left, #d4af37, #b79c2b);
  color: #0a0a10;
}
.rank-node.elite {
  /* Elite rank: red/orange gradient */
  background: radial-gradient(circle at top left, #f25043, #c13f30);
}
.rank-node.hero {
  /* Hero rank: vibrant blue gradient */
  background: radial-gradient(circle at top left, #4faaff, #3c7ac1);
}
.rank-node.champion {
  /* Champion rank: purple gradient */
  background: radial-gradient(circle at top left, #a152e0, #7c39b1);
}
.rank-node.legend {
  /* Legend rank: regal gold gradient */
  background: radial-gradient(circle at top left, #d8b65d, #b08935);
}
.rank-node .sub-tier {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0;
  margin-top: 0.2rem;
}

/* Membership & Premium Sections */
.membership-section,
.premium-section {
  background: var(--color-bg);
  padding-bottom: 6rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.product-content h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.product-content .price {
  font-size: 1.5rem;
  color: var(--color-premium);
  margin-bottom: 1rem;
  font-weight: 600;
}
.features {
  list-style: none;
  text-align: left;
  margin: 1rem 0 1.5rem;
  padding-left: 0;
}
.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Other products grid */
.other-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.other-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.other-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.other-card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.other-card .price {
  font-size: 1.1rem;
  color: var(--color-premium);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Price note for pre‑sale labels */
.price-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-left: 0.3rem;
}
.other-card .desc {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.other-card .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Proof Section */
.proof-section {
  background: var(--color-surface);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.stat h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.stat p {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.testimonial {
  margin-top: 3rem;
  font-style: italic;
  color: var(--color-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}
.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-premium);
}

/* Access Section */
.access-section {
  background: var(--color-bg);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.access-steps {
  list-style: none;
  counter-reset: step;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 0;
}
.access-steps li {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  color: var(--color-muted);
}
.access-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.callout {
  text-align: center;
  margin-top: 2rem;
}

/* FAQ Section */
.faq-section {
  background: var(--color-surface);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Gallery Section */
.gallery-section {
  background: var(--color-bg);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  /* Crop images to focus on the centre of the field rather than overlays */
  object-fit: cover;
  object-position: center;
  /* Increase brightness so gameplay action is clearer */
  filter: brightness(0.85);
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text);
  text-align: center;
}
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}
.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent);
  cursor: pointer;
  outline: none;
  list-style: none;
}
.faq-item p {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Community Section */
.community-section {
  background: var(--color-surface);
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

/* Content Section */
.content-section {
  background: var(--color-bg);
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

.content-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.content-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Policies Section */
.policies-section {
  background: var(--color-bg);
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.policy-list {
  list-style: none;
  margin-bottom: 2rem;
  padding-left: 0;
}
.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Footer */
.site-footer {
  background: #07070d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  color: var(--color-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-nav a {
  margin: 0 0.5rem;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.footer-support a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .headline {
    font-size: 4rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .rank-ladder {
    flex-direction: column;
    align-items: center;
  }
  .rank-node {
    margin: 0.5rem 0;
    max-width: 120px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 0.5rem;
  }
  .problem-grid {
    flex-direction: column;
  }
  .select-card {
    width: 100%;
  }
  .product-card {
    margin: 1.5rem 0;
  }
}