:root {
  --bg: #05040a;
  --bg-accent: #120a1e;
  --accent: #ff4d9e;
  --accent-secondary: #53e0ff;
  --text: #f9f8ff;
  --muted: rgba(249, 248, 255, 0.7);
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
}

html {
  background-color: #000;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f0b1c 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  padding: 0 0 4rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.site-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.5rem, 6vw, 5rem);
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(5, 1, 10, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__brand {
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav__menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.menu-toggle__line {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding: 4rem clamp(1.5rem, 6vw, 5rem);
  margin-top: 0;
  position: sticky;
  top: 0;
  border-radius: 0;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #000;
  z-index: 1;
}

.hero::after {
  display: none;
}

.hero__text {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  text-align: left;
}

.hero__text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  animation: typeIn 0.45s forwards ease-out;
  animation-delay: var(--char-delay, 0ms);
}

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

.hero__list {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__cta--text {
  gap: 1.2rem;
}

.hero__cta--text a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__cta--text span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  white-space: nowrap;
}

.hero__cta--text a:hover {
  color: var(--accent-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: clamp(-1rem, -2vw, -4rem);
  pointer-events: none;
}

.hero__portrait::before {
  display: none;
}

.hero__portrait img {
  width: min(70vw, 900px);
  border-radius: 18px;
  border: none;
  box-shadow: none;
  object-fit: cover;
  aspect-ratio: 3/4;
  opacity: 0.8;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  color: var(--bg);
  box-shadow: 0 15px 30px rgba(83, 224, 255, 0.25);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn--amazon {
  position: static;
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 0.7rem 1.4rem;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.btn--amazon:hover {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(0);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
}

main {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
  background: #050308;
}

@media (max-width: 768px) {
  main {
    gap: 0;
  }
}

.feature {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 4rem clamp(2rem, 8vw, 8rem);
  border-radius: 0;
  border: none;
  background: #000;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  justify-items: start;
  align-items: center;
}

.feature--book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(83, 224, 255, 0.2),
    transparent 55%
  );
  pointer-events: none;
}

.feature__content {
  max-width: 640px;
  text-align: left;
}

.feature__content h2 {
  margin: 0.5rem 0 0.3rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.feature__content p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  margin-top: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.feature__details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--muted);
  padding-left: 0;
}

.feature__image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.15);
  position: relative;
  max-width: 360px;
  width: 100%;
}

.feature__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1);
}

.feature__image--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: rgba(255, 255, 255, 0.02);
}

.book-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.book-loading__spinner {
  width: 45px;
  height: 45px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 5s linear infinite;
}

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

.book-loading__text {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-sans);
}

.btn--coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.quotes {
  width: 100%;
  padding: 1.5rem clamp(1.5rem, 6vw, 6rem) 10rem;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 110px;
}

.section-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(83, 224, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  box-shadow: 0 0 20px rgba(83, 224, 255, 0.35);
  margin: 2rem auto 1rem;
}

.quotes__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin: 0 0 5.5rem;
}

.quotes__list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}

.quotes__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quotes__line {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--muted);
  margin: 0;
}

.quotes__text {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.quotes__text p {
  margin: 0 0 1.2rem 0;
}

.quotes__text p:last-child {
  margin-bottom: 0;
}

.quotes__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.contact {
  display: none;
}

.newsletter {
  width: 100%;
  padding: 6rem clamp(1.5rem, 6vw, 6rem);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter__subtitle {
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.6;
  flex: 1;
  min-width: 300px;
  margin: 0;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  flex: 1;
  min-width: 300px;
  align-items: flex-end;
}

.newsletter__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.newsletter__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  position: relative;
  margin: 0;
}

.newsletter__checkbox:checked {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
}

.newsletter__checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.newsletter__checkbox-label a {
  color: var(--accent-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.newsletter__checkbox-label a:hover {
  border-bottom-color: var(--accent-secondary);
}

.newsletter__input {
  width: 100%;
  max-width: 500px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color 0.3s, background 0.3s;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn--newsletter {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 14px 28px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  display: none !important;
}

.btn--newsletter:hover:not(:disabled) {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn--newsletter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.newsletter__message {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  margin-top: 1rem;
}

.newsletter__message.success {
  background: rgba(83, 224, 255, 0.2);
  color: var(--accent-secondary);
  border: 1px solid rgba(83, 224, 255, 0.4);
  display: block;
}

.newsletter__message.error {
  background: rgba(255, 77, 158, 0.2);
  color: var(--accent);
  border: 1px solid rgba(255, 77, 158, 0.4);
  display: block;
}

@media (max-width: 768px) {
  .newsletter {
    padding: 0.5rem clamp(1.5rem, 6vw, 6rem) 3rem;
  }
  
  .newsletter__container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .newsletter__subtitle {
    text-align: left;
    margin: 0;
  }
  
  .newsletter__form {
    width: 100%;
    align-items: stretch;
  }
  
  .newsletter__input {
    max-width: none;
    width: 100%;
  }
  
  .btn--newsletter {
    width: 100%;
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .site-nav {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    z-index: 1002;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-nav__brand {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .menu-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .site-nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 4, 10, 1);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    padding-top: 5rem;
    margin: 0;
    gap: 0;
    list-style: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    display: flex;
    visibility: hidden;
  }

  .site-nav__menu--open {
    transform: translateY(0);
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    pointer-events: none;
  }

  .site-nav__menu li {
    width: 100%;
    text-align: center;
    border-bottom: none;
  }

  .site-nav__menu a {
    display: block;
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    width: 100%;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .site-nav__menu a:hover,
  .site-nav__menu a:focus {
    color: var(--accent-secondary);
  }

  .menu-toggle--open .menu-toggle__line {
    background: var(--text);
  }

  .menu-toggle--open .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle--open .menu-toggle__line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .menu-toggle--open .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 1.5rem 0.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 0.5rem;
  }

  .hero__text {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
    order: 1;
    margin-top: 7rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    white-space: normal !important;
    line-height: 1.15;
    text-align: left;
    word-break: break-word;
    display: block;
  }

  .hero h1 br {
    display: block;
    content: "";
    margin-top: 0.3em;
  }

  .hero__portrait {
    position: relative;
    width: 100%;
    padding-right: 0;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-top: -10rem;
    z-index: 1;
    order: 2;
  }

  .hero__portrait img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    opacity: 1;
    object-fit: cover;
  }

  .hero__cta {
    margin-top: 4rem;
    gap: 0.6rem;
    justify-content: center;
  }

  .hero__cta--text {
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    flex-direction: row !important;
    align-items: center;
    margin-top: 1rem;
    white-space: nowrap !important;
    display: flex !important;
  }

  .hero__cta--text a,
  .hero__cta--text span {
    font-size: 0.95rem;
    white-space: nowrap !important;
    display: inline-block;
    flex-shrink: 0;
  }

  .feature {
    padding: 0 1.5rem 3rem;
    gap: 2rem;
    grid-template-columns: 1fr;
    background: #000;
    box-shadow: none;
    margin-top: 0.5rem;
  }

  .feature--book::after {
    display: none;
  }

  .feature__image {
    max-width: 100%;
    margin: 0 auto;
    order: 2;
  }
  
  .feature__image--loading {
    min-height: 550px;
  }

  .feature__content {
    max-width: 100%;
    order: 1;
  }

  .feature__content h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .quotes {
    padding: 2.5rem 1.5rem 8rem;
  }
  .btn {
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  .btn--amazon {
    width: 100%;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    position: static;
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0.8rem 1.2rem;
  }

  .site-nav__brand {
    font-size: 0.75rem;
  }

  .site-nav__menu a {
    font-size: 1.3rem;
    padding: 1.8rem 1.5rem;
  }

  .menu-toggle {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding: 1.5rem 1.2rem 2.5rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero__portrait img {
    max-width: 100%;
  }

  .hero__cta--text {
    flex-direction: row !important;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .hero__cta--text a,
  .hero__cta--text span {
    font-size: 0.95rem !important;
    text-align: left;
    white-space: nowrap !important;
    display: inline-block;
    flex-shrink: 0;
  }

  .feature {
    padding: 0 1.2rem 2.5rem;
    gap: 1.5rem;
  }

  .feature__content h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .quotes {
    padding: 2rem 1.2rem 8rem;
  }
}

@media (min-width: 1024px) {
  .feature {
    grid-template-columns: 360px minmax(0, 640px);
    justify-content: center;
    gap: 6.5rem;
  }

  .feature__content {
    justify-self: start;
    margin-left: 1rem;
  }
}
