:root {
  --color-midnight: #141829;
  --color-dusk: #1d2740;
  --color-indigo: #2f3c68;
  --color-lavender: #8f9bdf;
  --color-mist: #f4f6ff;
  --color-peach: #f7c7c8;
  --color-gold: #f3d18a;
  --color-white: #ffffff;
  --color-slate: #6a7295;

  --gradient-galaxy:
    radial-gradient(circle at 20% 20%, rgba(247, 199, 200, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(243, 209, 138, 0.25), transparent 60%),
    linear-gradient(135deg, #141829 0%, #1d2740 45%, #2f3c68 100%);
  --gradient-card: linear-gradient(135deg, rgba(243, 209, 138, 0.15), rgba(143, 155, 223, 0.35));
  --shadow-soft: 0 15px 45px rgba(21, 24, 40, 0.25);
  --radius-large: 24px;

  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--color-mist);
  background: var(--gradient-galaxy);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-mist);
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-mist);
}

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.section--light {
  background: rgba(244, 246, 255, 0.08);
}

.section--dark {
  background: rgba(20, 24, 41, 0.6);
}

.section__title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section__title--center {
  text-align: center;
}

.section__lead {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: rgba(244, 246, 255, 0.85);
}

.section__lead--center {
  text-align: center;
}

.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-peach);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(244, 246, 255, 0.85);
  margin-bottom: 1.75rem;
}

.hero__note {
  font-size: 0.9rem;
  color: rgba(244, 246, 255, 0.7);
}

.hero__art {
  justify-self: end;
  max-width: 380px;
  filter: drop-shadow(0 25px 45px rgba(20, 24, 41, 0.35));
}

.card {
  background: rgba(29, 39, 64, 0.7);
  padding: 1.75rem;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card--soft {
  background: rgba(29, 39, 64, 0.55);
}

.card--gradient {
  background: var(--gradient-card);
  color: var(--color-midnight);
}

.card--gradient .card__title,
.card--gradient li,
.card--gradient p {
  color: var(--color-midnight);
}

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

.card--message p {
  font-size: 1.1rem;
}

.card__signature {
  display: block;
  margin-top: 1.75rem;
  font-style: italic;
  color: rgba(244, 246, 255, 0.75);
}

.card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card__list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(244, 246, 255, 0.9);
}

.card__list li::before {
  content: '✶';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonials .testimonial {
  background: rgba(20, 24, 41, 0.55);
  padding: 1.5rem;
  border-radius: 18px;
  position: relative;
  color: rgba(244, 246, 255, 0.9);
}

.testimonial__name {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-gold);
}

.quote {
  font-size: 1.6rem;
  text-align: center;
  margin: 0;
  color: rgba(244, 246, 255, 0.9);
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(244, 246, 255, 0.65);
}

.btn {
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f3d18a, #f7c7c8);
  color: #141829;
  box-shadow: 0 15px 30px rgba(243, 209, 138, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(243, 209, 138, 0.6);
  color: var(--color-gold);
}

.btn-pill {
  background: rgba(243, 209, 138, 0.15);
  color: var(--color-gold);
  border: 1px solid transparent;
}

.btn-menu {
  background: transparent;
  border: none;
  padding: 0.25rem;
  display: none;
}

.btn-menu__line {
  width: 28px;
  height: 2px;
  background: var(--color-mist);
  display: block;
  margin: 6px 0;
  transition: transform 0.3s ease;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 10;
  background: rgba(20, 24, 41, 0.4);
  backdrop-filter: blur(18px);
}

.site-header--inner {
  position: static;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-mist);
}

.logo__icon {
  font-size: 1.5rem;
}

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

.site-nav__link,
.site-nav a {
  color: rgba(244, 246, 255, 0.75);
  font-weight: 600;
}

.site-nav__link.is-active,
.site-nav a.is-active {
  color: var(--color-gold);
}

.site-footer {
  padding: 2.5rem 0;
  background: rgba(20, 24, 41, 0.85);
  backdrop-filter: blur(12px);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(244, 246, 255, 0.7);
}

.footer-nav,
.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: rgba(244, 246, 255, 0.75);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(20, 24, 41, 0.4);
  color: var(--color-mist);
  font-size: 1rem;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: rgba(243, 209, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(243, 209, 138, 0.2);
}

.form__feedback {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-gold);
  min-height: 1.25rem;
}

.form__fieldset {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.form__checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(244, 246, 255, 0.75);
}

.checkout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-top: 3rem;
}

.checkout__summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 209, 138, 0.2);
}

.summary__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.55);
}

.summary__value {
  font-weight: 600;
  color: var(--color-gold);
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tabs__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(20, 24, 41, 0.3);
  color: rgba(244, 246, 255, 0.75);
  font-weight: 600;
}

.tabs__btn.is-active {
  background: rgba(243, 209, 138, 0.2);
  color: var(--color-gold);
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}

.pix-box {
  background: rgba(20, 24, 41, 0.4);
  padding: 1.25rem;
  border-radius: 18px;
  margin-bottom: 1.25rem;
}

.mp-checkout {
  margin: 1.25rem 0;
}

.mp-note {
  font-size: 0.9rem;
  color: rgba(244, 246, 255, 0.7);
}

.mp-warning {
  font-size: 0.95rem;
  color: var(--color-peach);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(247, 199, 200, 0.12);
}

.newsletter .form__input {
  background: rgba(244, 246, 255, 0.1);
}

.book-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  color: rgba(244, 246, 255, 0.7);
}

.chapters {
  padding-left: 1.25rem;
  color: rgba(244, 246, 255, 0.85);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: rgba(244, 246, 255, 0.75);
}

.contact-info li {
  margin-bottom: 0.75rem;
}

.starfield {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23f3d18a'/%3E%3Ccircle cx='120' cy='220' r='1' fill='%23f7c7c8'/%3E%3Ccircle cx='320' cy='180' r='1' fill='%238f9bdf'/%3E%3Ccircle cx='250' cy='60' r='1' fill='%23f3d18a'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  animation: twinkle 12s infinite linear;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.starfield--inner {
  position: absolute;
}

@keyframes twinkle {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.35;
  }
}

.card--center {
  text-align: center;
}

.feature-cards .card {
  text-align: center;
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    background: rgba(20, 24, 41, 0.95);
    padding: 2rem;
    border-radius: 18px;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .btn-menu {
    display: inline-flex;
  }

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

  .hero__inner {
    text-align: center;
  }

  .hero__art {
    justify-self: center;
  }

  .site-footer__grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
