/*
Theme Name: Vishav Books Publication
Theme URI: https://vishavbookspublication.example
Author: Vishav Books Publication
Description: Premium landing theme for Vishav Books Publication — write books, earn money. Indigo & gold palette, animated book marquee, Telegram CTA.
Version: 1.0.0
License: GPL v2 or later
Text Domain: vbp
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.08); box-shadow: 0 0 0 1px #e2e8f0, 0 4px 12px rgba(0,0,0,0.08); }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.1; display:block; }
.brand-sub { font-size: 12px; color: #64748b; display:flex; align-items:center; gap:4px; }

.btn-telegram {
  display: inline-flex; align-items: center; gap: 8px;
  background: #4338ca; color: #fff;
  padding: 10px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(67,56,202,0.5);
  transition: transform .2s, background .2s;
}
.btn-telegram:hover { background: #3730a3; transform: scale(1.04); }
.btn-telegram.lg { padding: 16px 32px; font-size: 17px; }
.btn-telegram.xl { padding: 20px 40px; font-size: 18px; box-shadow: 0 20px 40px -10px rgba(67,56,202,0.55); animation: bounce 2s ease-in-out infinite; }

/* Hero */
.hero { position: relative; padding: 72px 0; }
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero .blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: 0; }
.hero .blob-a { top: -80px; left: -80px; background: rgba(165,180,252,0.5); animation: pulse 8s ease-in-out infinite; }
.hero .blob-b { bottom: -80px; right: -80px; background: rgba(252,211,77,0.45); animation: pulse 10s ease-in-out infinite reverse; }
.hero .content { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items:center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #eef2ff; border: 1px solid #e0e7ff; color: #3730a3; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.gradient-text {
  background: linear-gradient(90deg, #4338ca, #f59e0b, #6d28d9);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
.hero .lede { margin: 20px 0 0; font-size: 18px; color: #475569; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; transition: transform .2s; }
.chip:hover { transform: translateY(-3px); }
.chip .dot { width: 14px; height: 14px; color: #4338ca; }

/* Marquee */
.marquee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.marquee { position: relative; height: 360px; overflow: hidden; border-radius: 16px; }
.marquee-inner { display: flex; flex-direction: column; gap: 12px; }
.marquee-inner img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.marquee.up .marquee-inner { animation: scrollUp linear infinite; }
.marquee.down .marquee-inner { animation: scrollDown linear infinite; }
.marquee-fade-top, .marquee-fade-bottom { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; z-index: 2; }
.marquee-fade-top { top: 0; background: linear-gradient(180deg, #fff, transparent); }
.marquee-fade-bottom { bottom: 0; background: linear-gradient(0deg, #fff, transparent); }

@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity:.4; } 50% { transform: scale(1.15); opacity:.6; } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Plans */
.section { padding: 80px 0; }
.section h2 { text-align: center; font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin: 0; }
.section .sub { text-align: center; color: #64748b; margin-top: 10px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.plan { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(67,56,202,0.2); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: linear-gradient(90deg, #f59e0b, #ca8a04); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); letter-spacing: .5px; }
.plan h3 { font-size: 20px; font-weight: 800; margin: 0; }
.plan .pages { font-size: 14px; color: #64748b; margin-top: 8px; }
.plan .reg { font-size: 14px; color: #334155; margin-top: 4px; }
.plan .pay { margin-top: 24px; font-size: 30px; font-weight: 900; background: linear-gradient(90deg, #4338ca, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .cta { display: block; width: 100%; text-align: center; margin-top: 24px; background: #0f172a; color: #fff; padding: 12px 0; border-radius: 12px; font-weight: 600; transition: background .2s; }
.plan .cta:hover { background: #4338ca; }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 40px auto 0; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; font-size: 14px; }
.note.a { background: #eef2ff; border: 1px solid #e0e7ff; color: #1e293b; }
.note.b { background: #fffbeb; border: 1px solid #fef3c7; color: #1e293b; }

/* How */
.how { background: #f8fafc; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step { background: #fff; padding: 32px; border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #4f46e5, #6d28d9); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(79,70,229,0.35); transition: transform .5s; }
.step:hover .step-num { transform: rotate(360deg); }
.step h3 { margin: 20px 0 6px; font-size: 20px; font-weight: 800; }
.step p { margin: 0; color: #475569; }

/* CTA */
.big-cta { text-align: center; padding: 96px 24px; max-width: 900px; margin: 0 auto; }
.big-cta h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; margin: 0; }
.big-cta p { color: #475569; font-size: 18px; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid #f1f5f9; padding: 32px 0; text-align: center; color: #64748b; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .marquee { height: 300px; }
}
