/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(3, 6, 7, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(243, 189, 69, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
  line-height: 1.3;
  text-transform: uppercase;
}

.brand-text strong {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/02-home-background-hero.png");
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 6, 7, 0.95) 0%,
    rgba(3, 6, 7, 0.75) 45%,
    rgba(3, 6, 7, 0.4) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-logo {
  width: 80px;
  height: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gold-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-visual .watch-frame {
  width: clamp(200px, 28vw, 320px);
}

.garmin-badge {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* Sections common */
section {
  padding-block: var(--section-pad);
}

section:nth-child(even) {
  background: var(--bg-navy);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.features-grid .feature-card:not(:last-child) {
  border-right: 1px solid rgba(243, 189, 69, 0.2);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.how-grid h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--gold);
  margin-bottom: 2rem;
}

.how-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-flow .how-step {
  position: relative;
}

.how-flow .how-step + .how-step {
  margin-left: 1.5rem;
}

.how-flow .how-step + .how-step::before {
  content: "›";
  position: absolute;
  left: -1.25rem;
  top: 35%;
  color: var(--gold);
  font-size: 1.25rem;
}

/* Screenshots */
.screenshots-row {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.screenshots-scroll {
  display: none;
}

/* CTA */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: 3rem;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/02-home-background-hero.png");
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: 0;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 7, 0.6);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-brand img {
  width: 72px;
}

.cta-text h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.cta-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ section */
#faq {
  background: var(--bg-deep);
}

#faq .section-title {
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(243, 189, 69, 0.1);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: 48px;
  margin-bottom: 0.75rem;
}

.footer-brand h3 {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 1.5rem;
  border-top: 1px solid rgba(19, 43, 60, 0.8);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .how-flow {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .site-header .btn-ghost {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .features-grid .feature-card:nth-child(2) {
    border-right: none;
  }

  .features-grid .feature-card:not(:last-child) {
    border-right: none;
  }

  .features-grid .feature-card:nth-child(odd) {
    border-right: 1px solid rgba(243, 189, 69, 0.2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .cta-brand {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card:nth-child(odd) {
    border-right: none;
  }

  .screenshots-row {
    display: none;
  }

  .screenshots-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
