/* ============ MAINTENANCE BANNER ============ */
.maintenance-banner {
  background: color-mix(in oklch, var(--warn, #d97706) 14%, #fff);
  color: color-mix(in oklch, var(--warn, #d97706) 80%, #000);
  border-bottom: 1px solid color-mix(in oklch, var(--warn, #d97706) 35%, transparent);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}
.maintenance-banner-ico { font-size: 14px; }
@media (max-width: 640px) {
  .maintenance-banner { padding: 8px 14px; font-size: 12px; }
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ THEME: LIBRARY ============ */
:root {
  --bg: oklch(0.96 0.012 85);
  --bg-alt: oklch(0.98 0.008 85);
  --bg-card: oklch(1 0 0);
  --bg-dark: oklch(0.18 0.01 60);
  --ink: oklch(0.18 0.01 60);
  --ink-2: oklch(0.42 0.015 60);
  --ink-mute: oklch(0.62 0.015 60);
  --line: oklch(0.88 0.015 75);
  --line-strong: oklch(0.78 0.015 75);
  --accent: oklch(0.52 0.09 310);
  --accent-soft: oklch(0.92 0.03 310);
  --accent-ink: oklch(0.99 0 0);
  --ok: oklch(0.68 0.14 150);
  --warn: oklch(0.72 0.15 70);
  --danger: oklch(0.62 0.18 25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: "Cormorant Garamond", "PT Serif", Georgia, serif;
  --font-ui: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(20,12,4,0.04);
  --shadow-md: 0 8px 24px -8px rgba(20,12,4,0.12);
}

/* ============ UTILITY ============ */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-mute); }
.soft { color: var(--ink-2); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-ui);
}

/* ============ SHELL ============ */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.nav-center { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }

.nav-right { display: flex; gap: 10px; align-items: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 24px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 48ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-n { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.hero-meta-l { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.05em; }

/* Hero art — book stack */
.hero-art {
  position: relative;
  height: 440px;
  display: flex; align-items: center; justify-content: center;
}

.book-stack { position: relative; width: 320px; height: 380px; }
.book {
  position: absolute;
  left: 50%; top: 50%;
  width: 200px; height: 280px;
  border-radius: 3px 10px 10px 3px;
  box-shadow: var(--shadow-md);
  transform-origin: left center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 16px 18px 24px;
  font-family: var(--font-display);
}
.book::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.18), transparent);
}
.book-1 { background: var(--accent-soft); color: var(--ink); transform: translate(-50%, -50%) rotate(-8deg) translateX(-70px); }
.book-2 { background: var(--bg-dark); color: var(--bg); transform: translate(-50%, -50%) rotate(2deg) translateY(-20px); z-index: 2; }
.book-3 { background: var(--bg-card); color: var(--ink); transform: translate(-50%, -50%) rotate(10deg) translateX(70px); }
.book-title { font-size: 22px; line-height: 1.15; font-weight: 500; }
.book-author { font-size: 11px; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.75; }
.book-lang {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 6px;
  background: rgba(255,255,255,0.25); border-radius: 3px;
}
.book-2 .book-lang { background: rgba(255,255,255,0.18); }

/* ============ SECTIONS ============ */
.section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-dark {
  background: var(--bg-dark);
  color: color-mix(in oklch, var(--bg) 70%, white);
  margin: 40px 24px;
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  max-width: none;
}

.section-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--ink-2); }
.section-dark .section-sub { color: color-mix(in oklch, var(--bg) 70%, white); opacity: 0.8; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}
.feature:hover { border-color: var(--accent); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.feature-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; font-weight: 500; letter-spacing: -0.01em; }
.feature-body { color: color-mix(in oklch, var(--bg) 70%, white); opacity: 0.8; font-size: 14.5px; line-height: 1.6; }

/* ============ HOW IT WORKS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.1em; }
.step-t { font-family: var(--font-display); font-size: 26px; margin-bottom: 10px; font-weight: 500; letter-spacing: -0.01em; }
.step-d { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px; margin: 0 auto;
}
.plan {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.plan:hover { border-color: var(--line-strong); }
.plan.popular { border-color: var(--ink); border-width: 2px; }
.plan-badge {
  position: absolute; top: -10px; left: 22px;
  padding: 3px 10px; font-size: 10px; font-weight: 600;
  background: var(--ink); color: var(--bg);
  border-radius: 20px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: 26px; margin-bottom: 4px; font-weight: 500; }
.plan-tag { font-size: 12px; color: var(--ink-mute); margin-bottom: 20px; min-height: 32px; }
.plan-price { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.plan-price-unit { font-size: 14px; color: var(--ink-mute); font-family: var(--font-ui); margin-left: 4px; }
.plan-extra { font-size: 12px; color: var(--ink-mute); margin-top: 6px; font-family: var(--font-mono); }
.plan-features { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feature { font-size: 13.5px; display: flex; gap: 10px; color: var(--ink-2); line-height: 1.45; }
.plan-feature::before { content: "→"; color: var(--accent); flex-shrink: 0; }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-family: var(--font-display); font-size: 20px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; letter-spacing: -0.01em; }
.faq-q::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 12px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============ FOOTER ============ */
.footer {
  padding: 60px 32px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-desc { color: var(--ink-mute); font-size: 14px; margin-top: 12px; max-width: 36ch; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-mute); flex-wrap: wrap; gap: 10px; }

/* Utility */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.between { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: auto; min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav { padding: 14px 20px; gap: 10px; flex-wrap: wrap; }
  .nav-center { display: none; }
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-dark { margin: 24px 12px; padding: 56px 24px; }
  .hero { padding-top: 48px; padding-bottom: 72px; }
  .book-stack { width: 260px; height: 320px; }
  .book { width: 170px; height: 240px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-sub { font-size: 16px; }
  .hero-meta { gap: 18px; margin-top: 28px; }
  .hero-meta-n { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-sub { font-size: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer { padding: 48px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { padding: 12px 16px; }
  .brand { font-size: 20px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 36px; padding-bottom: 56px; }
  .book-stack { width: 220px; height: 280px; }
  .book { width: 150px; height: 210px; padding: 14px 12px 14px 20px; }
  .book-title { font-size: 18px; }
  .hero-art { min-height: 280px; }
  .plan { padding: 22px 18px; }
  .plan-price { font-size: 36px; }
  .faq-q { font-size: 17px; }
}
