/* =============================================
   1. RESET & BASE
   ============================================= */

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

html {
  scroll-padding-top: var(--nav-height);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }


/* =============================================
   2. CSS CUSTOM PROPERTIES
   ============================================= */

:root {
  /* Colors */
  --color-black:    #02040A;
  --color-night:    #07111F;
  --color-electric: #0B7CFF;
  --color-neon:     #1EA7FF;
  --color-white:    #F5F7FA;
  --color-gray:     #AAB4C0;
  --color-gray-dark:#3A4A5A;

  /* Glow */
  --glow-sm:  0 0 20px rgba(11, 124, 255, 0.25);
  --glow-md:  0 0 40px rgba(11, 124, 255, 0.35);
  --glow-lg:  0 0 80px rgba(11, 124, 255, 0.3);
  --glow-text: 0 0 30px rgba(30, 167, 255, 0.6);

  /* Borders */
  --border-subtle: 1px solid rgba(30, 167, 255, 0.12);
  --border-active: 1px solid rgba(11, 124, 255, 0.45);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  3rem;
  --text-hero: clamp(5rem, 13vw, 11rem);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
}


/* =============================================
   3. UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-electric);
  margin-bottom: var(--space-md);
}


/* =============================================
   4. BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition:
    background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-spring),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-electric), var(--color-neon));
  color: var(--color-white);
  border: 1px solid transparent;
  box-shadow: var(--glow-sm);
}

.btn--primary:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-neon);
  border: var(--border-active);
}

.btn--ghost:hover {
  background: rgba(11, 124, 255, 0.1);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn--ghost:active { transform: translateY(0); }

.btn--full { width: 100%; }

/* Button loading state */
.btn__loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.is-loading .btn__text { opacity: 0.5; }
.btn.is-loading .btn__loader { display: block; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }


/* =============================================
   5. NAV
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration-slow) var(--ease-out),
              backdrop-filter var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.nav--scrolled {
  background: rgba(2, 4, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30, 167, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-transform: uppercase;
  transition: color var(--duration-normal);
}

.nav__logo:hover { color: var(--color-neon); }

.nav__links {
  display: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-gray);
  letter-spacing: 0.04em;
  transition: color var(--duration-normal);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-electric);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--color-white); }

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
}

.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-night);
  z-index: 99;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  border-left: var(--border-subtle);
}

.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gray);
  letter-spacing: 0.04em;
  transition: color var(--duration-normal);
}

.nav-drawer a:hover { color: var(--color-neon); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.7);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}


/* =============================================
   6. HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-2xl);
  overflow: hidden;
}

/* Hospital corridor atmosphere — deep dark with blue cold tones */
.hero__bg-corridor {
  position: absolute;
  inset: 0;
  background:
    /* Blue atmospheric glow over the photo */
    radial-gradient(ellipse 70% 80% at 25% 40%, rgba(11, 124, 255, 0.10) 0%, transparent 60%),
    /* Dark overlay — suppresses the baked-in text from the banner image */
    linear-gradient(rgba(2, 4, 10, 0.80), rgba(3, 7, 16, 0.82)),
    /* Real background photo: hospital corridor with nurse */
    url('ChatGPT Image 22 may 2026, 22_01_56.png') center / cover no-repeat;
  pointer-events: none;
}

/* Cinematic vignette — reinforces the dark edges */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%,
      transparent 15%,
      rgba(2, 4, 10, 0.45) 55%,
      rgba(2, 4, 10, 0.90) 100%);
  pointer-events: none;
}

/* Film grain overlay */
.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: transparent;
  filter: url(#grain-filter);
  opacity: 0.05;
  pointer-events: none;
  animation: grain-shift 8s steps(10) infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Title: TURNO white / DE NOCHE blue — movie poster style */
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.hero__title-line {
  display: block;
  color: var(--color-white);
  text-shadow:
    3px 3px 0 rgba(0,0,0,0.6),
    0 0 80px rgba(0,0,0,0.9);
}

.hero__title-line--accent {
  color: var(--color-electric);
  font-weight: 900;
  text-shadow:
    3px 3px 0 rgba(0, 30, 80, 0.7),
    var(--glow-text),
    0 0 100px rgba(11, 124, 255, 0.6);
}

/* EKG divider — inline between title and subtitle */
.hero__ekg-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  width: min(480px, 100%);
}

.hero__ekg-rail {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(11, 124, 255, 0.4));
}

.hero__ekg-divider .hero__ekg-rail:last-child {
  background: linear-gradient(to left, transparent, rgba(11, 124, 255, 0.4));
}

.hero__ekg-svg {
  width: 120px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}

.hero__ekg {
  fill: none;
  stroke: var(--color-electric);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--color-electric));
}

/* Subtitle — ALL CAPS, tracked, with key phrase in blue */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-sm), 1.8vw, var(--text-xl));
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  text-transform: uppercase;
}

.hero__subtitle-accent {
  color: var(--color-electric);
  font-weight: 600;
}

/* Category icons row */
.hero__categories {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-gray);
  text-transform: uppercase;
}

.hero__cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(11, 124, 255, 0.4);
  color: var(--color-electric);
  flex-shrink: 0;
}

.hero__cat-dot {
  color: var(--color-electric);
  font-size: var(--text-xs);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  transition: color var(--duration-normal);
  text-transform: uppercase;
}

.hero__social:hover { color: var(--color-neon); }
.hero__social-icon { flex-shrink: 0; }

/* Corner stacked manifesto text (bottom-right, like the reference image) */
.hero__corner-text {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  z-index: 1;
}

.hero__corner-text span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(170, 180, 192, 0.4);
  line-height: 1.4;
}

.hero__corner-accent {
  color: var(--color-electric) !important;
  opacity: 0.8;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-dark);
  z-index: 1;
}

.hero__scroll-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-gray-dark), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}


/* =============================================
   7. ABOUT
   ============================================= */

.about {
  padding: var(--space-2xl) 0;
  background: var(--color-black);
}

.about__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__body p {
  font-size: var(--text-lg);
  color: var(--color-gray);
  line-height: 1.75;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__profile-img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(11, 124, 255, 0.25),
    0 0 60px rgba(11, 124, 255, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.about__stat-card {
  background: var(--color-night);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.about__stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-electric), transparent);
}

.about__stat-card:hover {
  border-color: rgba(11, 124, 255, 0.3);
  box-shadow: var(--glow-sm);
}

.about__stat-card--offset { margin-top: var(--space-md); }

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--color-electric);
  text-shadow: var(--glow-sm);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray);
  letter-spacing: 0.05em;
}

.about__quote {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-electric);
  background: rgba(11, 124, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about__quote p {
  font-size: var(--text-base);
  color: var(--color-gray);
  font-style: italic;
  line-height: 1.6;
}


/* =============================================
   8. NEWSLETTER
   ============================================= */

.newsletter {
  padding: var(--space-2xl) 0;
  background: var(--color-night);
  position: relative;
  overflow: hidden;
}

.newsletter__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 124, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.newsletter__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.newsletter__topics {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.newsletter__topics li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--color-gray);
  padding: var(--space-xs) 0;
  border-bottom: var(--border-subtle);
}

.newsletter__topics li::before {
  content: '→';
  color: var(--color-electric);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Form */
.newsletter__form {
  margin-bottom: var(--space-lg);
}

.form__row {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form__group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

.form__optional {
  font-weight: 400;
  opacity: 0.7;
}

.form__required {
  color: var(--color-electric);
}

.form__group input {
  width: 100%;
  padding: 0.875rem var(--space-md);
  background: rgba(2, 4, 10, 0.8);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  -webkit-appearance: none;
}

.form__group input::placeholder { color: var(--color-gray-dark); }

.form__group input:focus {
  outline: none;
  border-color: var(--color-electric);
  box-shadow: 0 0 0 3px rgba(11, 124, 255, 0.15);
}

.form__group input[aria-invalid="true"] {
  border-color: #FF4D6D;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
}

.form__error {
  font-size: var(--text-xs);
  color: #FF4D6D;
  min-height: 1rem;
  display: block;
}

.form__legal {
  font-size: var(--text-xs);
  color: var(--color-gray-dark);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Success state */
.newsletter__success {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 124, 255, 0.15);
  border: var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-neon);
  margin: 0 auto var(--space-md);
  box-shadow: var(--glow-sm);
}

.newsletter__success h3 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}

.newsletter__success p {
  color: var(--color-gray);
  font-size: var(--text-lg);
}

/* Lead magnet callout */
.newsletter__magnet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: rgba(11, 124, 255, 0.07);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
}

.magnet__icon {
  color: var(--color-electric);
  flex-shrink: 0;
  margin-top: 2px;
}

.newsletter__magnet p {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.6;
}

.newsletter__magnet strong {
  color: var(--color-white);
}


/* =============================================
   9. BOOKS
   ============================================= */

.books {
  padding: var(--space-2xl) 0;
  background: var(--color-black);
}

.books__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, 4rem);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2xl);
  line-height: 1;
}

.books__grid {
  display: grid;
  gap: var(--space-lg);
}

.book-card {
  background: var(--color-night);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  position: relative;
}

.book-card:hover {
  border-color: rgba(11, 124, 255, 0.4);
  box-shadow: var(--glow-sm);
}

.book-card--soon {
  opacity: 0.85;
}

.book-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-electric), var(--color-neon));
  color: var(--color-white);
  box-shadow: var(--glow-sm);
}

.book-card__badge--soon {
  background: rgba(170, 180, 192, 0.15);
  border: 1px solid rgba(170, 180, 192, 0.3);
  color: var(--color-gray);
  box-shadow: none;
}

/* Book cover area */
.book-card__cover {
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Fixed aspect ratio so both cards have same height cover */
  aspect-ratio: 3 / 4;
}

/* Real photo cover (book 1) */
.book-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.book-card:hover .book-card__img {
  transform: scale(1.03);
}

/* Atmospheric glow behind the book */
.book-card--free .book-card__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(11, 124, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.book-cover {
  width: 170px;
  height: 230px;
  border-radius: 2px;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.book-cover--1 {
  /* Matches the book cover image: deep navy to electric blue */
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(30, 167, 255, 0.25) 0%, transparent 60%),
    linear-gradient(155deg, #07111F 0%, #0A2850 50%, #05162E 100%);
  border: 1px solid rgba(11, 124, 255, 0.5);
  box-shadow:
    6px 6px 24px rgba(0,0,0,0.7),
    0 0 40px rgba(11, 124, 255, 0.2),
    -1px 0 0 rgba(255,255,255,0.04) inset;
}

.book-cover--2 {
  background:
    radial-gradient(ellipse 50% 40% at 60% 15%, rgba(30, 167, 255, 0.1) 0%, transparent 55%),
    linear-gradient(155deg, #02040A 0%, #07111F 70%, #050E1C 100%);
  border: 1px solid rgba(170, 180, 192, 0.15);
  box-shadow:
    6px 6px 24px rgba(0,0,0,0.7),
    -1px 0 0 rgba(255,255,255,0.02) inset;
  filter: saturate(0.8);
}

/* EKG top stripe on book 1 */
.book-cover--1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-electric), transparent);
  box-shadow: 0 0 8px var(--color-electric);
}

/* Glowing hospital cross on book 1 (top-right corner) */
.book-cover--1::after {
  content: '+';
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-neon);
  text-shadow: 0 0 12px var(--color-neon), 0 0 24px var(--color-electric);
  line-height: 1;
}

/* Moon decoration on book 1 */
.book-cover--1 .book-cover__number::before {
  content: '○ ';
  color: rgba(200, 220, 255, 0.5);
}

.book-cover__number {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.book-cover__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.0;
  letter-spacing: 0.03em;
  color: var(--color-white);
  flex: 1;
  margin-top: 4px;
}

.book-cover--1 .book-cover__title {
  text-shadow: 0 0 20px rgba(11, 124, 255, 0.5);
}

.book-cover--2 .book-cover__title {
  font-size: 1.25rem;
  color: var(--color-gray);
  line-height: 1.05;
}

.book-cover__subtitle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-electric);
  line-height: 1.1;
}

.book-cover__line {
  height: 1px;
  background: linear-gradient(to right, var(--color-electric), transparent);
  margin: 4px 0;
}

.book-cover--2 .book-cover__line {
  background: linear-gradient(to right, rgba(170, 180, 192, 0.3), transparent);
}

.book-cover__author {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Book card info — fills remaining height */
.book-card__info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-white);
}

.book-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-electric);
  font-weight: 500;
  line-height: 1.4;
}

.book-card__description {
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: 1.7;
  flex: 1;
}

.book-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-gray);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--green {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.status-dot--yellow {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}


/* =============================================
   10. MANIFESTO
   ============================================= */

.manifesto {
  padding: var(--space-2xl) 0;
  background: var(--color-night);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(11, 124, 255, 0.3), transparent);
}

.manifesto__inner {
  max-width: 800px;
}

.manifesto__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, 4.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: var(--space-2xl);
  color: var(--color-white);
}

.manifesto__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.manifesto__line {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  color: var(--color-gray);
  line-height: 1.5;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-gray-dark);
  transition: border-color var(--duration-normal), color var(--duration-normal);
}

.manifesto__line.is-visible {
  border-left-color: var(--color-electric);
}

.manifesto__line--strong {
  color: var(--color-white);
  font-weight: 500;
  border-left-color: var(--color-electric);
}

.manifesto__line--strong.is-visible {
  text-shadow: var(--glow-sm);
}

.manifesto__cta {
  display: flex;
}


/* =============================================
   11. FOOTER
   ============================================= */

.footer {
  background: var(--color-black);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: var(--border-subtle);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__name {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-gray);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-gray);
  transition: color var(--duration-normal);
}

.footer__social:hover { color: var(--color-neon); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-start;
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-gray);
  letter-spacing: 0.04em;
  transition: color var(--duration-normal);
}

.footer__nav a:hover { color: var(--color-white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--color-gray-dark);
}

.footer__privacy { transition: color var(--duration-normal); }
.footer__privacy:hover { color: var(--color-gray); }


/* =============================================
   12. SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 180ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 440ms; }


/* =============================================
   13. KEYFRAMES
   ============================================= */

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

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-1%, -1%); }
  20%  { transform: translate(1%, 1%); }
  30%  { transform: translate(-1%, 1%); }
  40%  { transform: translate(1%, -1%); }
  50%  { transform: translate(-1%, 0); }
  60%  { transform: translate(1%, 0); }
  70%  { transform: translate(0, 1%); }
  80%  { transform: translate(0, -1%); }
  90%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}


/* =============================================
   14. MEDIA QUERIES
   ============================================= */

/* Tablet (768px+) */
@media (min-width: 768px) {

  .nav__links { display: flex; }
  .nav__hamburger { display: none; }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .about__stat-card--offset { margin-top: var(--space-lg); }

  .form__row { grid-template-columns: 1fr 1fr; }

  .books__grid { grid-template-columns: 1fr 1fr; }

  /* book-card already flex column, no override needed */

  .footer__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

  .container { padding: 0 var(--space-lg); }

  .hero__content { max-width: 700px; }

  .about__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }

  /* book cards stay vertical at desktop — side-by-side in 2-col grid */
}


/* =============================================
   15. PREFERS-REDUCED-MOTION
   ============================================= */

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

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

  .hero__grain,
  .newsletter__glow,
  .hero__scroll-arrow,
  .hero__ekg {
    animation: none !important;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
