.nn-hero {
  position: relative;
  background: var(--nn-cream);
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 86px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
/* faint editorial grid lines */
.nn-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: var(--nn-page);
  margin: 0 auto;
  padding: 0 var(--nn-gutter);
  display: none;
}
@media (min-width: 990px) {
  .nn-hero__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
  .nn-hero__grid i { border-left: 1px solid rgba(18, 49, 58, 0.045); }
  .nn-hero__grid i:last-child { border-right: 1px solid rgba(18, 49, 58, 0.045); }
}

.nn-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(44px, 6vw, 40px);
  align-items: center;
}
@media (min-width: 990px) {
  .nn-hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; }
}

/* ---------- copy ---------- */
.nn-hero__copy { max-width: 620px; }
.nn-hero__title { margin-top: 20px; }
.nn-hero__title em {
  font-style: italic;
  color: var(--nn-cobalt);
}
.nn-hero__text { margin-top: 22px; max-width: 500px; }

.nn-hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.nn-hero__trust {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--nn-line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

/* ---------- book stage ---------- */
.nn-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 30px 0;
  perspective: 1600px;
}
@media (min-width: 750px) { .nn-hero__stage { min-height: 460px; } }
@media (min-width: 990px) { .nn-hero__stage { min-height: 560px; } }

/* soft halo behind the book instead of a gradient blob */
.nn-hero__halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 63, 196, 0.09) 0%, rgba(30, 63, 196, 0) 68%);
  pointer-events: none;
}
.nn-hero__ring {
  position: absolute;
  width: min(420px, 74%);
  aspect-ratio: 1;
  border: 1px solid rgba(18, 49, 58, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.nn-hero__ring::after {
  content: "";
  position: absolute;
  top: 12%; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--nn-terra);
}

.nn-book {
  position: relative;
  width: min(300px, 62vw);
  transform-style: preserve-3d;
  transform:
    translateY(var(--nn-shift, 0px))
    rotateX(var(--nn-tilt-x, 0deg))
    rotateY(calc(-13deg + var(--nn-tilt-y, 0deg)));
  transition: transform 0.9s var(--nn-ease);
  z-index: 2;
}
@media (min-width: 990px) { .nn-book { width: min(330px, 30vw); } }

.nn-book__face {
  position: relative;
  border-radius: 3px 7px 7px 3px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(18, 49, 58, 0.08),
    22px 34px 60px -30px rgba(18, 49, 58, 0.55),
    50px 60px 90px -50px rgba(18, 49, 58, 0.4);
  background: var(--nn-cream-2);
}
.nn-book__face img { width: 100%; display: block; }
/* fallback typographic cover */
.nn-book__fallback {
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 26px;
  background: var(--nn-cream-2);
}
.nn-book__fallback-num {
  font-family: var(--nn-serif);
  font-size: 96px;
  line-height: 0.85;
  color: var(--nn-ink);
}
.nn-book__fallback-title {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--nn-ink);
}

/* page edge + spine for the 3D feel */
.nn-book__pages {
  position: absolute;
  top: 1.4%;
  right: -9px;
  width: 11px;
  height: 97.2%;
  border-radius: 0 3px 3px 0;
  background:
    repeating-linear-gradient(to right, #efe7d9 0 1px, #fdfaf4 1px 2.5px);
  transform: rotateY(24deg);
  transform-origin: left center;
  box-shadow: inset -2px 0 4px rgba(18, 49, 58, 0.12);
}
.nn-book__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 13px;
  background: linear-gradient(90deg, rgba(18, 49, 58, 0.22), rgba(18, 49, 58, 0));
  z-index: 3;
  pointer-events: none;
}
.nn-book__gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 38%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
}
.nn-book__shadow {
  position: absolute;
  bottom: -26px;
  left: 8%;
  width: 84%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(18, 49, 58, 0.24) 0%, rgba(18, 49, 58, 0) 72%);
  filter: blur(3px);
  z-index: 1;
}

/* price seal */
.nn-book__seal {
  position: absolute;
  bottom: -18px;
  left: -22px;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--nn-terra);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 6;
  box-shadow: 0 18px 30px -16px rgba(201, 85, 47, 0.9);
  transform: rotate(-9deg);
}
@media (min-width: 990px) { .nn-book__seal { width: 96px; height: 96px; left: -34px; } }
.nn-book__seal b { display: block; font-size: 21px; font-weight: 700; line-height: 1; }
.nn-book__seal small { display: block; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; opacity: 0.92; }

/* ---------- floating workflow cards ---------- */
.nn-float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nn-line-soft);
  border-radius: 100px;
  box-shadow: var(--nn-shadow-md);
  white-space: nowrap;
  transform: translateY(var(--nn-shift, 0px));
  animation: nn-bob 7s ease-in-out infinite;
  animation-delay: var(--nn-bob-delay, 0s);
}
.nn-float__n {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--nn-terra-text);
  font-variant-numeric: tabular-nums;
}
.nn-float__t { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--nn-ink); }

@keyframes nn-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}
@media (prefers-reduced-motion: reduce) { .nn-float { animation: none; } }

.nn-float--1 { top: 6%;  left: -2%; }
.nn-float--2 { top: 26%; right: -4%; }
.nn-float--3 { bottom: 24%; left: -6%; }
.nn-float--4 { bottom: 6%;  right: 0%; }

@media (max-width: 749px) {
  .nn-float { padding: 9px 12px; gap: 7px; }
  .nn-float__t { font-size: 11px; }
  .nn-float--1 { top: 2%; left: -1%; }
  .nn-float--2 { top: 20%; right: -1%; }
  .nn-float--3 { bottom: 22%; left: -2%; }
  .nn-float--4 { bottom: 3%; right: -1%; }
  .nn-book__seal { width: 68px; height: 68px; left: -8px; bottom: -10px; }
  .nn-book__seal b { font-size: 17px; }
}
