/* BookEngine Landing Page — Dark Glassmorphism */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #020203;
  --bg-card: #0E1223;
  --surface: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --accent: #5E6AD2;
  --accent-hover: #7C85E0;
  --accent-glow: rgba(94,106,210,0.25);
  --text: #EDEDEF;
  --text-muted: #8A8F98;
  --text-subtle: #4B5563;
  --success: #22C55E;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }

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

/* Header */
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); background: rgba(2,2,3,0.8); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.logo-icon.sm { width: 24px; height: 24px; font-size: 9px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 8px 18px; border-radius: 10px; transition: background 0.15s, box-shadow 0.15s !important; }
.btn-nav:hover { background: var(--accent-hover) !important; box-shadow: 0 0 16px var(--accent-glow); }

/* Hero */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; text-align: center; }
.hero-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(94,106,210,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(94,106,210,0.15); border: 1px solid rgba(94,106,210,0.3); color: #7C85E0; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--accent) 0%, #A78BFA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn-primary { background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.15s; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }
.btn-primary .arrow { margin-left: 6px; }
.btn-ghost { color: var(--text-muted); padding: 14px 28px; border-radius: 12px; text-decoration: none; border: 1px solid var(--border); font-size: 15px; transition: all 0.15s; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.hero-note { color: var(--text-subtle); font-size: 13px; }

/* Features */
.features { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: rgba(94,106,210,0.3); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Book Promo */
.book-promo { padding: 80px 0; background: linear-gradient(135deg, rgba(94,106,210,0.06) 0%, transparent 60%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.book-promo-inner { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.book-promo-text { flex: 1; min-width: 280px; }
.book-promo-text h2 { font-size: 28px; font-weight: 700; margin: 12px 0 16px; line-height: 1.3; }
.book-promo-text p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.btn-secondary { display: inline-block; padding: 12px 24px; border: 1px solid var(--accent); color: var(--accent); border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s; }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.book-cover { flex-shrink: 0; }
.book-mock { width: 180px; height: 240px; background: linear-gradient(135deg, var(--bg-card), #1A1E2F); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 8px 8px 24px rgba(0,0,0,0.5); }
.book-title { color: var(--accent); font-weight: 700; font-size: 16px; }
.book-sub { color: var(--text-muted); font-size: 11px; text-align: center; padding: 0 16px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.footer-copy { color: var(--text-subtle); font-size: 13px; }

/* Responsive */
@media (max-width: 640px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .book-promo-inner { flex-direction: column; }
  .book-cover { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
