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

:root {
  --navy: #0a1628;
  --navy-dark: #1a1a2e;
  --red: #b22222;
  --red-hover: #8b1a1a;
  --white: #ffffff;
  --offwhite: #f5f5f5;
  --text-light: #eaeaea;
  --text-dark: #000000;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-dark: rgba(0, 0, 0, 0.1);
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container: 1280px content + 64px padding each side = 1440px max viewport match */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.text-white {
  color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-nav {
  padding: 4px 10px;
}

.btn-footer-subscribe {
  border: 1px solid var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow svg {
  flex-shrink: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.tagline {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tagline-light {
  color: var(--white);
}

.section-title {
  max-width: 768px;
}

.section-title-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title-center .section-title-content {
  align-items: center;
}

.section-title-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title .tagline {
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 84px;
  font-weight: 400;
  line-height: 92.4px;
  letter-spacing: -0.84px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: -0.6px;
}

h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 41.6px;
  letter-spacing: -0.32px;
}

h4 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 36.4px;
}

.section-desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: relative;
  z-index: 1000;
  background: var(--navy);
  height: 72px;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-link {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--text-light);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-dropdown-trigger svg {
  width: 24px;
  height: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ============================================
   HERO
   Figma: 1440x900, padding 112px top/bottom, 64px left/right, gap 80px
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: flex;
  gap: 80px;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  min-width: 0;
}

.hero-left h1 {
  color: var(--white);
}

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

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.hero-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--white);
}

/* ============================================
   WHAT WE OFFER
   Figma: bg #f5f5f5, padding 100px top/bottom 64px left/right, gap 80px between title and cards
   ============================================ */
.section-offers {
  padding: 100px 0;
  background: var(--offwhite);
}

.section-offers .section-title {
  margin-bottom: 80px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.offer-card {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--white);
}

.offer-card-img {
  height: 171px;
  overflow: hidden;
}

.offer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.offer-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card .tagline {
  color: var(--white);
}

.offer-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card-text h3 {
  color: var(--white);
}

.offer-card-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--white);
}

.offer-card .link-arrow {
  color: var(--white);
}

/* ============================================
   GET STARTED
   Figma: bg #1a1a2e, padding 112px top/bottom 64px left/right, gap 80px
   ============================================ */
.section-getstarted {
  padding: 112px 0;
  background: var(--navy-dark);
}

.getstarted-grid {
  display: flex;
  gap: 80px;
  align-items: center;
}

.getstarted-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.getstarted-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.getstarted-text .section-desc {
  color: var(--white);
}

.checklist {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.checklist-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item h4 {
  color: var(--white);
}

.checklist-item p {
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
}

.getstarted-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.getstarted-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  height: 640px;
}

.getstarted-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   THREE STEPS
   Figma: bg #f5f5f5, padding 112px top/bottom 64px left/right, gap 80px
   Step cards: 405x367, bg image + black overlay, padding 32px, gap 24px, radius 16
   ============================================ */
.section-steps {
  padding: 112px 0;
  background: var(--offwhite);
}

.section-steps .section-title {
  margin-bottom: 80px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background-color: var(--text-dark);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 367px;
}

.step-card-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.step-card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: -0.4px;
  color: var(--white);
}

.step-card p {
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
}

.step-card .link-arrow {
  color: var(--white);
}

/* ============================================
   FAQ
   Figma: bg #0a1628, padding 112px top/bottom 64px left/right, gap 80px
   Accordion: border top on each item (white), 20px padding top/bottom on question, gap 24px
   ============================================ */
.section-faq {
  padding: 112px 0;
  background: var(--navy);
}

.section-faq .section-title {
  margin-bottom: 80px;
}

.accordion {
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
  border-top: 1px solid var(--white);
}

.accordion-item {
  border-bottom: 1px solid var(--white);
}

.accordion-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 24px;
}

.accordion-question span {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--white);
  text-align: left;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-answer {
  max-height: 200px;
}

.accordion-answer p {
  font-size: 18px;
  line-height: 27px;
  color: var(--text-light);
  padding-bottom: 20px;
}

.faq-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.faq-contact h3 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: -0.4px;
  color: var(--white);
}

.faq-contact p {
  color: var(--white);
  font-size: 20px;
  line-height: 30px;
}

.faq-contact-actions {
  display: flex;
  gap: 24px;
}

/* ============================================
   JOIN COMMUNITY
   Figma: bg #f5f5f5, padding 112px top/bottom 64px left/right, gap 80px
   Two columns: left content, right image 600x400 radius 16
   ============================================ */
.section-community {
  padding: 112px 0;
  background: var(--offwhite);
}

.community-grid {
  display: flex;
  gap: 80px;
  align-items: center;
}

.community-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.community-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.community-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  height: 400px;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   STAY IN THE GAME (EMAIL SIGNUP)
   Figma: bg #1a1a2e, padding 112px top/bottom 64px left/right
   Card: bg image + #000 base, padding 64px, radius 16, border white, centered content
   ============================================ */
.section-signup {
  padding: 112px 0;
  background: var(--navy-dark);
}

.signup-card {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('assets/images/signup-bg.jpg') center / cover no-repeat;
  border: 1px solid var(--white);
  border-radius: 16px;
  padding: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.signup-content {
  max-width: 768px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 513px;
  max-width: 100%;
}

.signup-form-row {
  display: flex;
  gap: 16px;
}

.signup-input {
  flex: 1;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.signup-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.signup-input:focus {
  border-color: var(--red);
}

.signup-disclaimer {
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   BUILT FOR ATHLETES
   Figma: bg #f5f5f5, padding 112px top/bottom 64px left/right
   Section title centered, gap 80px to content
   Features: 4 cols, gap 32px, image 296x160 radius 16
   Content gap 64px (between row and potential other content)
   Actions centered below, gap 24px
   ============================================ */
.section-athletes {
  padding: 112px 0;
  background: var(--offwhite);
}

.section-athletes .section-title {
  margin-bottom: 80px;
}

.features-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-img {
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 41.6px;
  letter-spacing: -0.32px;
}

.feature-text p {
  font-size: 18px;
  line-height: 27px;
}

.athletes-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 80px;
}

/* ============================================
   FOOTER
   Figma: bg #1a1a2e, padding 80px top/bottom 64px left/right
   Top: newsletter (500px) + links (flex), gap 128px
   Bottom: divider + credits row, gap 32px
   ============================================ */
.footer {
  background: var(--navy-dark);
  padding: 80px 0;
}

.footer-top {
  display: flex;
  gap: 128px;
  margin-bottom: 80px;
  min-height: 248px;
}

.footer-newsletter {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  display: inline-block;
}

.footer-newsletter-desc {
  font-size: 18px;
  line-height: 27px;
  color: var(--white);
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-form-row {
  display: flex;
  gap: 16px;
}

.footer-input {
  flex: 1;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-input:focus {
  border-color: var(--red);
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 40px;
  flex: 1;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  color: var(--white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
}

.footer-col li {
  padding: 8px 0;
}

.footer-col a {
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-col a img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-divider {
  height: 1px;
  background: var(--white);
  margin-bottom: 32px;
}

.footer-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-credits p {
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  transition: opacity 0.2s;
}

.footer-legal a:hover {
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .nav-container {
    padding: 0 40px;
  }

  .cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 64px;
  }

  .footer-newsletter {
    width: 100%;
  }

  h1 {
    font-size: 64px;
    line-height: 70.4px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  .nav-container {
    padding: 0 24px;
  }

  h1 {
    font-size: 48px;
    line-height: 52.8px;
  }

  h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }

  .hero-grid {
    flex-direction: column;
    gap: 40px;
  }

  .getstarted-grid {
    flex-direction: column;
  }

  .getstarted-image {
    height: 300px;
  }

  .checklist {
    flex-direction: column;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .community-grid {
    flex-direction: column;
  }

  .community-image {
    height: 300px;
  }

  .signup-card {
    padding: 32px;
  }

  .signup-form {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .footer-credits {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-offers,
  .section-getstarted,
  .section-steps,
  .section-faq,
  .section-community,
  .section-signup,
  .section-athletes {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  .nav-left {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-left.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
  }

  h1 {
    font-size: 36px;
    line-height: 39.6px;
  }

  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .features-row {
    grid-template-columns: 1fr;
  }

  .signup-form-row {
    flex-direction: column;
  }

  .footer-form-row {
    flex-direction: column;
  }

  .step-card h3 {
    font-size: 30px;
    line-height: 40px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}