/* ============================================================
   CLEARVIEW — Landing Page Styles
   Warm Gold + Deep Purple Premium
   ============================================================ */

:root {
  --bg:           #0A0A12;
  --bg-dark:      #06060C;
  --surface:      #141420;
  --surface-2:    #1C1C2E;
  --border:       #2A2840;
  --text:         #F5F0E8;
  --text-soft:    #B8B0C4;
  --text-muted:   #8A8497;
  --accent:       #D4A853;
  --accent-dark:  #B8923E;
  --accent-light: #E8C878;
  --accent-dim:   rgba(212,168,83,0.12);
  --purple:       #8B5CF6;
  --purple-deep:  #4C1D95;
  --purple-glow:  rgba(139,92,246,0.15);
  --gradient-btn: linear-gradient(135deg, #C89B3C 0%, #E2B85A 100%);
  --radius:       16px;
  --radius-sm:    10px;
  --max-w:        1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typographic Covers (shared base) ── */
.typo-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  gap: 6px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.tc-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  word-break: break-word;
  overflow-wrap: break-word;
}
.tc-rule {
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}
.tc-author {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.hidden { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-btn);
  color: #0A0A12;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(212,168,83,0.35);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,83,0.5);
}
.btn-primary:active { transform: scale(0.97); }

.btn-lg { padding: 16px 40px; font-size: 15px; border-radius: 14px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(212,168,83,0.08), 0 4px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo-c { color: var(--text); }
.logo-v {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(212,168,83,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-signin {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-signin:hover { color: var(--text); }
.nav-cta { padding: 10px 24px; font-size: 13px; }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10,10,18,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 8px;
}
.mm-link {
  color: var(--text-soft);
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 0;
  transition: color 0.2s;
}
.mm-link:hover { color: var(--accent); }
.mm-divider { width: 40px; height: 1px; background: var(--border); margin: 16px 0; }
.mm-cta { margin-top: 16px; width: 100%; max-width: 300px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #7C3AED, #4C1D95);
  top: -250px; left: -200px;
  opacity: 0.3;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #A855F7, #6D28D9);
  bottom: -150px; right: -100px;
  opacity: 0.2;
  animation-delay: 4s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,168,83,0.3), rgba(212,168,83,0.05));
  top: 30%; right: 20%;
  opacity: 0.4;
  animation-delay: 7s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text { flex: 1; max-width: 560px; }

.hero-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions { margin-bottom: 20px; }

.hero-footnote {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Hero visual — stacked book cards */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 380px;
}

.hero-card {
  position: absolute;
  width: 220px;
  height: 310px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-card-back {
  background: linear-gradient(135deg, #059669, #34D399);
  top: 0; left: 0;
  transform: rotate(-8deg) translateY(10px);
  z-index: 1;
  opacity: 0.7;
}
.hero-card-mid {
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  top: 10px; left: 25px;
  transform: rotate(-3deg) translateY(5px);
  z-index: 2;
  opacity: 0.85;
}
.hero-card-front {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  top: 20px; left: 50px;
  transform: rotate(3deg);
  z-index: 3;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 60px rgba(139,92,246,0.3),
    0 0 120px rgba(139,92,246,0.1);
}

/* Hero card typographic covers */
.typo-landing { padding: 20px 16px; }
.typo-landing .tc-title  { font-size: 18px; }
.typo-landing .tc-rule   { width: 30px; height: 1.5px; }
.typo-landing .tc-author { font-size: 10px; }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 8px;
}
.marquee-dot { color: var(--accent); font-size: 16px; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-btn);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS — Steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: rgba(212,168,83,0.25);
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(212,168,83,0.2);
  transform: translateY(-3px);
}

.feature-icon {
  display: block;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================================================
   LIBRARY PREVIEW
   ============================================================ */
.library-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.library-row::-webkit-scrollbar { display: none; }

.lib-card {
  flex-shrink: 0;
  width: 160px;
  height: 225px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.lib-card:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Library card typographic covers */
.typo-lib { padding: 14px 10px; }
.typo-lib .tc-title  { font-size: 13px; }
.typo-lib .tc-rule   { width: 22px; }
.typo-lib .tc-author { font-size: 8px; }

.library-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.lib-pill {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

.library-cta {
  text-align: center;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.price-card:hover {
  border-color: rgba(212,168,83,0.15);
  transform: translateY(-4px);
}

.pc-popular {
  border-color: rgba(212,168,83,0.3);
  background: linear-gradient(180deg, rgba(212,168,83,0.04) 0%, var(--bg) 40%);
  box-shadow: 0 0 40px rgba(212,168,83,0.08);
}

.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-btn);
  color: #0A0A12;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pc-tier {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pc-price {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pc-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pc-tagline {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.pc-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.pc-features li {
  font-size: 14px;
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-soft);
}
.feat-yes::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212,168,83,0.12);
  border: 1.5px solid var(--accent-light);
}
.feat-yes::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.feat-no {
  color: var(--text-muted);
  opacity: 0.5;
}
.feat-no::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 10px;
  height: 1.5px;
  background: var(--text-muted);
  opacity: 0.4;
}

.pc-btn { width: 100%; text-align: center; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}

.cta-content { text-align: center; }

.cta-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 220px; height: 300px; }
  .hero-card { width: 170px; height: 240px; }
  .hero-card-front { left: 40px; }
  .hero-card-mid { left: 20px; }
  .typo-landing .tc-title { font-size: 14px; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

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

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }

  .nav-inner { padding: 0 16px; height: 64px; }
  .nav-logo { font-size: 22px; }
  .mobile-menu { top: 64px; }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .hero-visual { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .lib-card { width: 140px; height: 195px; }
  .typo-lib .tc-title { font-size: 11px; }

  .cta-section { padding: 80px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary,
  .cta-actions .btn-secondary { width: 100%; max-width: 300px; }
}
