:root {
  --bg: #05060a;
  --bg-alt: #0b0e15;
  --bg-soft: #0f121a;
  --card: #111521;
  --text: #f5f5f7;
  --text-secondary: #f5ebd8;
  --muted: #a0a3b1;
  --accent: #f1c453;
  --accent-soft: rgba(241, 196, 83, 0.12);
  --border-subtle: #232734;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 12px 40px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.2s ease;
  --max-width: 1120px;

  /* NEW: fixed header sizing */
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Fonts --------------------------------------------------- */

@font-face {
  font-family: 'Alternate Gothic No2';
  src: url('fonts/AlternateGothicNo2-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #05060a;
  color: var(--text);
  -webkit-font-smoothing: antialiased;

  /* NEW: prevent content hiding under fixed header */
  padding-top: var(--nav-h);
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT ------------------------------------------------------ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* NAVBAR ------------------------------------------------------ */

.nav {
  position: fixed; /* CHANGED: fixed */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 10, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-title-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: 'Alternate Gothic No2', sans-serif;
}

.nav-title-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.nav-link {
  padding: 6px 8px;
  border-radius: 999px;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

.nav-link:hover {
  background: rgba(241, 196, 83, 0.08);
  color: var(--text);
}

.nav-cta {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 196, 83, 0.6);
  background: rgba(241, 196, 83, 0.09);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: rgba(241, 196, 83, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* NEW: hamburger */
.nav-toggle {
  display: none; /* desktop hidden */
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(241, 196, 83, 0.35);
  transform: translateY(-1px);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(241, 196, 83, 0.95); /* FORCE visible */
}

/* NEW: backdrop for mobile menu */
.nav-backdrop {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* HERO -------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 140px;
  background-image: url("images/book1.jpg");
  background-size: cover;
  background-position: 400px top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 6, 10, 1) 26%,
    rgba(5, 6, 10, 0.82) 44%,
    rgba(5, 6, 10, 0.60) 60%,
    rgba(5, 6, 10, 0.25) 100%
  );
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(
    circle,
    rgba(241, 196, 83, 0.40) 0%,
    rgba(241, 196, 83, 0.08) 40%,
    transparent 70%
  );
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-weight: normal;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;

  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.0;
  letter-spacing: 0.5px;

  margin-bottom: 1.2rem;
  font-family: 'Alternate Gothic No2', sans-serif;
}

.hero-subtitle {
  font-size: 16px;
  color: #e6e7ec;
  max-width: 438px;
  line-height: 1.55;
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(241, 196, 83, 0.2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.btn-primary {
  background: linear-gradient(135deg, #f1c453, #f29e4c);
  color: #111216;
  box-shadow: 0 18px 40px rgba(241, 196, 83, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(241, 196, 83, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(241, 196, 83, 0.5);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(241, 196, 83, 0.12);
  border-color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.btn-primary:hover .btn-arrow,
.btn-outline:hover .btn-arrow {
  transform: translateX(2px);
}

.hero-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
}

/* Book mock ---------------------------------------------------- */

.hero-cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-cover-wrap::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 140, 0.18) 0%,
    rgba(255, 215, 140, 0.05) 40%,
    transparent 80%
  );
  filter: blur(40px);
  z-index: -1;
}

.hero-book {
  width: 270px;
  max-width: 100%;
  border-radius: 24px;
  background: #0d0f16cc;
  backdrop-filter: blur(4px) saturate(110%);
  padding: 22px 18px 26px;
  box-shadow: var(--shadow-soft),
    0 0 14px rgba(241, 196, 83, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.book-main-title {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.book-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.book-gradient-band {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1c453, #f29e4c, #f25f5c, #5057ff);
  margin-bottom: 18px;
}

.book-footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.book-author {
  font-weight: 500;
  color: #f5f5f7;
}

.book-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Full-width photos -------------------------------------------- */

.fullwidth-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sections ----------------------------------------------------- */

.section {
  padding: 60px 20px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-kicker {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 25px;
}

.section-heading {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

/* Big idea ----------------------------------------------------- */

.big-idea-text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 18px;
}

.big-idea-highlight {
  color: var(--accent);
}

.big-idea-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.55;
}

/* Features / What you get ------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature-card {
  background: radial-gradient(circle at top, #1b2134, #101320 70%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(241, 196, 83, 0.6);
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 1.1em;
  margin-bottom: 6px;
}

.feature-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* TOC ---------------------------------------------------------- */

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.toc-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(241, 196, 83, 0.32);
  background: radial-gradient(circle at top, #292217, #0c0c10 60%);
  padding: 18px 18px 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
  display: grid;
}

.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.toc-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.toc-title {
  font-size: 1.1em;
  margin-bottom: 8px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.toc-list li {
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}

.toc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* Quote -------------------------------------------------------- */

.quote-section {
  background: radial-gradient(circle at top, #1c2234, #05060a 60%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 26px 10px 24px;
}

.quote-mark {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 6px;
}

.quote-text {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.quote-source {
  font-size: 12px;
  color: var(--muted);
}

/* Who it's for ------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.audience-card {
  background: #0b0f19;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.audience-card-title{
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.audience-card:hover {
  background: #12192b;
  transition: background-color 0.3s ease-in-out;
}

.audience-card p{
  line-height: 1.55;
}

/* Author ------------------------------------------------------- */

.section-author {
  padding: 80px 0;
}

.author-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* LEFT CARD */

.author-card {
  background: #0f0f11;
  padding: 20px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-name {
  font-size: 40px;
  margin-bottom: 20px;
  margin-top: 0;
}

.author-role {
  margin-bottom: 28px;
  color: #b8bbc0;
}

.author-text {
  margin-bottom: 20px;
  line-height: 1.55;
  color: #e6e6e6;
}

/* BUTTON CHIPS */

.author-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.btn-chip {
  background: #1a1c1f !important;
  border: 1px solid #2a2c30 !important;
  padding: 10px 20px;
  border-radius: 999px;
  color: #e6e6e6 !important;
  font-size: 15px;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-chip:hover {
  background: #222428 !important;
  border-color: #3a3d42 !important;
}

/* RIGHT IMAGE */

.author-image-card {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.author-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Final CTA ---------------------------------------------------- */

.final-cta {
  text-align: center;
}

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(
      to right,
      rgba(245, 215, 110, 0) 0%,
      rgba(245, 215, 110, 0.6) 50%,
      rgba(245, 215, 110, 0) 100%
  );
  margin: 0px 0 60px 0;
  opacity: 1;
}

.final-cta-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.final-cta-text {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 18px;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Free chapter ------------------------------------------------- */

#sample a{
  border: 1px solid white;
}

/* For organizations ------------------------------------------ */

#contact a{
  color: var(--accent);
}

/* Form placeholder --------------------------------------------- */

.form-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Footer ------------------------------------------------------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px 26px;
  font-size: 12px;
  color: var(--muted);
}

.footer a.muted{
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
}

.footer-cta.accent {
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.footer-cta:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
  text-align: center;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-sep {
  margin: 0 0.45rem;
  opacity: 0.35;
}

/* ANIMATIONS --------------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive --------------------------------------------------- */

@media (max-width: 900px) {

  .nav-inner {
    padding-inline: 16px;
  }

  /* show hamburger, turn links into a panel */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    z-index: 60;

    display: flex;               /* important: not none */
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;

    background: rgba(10, 12, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 14px;
    width: 100%;
    text-align: center;
  }

  body.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid,
  .toc-grid,
  .audience-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Author mobile tweaks (your existing) */
  .hero{
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .author-container {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 0 16px;
  }

  .author-card {
    padding: 28px;
    margin: 0;
  }

  .author-image-card {
    height: 420px !important;
    border-radius: 18px;
    overflow: hidden;
  }

  .author-image-card img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .author-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 680px) {

  .hero {
    background-position: center top;
  }

  /* Stronger overlay on mobile */
  .hero::before{
    background: linear-gradient(
      to bottom,
      rgba(5,6,10,0.94) 0%,
      rgba(5,6,10,0.88) 55%,
      rgba(5,6,10,0.78) 80%,
      rgba(5,6,10,0.70) 100%
    );
  }
  .hero-subtitle { max-width: 32ch; }


  /* Push the photo into “atmosphere”, not “text” */
  .hero-inner{
    backdrop-filter: blur(2px);
  }
  
  .section {
    padding-inline: 16px;
  }

  .hero-title {
    font-size: 30px;
    white-space: normal; /* NEW: avoid overflow on narrow screens */
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .features-grid,
  .toc-grid,
  .audience-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-card {
    padding-inline: 14px;
  }

  .author-card {
    padding-inline: 14px;
  }

  .hero {
    background-attachment: scroll;
    background-position: center top; /* NEW: nicer hero on mobile */
  }
}

@media (min-width: 901px) {
  .hero {
    background-attachment: fixed;
  }
}

/* NEW: lock scroll when menu is open */
body.nav-open {
  overflow: hidden;
}
