:root {
  color-scheme: dark;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #eef7ef;
  --muted: rgba(238, 247, 239, 0.72);
  --line: rgba(123, 217, 255, 0.24);
  --green: #95ff42;
  --cyan: #7bd9ff;
  --amber: #f5d36f;
  --panel: #0d1715;
  --bg: #06100e;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../../assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../assets/fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.84);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 760;
  text-decoration: none;
}
.brand-logo-shell {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  flex: 0 0 72px;
  border-radius: 50%;
  background: #020503;
  border: 1px solid rgba(186, 255, 194, 0.46);
  box-shadow: 0 0 22px rgba(120, 240, 180, 0.28);
}
.brand-logo-video, .brand-logo-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.32);
  transform-origin: center;
}
.brand-logo-fallback { position: absolute; inset: 0; opacity: 0; }
.brand-logo-shell::before, .brand-logo-shell::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}
.brand-logo-shell::before {
  inset: 5px;
  border: 1px solid rgba(235, 246, 239, 0.68);
  box-shadow: inset 0 0 10px rgba(120, 255, 150, 0.16), 0 0 16px rgba(91, 255, 128, 0.18);
  animation: ali-ring-transmission 4.4s ease-out infinite;
}
.brand-logo-shell::after {
  inset: 10px;
  border: 1px solid rgba(235, 246, 239, 0.42);
  box-shadow: inset 0 0 8px rgba(91, 255, 128, 0.12);
  animation: ali-ring-transmission 4.4s ease-out infinite 1.55s;
}
@keyframes ali-ring-transmission {
  0% { transform: scale(0.9); opacity: 0.16; }
  20% { opacity: 0.86; }
  66% { opacity: 0.34; }
  100% { transform: scale(1.08); opacity: 0.1; }
}
.top-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.top-nav a:hover, .top-nav a:focus-visible { color: var(--ink); }
.top-nav .nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid rgba(238, 247, 239, 0.18);
  border-radius: 999px;
  background: rgba(238, 247, 239, 0.045);
  color: var(--ink);
}
.top-nav .nav-icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-link {
  min-height: 34px;
  margin-left: 4px;
  border: 1px solid rgba(123, 217, 255, 0.35);
  border-radius: 999px;
  background: rgba(123, 217, 255, 0.08);
  color: var(--cyan) !important;
  font-weight: 820;
}
.top-nav .nav-icon-link:hover, .top-nav .nav-icon-link:focus-visible, .lang-link:hover, .lang-link:focus-visible { border-color: rgba(120, 240, 180, 0.62); color: var(--green) !important; }

main { overflow: hidden; }
.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: calc(100vh - 112px);
}
.book-gallery {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 72px);
  background: #eef5f3;
}
.book-stage {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  overflow: hidden;
}
.book-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 420ms ease, transform 600ms ease;
  pointer-events: none;
}
.book-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.book-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(4, 16, 14, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #06100e;
  font-size: 2rem;
  cursor: pointer;
}
.gallery-arrow.is-prev { left: 8px; }
.gallery-arrow.is-next { right: 8px; }
.gallery-dots { display: flex; justify-content: center; gap: 9px; }
.gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 16, 14, 0.24);
  cursor: pointer;
}
.gallery-dots button.is-active { background: #0c8d78; }

.book-intro {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(44px, 7vw, 112px);
  background: #0b1815;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.book-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.78;
  letter-spacing: 0;
}
.book-intro h1 span { color: var(--green); font-size: 0.56em; }
.book-subtitle { margin: 0; color: var(--cyan); font-size: clamp(1.2rem, 2vw, 1.7rem); }
.book-intro > p { max-width: 680px; margin: 0; color: var(--muted); }
.book-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.book-facts div { padding: 16px; background: var(--panel); }
.book-facts dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.book-facts dd { margin: 4px 0 0; color: var(--amber); font-size: 1.55rem; font-weight: 800; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.book-actions a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #07100e;
  font-weight: 850;
  text-decoration: none;
}
.book-actions a.is-secondary { background: transparent; color: var(--green); }
.shipping-note { font-size: 0.9rem; }

.order-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 7vw, 100px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 90px);
}
.order-copy h2 { margin: 8px 0 18px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.95; }
.order-copy p:last-child { color: var(--muted); }
.order-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.order-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.9rem; }
.order-form input, .order-form textarea {
  width: 100%;
  border: 1px solid rgba(238, 247, 239, 0.22);
  border-radius: 5px;
  background: #0b1715;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent-line { grid-template-columns: auto 1fr; align-items: start; }
.consent-line input { width: 18px; height: 18px; margin-top: 3px; }
.order-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.order-summary strong { color: var(--amber); font-size: 2rem; }
.order-form > button {
  min-height: 54px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #07100e;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.order-form > button:disabled { opacity: 0.55; cursor: wait; }
.order-status { min-height: 1.6em; margin: 0; color: var(--muted); }
.order-status.is-success { color: var(--green); }
.order-status.is-error { color: #ff927f; }
.honeypot { position: absolute !important; left: -10000px !important; }

footer {
  padding: 30px clamp(22px, 6vw, 90px);
  border-top: 1px solid rgba(238, 247, 239, 0.14);
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 16px 24px; }
  .top-nav { gap: 6px; }
  .book-hero, .order-section { grid-template-columns: 1fr; }
  .book-gallery { padding: 24px 16px; }
  .book-stage { max-height: 72vh; }
}
@media (max-width: 620px) {
  .site-header { min-height: auto; padding: 16px; }
  .brand span:last-child { display: none; }
  .brand-logo-shell { width: 60px; height: 60px; flex-basis: 60px; }
  .top-nav { flex: 1 1 auto; gap: 0; }
  .top-nav a { min-height: 34px; padding: 6px 7px; font-size: 0.78rem; }
  .book-intro { padding: 46px 22px 40px; }
  .book-intro h1 { font-size: 4.7rem; }
  .book-facts { grid-template-columns: 1fr 1fr 1fr; }
  .book-facts div { padding: 12px 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .order-section { padding: 70px 22px; }
}
