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

:root {
  --bg: #020817;
  --text: #ffffff;
  --muted: #cbd5e1;
  --cyan: #59f1dc;
  --purple: #6750c8;
  --purple-bright: #8068f3;
  --red: #ff6262;
  --panel-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* -------------------------
   Background
------------------------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 72%);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 32%, rgba(64, 135, 255, 0.36), transparent 34%),
    radial-gradient(circle at 32% 76%, rgba(119, 60, 255, 0.24), transparent 28%),
    linear-gradient(115deg, #020817 0%, #030b1c 45%, #061733 100%);
}

.orb {
  position: absolute;
  width: 34rem;
  max-width: 100vw;
  height: 34rem;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.42;
  overflow: hidden;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  top: 12%;
  right: 14%;
  background: rgba(56, 189, 248, 0.42);
}

.orb-two {
  bottom: 4%;
  left: 17%;
  background: rgba(124, 58, 237, 0.42);
  animation-delay: -4s;
}

.orb-three {
  top: 42%;
  right: -9%;
  background: rgba(99, 102, 241, 0.28);
  animation-delay: -7s;
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(125,211,252,.7) 0 1px, transparent 1.5px);
  background-size: 120px 120px, 180px 180px;
  background-position: 12px 30px, 70px 95px;
}

/* -------------------------
   Main Shell
------------------------- */

.site-shell {
  width: min(90%, 1440px);
  max-width: 90%;
  min-height: 100vh;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 38px);
}

/* -------------------------
   Navbar
------------------------- */

.navbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 26px;
  background: rgba(3, 10, 26, 0.45);
  box-shadow: 0 20px 70px rgba(0,0,0,0.16);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: clamp(225px, 24vw, 330px);
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
}

/* -------------------------
   Navigation Links
------------------------- */

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
}

nav a {
  position: relative;
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple-bright), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(89,241,220,.65);
  transition: width 0.25s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  text-shadow: 0 0 20px rgba(89,241,220,.35);
}

nav a:hover::after,
nav a.active::after {
  width: 130%;
}

/* -------------------------
   Social Links
------------------------- */

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color: #dbeafe;
  text-decoration: none;
  font-size: 20px;
  opacity: .82;
  transition:
    transform .24s ease,
    opacity .24s ease,
    box-shadow .24s ease,
    background .24s ease;
}

.socials a:hover {
  opacity: 1;
  transform: translateY(-3px);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 24px rgba(89,241,220,.22);
}

.mobile-socials {
  display: none;
}

/* -------------------------
   Hamburger
------------------------- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 9999;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

/* -------------------------
   Hero
------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  max-width: 100%;
  min-height: calc(100vh - 140px);
  padding: clamp(64px, 9vw, 130px) clamp(4px, 1.4vw, 24px) 54px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: 10%;
  z-index: -1;
  width: 42rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124,58,237,.25), transparent 68%);
  filter: blur(34px);
  opacity: .9;
}

.hero-copy {
  max-width: 690px;
  text-align: center;
  animation: riseIn .8s ease both;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(.75rem, 1.1vw, .95rem);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255,98,98,.26);
}

.book-logo {
  display: block;
  width: min(100%, 620px);
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.35));
}

.hook {
  width: min(100%, 610px);
  max-width: 100%;
  margin: 32px auto 38px;
  color: var(--cyan);
  font-size: clamp(1.35rem, 1.05vw, 2.18rem);
  line-height: 1.34;
  letter-spacing: 0.17em;
  font-weight: 500;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(89,241,220,.17),
    0 0 34px rgba(89,241,220,.12);
}

.release-date {
  margin: 0 0 30px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* -------------------------
   Buttons
------------------------- */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.button {
  width: min(100%, 325px);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  line-height: 1;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

.button-primary,
.button-secondary {
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), transparent 38%),
    linear-gradient(90deg, #5341aa, #6b50cf 56%, #4d3c9a);
  box-shadow:
    0 12px 42px rgba(103,80,200,.36),
    inset 0 1px 1px rgba(255,255,255,.18);
}

.button-secondary {
  width: min(100%, 395px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(90deg, #4a3997, #604bc4 56%, #443486);
}

.button:hover {
  transform: translateY(-4px);
  filter: brightness(1.14);
  box-shadow:
    0 18px 58px rgba(103,80,200,.52),
    0 0 26px rgba(89,241,220,.15),
    inset 0 1px 1px rgba(255,255,255,.24);
}

/* -------------------------
   Hero Art / Book
------------------------- */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  min-height: 560px;
  animation: riseIn .8s .14s ease both;
}

.portal-ring {
  position: absolute;
  width: min(78vw, 610px);
  max-width: 100vw;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 42%, rgba(89,241,220,.22) 43%, rgba(79,70,229,.34) 48%, transparent 62%),
    radial-gradient(circle, rgba(59,130,246,.34), transparent 64%);
  filter: blur(1px);
  opacity: .72;
  animation: pulseRing 4.8s ease-in-out infinite;
}

.portal-ring::before,
.portal-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 50%;
  box-shadow:
    0 0 36px rgba(89,241,220,.22),
    inset 0 0 46px rgba(99,102,241,.18);
  animation: spin 18s linear infinite;
}

.portal-ring::after {
  inset: 22%;
  border-style: dashed;
  opacity: .72;
  animation-direction: reverse;
  animation-duration: 28s;
}

.book-mockup {
  position: relative;
  z-index: 2;
  width: min(100%, 590px);
  max-width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 34px 44px rgba(0,0,0,.38))
    drop-shadow(0 0 34px rgba(56,189,248,.22));
  transform-origin: center;
  animation: floatBook 5.8s ease-in-out infinite;
}

/* -------------------------
   Amazon Badge
------------------------- */

.amazon-badge {
  position: relative;
  z-index: 3;
  min-width: 218px;
  margin-top: 18px;
  padding: 10px 22px 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: #111827;
  text-decoration: none;
  box-shadow:
    0 16px 40px rgba(0,0,0,.28),
    0 0 28px rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.amazon-badge span {
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
}

.amazon-badge strong {
  position: relative;
  font-size: 2.65rem;
  line-height: .9;
  letter-spacing: -0.09em;
  font-weight: 900;
}

.amazon-badge strong::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 6%;
  bottom: -9px;
  height: 12px;
  border-bottom: 5px solid #ff9900;
  border-radius: 0 0 100% 100%;
  transform: rotate(-2deg);
}

.amazon-badge:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 54px rgba(0,0,0,.35),
    0 0 32px rgba(89,241,220,.16);
}

/* -------------------------
   Info Cards
------------------------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
  padding: 10px;
}

.info-strip2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 10px;
  margin-top: 20px;
}

.glass-card {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  background: radial-gradient(circle at 10% 0%, rgba(89,241,220,.16), transparent 38%);
  transition: opacity .25s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

.card {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  text-align: center;
  padding: 10%;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 900;
}

.glass-card p {
  position: relative;
  margin: 0;
  color: rgba(226,232,240,.82);
  line-height: 1.65;
}

/* -------------------------
   Millie Page Image
------------------------- */

.millie-mathews {
  width: 100%;
  padding: 10px;
  text-align: center;
  margin-top: 25px;
}

/* -------------------------
   Footer
------------------------- */

.copyright {
  margin-top: 35px;
  margin-bottom: 15px;
  color: rgba(226,232,240,.58);
  text-align: center;
  font-size: .92rem;
}

/* -------------------------
   Tablet / Mobile Nav
------------------------- */

@media (max-width: 1120px) {
  .navbar {
    top: 10px;
    grid-template-columns: 1fr auto;
  }

  .desktop-socials {
    display: none;
  }

  .hamburger {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 26px 18px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  #menu-toggle:checked ~ nav {
    display: flex;
  }

  .mobile-socials {
    display: flex;
    margin-bottom: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-art {
    min-height: auto;
  }

  .book-mockup {
    width: min(100%, 540px);
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .info-strip2 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   Phone
------------------------- */

@media (max-width: 640px) {
  .site-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  .navbar {
    border-radius: 20px;
    padding: 11px 13px;
    position: fixed;
  }

  .logo img {
    width: min(66vw, 235px);
  }

  .hero {
    width: 100%;
    overflow-x: hidden;
    gap: 44px;
    padding-top: 54px;
  }

  .book-logo {
    width: 100%;
    max-width: 430px;
  }

  .hook {
    max-width: 100%;
    margin-top: 24px;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
  }

  .release-date {
    font-size: 1.65rem;
  }

  .button,
  .button-secondary {
    width: 100%;
    max-width: 430px;
    min-height: 54px;
    font-size: .82rem;
    letter-spacing: .1em;
  }

  .hero-art {
    margin-top: -12px;
  }

  .book-mockup {
    width: 100%;
    max-width: 420px;
  }

  .amazon-badge {
    min-width: 185px;
  }

  .amazon-badge strong {
    font-size: 2.25rem;
  }
}

/* -------------------------
   Reduced Motion
------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------
   Animations
------------------------- */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes floatBook {
  0%,
  100% {
    transform: translateY(0) rotate(-.35deg);
  }

  50% {
    transform: translateY(-12px) rotate(.35deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(.98);
    opacity: .56;
  }

  50% {
    transform: scale(1.04);
    opacity: .84;
  }
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

@media (max-width: 1120px) {
  .navbar {
    position: fixed;
    top: 10px;
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 99999;
  }

  body {
    padding-top: 86px;
  }

  nav {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}
.banner-desktop {
    display: block;
    width: 100%;
}

.banner-mobile {
    display: none;
    width: 100%;
}

@media (max-width: 768px) {

    .banner-desktop {
        display: none;
    }

    .banner-mobile {
        display: block;
    }
}