/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--nav-top-offset) 20px 0;
  pointer-events: none;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 24px rgba(0, 0, 0, 0.04);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 32px rgba(0, 0, 0, 0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a.active:not(.nav__cta) {
  color: var(--color-text);
}

.nav__links a.active:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-green);
}

.nav__links a.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav__links a.nav__cta:hover {
  color: var(--color-white);
  background: var(--color-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow-green);
}

.btn--primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--color-green-glow);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green-dark);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #1a1a1a;
  font-weight: 700;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ── Store badges ── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge__label {
  font-size: 0.65rem;
  opacity: 0.8;
}

.store-badge__name {
  font-size: 1rem;
  font-weight: 600;
}

.store-badge__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge__icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ── Feature cards ── */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-green-light);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-light);
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  color: var(--color-green-dark);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 4px 12px;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

/* ── Mode cards ── */
.mode-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mode-card--featured {
  border-color: var(--color-green);
  background: linear-gradient(160deg, var(--color-green-light) 0%, var(--color-white) 60%);
}

.mode-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: var(--color-gold);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.mode-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--color-green-dark);
}

.mode-card__icon svg {
  width: 26px;
  height: 26px;
}

.mode-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.mode-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-green);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav__links .nav__cta {
    margin-top: 12px;
    justify-content: center;
    width: 100%;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span {
    border-radius: 0;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__links a.active:not(.nav__cta)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
