@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #66B7A0;
  --magenta: #B7667D;
  --brown: #B7A066;
  --blue: #667DB7;
  --ink: #1f2933;
  --muted: #5b6572;
  --paper: #f8f9fa;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(102, 183, 160, 0.1) 0%, rgba(102, 183, 160, 0) 55%),
    radial-gradient(circle at 85% 15%, rgba(183, 102, 125, 0.1) 0%, rgba(183, 102, 125, 0) 55%),
    radial-gradient(circle at 20% 80%, rgba(183, 160, 102, 0.1) 0%, rgba(183, 160, 102, 0) 55%),
    radial-gradient(circle at 90% 80%, rgba(102, 125, 183, 0.1) 0%, rgba(102, 125, 183, 0) 55%);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.site-nav a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(102, 183, 160, 0.9), rgba(102, 125, 183, 0.9));
  color: #ffffff;
  border-color: transparent;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 90px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-top: 8px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  box-shadow: var(--shadow-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(102, 183, 160, 0.15);
  color: var(--green);
  font-weight: 500;
  font-size: 0.9rem;
}

.section {
  margin-top: 80px;
}

.container > .section:first-child {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 2.1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
}

.cards,
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card,
.book-card,
.blog-item,
.blog-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.card:hover,
.book-card:hover,
.blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 11.5px 34.5px rgba(0, 0, 0, 0.08);
}

.card {
  padding: 24px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.card-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(31, 41, 51, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--blue);
  font-weight: 700;
}

.book-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.book-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.book-cover-image {
  display: block;
  width: 100%;
  height: auto;
}

.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(183, 102, 125, 0.15);
  color: var(--magenta);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(102, 183, 160, 0.95), rgba(183, 102, 125, 0.95));
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid rgba(31, 41, 51, 0.15);
  box-shadow: none;
}

.btn:hover,
.btn.secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 11.5px 34.5px rgba(0, 0, 0, 0.08);
}

.btn.secondary.active {
  background: linear-gradient(135deg, rgba(102, 125, 183, 0.95), rgba(183, 160, 102, 0.95));
  color: #ffffff;
  border-color: transparent;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
}

.blog-nav {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  height: fit-content;
}

.blog-nav h3 {
  margin-bottom: 12px;
}

.blog-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.blog-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 41, 51, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: var(--transition);
  overflow-wrap: anywhere;
}

.blog-nav a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.blog-nav a.active {
  background: linear-gradient(135deg, rgba(102, 125, 183, 0.95), rgba(183, 102, 125, 0.95));
  color: #ffffff;
  border-color: transparent;
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-item {
  padding: 16px;
  cursor: pointer;
}

.blog-item.active {
  background: linear-gradient(135deg, rgba(102, 125, 183, 0.9), rgba(183, 102, 125, 0.9));
  color: #ffffff;
  border-color: transparent;
}

.blog-content {
  padding: 28px;
  overflow-wrap: anywhere;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
  margin-top: 18px;
  font-weight: 700;
}

.blog-content p {
  margin-top: 12px;
}

.blog-content ul,
.blog-content ol {
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left: 0;
  padding-left: 24px;
}

.blog-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-content hr {
  margin-top: 24px;
  margin-bottom: 24px;
  border: none;
  border-top: 1px solid rgba(31, 41, 51, 0.15);
}

.journal-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.journal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-page-controls {
  justify-content: center;
}

.pdf-reader-shell {
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  color-scheme: light;
  isolation: isolate;
}

#pdf-pages {
  width: 100%;
  min-height: 78vh;
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border-radius: calc(var(--radius-md) - 6px);
}

.pdf-page-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.08);
}

#pdf-fallback {
  background: #ffffff !important;
  color-scheme: light;
  border-radius: calc(var(--radius-md) - 6px);
}

#pdf-render {
  border: 1px solid rgba(31, 41, 51, 0.2);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.footer {
  border-top: 1px solid rgba(31, 41, 51, 0.08);
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-weight: 300;
}

.notice-banner {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: var(--radius-md);
  margin: 20px auto 0;
  max-width: 1180px;
  box-shadow: var(--shadow-soft);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.notice-content {
  max-width: 680px;
  font-size: 0.95rem;
  color: var(--muted);
}

.notice-content strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 8px;
}

.notice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notice-banner .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.compliance-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 51, 0.08);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.compliance-list {
  margin-top: 16px;
  padding-left: 18px;
  color: var(--muted);
}

.compliance-list li {
  margin: 10px 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-weight: 500;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.85;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-text-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.external-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger > * {
  animation: fade-in-up 0.6s ease both;
}

.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }
.stagger > *:nth-child(6) { animation-delay: 0.4s; }

@media (max-width: 1024px) {
  .container {
    padding: 26px 20px 70px;
  }

  .hero {
    gap: 2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 22px 16px 64px;
  }

  .section {
    margin-top: 56px;
  }

  .container > .section:first-child {
    margin-top: 18px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-nav {
    padding: 14px;
  }

  .blog-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.92rem;
    padding: 8px 12px;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .card,
  .book-card,
  .blog-content {
    padding: 16px;
  }

  .blog-content ul,
  .blog-content ol {
    padding-left: 20px;
  }

  .pdf-reader-shell {
    padding: 6px;
  }

  #pdf-pages {
    min-height: 70vh;
    height: 70vh;
  }
}
