/* Components */

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 25px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 850;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease, border-color 220ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8052ff, #512fe4);
  box-shadow: 0 18px 44px rgba(111, 66, 255, 0.30);
}

.btn-secondary {
  color: #191d32;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(111, 66, 255, 0.34);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 66, 255, 0.22);
  box-shadow: 0 16px 42px rgba(24, 18, 61, 0.10);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111325;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(10, 12, 30, 0.18);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #07081f;
  box-shadow: 0 18px 38px rgba(10, 12, 30, 0.24);
}

.featured-product-actions {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.btn-view-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 1.4rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.82);

  color: #070821;

  border: 1px solid rgba(7, 8, 33, 0.08);

  text-decoration: none;

  font-size: 0.94rem;
  font-weight: 800;

  box-shadow:
    0 12px 28px rgba(7, 8, 33, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-view-product:hover {
  background: #ffffff;

  transform: translateY(-2px);

  box-shadow:
    0 18px 36px rgba(7, 8, 33, 0.14);
}

.btn-google-play-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.72rem;

  min-height: 50px;

  padding: 0 1.35rem;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #070821,
      #111433
    );

  color: #ffffff;

  border:
    1px solid rgba(255, 255, 255, 0.06);

  text-decoration: none;

  box-shadow:
    0 14px 32px rgba(7, 8, 33, 0.22),
    0 0 0 1px rgba(109, 53, 245, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-google-play-premium:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 40px rgba(7, 8, 33, 0.28),
    0 0 24px rgba(109, 53, 245, 0.16);
}

.google-play-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.google-play-text {
  color: #ffffff;

  font-size: 0.84rem;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;
}

.btn-play-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #070821;
  color: #ffffff;
  border: 1px solid rgba(7, 8, 33, 0.12);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(7, 8, 33, 0.16);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1);
}

.btn-play-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 8, 33, 0.22);
}

/* Product Sub-navigation */
.product-nav {
  width: min(1120px, calc(100% - 44px));
  margin: 18px auto 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(111, 66, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 255, 0.74));
  box-shadow:
    0 16px 44px rgba(24, 18, 61, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  scrollbar-width: none;
}

.product-nav::-webkit-scrollbar {
  display: none;
}

.product-nav-link {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #343a50;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.product-nav-link:hover,
.product-nav-link:focus-visible {
  color: var(--primary);
  background: rgba(111, 66, 255, 0.08);
  outline: none;
}

.product-nav-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(111, 66, 255, 0.14);
}

.product-nav-link.active {
  color: var(--primary-dark);
  background: rgba(111, 66, 255, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(111, 66, 255, 0.13),
    0 8px 20px rgba(111, 66, 255, 0.10);
}

/* Cards */
.hero-card {
  border-radius: 36px;
  padding: 1px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.44)) padding-box,
    linear-gradient(145deg, rgba(111,66,255,0.22), rgba(255,255,255,0.78), rgba(84,189,137,0.14)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 34px 90px rgba(20, 18, 50, 0.14),
    0 12px 40px rgba(111,66,255,0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms cubic-bezier(.2,.8,.2,1);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 42px 110px rgba(20,18,50,0.18),
    0 18px 48px rgba(111,66,255,0.10);
}

.featured-product-card {
  max-width: 540px;
  padding: 44px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 8%, rgba(111,66,255,0.14), transparent 36%),
    radial-gradient(circle at 10% 92%, rgba(84,189,137,0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.80));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.featured-product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 22px;
}

.featured-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 8px 18px rgba(90, 60, 255, 0.10) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-icon img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.hero-card:hover .featured-icon {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(90, 60, 255, 0.10) !important;
}

.featured-product-header p {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6f42ff;
  margin-bottom: 0;
}

.featured-title {
  font-size: clamp(34px,4vw,48px);
  margin-bottom: 18px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.featured-copy {
  font-size: 17px;
  line-height: 1.82;
  color: #40465c;
  margin-bottom: 30px;
  font-weight: 500;
}

/* Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(111, 66, 255, 0.10);
  border: 1px solid rgba(111, 66, 255, 0.18);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Focus styles */
.brand:focus-visible,
.nav-links a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible,
.btn-view-product:focus-visible,
.btn-google-play-premium:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(111, 66, 255, 0.34);
  outline-offset: 5px;
  border-radius: 12px;
}

/* Responsive Components */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    width: min(780px, calc(100% - 44px));
    min-height: auto;
    padding: 74px 0 70px;
    gap: 42px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(50px, 9vw, 74px);
    line-height: 1.06;
  }

  .lead {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .product-nav {
    width: calc(100% - 28px);
    margin-top: 14px;
    justify-content: flex-start;
    padding: 7px;
    border-radius: 22px;
  }

  .product-nav-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-view-product,
  .btn-google-play-premium,
  .nav-cta {
    max-width: 100%;
  }

  .hero {
    width: min(100% - 34px, 560px);
    padding: 56px 0 60px;
    gap: 34px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(42px, 12.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.022em;
    word-spacing: 0.04em;
    margin-bottom: 26px;
  }

  .lead {
    font-size: 18px;
    line-height: 1.62;
    margin-bottom: 32px;
  }

  .actions {
    align-items: stretch;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 56px;
  }

  .featured-product-card {
    padding: 30px;
    border-radius: 28px;
  }

  .featured-product-header {
    gap: 14px;
  }

  .featured-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 8px 18px rgba(90, 60, 255, 0.10) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .featured-icon img {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 520px) {
  .featured-product-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-view-product,
  .btn-google-play-premium {
    min-height: 46px;
  }
}

@media print {
  .product-nav,
  .nav-cta,
  .btn-primary,
  .btn-secondary,
  .btn-view-product,
  .btn-google-play-premium {
    box-shadow: none !important;
  }

  .hero {
    width: calc(100% - 68px);
    min-height: 0;
    padding: 42px 0 38px;
    gap: 44px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hero::after {
    opacity: 0.55;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 48px;
    padding: 0 20px;
  }

  .hero-card {
    padding: 18px;
  }

  .featured-product-card {
    padding: 28px !important;
  }
}
