/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:             #f0f0f8;
  --bg-panel:       #ffffff;
  --bg-panel-alt:   #fafaff;
  --accent:         #5b3ef5;
  --accent-mid:     #8b6ef9;
  --accent-soft:    #ede9ff;
  --text-primary:   #111126;
  --text-secondary: #4a4a6a;
  --text-muted:     #9090b0;
  --border:         #e0dff4;
  --shadow-soft:    0 4px 32px rgba(91,62,245,0.08);
  --shadow-card:    0 2px 12px rgba(91,62,245,0.10);
  --shadow-centre:  0 8px 60px rgba(91,62,245,0.22);
  --radius-lg:      18px;
  --radius-md:      12px;
  --radius-sm:      7px;
  --font-sans:      'Sora', sans-serif;
  --font-serif:     'Lora', serif;
  --transition:     0.35s cubic-bezier(0.4,0,0.2,1);
  --gap:            12px;   /* gap between all 4 cards */
  --bar-h:          68px;   /* top-bar height */
  --side-w:         220px;  /* fixed width for left & right cards */
}

[data-theme="dark"] {
  --bg:             #0d0d1a;
  --bg-panel:       #14142a;
  --bg-panel-alt:   #1a1a2e;
  --accent:         #7c5cf9;
  --accent-mid:     #a98fff;
  --accent-soft:    #1e1a3a;
  --text-primary:   #eeeeff;
  --text-secondary: #a0a0cc;
  --text-muted:     #5555aa;
  --border:         #252545;
  --shadow-soft:    0 4px 32px rgba(0,0,0,0.4);
  --shadow-card:    0 2px 12px rgba(0,0,0,0.3);
  --shadow-centre:  0 8px 60px rgba(0,0,0,0.6);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  overflow: hidden;
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* ── CARD 1: Top bar ── */
.top-bar {
  flex-shrink: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
  transition: background var(--transition), border-color var(--transition);
}

/* ── Body row: left + centre + right ── */
.body-row {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: var(--gap);
  align-items: stretch;
}

/* ── CARD 3: Books (left) ── */
.card-left {
  flex-shrink: 0;
  width: 25%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-right: -20px;
  transition: background var(--transition), border-color var(--transition);
}

/* ── CARD 2: Centre ── */
.card-centre {
  flex-shrink: 0;
  width: 50%;
  min-width: 0;
  background: linear-gradient(170deg, var(--bg-panel) 60%, var(--accent-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-centre);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--bar-h) / 2 - var(--gap));
  transition: background var(--transition), border-color var(--transition);
}

/* ── CARD 4: Writing Tools (right) ── */
.card-right {
  flex-shrink: 0;
  width: 25%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-left: -20px;
  transition: background var(--transition), border-color var(--transition);
}

/* ============================================================
   TOP-BAR INTERNALS
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__icon {
  width: 32px; height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand__name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.action-btns {
  display: flex;
  gap: 8px;
}
.action-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-panel-alt);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.action-btn svg { width: 18px; height: 18px; }
.action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   SHARED PANEL COMPONENTS (titles, dividers, links)
   ============================================================ */
.panel__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.panel__divider {
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: -8px;
}
.panel__link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.panel__link:hover { gap: 10px; }

/* ============================================================
   CARD 3: BOOKS — book stack visuals
   ============================================================ */
.books-stack {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 0;
  position: relative;
  perspective: 600px;
}
.book {
  display: flex;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease;
}
.book--1 { width: 48px; height: 140px; transform: rotate(-6deg) translateX(14px);  z-index: 1; }
.book--2 { width: 54px; height: 165px; transform: rotate(-1deg);                   z-index: 3; }
.book--3 { width: 48px; height: 150px; transform: rotate(5deg)  translateX(-14px); z-index: 2; }
.books-stack:hover .book--1 { transform: rotate(-10deg) translateX(6px); }
.books-stack:hover .book--2 { transform: rotate(-1deg)  translateY(-8px); }
.books-stack:hover .book--3 { transform: rotate(9deg)   translateX(-6px); }
.book__spine { width: 10px; flex-shrink: 0; }
.book__cover { flex: 1; display: flex; align-items: flex-end; padding: 8px 6px; }
.book__label { font-size: 0.58rem; font-weight: 600; color: rgba(255,255,255,0.9); line-height: 1.2; }
.book--1 .book__spine { background: #2a1f6e; }
.book--1 .book__cover { background: linear-gradient(160deg, #3a2ea0 0%, #1a1250 100%); }
.book--2 .book__spine { background: #1e4875; }
.book--2 .book__cover { background: linear-gradient(160deg, #2563a8 0%, #0d2d55 100%); }
.book--3 .book__spine { background: #4a1f80; }
.book--3 .book__cover { background: linear-gradient(160deg, #6b3fbe 0%, #2a0f50 100%); }
[data-theme="dark"] .book--1 .book__cover { background: linear-gradient(160deg, #4a3ecf 0%, #1a1250 100%); }
[data-theme="dark"] .book--2 .book__cover { background: linear-gradient(160deg, #3a7ad8 0%, #0d2d55 100%); }
[data-theme="dark"] .book--3 .book__cover { background: linear-gradient(160deg, #8a5fe8 0%, #2a0f50 100%); }

/* ============================================================
   CARD 4: WRITING TOOLS
   ============================================================ */
.writing-tools-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.writing-tools-preview__editor {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.writing-tools-preview__toolbar { display: flex; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }
.writing-tools-preview__label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.writing-tools-preview__body {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.writing-tools-preview__landscape {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(170deg, #a855f7 0%, #ec4899 40%, #f97316 70%, #fbbf24 100%);
  min-height: 80px;
  position: relative;
}
.writing-tools-preview__landscape::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,30,0.6), transparent);
}

/* ============================================================
   CARD 2: CENTRE — slide container
   ============================================================ */
.centre__slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.centre__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.centre__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Slide typography */
.slide__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-soft);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.slide__headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.slide__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.slide__sub em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Slide 0: CV Preview */
.cv-preview {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  flex: 1;
  min-height: 0;
  font-size: 0.72rem;
}
.cv-preview__sidebar {
  width: 120px; flex-shrink: 0;
  background: #1a1560;
  color: rgba(255,255,255,0.9);
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.cv-preview__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cf9, #a98fff);
  border: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 4px;
}
.cv-preview__name  { font-weight: 700; font-size: 0.78rem; color: #fff; }
.cv-preview__role  { font-size: 0.65rem; color: rgba(255,255,255,0.65); margin-top: -4px; }
.cv-preview__contacts {
  list-style: none;
  font-size: 0.6rem; color: rgba(255,255,255,0.75);
  display: flex; flex-direction: column; gap: 3px; margin-top: 4px;
}
.cv-preview__skills-label {
  font-weight: 700; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6); margin-top: 4px;
}
.cv-preview__tags { display: flex; flex-wrap: wrap; gap: 3px; }
.cv-preview__tags span {
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 0.58rem; padding: 2px 6px; border-radius: 10px;
}
.cv-preview__body {
  flex: 1; padding: 12px 14px;
  background: var(--bg-panel);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.cv-preview__body h3 {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 6px; margin-top: 4px;
}
.cv-preview__body p, .cv-preview__body li {
  font-size: 0.65rem; color: var(--text-secondary); line-height: 1.4;
}
.cv-preview__body ul  { padding-left: 14px; }
.cv-preview__job-title { font-weight: 600; color: var(--text-primary) !important; }
.cv-preview__job-meta  { color: var(--text-muted) !important; font-size: 0.6rem !important; }
.template-row { display: flex; gap: 8px; margin-top: 4px; }
.template-thumb {
  flex: 1; height: 50px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 600;
  color: var(--text-muted); text-align: center; padding: 4px;
}

/* Slide 1: Books Feature */
.books-feature {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
}
.book-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); text-align: center;
}
.book-card__cover {
  width: 72px; height: 110px;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-card);
}
.book-card--main .book-card__cover { width: 90px; height: 136px; }
.book-card--a { background: linear-gradient(160deg, #3a2ea0 0%, #1a1250 100%); }
.book-card--b { background: linear-gradient(160deg, #2563a8 0%, #0d2d55 100%); }
.book-card--c { background: linear-gradient(160deg, #6b3fbe 0%, #2a0f50 100%); }

/* Slide 2: Writing Demo */
.writing-demo {
  flex: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.writing-demo__toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel-alt);
}
.writing-demo__dot { width: 10px; height: 10px; border-radius: 50%; }
.writing-demo__dot--red    { background: #ff5f57; }
.writing-demo__dot--yellow { background: #febc2e; }
.writing-demo__dot--green  { background: #28c840; }
.writing-demo__tools { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.writing-demo__tools button {
  background: none; border: none;
  padding: 3px 6px; font-size: 0.75rem;
  font-family: var(--font-sans); font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  border-radius: 4px; transition: background 0.2s, color 0.2s;
}
.writing-demo__tools button:hover { background: var(--accent-soft); color: var(--accent); }
.writing-demo__sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.writing-demo__body { flex: 1; padding: 16px; background: var(--bg-panel); }
.writing-demo__cursor {
  font-family: var(--font-serif); font-size: 1rem;
  color: var(--text-primary); line-height: 1.6;
}
.cursor-blink {
  display: inline-block; color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Slide thumbnail nav */
.centre__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 4px;
}
.centre__nav-thumb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--bg-panel-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 6px 4px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.centre__nav-thumb:hover { border-color: var(--accent-mid); background: var(--accent-soft); }
.centre__nav-thumb.is-active { border-color: var(--accent); background: var(--accent-soft); }
.centre__nav-img {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
}
.centre__nav-img--cv      { background: linear-gradient(135deg, #1a1560 40%, #3a2ea0 100%); }
.centre__nav-img--books   { background: linear-gradient(135deg, #0d2d55 40%, #2563a8 100%); }
.centre__nav-img--writing { background: linear-gradient(135deg, #2a0f50 40%, #6b3fbe 100%); }
.centre__nav-thumb span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.centre__nav-thumb.is-active span { color: var(--accent); }
.centre__nav-progress {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.centre__nav-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   ABOUT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 400px; width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 14px; color: var(--text-primary); }
.modal p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1rem;
  cursor: pointer; color: var(--text-muted);
  transition: color 0.2s;
}
.modal__close:hover { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   SITE WRAP & SCROLL
   ============================================================ */
html, body { overflow: hidden; }
.site-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  scroll-behavior: smooth;
}
.page { height: 100vh; flex-shrink: 0; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  transition: background var(--transition);
}
.section--alt { background: var(--bg-panel); }
.section__inner {
  width: 100%;
  padding: 0;
}
/* Used by About section and any non-feat section that needs inset content */
.section__inner--padded {
  padding: 80px 72px;
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section__lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}
.section__header--centre {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__header--centre .section__lead { text-align: center; }

/* ============================================================
   FEATURE SECTIONS (Templates / Books / Writer)
   ============================================================ */
.feat {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: stretch;
}

.feat__text {
  position: relative;
  z-index: 2;
  width: 62%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 72px;
}

/* Books section: text on the right */
.feat--reverse .feat__text {
  margin-left: auto;
  padding-left: 56px;
  padding-right: 72px;
}

.feat__bullets {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feat__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.feat__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}
.feat__bullets li strong { color: var(--text-primary); font-weight: 600; }

.feat__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 40px;
  text-decoration: none;
  transition: background var(--transition), gap var(--transition);
  width: fit-content;
}
.feat__cta:hover { background: var(--accent-mid); gap: 12px; }

/* ── Image slider ── */
.feat__visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 24px;
  /* fade left edge so text reads cleanly over it */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%);
          mask-image: linear-gradient(to right, transparent 0%, black 22%);
}

/* Books: visual on the left */
.feat--reverse .feat__visual {
  right: auto;
  left: 0;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 22%);
          mask-image: linear-gradient(to left, transparent 0%, black 22%);
}

.img-slider {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-centre);
  background: var(--bg-panel-alt);
}
.img-slider__track {
  display: flex;
  width: 100%;
  height: calc(100% - 36px); /* leave room for dots */
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.img-slider__slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

/* Template format grid */
.fmt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
.fmt-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.fmt-item:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.fmt-icon {
  width: 36px; height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.fmt-icon--docx   { background: linear-gradient(145deg, #2b5be0, #1a3fad); }
.fmt-icon--xlsx   { background: linear-gradient(145deg, #1a7c40, #0f5a2c); }
.fmt-icon--pptx   { background: linear-gradient(145deg, #c0441e, #8c2e12); }
.fmt-icon--pdf    { background: linear-gradient(145deg, #c0291e, #8c1810); }
.fmt-icon--gdoc   { background: linear-gradient(145deg, #4285f4, #1a5fcc); }
.fmt-icon--gsheet { background: linear-gradient(145deg, #34a853, #1e7a35); }
.fmt-icon--notion { background: linear-gradient(145deg, #333, #111); }
.fmt-icon--more   { background: linear-gradient(145deg, var(--accent-mid), var(--accent)); }
.fmt-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* Book covers */
.books-slide-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 8px 0;
}
.bs-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.bs-cover { border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-card); }
.bs-cover--sm { width: 70px; height: 105px; }
.bs-cover--lg { width: 90px; height: 136px; }
.bs-cover--a  { background: linear-gradient(160deg, #3a2ea0 0%, #1a1250 100%); }
.bs-cover--b  { background: linear-gradient(160deg, #2563a8 0%, #0d2d55 100%); }
.bs-cover--c  { background: linear-gradient(160deg, #6b3fbe 0%, #2a0f50 100%); }
.bs-cover--d  { background: linear-gradient(160deg, #15806a 0%, #083d33 100%); }

/* Writer mockup */
.writer-mockup {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.wm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-panel-alt);
  border-bottom: 1px solid var(--border);
}
.wm-dot { width: 10px; height: 10px; border-radius: 50%; }
.wm-dot--r { background: #ff5f57; }
.wm-dot--y { background: #febc2e; }
.wm-dot--g { background: #28c840; }
.wm-tools { display: flex; gap: 4px; margin-left: auto; }
.wm-tools span {
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-secondary);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel);
}
.wm-body { padding: 16px; }
.wm-body p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.65;
}
.wm-body .wm-cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
.wm-suggest {
  margin-top: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.wm-suggest span { color: var(--text-secondary); font-weight: 400; }

/* Slider dots */
.slider-dots { display: flex; gap: 7px; align-items: center; }
.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.slider-dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.about-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.about-card:hover { box-shadow: var(--shadow-card); border-color: var(--accent-mid); }
.about-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.about-card__icon svg { width: 22px; height: 22px; }
.about-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.about-card__body  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* Layer table */
.layer-table { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 0.9rem; }
.layer-table th, .layer-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.layer-table thead th {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-panel-alt);
}
.layer-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.layer-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.layer-table tbody tr:last-child td { border-bottom: none; }
.layer-table tbody td { color: var(--text-secondary); }
.layer-table .layer-name {
  font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.layer-pill {
  display: inline-block;
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.65rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  transition: background var(--transition), border-color var(--transition);
}
.footer__inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__logo  { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer__logo-icon { width: 28px; height: 28px; color: var(--accent); }
.footer__logo-name { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); letter-spacing: -0.02em; }
.footer__tagline   { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; max-width: 240px; }
.footer__col-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 28px; gap: 16px; flex-wrap: wrap;
}
.footer__copy  { font-size: 0.8rem; color: var(--text-muted); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer__legal a:hover { color: var(--accent); }
