/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --void:   #050508;
  --deep:   #080810;
  --ring:   #1a3aff;
  --haze:   #0d1f6e;
  --ice:    #4d7fff;
  --corona: #c8d8ff;
  --text:   #ddd9d0;
  --muted:  #6a6a7a;

  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--void);
}

#sphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Title — sits BELOW the sphere in the lower third */
.hero-title-wrap {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
  pointer-events: none;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9.5vw, 7rem);
  line-height: 1.0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #eef2ff;
  text-shadow:
    0 0 12px rgba(200, 220, 255, 0.65),
    0 0 40px rgba(80,  50, 255, 0.25),
    0 0 90px rgba(140,  0,  80, 0.16),
    0 0 200px rgba(60,   0, 140, 0.10);
}

/* Author + CTA — anchored to the bottom */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 8vh;
  text-align: center;
}

.pre-title {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.6em;
  color: var(--muted);
  text-transform: uppercase;
}

.presale-note {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(0, 200, 255, 0.55);
  text-transform: uppercase;
  margin-top: -0.5rem;
}

.presale-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.5rem;
  margin-top: -1.5rem;
  letter-spacing: 0.04em;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 3rem;
  border: 1px solid rgba(0, 200, 255, 0.30);
  color: #00ccff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
  animation: btn-pulse 3.5s ease-in-out infinite;
}

.cta-btn:hover {
  border-color: #00ccff;
  color: #ffffff;
  box-shadow: 0 0 28px rgba(0, 180, 255, 0.30), 0 0 6px rgba(200, 0, 80, 0.15);
  animation: none;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0   rgba(0, 180, 255, 0),    0 0 0   rgba(180, 0, 60, 0); }
  50%       { box-shadow: 0 0 18px rgba(0, 180, 255, 0.20), 0 0 8px rgba(180, 0, 60, 0.10); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0; /* revealed by GSAP after delay */
}

.scroll-arrow {
  display: block;
  color: rgba(107, 107, 130, 0.5);
  font-size: 0.9rem;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(9px); }
}

/* ============================================================
   SECTION DIVIDER — thin blue line between each section
   ============================================================ */
section {
  padding: 7rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid rgba(77, 127, 255, 0.07);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.6em;
  color: var(--ice);
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* ============================================================
   CITAÇÕES
   ============================================================ */
.citacoes {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
  border-top: none; /* hero already has visual separation */
}

.quote { border: none; padding: 0; }

.quote::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--ice);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--text);
}

.quote p .word { display: inline-block; }

/* ============================================================
   O LIVRO
   ============================================================ */
.livro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .livro-grid { grid-template-columns: 1fr 1fr; }
}

.livro-texto p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.livro-texto p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-style: italic;
}

.livro-capa { display: flex; justify-content: center; }

.book-cover-img {
  width: 100%;
  max-width: 260px;
  border-radius: 2px;
  min-height: 370px;
  object-fit: cover;
  background-color: var(--deep);
  filter:
    drop-shadow(0 0 50px rgba(26, 58, 255, 0.5))
    drop-shadow(0 0 110px rgba(10, 26, 150, 0.18));
}

/* ============================================================
   O AUTOR
   ============================================================ */
.autor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 640px) {
  .autor-grid { grid-template-columns: 200px 1fr; }
}

.autor-foto-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .autor-foto-wrap { width: 180px; height: 180px; margin: 0; }
}

.autor-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--deep);
  position: relative;
  z-index: 1;
}

.autor-foto-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(77, 127, 255, 0.28);
  box-shadow: 0 0 24px rgba(77, 127, 255, 0.07);
  animation: ring-pulse 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes ring-pulse {
  0%, 100% { border-color: rgba(77,127,255,0.28); box-shadow: 0 0 24px rgba(77,127,255,0.07); }
  50%       { border-color: rgba(77,127,255,0.52); box-shadow: 0 0 40px rgba(77,127,255,0.15); }
}

.autor-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.autor-bio p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ============================================================
   ADQUIRIR
   ============================================================ */
.adquirir-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 3rem;
}

.retailer-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(77, 127, 255, 0.1);
  gap: 1px;
  background-color: rgba(77, 127, 255, 0.06);
}

@media (min-width: 560px) {
  .retailer-grid { grid-template-columns: 1fr 1fr; }
}

.retailer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  background-color: var(--deep);
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.retailer-card:hover {
  border-left-color: var(--ice);
  background-color: #0e0e1c;
}

.retailer-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.retailer-arrow {
  color: var(--ice);
  font-size: 1rem;
  transition: transform 0.25s;
}

.retailer-card:hover .retailer-arrow { transform: translateX(7px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(77, 127, 255, 0.06);
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cta-btn, .scroll-arrow, .autor-foto-ring { animation: none; }
  html { scroll-behavior: auto; }
}
