:root {
  --primary-color: #ffffff;
  --bg-color: #050505;
  --text-color: rgba(255, 255, 255, 0.85);
  --accent-color: #a0a0a0;
  --btn-hover: #111111;
  --btn-text: #050505;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, #1a1a1a 0%, #050505 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-visual {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.book-cover {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: translateY(-10px);
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 170, 0, 0.65) 0%, rgba(217, 119, 6, 0.35) 30%, transparent 60%),
              radial-gradient(circle at 60% 70%, rgba(30, 58, 138, 0.4) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.85);
  animation: sunriseGlow 6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes sunriseGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
    filter: blur(40px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(30px);
  }
}

.text-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.description {
  margin-bottom: 3rem;
}

.description p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--btn-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.secure-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Overlay Styles */
#ev-checkout-redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.overlay-card {
  width: min(460px, 100%);
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  margin: 0 auto 1.5rem;
  animation: evSpin 0.8s linear infinite;
}

@keyframes evSpin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }
  
  .text-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-wrapper {
    align-items: center;
    width: 100%;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .landing-container {
    padding: 3rem 1.25rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .book-cover {
    max-width: 85%;
    margin: 0 auto;
    display: block;
  }

  .btn {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }
}
