/* ================================
   Page-Specific Styles
   ================================ */

/* ---- Header / Topbar ---- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

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

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.header__brand h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header__logo {
  height: 36px;
  width: auto;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .header {
    padding: var(--space-4) 0;
  }

  .header__brand h1 {
    font-size: var(--font-size-3xl);
  }

  .header__logo {
    height: 44px;
  }
}

/* ---- Hero Section ---- */
.hero {
  padding: var(--space-12) 0 var(--space-16);
  background: linear-gradient(
    180deg,
    var(--color-bg-white) 0%,
    var(--color-bg) 100%
  );
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

.hero__title-brand {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.hero__image {
  max-width: 280px;
  width: 100%;
}

.hero__image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-16) 0 var(--space-20);
  }

  .hero__inner {
    flex-direction: row;
    text-align: left;
  }

  .hero__content {
    flex: 1;
  }

  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-xl);
  }

  .hero__image {
    max-width: 320px;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .hero__image {
    max-width: 380px;
  }
}

/* ---- Highlight Card Section ---- */
.highlight-section {
  margin-top: calc(var(--space-12) * -1);
  padding-bottom: var(--space-12);
}

.highlight-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--color-bg-white) 0%,
    #fff9f0 100%
  );
  border: 2px solid var(--color-secondary);
}

.highlight-card .card__icon {
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-secondary-dark)
  );
}

.highlight-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.highlight-card__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
}

/* ---- Downloads Section ---- */
.downloads-section {
  background-color: var(--color-bg-light);
}

/* ---- How to Take Section ---- */
.howtotake {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.howtotake::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  transform: translate(30%, -30%);
}

.howtotake__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.howtotake__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  color: var(--color-text-inverse);
}

.howtotake__text {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0.95;
}

.howtotake__alert {
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .howtotake__title {
    font-size: var(--font-size-4xl);
  }
}

/* ---- Formula Section ---- */
.formula-section {
  background-color: var(--color-bg-white);
}

.formula-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.formula-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.formula-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.formula-card__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.formula-card__item::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .formula-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Trust Section ---- */
.trust-section {
  background: linear-gradient(
    180deg,
    var(--color-bg-light) 0%,
    var(--color-bg) 100%
  );
}

.trust-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid var(--color-border);
}

.trust-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-success),
    #059669
  );
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  font-size: 40px;
}

.trust-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.trust-card__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Notices Section ---- */
.notices-section {
  background-color: var(--color-bg-white);
}

.notices-card {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

/* ---- Support Section ---- */
.support-section {
  background-color: var(--color-bg-light);
}

.support-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
}

.support-card__icon svg {
  width: 36px;
  height: 36px;
}

.support-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.support-card__text {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .support-links {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Footer ---- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
}

.footer__link {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-inverse);
}

.footer__divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.footer__copyright {
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__brand {
  color: var(--color-primary-light);
  font-weight: var(--font-weight-semibold);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 {
  animation-delay: 100ms;
}
.animate-delay-200 {
  animation-delay: 200ms;
}
.animate-delay-300 {
  animation-delay: 300ms;
}
