:root {
  --bg: #071018;
  --bg-soft: rgba(9, 21, 29, 0.78);
  --panel: rgba(10, 26, 37, 0.68);
  --panel-strong: rgba(13, 31, 44, 0.84);
  --border: rgba(132, 208, 255, 0.14);
  --text: #eef6f9;
  --muted: #9ab0bc;
  --accent: #86deff;
  --accent-strong: #3ab8de;
  --accent-warm: #ffd494;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 12%, rgba(63, 165, 197, 0.08), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(255, 212, 148, 0.06), transparent 22%),
    linear-gradient(180deg, #061018 0%, #08131b 42%, #09141c 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(134, 222, 255, 0.12), transparent 20%),
    radial-gradient(circle at 70% 45%, rgba(255, 212, 148, 0.08), transparent 18%),
    radial-gradient(circle at 50% 70%, rgba(58, 184, 222, 0.1), transparent 24%);
  animation: driftField 24s linear infinite;
}

body::after {
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      transparent 0deg,
      rgba(255, 255, 255, 0.04) 70deg,
      transparent 120deg,
      rgba(134, 222, 255, 0.05) 200deg,
      transparent 260deg,
      rgba(255, 212, 148, 0.04) 320deg,
      transparent 360deg
    );
  filter: blur(70px);
  animation: spinHalo 36s linear infinite;
  opacity: 0.55;
}

.ambient,
.orbital-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  opacity: 0.55;
  filter: blur(30px);
}

.ambient-a {
  background: radial-gradient(circle at 16% 22%, rgba(134, 222, 255, 0.12), transparent 0 18%);
  animation: floatBlob 18s ease-in-out infinite;
}

.ambient-b {
  background: radial-gradient(circle at 82% 18%, rgba(255, 212, 148, 0.1), transparent 0 18%);
  animation: floatBlob 21s ease-in-out infinite reverse;
}

.ambient-c {
  background: radial-gradient(circle at 58% 78%, rgba(58, 184, 222, 0.09), transparent 0 20%);
  animation: floatBlob 24s ease-in-out infinite;
}

.orbital-grid {
  opacity: 0.36;
}

.orbital-grid::before,
.orbital-grid::after {
  content: "";
  position: absolute;
  inset: -35%;
}

.orbital-grid::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 78%);
  animation: gridShift 30s linear infinite;
}

.orbital-grid::after {
  width: 72vmax;
  height: 72vmax;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(134, 222, 255, 0.09);
  box-shadow:
    0 0 0 90px rgba(134, 222, 255, 0.035),
    0 0 0 180px rgba(255, 212, 148, 0.028);
  animation: orbitPulse 16s ease-in-out infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header,
.hero,
.section {
  width: min(calc(100% - 28px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 20;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

body.is-header-visible .site-header {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.brand,
.site-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff, rgba(255, 255, 255, 0.25) 38%, transparent 42%),
    linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 16px rgba(134, 222, 255, 0.7);
}

.site-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a,
.lang-button,
.button {
  transition:
    color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.language-switch {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  min-width: 62px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.lang-button.is-active {
  color: #08131b;
  background: linear-gradient(135deg, rgba(134, 222, 255, 0.96), rgba(255, 212, 148, 0.94));
  box-shadow: 0 10px 22px rgba(58, 184, 222, 0.22);
}

.hero {
  min-height: min(100svh, 860px);
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.88fr);
  gap: 36px;
  align-items: start;
  position: relative;
}

.hero-language {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.audience-card h2,
.author-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11.8ch;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem);
}

.accent-line {
  color: var(--accent-warm);
}

.lead,
.section-intro p,
.info-card p,
.theme-card p,
.author-copy p,
.cta-card p {
  color: var(--muted);
  line-height: 1.66;
  font-size: 0.99rem;
}

.lead {
  max-width: 58ch;
  margin: 18px 0 0;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover,
.button:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #07131b;
  background: linear-gradient(135deg, var(--accent), #b8f2ff);
  box-shadow: 0 16px 34px rgba(58, 184, 222, 0.24);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(134, 222, 255, 0.34);
}

.hero-signals {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #d5e1e7;
  font-size: 0.96rem;
}

.hero-signals li {
  position: relative;
  padding-left: 20px;
}

.hero-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 16px rgba(134, 222, 255, 0.28);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 42px;
}

.book-frame {
  width: min(100%, 320px);
  padding: 14px;
  border: 1px solid rgba(134, 222, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--bg-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.book-frame img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-showcase {
  position: relative;
  width: min(100%, 470px);
  min-height: 460px;
}

.cover-chip {
  position: absolute;
  top: 6px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  padding: 8px 14px;
  border: 1px solid rgba(134, 222, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.8);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.cover-showcase .book-frame {
  position: absolute;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.book-frame-active {
  top: 48px;
  right: 8px;
  z-index: 2;
}

.book-frame-secondary {
  left: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.82;
  transform: rotate(-8deg);
}

.cover-showcase[data-active-language="en"] .book-frame-active,
.cover-showcase[data-active-language="pt-BR"] .book-frame-secondary {
  border-color: rgba(255, 212, 148, 0.42);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 212, 148, 0.08);
}

.cover-showcase[data-active-language="en"] .book-frame-secondary,
.cover-showcase[data-active-language="pt-BR"] .book-frame-active {
  transform: scale(0.92) rotate(-10deg);
}

.cover-showcase[data-active-language="pt-BR"] .book-frame-active {
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
}

.cover-showcase[data-active-language="pt-BR"] .book-frame-secondary {
  left: auto;
  bottom: auto;
  top: 48px;
  right: 8px;
  opacity: 1;
  transform: rotate(0deg);
}

.cover-edition {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-panel,
.info-card,
.theme-card,
.quote-card,
.audience-card,
.author-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.signal-panel {
  position: absolute;
  width: 184px;
  padding: 16px;
  backdrop-filter: blur(14px);
  z-index: 2;
}

.signal-panel-top {
  top: 22px;
  left: -6px;
}

.signal-panel-bottom {
  right: -20px;
  bottom: 26px;
}

.signal-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-warm);
}

.signal-label {
  display: block;
  margin-top: 8px;
  color: #d4e1e7;
  line-height: 1.45;
  font-size: 0.92rem;
}

.section {
  padding: 52px 0;
}

.section-last {
  padding-bottom: 96px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-intro h2,
.audience-card h2,
.author-copy h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-intro p {
  margin-top: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.theme-card,
.quote-card,
.audience-card,
.cta-card {
  padding: 24px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.info-card h3,
.theme-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.section-split .split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.theme-list {
  display: grid;
  gap: 16px;
}

.quote-card {
  position: sticky;
  top: 96px;
}

.quote {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quote-caption {
  margin: 16px 0 0;
  color: var(--muted);
}

.pill-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(134, 222, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.028);
  color: #dbe7ec;
  font-size: 0.93rem;
}

.author-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
}

.author-media {
  background: linear-gradient(180deg, rgba(58, 184, 222, 0.14), rgba(255, 212, 148, 0.06));
}

.author-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-copy {
  padding: 28px 28px 28px 0;
  align-self: center;
}

.cta-card {
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(134, 222, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.cta-card p {
  max-width: 700px;
  margin: 16px auto 0;
}

.cta-card .button {
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  --delay: 110ms;
}

.reveal-delay-2 {
  --delay: 200ms;
}

.reveal-delay-3 {
  --delay: 290ms;
}

.floating {
  animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes driftField {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(2%, 2%, 0) rotate(360deg);
  }
}

@keyframes spinHalo {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -3%, 0) scale(1.08);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(28px, 28px, 0);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.42;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-visual {
    min-height: 420px;
    padding-inline: 34px;
  }

  .cover-showcase {
    width: min(100%, 430px);
    min-height: 420px;
  }

  .book-frame {
    width: min(100%, 290px);
  }

  .card-grid,
  .section-split .split-layout,
  .author-card {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: relative;
    top: auto;
  }

  .author-copy {
    padding: 0 24px 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 26px;
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .language-switch {
    width: 100%;
  }

  .hero-language {
    position: static;
    justify-self: end;
    margin-bottom: 4px;
  }

  .lang-button {
    flex: 1;
  }

  .hero,
  .section {
    width: min(calc(100% - 22px), var(--content-width));
  }

  .hero {
    gap: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .lead,
  .section-intro p,
  .info-card p,
  .theme-card p,
  .author-copy p,
  .cta-card p {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    padding: 30px 0 94px;
  }

  .cover-showcase {
    width: min(100%, 100%);
    min-height: 360px;
  }

  .book-frame {
    width: min(100%, 248px);
    padding: 12px;
  }

  .book-frame-active,
  .cover-showcase[data-active-language="pt-BR"] .book-frame-secondary {
    top: 42px;
    right: 0;
  }

  .book-frame-secondary,
  .cover-showcase[data-active-language="pt-BR"] .book-frame-active {
    left: 2px;
    bottom: 0;
  }

  .signal-panel {
    width: 162px;
    padding: 12px;
  }

  .signal-panel-top {
    top: -10px;
    left: -2px;
  }

  .signal-panel-bottom {
    right: -6px;
    bottom: -4px;
  }

  .info-card,
  .theme-card,
  .quote-card,
  .audience-card,
  .cta-card {
    padding: 20px;
  }
}
