:root {
  --bg: #050814;
  --bg-elevated: #0b1022;
  --accent: #ffb347;
  --accent-soft: rgba(255, 179, 71, 0.16);
  --accent-2: #ff5c7a;
  --text: #f5f5fa;
  --muted: #b3b7d4;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition-fast: 0.22s ease-out;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #171c39 0, #050814 40%, #02030a 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.94),
    rgba(5, 8, 20, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 30% 0, #ffe6aa, #ff8a5c 50%, #ff2e73);
  border-radius: 30% 70% 65% 35%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0.5;
}

.logo-text-main {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition-fast);
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #120812;
  font-weight: 600;
  font-size: 0.78rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Mobile nav */

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16), transparent);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(255, 92, 122, 0.8);
}

.hero-title {
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #140810;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.hero-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-meta span {
  color: var(--accent);
  font-weight: 500;
}

/* Hero art */

.hero-art {
  background: radial-gradient(circle at top, #31385c, #050814 65%);
  border-radius: 32px;
  padding: 1px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.hero-art-inner {
  border-radius: 30px;
  background: radial-gradient(circle at 0 0, #1b2346, #050814 52%, #121730 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 1.5rem 1.9rem;
  position: relative;
  overflow: hidden;
}

.hero-art-orbit {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  opacity: 0.7;
}

.hero-planet {
  position: absolute;
  right: 12%;
  top: 14%;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffe9b5, #ff9452 45%, #ff2560);
  box-shadow: 0 0 35px rgba(255, 140, 60, 0.8);
}

.hero-glow {
  position: absolute;
  left: 8%;
  bottom: -6%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 92, 122, 0.35), transparent);
  filter: blur(4px);
  opacity: 0.7;
}

.book-stack {
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 2;
}

.book-chip {
  border-radius: 18px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(10, 14, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.book-chip-accent {
  width: 34px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(150deg, #ffcf73, #ff8a4f, #ff3374);
  position: relative;
  overflow: hidden;
}

.book-chip-accent::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}

.book-chip-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.book-chip-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.book-chip-pill {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Sections */

section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 24rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2.4rem;
  align-items: center;
}

.about-card {
  border-radius: 26px;
  padding: 1.8rem;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(145deg, #080b18, #0f142a);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.about-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-highlight {
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 179, 71, 0.07);
  border: 1px dashed rgba(255, 179, 71, 0.55);
  font-size: 0.82rem;
  color: var(--accent);
}

.about-meta {
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.about-meta strong {
  color: var(--text);
  font-weight: 500;
}

/* Books grid */

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.book-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.3rem;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(150deg, #080b17, #121732);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
  margin: 0.4rem 0 0.6rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.book-card:hover .cover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.75);
}


.book-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.book-tag-pill {
  padding: 0.16rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.book-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.book-age {
  font-size: 0.8rem;
  color: var(--accent);
}

.book-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.book-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.book-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.book-link-btn {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--accent);
}

.book-link-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 179, 71, 0.08);
}

.book-metadata {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Strip */

.strip {
  margin-top: 2.8rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(255, 92, 122, 0.18), transparent),
    rgba(7, 10, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  align-items: center;
  font-size: 0.8rem;
}

.strip strong {
  color: var(--accent);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.contact-card,
.contact-side,
.detail-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent),
    rgba(7, 10, 26, 0.92);
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  width: min(320px, 90%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 55px rgba(0,0,0,0.7);
  margin: 14px 0;
}

.contact-card h3,
.contact-side h3,
.detail-card h1,
.detail-card h2 {
  margin-bottom: 0.7rem;
}

.contact-card h3,
.contact-side h3 {
  font-size: 1.05rem;
}

.contact-card p,
.contact-side p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.field label {
  color: var(--muted);
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 6, 19, 0.9);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(179, 183, 212, 0.7);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.5);
  background: rgba(3, 7, 20, 0.98);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.contact-meta a {
  color: var(--accent);
  font-weight: 500;
}

.contact-meta span.label {
  color: var(--text);
  font-weight: 500;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* Detail pages */

.detail-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.detail-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.detail-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-meta strong {
  color: var(--accent);
}

.detail-section {
  margin-top: 1.4rem;
}

.detail-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.detail-section p {
  font-size: 0.86rem;
  color: var(--muted);
}

.detail-list {
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 1.1rem;
}

.detail-list li + li {
  margin-top: 0.2rem;
}

.buy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.btn-buy {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
}

/* Back link */

.back-link {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.back-link a {
  color: var(--accent);
}

/* Footer */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 0 2.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsiveness */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    order: -1;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .books-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3.2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-header {
    align-items: flex-start;
  }
}

.author-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  width: fit-content;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
}

.author-name {
  font-weight: 600;
}

.author-role {
  font-size: 0.85rem;
  color: var(--muted);
}
