/* =========================================
   WebNotePad — styles.css
   Theme: Editorial / Ink-on-paper aesthetic
   ========================================= */

:root {
  --ink: #1a1a2e;
  --ink-soft: #2d2d44;
  --ink-muted: #6b6b85;
  --paper: #faf8f4;
  --paper-warm: #f4f0e8;
  --paper-edge: #e8e2d6;
  --accent: #c4562a;
  --accent-light: #e8714a;
  --accent-pale: #fce9e3;
  --gold: #b8960c;
  --green: #2d6a4f;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(26,26,46,0.08);
  --shadow: 0 6px 24px rgba(26,26,46,0.12);
  --shadow-lg: 0 16px 48px rgba(26,26,46,0.18);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --app-header-h: 64px;
}

/* Dark Mode */
body.dark {
  --ink: #e8e4dc;
  --ink-soft: #c8c4bc;
  --ink-muted: #8a8678;
  --paper: #141418;
  --paper-warm: #1c1c22;
  --paper-edge: #2a2a34;
  --accent: #e8714a;
  --accent-pale: #2a1a14;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul { list-style: none; }
input, select { font-family: var(--font-body); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--app-header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: var(--font-mono);
  font-weight: 500;
  transition: background var(--transition);
}
body.dark .logo-mark { background: var(--accent); color: var(--white); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--paper-warm); }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-dark-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  transition: all var(--transition);
}
.header-dark-btn:hover { color: var(--ink); background: var(--paper-edge); }
.header-cta {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.header-cta:hover { background: var(--accent); }
body.dark .header-cta { background: var(--accent); color: var(--white); }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--ink);
  border-radius: var(--radius);
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--app-header-h);
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-edge);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1rem; padding: 10px 12px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 0;
  margin-top: 0;
  transition: background var(--transition), color var(--transition);
}
body.dark .site-footer { background: #0e0e12; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--paper);
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(250,248,244,0.55);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(250,248,244,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(250,248,244,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(250,248,244,0.35);
  font-family: var(--font-mono);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(250,248,244,0.4);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(250,248,244,0.8); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,86,42,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-edge);
}
body.dark .btn-ghost { color: var(--ink); border-color: rgba(250,248,244,0.15); }
.btn-ghost:hover { background: var(--paper-warm); border-color: var(--ink-muted); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--ink-muted);
  transition: all var(--transition);
  background: transparent;
  border: none;
}
.btn-icon:hover { color: var(--ink); background: var(--paper-edge); }
.btn-tool {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-tool:hover { color: var(--ink); background: var(--paper-edge); }

/* ===== SECTION COMMONS ===== */
.section { padding: 96px 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--paper-edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-edge) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}
body.dark .hero-bg-grid { opacity: 0.12; }
.hero-ink-splash {
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-pale) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
body.dark .hero-ink-splash { opacity: 0.3; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-pale);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 28px;
  animation: fadeInDown 0.5s ease both;
}
body.dark .hero-badge { background: rgba(196,86,42,0.15); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s 0.1s ease both;
}
.hero-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeInDown 0.6s 0.2s ease both;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInDown 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInDown 0.6s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.stat span { font-size: 0.75rem; color: var(--ink-muted); font-family: var(--font-mono); }
.stat-div { width: 1px; height: 36px; background: var(--paper-edge); }
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }

/* ===== APP SECTION ===== */
.section-app {
  padding: 0 0 80px;
  background: var(--paper);
}
.app-shell {
  display: flex;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-warm);
  min-height: 600px;
  transition: background var(--transition), border-color var(--transition);
}

/* Sidebar */
.app-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--paper);
  border-right: 1px solid var(--paper-edge);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.app-sidebar.collapsed { width: 48px; min-width: 48px; }
.app-sidebar.collapsed .sidebar-title,
.app-sidebar.collapsed .sidebar-search,
.app-sidebar.collapsed .note-list { display: none; }
.app-sidebar.collapsed #newNoteBtn { margin: auto; }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--paper-edge);
}
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.sidebar-search { padding: 10px 12px; }
.sidebar-search input {
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--paper-edge);
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 0.8rem;
  outline: none;
  transition: all var(--transition);
}
.sidebar-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.note-list { flex: 1; overflow-y: auto; padding: 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.note-list-item {
  padding: 9px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background var(--transition);
}
.note-list-item:hover { background: var(--paper-warm); }
.note-list-item.active { background: var(--accent-pale); }
body.dark .note-list-item.active { background: rgba(196,86,42,0.15); }
.note-item-title {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.note-list-item.active .note-item-title { color: var(--accent); }
.note-delete-btn {
  opacity: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: all var(--transition);
}
.note-list-item:hover .note-delete-btn { opacity: 1; }
.note-delete-btn:hover { background: #fde8e8; color: #c0392b; }
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--paper-edge);
  display: flex;
  justify-content: flex-end;
}

/* Editor */
.app-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.editor-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper);
}
.note-title-input {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}
.note-title-input::placeholder { color: var(--paper-edge); }
.editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sidebar-toggle-mobile { display: none; }
.format-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-warm);
  flex-wrap: wrap;
}
.fmt-btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.fmt-btn:hover { background: var(--paper-edge); color: var(--ink); border-color: var(--paper-edge); }
.fmt-btn.active { background: var(--accent-pale); color: var(--accent); border-color: var(--accent); }
.fmt-div {
  width: 1px;
  height: 18px;
  background: var(--paper-edge);
  margin: 0 4px;
  flex-shrink: 0;
}
.fmt-select {
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  outline: none;
  transition: all var(--transition);
}
.fmt-select:focus { border-color: var(--accent); }
.fmt-color {
  width: 28px; height: 26px;
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  background: var(--paper);
}

/* Find & Replace */
.find-replace-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fffbf0;
  border-bottom: 1px solid var(--gold);
  flex-wrap: wrap;
}
body.dark .find-replace-bar { background: #1e1c10; border-color: #5a4a0a; }
.find-replace-bar input {
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  width: 160px;
}
.find-replace-bar input:focus { border-color: var(--accent); }

/* Editor Area */
.editor-area {
  flex: 1;
  padding: 28px 32px;
  font-family: var(--font-body);
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--ink);
  outline: none;
  overflow-y: auto;
  min-height: 360px;
  transition: color var(--transition);
  word-wrap: break-word;
}
.editor-area:empty::before {
  content: attr(data-placeholder);
  color: var(--paper-edge);
  pointer-events: none;
  font-style: italic;
}
body.dark .editor-area:empty::before { color: var(--ink-muted); }

/* Status Bar */
.editor-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-edge);
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.status-sep { color: var(--paper-edge); }
.status-save { color: var(--green); }
.status-saving { color: var(--gold); }
body.dark .status-save { color: #52b788; }

/* ===== FEATURES SECTION ===== */
.section-features { background: var(--paper-warm); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 1.75rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.section-how { background: var(--paper); }
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}
.how-step {
  flex: 1;
  padding: 32px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  position: relative;
}
.how-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 40px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--paper-edge);
  line-height: 1;
  margin-bottom: 16px;
}
body.dark .step-num { color: var(--paper-edge); }
.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.how-step p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; }

/* ===== USE CASES ===== */
.section-usecases { background: var(--paper-warm); }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.usecase-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.usecase-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.usecase-emoji { font-size: 2rem; margin-bottom: 14px; }
.usecase-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.usecase-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; }

/* ===== ABOUT SECTION ===== */
.section-about { background: var(--paper); }
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.value-tag {
  padding: 6px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--transition);
}
.value-tag:hover { background: var(--accent-pale); border-color: var(--accent); color: var(--accent); }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
}
body.dark .about-card { background: var(--paper-warm); border: 1px solid var(--paper-edge); }
.about-card-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 24px;
  border-radius: 2px;
}
.about-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 24px;
  color: var(--paper);
}
body.dark .about-quote { color: var(--ink); }
.about-card-sig {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(250,248,244,0.5);
}
body.dark .about-card-sig { color: var(--ink-muted); }

/* ===== FAQ ===== */
.section-faq { background: var(--paper-warm); }
.faq-list {
  max-width: 720px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: border-color var(--transition);
}
.faq-item:has(.faq-a[style*="block"]) { border-color: var(--accent); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--accent); }
.faq-q:hover { background: var(--paper-warm); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
}
.faq-a p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; }

/* ===== CTA ===== */
.section-cta {
  background: var(--ink);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
body.dark .section-cta { background: #0e0e12; }
.cta-ink {
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,86,42,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 16px;
}
.cta-text p {
  font-size: 1.05rem;
  color: rgba(250,248,244,0.6);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
body.dark .toast { background: var(--paper-warm); color: var(--ink); border: 1px solid var(--paper-edge); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--paper-edge); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ===== FULLSCREEN ===== */
body.fullscreen .section-app { padding: 0; }
body.fullscreen .app-shell {
  border-radius: 0;
  border: none;
  min-height: 100vh;
  box-shadow: none;
}
body.fullscreen .site-header,
body.fullscreen .hero,
body.fullscreen .section-features,
body.fullscreen .section-how,
body.fullscreen .section-usecases,
body.fullscreen .section-about,
body.fullscreen .section-faq,
body.fullscreen .section-cta,
body.fullscreen .site-footer { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .features-grid, .usecases-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .how-steps { flex-direction: column; }
  .how-connector { display: none; }
  .app-sidebar { display: none; position: absolute; top: 0; left: 0; height: 100%; z-index: 100; }
  .app-sidebar.mobile-open { display: flex; }
  .sidebar-toggle-mobile { display: flex; }
  .editor-topbar { flex-wrap: wrap; }
  .editor-actions { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .format-toolbar { gap: 2px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 24px; }
  .editor-area { padding: 16px; }
}
