:root {
  --ink: #101820;
  --muted: #40535f;
  --paper: #f8fbfb;
  --paper-texture: #eef6f8;
  --sky: #b9ecfb;
  --sky-strong: #45c2ea;
  --blue: #004b9b;
  --blue-dark: #002f6f;
  --orange: #f39a00;
  --orange-dark: #d57d00;
  --white: #ffffff;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 28px 80px rgba(0, 47, 111, 0.2);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--blue-dark);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(248, 251, 251, 0.94);
  box-shadow: 0 12px 36px rgba(0, 47, 111, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 6vw, 84px) 70px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, #eaf9fd 0%, var(--sky) 52%, #72d5f2 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-shape-one {
  width: 330px;
  height: 330px;
  top: -120px;
  right: -72px;
  background: var(--orange);
}

.hero-shape-two {
  width: 360px;
  height: 360px;
  left: -160px;
  bottom: -160px;
  border: 38px solid var(--blue);
}

.hero-content,
.hero-book {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(58px, 10vw, 124px);
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--orange-dark);
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.12;
}

.hero-copy {
  max-width: 630px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 32px rgba(243, 154, 0, 0.28);
}

.button-secondary {
  color: var(--blue-dark);
  border-color: rgba(0, 75, 155, 0.26);
  background: rgba(255, 255, 255, 0.5);
}

.button-large {
  min-width: 190px;
}

.book-mockup {
  position: relative;
  width: min(420px, 100%);
  margin-left: auto;
  transform: rotate(2deg);
}

.book-mockup::before {
  position: absolute;
  top: 22px;
  right: -18px;
  bottom: 22px;
  width: 42px;
  border-radius: 0 var(--radius) var(--radius) 0;
  content: "";
  background: linear-gradient(90deg, #d8edf5, #ffffff 38%, #d4e7ee 100%);
  box-shadow: 20px 24px 42px rgba(0, 47, 111, 0.22);
}

.book-mockup img,
.back-cover-mockup img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-section,
.themes-section,
.impact-section,
.quote-section,
.author-section,
.details-section,
.quiz-section,
.buy-section {
  padding: clamp(72px, 10vw, 124px) 0;
}

.intro-grid,
.quote-layout,
.impact-layout,
.author-layout,
.details-layout,
.quiz-layout,
.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.intro-copy,
.author-content,
.buy-layout p {
  color: var(--muted);
  font-size: 18px;
}

.intro-copy p:last-child,
.author-content p:last-of-type,
.buy-layout p:last-child {
  margin-bottom: 0;
}

.themes-section {
  background: var(--white);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  min-height: 265px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #effbfe 100%);
}

.theme-number {
  display: block;
  margin-bottom: 60px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.theme-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.impact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(243, 154, 0, 0.18), transparent 20%),
    var(--paper-texture);
}

.impact-layout {
  align-items: center;
}

.impact-content p {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
}

.impact-note {
  display: inline-grid;
  gap: 2px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 47, 111, 0.08);
}

.impact-note strong {
  font-size: 20px;
  font-weight: 900;
}

.impact-note span {
  color: var(--muted);
}

.impact-gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.impact-gallery img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 47, 111, 0.13);
}

.impact-gallery .gallery-main {
  grid-row: span 2;
  min-height: 470px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.policy-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(0, 75, 155, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.policy-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.quote-section {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(243, 154, 0, 0.45), transparent 18%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.quote-section .eyebrow,
.buy-section .eyebrow {
  color: #ffc46b;
}

.quote-section h2 {
  color: var(--white);
}

.quote-card {
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
}

figcaption {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.author-section {
  background: var(--paper-texture);
}

.back-cover-mockup {
  max-width: 430px;
}

.author-content {
  align-self: center;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: var(--blue-dark);
  font-size: 14px;
}

.social-strip a,
.social-strip strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
}

.social-strip a {
  font-weight: 800;
  transition: transform 160ms ease, color 160ms ease;
}

.social-strip a:hover {
  color: var(--orange-dark);
  transform: translateY(-1px);
}

.social-strip strong {
  color: var(--white);
  background: var(--blue);
}

.details-section {
  background: var(--white);
}

.details-layout {
  align-items: start;
}

.details-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.details-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  background: var(--white);
}

dt {
  color: var(--blue);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--muted);
}

.quiz-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(243, 154, 0, 0.16), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #effbfe 100%);
}

.quiz-layout {
  align-items: start;
}

.quiz-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.quiz-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(0, 75, 155, 0.13);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 22px 60px rgba(0, 47, 111, 0.11);
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.quiz-bar {
  overflow: hidden;
  height: 8px;
  margin: 16px 0 26px;
  border-radius: 999px;
  background: #dceff6;
}

.quiz-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--sky-strong));
  transition: width 220ms ease;
}

.quiz-panel h3 {
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(0, 75, 155, 0.16);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  background: #f8fbfb;
  font: inherit;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--sky-strong);
  transform: translateY(-1px);
}

.quiz-option.is-correct {
  border-color: #1f9d61;
  background: #e9f8f0;
}

.quiz-option.is-wrong {
  border-color: #d85a42;
  background: #fff0ec;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-feedback {
  min-height: 54px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.quiz-feedback strong {
  color: var(--blue-dark);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

.quiz-actions .button {
  border: 0;
  cursor: pointer;
}

.buy-section {
  color: var(--white);
  background:
    radial-gradient(circle at 8% 82%, rgba(69, 194, 234, 0.3), transparent 19%),
    linear-gradient(135deg, #002657, var(--blue-dark));
}

.buy-section h2 {
  color: var(--white);
}

.buy-layout {
  align-items: center;
}

.buy-layout p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.buy-layout .button {
  justify-self: end;
}

/* ==========================================================================
   FOOTER & SITEMAP DESIGN
   ========================================================================== */
.site-footer-container {
  color: rgba(255, 255, 255, 0.72);
  background: #071724;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer-container::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.site-footer-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: clamp(34px, 4vw, 56px);
  align-items: start;
}

.footer-heading {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  margin-top: 0;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
  display: inline-block;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.brand-col .brand {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.48);
  background: #05111b;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 64px;
}

.footer-bottom p {
  margin: 0;
  font-weight: 500;
}

.footer-bottom a {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: color 180ms ease;
}

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .site-footer-container {
    padding-top: 60px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 18px;
    margin-top: 48px;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--blue-dark);
    background: rgba(248, 251, 251, 0.98);
    box-shadow: 0 18px 40px rgba(0, 47, 111, 0.14);
  }

  .nav.is-open {
    display: grid;
    gap: 6px;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav-cta {
    width: fit-content;
    padding: 9px 15px;
  }

  .hero,
  .intro-grid,
  .quote-layout,
  .impact-layout,
  .author-layout,
  .details-layout,
  .quiz-layout,
  .buy-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-shape-two {
    left: -230px;
    bottom: -220px;
    border-width: 30px;
  }

  .hero-book {
    order: -1;
  }

  .book-mockup {
    width: min(320px, 76vw);
    margin-inline: auto;
  }

  h1 {
    max-width: 650px;
    font-size: clamp(48px, 13vw, 78px);
    line-height: 0.96;
  }

  .hero-subtitle {
    max-width: 720px;
    font-size: clamp(26px, 5.4vw, 44px);
  }

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

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-card {
    min-height: 0;
  }

  .theme-number {
    margin-bottom: 28px;
  }

  .back-cover-mockup,
  .buy-layout .button {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .quote-card {
    padding: 24px;
  }

  .impact-gallery {
    grid-template-columns: 1fr;
  }

  .impact-gallery .gallery-main,
  .impact-gallery img {
    min-height: 320px;
  }

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

  .policy-card {
    min-height: 0;
  }

  .quiz-progress,
  .quiz-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .details-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* site-footer removed and replaced with modern footer system */
}

/* ==========================================================================
   FORM & INPUT DESIGN SYSTEM
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(0, 75, 155, 0.16);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-strong);
  box-shadow: 0 0 0 3px rgba(69, 194, 234, 0.18);
}

.form-group textarea {
  resize: vertical;
}

.form-feedback {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.form-feedback.is-success {
  color: #1f9d61;
}

.form-feedback.is-error {
  color: #d85a42;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.contact-info p {
  color: var(--muted);
  font-size: 18px;
}

.contact-form-container {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(0, 75, 155, 0.13);
  border-radius: var(--radius);
  background: var(--paper-texture);
  box-shadow: 0 16px 40px rgba(0, 47, 111, 0.05);
}

.contact-form .button {
  border: 0;
  font-size: 14px;
}

/* ==========================================================================
   MODAL COMPONENT
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 23, 36, 0.62);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-backdrop.is-active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(24px, 5vw, 36px);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: scale(0.92);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.is-active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.modal-close:hover {
  color: var(--orange-dark);
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

