/* ===== LANDING PAGE STYLES — PREMIUM OVERHAUL ===== */

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(226,232,240,.6);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(229,161,0,.3));
}

.navbar-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--g500);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.navbar-links a:hover {
  color: var(--g900);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Hero --- */
.hero {
  padding: 160px 32px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(124,58,237,.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(229,161,0,.04) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--g50) 100%);
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-p) 0%, #F5F3FF 100%);
  border: 1px solid rgba(37,99,235,.1);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 32px;
  animation: slideUp 0.6s var(--ease-out) both;
  letter-spacing: -0.01em;
}

.hero-badge svg {
  width: 15px;
  height: 15px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: slideUp 0.6s var(--ease-out) 0.1s both;
  letter-spacing: -0.035em;
  color: var(--g900);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #7C3AED 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1875rem;
  color: var(--g500);
  max-width: 560px;
  margin: 0 auto 24px;
  animation: slideUp 0.6s var(--ease-out) 0.2s both;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  animation: slideUp 0.6s var(--ease-out) 0.3s both;
}

/* --- Book Library --- */
.library-section {
  padding: 8px 32px 40px;
  background: #fff;
}

.library-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.library-header {
  text-align: center;
  margin-bottom: 36px;
}

.library-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--g900);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.library-header p {
  color: var(--g500);
  font-size: 1.0625rem;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  min-height: 260px;
  max-width: 1000px;
  margin: 0 auto;
}

.library-book {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  background: var(--g50);
}

.library-book:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.library-book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--g100);
  position: relative;
}

.library-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-book-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-p), #E0E7FF);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.library-book-info {
  padding: 10px 10px 12px;
}

.library-book-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--g900);
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.library-book-author {
  font-size: 0.6875rem;
  color: var(--g500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-book-coming-soon {
  pointer-events: none;
  cursor: default;
}

.library-book-cover {
  position: relative;
  overflow: hidden;
}

.library-book-coming-soon .coming-soon-ribbon {
  position: absolute;
  top: 24px;
  right: -30px;
  width: 165px;
  padding: 5px 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  line-height: 1.4;
}

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.library-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--g200);
  background: #fff;
  color: var(--g700);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.library-page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-p);
}

.library-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.library-page-btn svg {
  width: 16px;
  height: 16px;
}

.library-page-info {
  font-size: 0.8125rem;
  color: var(--g400);
  padding: 0 12px;
}

.library-disclaimer {
  text-align: center;
  color: var(--g400);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.library-disclaimer a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 500;
}

.library-disclaimer a:hover {
  color: var(--navy);
}

/* --- Features --- */
.features-section {
  padding: 32px 32px 80px;
  background: #fff;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--g500);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.35s var(--ease-out);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--blue), #6366F1); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), #F59E0B); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--green), #10B981); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--purple), #A78BFA); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, #3B82F6, var(--blue-bright)); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, var(--orange), #F59E0B); }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon.blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.feature-icon.gold { background: linear-gradient(135deg, #e5a100, #f5c542); }
.feature-icon.green { background: linear-gradient(135deg, #059669, #34d399); }
.feature-icon.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.feature-icon.sky { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.feature-icon.orange { background: linear-gradient(135deg, #ea580c, #fb923c); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--g900);
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--g500);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Expandable feature detail */
.feature-card { cursor: pointer; }
.feature-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.feature-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-detail li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--g600);
}
.feature-detail li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green, #10B981);
  font-weight: 700;
}
.feature-expand-hint {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  transition: opacity 0.2s;
}
.feature-card.expanded .feature-detail {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
}
.feature-card.expanded .feature-expand-hint {
  opacity: 0;
}
.feature-card.expanded {
  border-color: transparent;
  box-shadow: var(--sh-lg);
}
.feature-card.expanded::before {
  opacity: 1;
}

/* --- Dashboard Icons Row --- */
.dashboard-icons-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.dashboard-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dashboard-icon-block {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.dashboard-icon-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--g700, #374151);
}
.dashboard-icon-desc {
  font-size: 0.75rem;
  color: var(--g500, #6b7280);
  line-height: 1.5;
  max-width: 160px;
}
@media (max-width: 768px) {
  .dashboard-icons-row {
    gap: 20px;
  }
  .dashboard-icon-block {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .dashboard-icon-img {
    width: 26px;
    height: 26px;
  }
  .dashboard-icon-label {
    font-size: 0.6875rem;
  }
}

/* --- Growth Banner --- */
.growth-banner-section {
  padding: 0 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.growth-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.growth-banner-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.growth-banner-img {
  width: 100%;
  height: auto;
  display: block;
}
.growth-banner-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 56px;
}
.growth-banner-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
.growth-banner-text {
  text-align: center;
  align-items: center;
}
.growth-banner-text h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--g900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  text-align: center;
}
.growth-highlight {
  color: #E5A100;
  font-size: 2.75rem;
}
.growth-banner-text p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--g600);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 400px;
}
@media (max-width: 768px) {
  .growth-banner-wrap {
    display: flex;
    flex-direction: column;
  }
  .growth-banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: right center;
  }
  .growth-banner-text {
    position: static;
    width: 100%;
    padding: 24px;
  }
  .growth-banner-text h2 {
    font-size: 1.5rem;
  }
  .growth-highlight {
    font-size: 1.75rem;
  }
  .growth-banner-text p {
    font-size: 0.8rem;
  }
  .growth-banner-logo {
    width: 56px;
    margin-bottom: 10px;
  }
}

/* --- Why Physical Books --- */
.why-physical-section {
  padding: 40px 32px;
  background: var(--g50, #f9fafb);
}
.why-physical-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.why-physical-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy, #0F2B46);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  text-align: center;
}
.why-physical-subtitle {
  font-size: 0.95rem;
  color: var(--g500, #6b7280);
  line-height: 1.7;
  margin: 0 auto 32px;
  text-align: center;
  max-width: 800px;
}
.why-physical-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}
.why-physical-img {
  width: 340px;
  flex-shrink: 0;
  height: auto;
}
.why-physical-content {
  flex: 1;
  text-align: left;
}
.why-physical-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-physical-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.why-physical-point-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why-physical-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.why-physical-point strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--g900, #111827);
  display: block;
  margin-bottom: 4px;
}
.why-physical-point p {
  font-size: 0.875rem;
  color: var(--g500, #6b7280);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .why-physical-section {
    padding: 48px 20px;
  }
  .why-physical-layout {
    flex-direction: column;
    gap: 28px;
  }
  .why-physical-img {
    width: 300px;
    margin: 0 auto;
  }
  .why-physical-content {
    text-align: center;
  }
  .why-physical-heading {
    font-size: 1.35rem;
  }
  .why-physical-point {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

/* --- How It Works --- */
.how-section {
  padding: 32px 32px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 60%);
}

.how-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,161,0,.06) 0%, transparent 60%);
}

.how-section .section-header {
  margin-bottom: 28px;
}

.how-section .section-header h2 {
  color: #fff;
  font-size: 1.75rem;
}

.how-section .section-header p {
  color: rgba(255,255,255,.5);
  font-size: 0.9375rem;
}

.how-steps {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.how-step {
  text-align: center;
  padding: 24px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s var(--ease-out);
}

.how-step:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37,99,235,.2) 0%, rgba(124,58,237,.15) 100%);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  letter-spacing: -0.02em;
}

.how-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.how-step p {
  color: rgba(255,255,255,.5);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* --- Carefully Designed Section --- */
.carefully-designed-section {
  padding: 56px 24px 48px;
  text-align: center;
  background: #fff;
}
.carefully-designed-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.carefully-designed-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy, #1e293b);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.carefully-designed-subtitle {
  font-size: 1rem;
  color: var(--g400, #6b7280);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 28px;
}
.carefully-designed-img {
  width: 100%;
  max-width: 1100px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 32px;
}

/* --- Quiz Dropdown Accordion --- */
.quiz-dropdown {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.quiz-dropdown.open {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}
.quiz-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  transition: opacity 0.2s;
}
.quiz-dropdown-toggle:hover {
  opacity: 0.92;
}
.quiz-dropdown-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.quiz-dropdown-arrow {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.8);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.quiz-dropdown.open .quiz-dropdown-arrow {
  transform: rotate(180deg);
}
.quiz-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}
.quiz-dropdown.open .quiz-dropdown-content {
  max-height: 800px;
  padding: 0 28px 28px;
}
.quiz-dropdown-desc {
  font-size: 0.95rem;
  color: var(--g500, #6b7280);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 20px;
}
.quiz-dropdown-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
@media (max-width: 768px) {
  .carefully-designed-heading {
    font-size: 1.5rem;
  }
  .carefully-designed-subtitle {
    font-size: 0.875rem;
  }
  .quiz-dropdown-toggle {
    padding: 16px 20px;
  }
  .quiz-dropdown-title {
    font-size: 1.05rem;
  }
  .quiz-dropdown-content {
    padding: 0 20px;
  }
  .quiz-dropdown.open .quiz-dropdown-content {
    padding: 0 20px 20px;
  }
}

/* --- Pricing --- */
.pricing-section {
  padding: 72px 32px;
  background: linear-gradient(180deg, var(--g50) 0%, #fff 100%);
}

.pricing-grid {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--blue);
  background: linear-gradient(180deg, #fff 0%, var(--blue-p) 100%);
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue) 0%, #4F46E5 100%);
  color: #fff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.pricing-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--g100);
  color: var(--g600);
}

.pricing-card-icon svg {
  width: 24px;
  height: 24px;
}

.pricing-card.popular .pricing-card-icon {
  background: linear-gradient(135deg, var(--blue-p) 0%, #EEF2FF 100%);
  color: var(--blue);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--g900);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.pricing-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--g400);
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--g900);
  letter-spacing: -0.04em;
}

.pricing-price .period {
  color: var(--g400);
  font-size: 0.875rem;
}

.pricing-desc {
  color: var(--g500);
  font-size: 0.875rem;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--g200);
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--g600);
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 32px 100px;
  background: #fff;
}

.cta-box {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--navy) 0%, #162D50 50%, var(--navy-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 60%);
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,161,0,.08) 0%, transparent 60%);
}

.cta-box h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -0.03em;
}

.cta-box p {
  color: rgba(255,255,255,.55);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-box .btn {
  position: relative;
  font-size: 1rem;
  padding: 16px 36px;
}

/* --- Footer --- */
.footer {
  padding: 28px 32px;
  border-top: 1px solid var(--g200);
  background: var(--g50);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--g400);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--g700);
}

.footer-copy {
  color: var(--g400);
  font-size: 0.8125rem;
}

/* --- Responsive --- */
/* --- Hero Predictive Search --- */
.hero-search {
  max-width: 560px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 10;
  animation: slideUp 0.6s var(--ease-out) 0.3s both;
}

.hero-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: var(--g400);
  pointer-events: none;
  z-index: 1;
}

.hero-search-input-wrap input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  border: 2px solid var(--g200);
  border-radius: 100px;
  font-size: 1.0625rem;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--g900);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.hero-search-input-wrap input::placeholder {
  color: var(--g400);
}

.hero-search-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 24px rgba(0,0,0,.08);
}

/* --- Search Results Dropdown --- */
.hero-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 50;
  max-height: 420px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid var(--g100);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: #f0f7ff;
}

.search-result-thumb {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-thumb-fallback {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g400);
}

.search-result-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--g900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title strong {
  color: var(--blue);
  font-weight: 700;
}

.search-result-meta {
  font-size: 0.8125rem;
  color: var(--g500);
  margin-top: 3px;
}

.search-result-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--g300);
  transition: color 0.15s;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.active .search-result-arrow {
  color: var(--blue);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--g500);
  font-size: 0.9375rem;
}

.search-no-results a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.search-no-results a:hover {
  text-decoration: underline;
}

.hero .hero-browse-link {
  font-size: 0.9375rem;
  color: var(--g400);
  margin-bottom: 16px;
  animation: slideUp 0.6s var(--ease-out) 0.35s both;
  position: relative;
  z-index: 1;
}

.hero-browse-link a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.hero-browse-link a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .hero {
    padding: 130px 24px 24px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-search-input-wrap input {
    padding: 14px 20px 14px 48px;
    font-size: 1rem;
  }

  .hero .hero-browse-link {
    margin-bottom: 12px;
  }

  .library-section {
    padding: 8px 16px 32px;
  }

  .library-grid {
    gap: 12px;
  }

  .library-header h2 {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-box h2 {
    font-size: 1.75rem;
  }
}
