/* ═══════════════════════════════════════════════════════
   TEXTFORMATTER · STYLESHEET
   Theme: Academic-Editorial · Warm Ivory + Ink + Sage
═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --ivory:       #F8F4EE;
  --ivory-2:     #F0EAE0;
  --ivory-3:     #E6DDD0;
  --ink:         #1A1612;
  --ink-2:       #3D342C;
  --ink-3:       #6B5C50;
  --sage:        #5A7A5F;
  --sage-light:  #8FB394;
  --sage-pale:   #D6E8D8;
  --amber:       #C47C2B;
  --amber-pale:  #F5E6CC;
  --red-soft:    #C0453A;
  --red-pale:    #F5DDD9;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 3px rgba(26,22,18,.08), 0 1px 2px rgba(26,22,18,.06);
  --shadow-md:   0 4px 16px rgba(26,22,18,.10), 0 2px 6px rgba(26,22,18,.07);
  --shadow-lg:   0 12px 40px rgba(26,22,18,.13), 0 4px 12px rgba(26,22,18,.08);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --max-w:        1200px;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::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(--ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Container ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography helpers ────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
}
.section-title.left { text-align: left; }
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 4px 14px rgba(26,22,18,.25);
}
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 6px 20px rgba(26,22,18,.3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-3);
}
.btn-ghost:hover { background: var(--ivory-2); border-color: var(--ink); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,244,238,.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ivory-3);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--ivory-2); }
.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--ivory-3);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--transition);
}
.mobile-link:hover { background: var(--ivory-2); }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--ivory);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--sage-pale) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--amber-pale) 0%, transparent 70%);
  bottom: -80px; left: -80px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ivory-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory-3) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--sage-pale);
  color: var(--sage);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 28px;
  border: 1px solid var(--sage-light);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 800px;
}
.hero-title em {
  font-style: italic;
  color: var(--sage);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-3);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ivory-3);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--ink-3); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--ivory-3); }

/* ══════════════════════════════════════════════════════
   FORMATTER TOOL
══════════════════════════════════════════════════════ */
.formatter-section {
  padding: 80px 0;
  background: var(--ivory-2);
  border-top: 1px solid var(--ivory-3);
  border-bottom: 1px solid var(--ivory-3);
}
.formatter-section .section-title,
.formatter-section .section-sub { text-align: center; }

.mode-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 16px;
}
.mode-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--ivory);
  border: 1.5px solid var(--ivory-3);
  transition: all var(--transition);
}
.mode-tab:hover { color: var(--ink); border-color: var(--ink-3); }
.mode-tab.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.sub-options {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  min-height: 44px;
  margin-bottom: 24px;
  align-items: center;
}
.sub-option {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--ivory);
  border: 1.5px solid var(--ivory-3);
  transition: all var(--transition);
}
.sub-option:hover { border-color: var(--sage); color: var(--sage); }
.sub-option.active { background: var(--sage-pale); color: var(--sage); border-color: var(--sage); }

.editor-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ivory-3);
  overflow: hidden;
}
.editor-pane { display: flex; flex-direction: column; }
.pane-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ivory-3);
  background: var(--ivory);
}
.pane-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.pane-actions { display: flex; gap: 6px; }
.pane-btn {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .77rem;
  font-weight: 600;
  background: var(--ivory-2);
  color: var(--ink-2);
  border: 1px solid var(--ivory-3);
  transition: all var(--transition);
}
.pane-btn:hover { background: var(--ivory-3); }
.pane-btn.danger:hover { background: var(--red-pale); color: var(--red-soft); border-color: var(--red-soft); }
.code-area {
  flex: 1;
  min-height: 300px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  border: none;
  outline: none;
  resize: vertical;
  tab-size: 2;
  white-space: pre;
  overflow-x: auto;
}
.code-area::placeholder { color: var(--ink-3); opacity: .6; }
.pane-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  background: var(--ivory);
  border-top: 1px solid var(--ivory-3);
}
.char-count { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.diff-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  display: none;
}
.diff-badge.show { display: inline-flex; }
.diff-badge.shrink { background: var(--sage-pale); color: var(--sage); }
.diff-badge.grow   { background: var(--amber-pale); color: var(--amber); }

.editor-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 16px;
  background: var(--ivory-2);
  border-left: 1px solid var(--ivory-3);
  border-right: 1px solid var(--ivory-3);
}
.format-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 16px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius-md);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  min-width: 80px;
}
.format-btn:hover { background: var(--sage); transform: scale(1.04); }
.format-btn:active { transform: scale(.97); }
.format-btn-icon { font-size: 1.5rem; }
.swap-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ivory);
  border: 1.5px solid var(--ivory-3);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--ink-3);
  transition: all var(--transition);
}
.swap-btn:hover { background: var(--ivory-2); color: var(--ink); border-color: var(--ink-3); }

.notif-bar {
  margin-top: 12px;
  padding: 0 16px;
  min-height: 36px;
  display: flex; align-items: center;
  font-size: .85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.notif-bar.success { background: var(--sage-pale); color: var(--sage); }
.notif-bar.error   { background: var(--red-pale);  color: var(--red-soft); }
.notif-bar.info    { background: var(--amber-pale); color: var(--amber); }

/* ══════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════ */
.features-section { padding: 100px 0; background: var(--ivory); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-pale);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  letter-spacing: -.04em;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature-card p { font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 6px; }
.feature-list li {
  font-size: .83rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--sage);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.how-section {
  padding: 100px 0;
  background: var(--ink);
  color: var(--ivory);
}
.how-section .section-label { color: var(--sage-light); }
.how-section .section-title { color: var(--ivory); }
.how-section .section-sub { color: var(--ivory-3); }
.steps-row {
  display: flex; align-items: flex-start; gap: 0;
}
.step {
  flex: 1;
  padding: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
}
.step-arrow {
  flex-shrink: 0; width: 60px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: var(--sage-light);
  padding-top: 50px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 12px;
  opacity: .8;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ivory);
}
.step-body p { font-size: .9rem; color: var(--ivory-3); }

/* ══════════════════════════════════════════════════════
   USE CASES
══════════════════════════════════════════════════════ */
.usecases-section { padding: 100px 0; background: var(--ivory-2); }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.usecase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--ivory-3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.uc-icon { font-size: 2rem; margin-bottom: 16px; }
.usecase-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.usecase-card p { font-size: .9rem; color: var(--ink-3); }

/* ══════════════════════════════════════════════════════
   ABOUT / WHY IT MATTERS
══════════════════════════════════════════════════════ */
.about-section { padding: 100px 0; background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--ink-3);
  margin-bottom: 16px;
  font-size: .95rem;
}
.about-text .section-title { margin-bottom: 20px; }
.about-visual { display: flex; justify-content: center; }
.compare-block {
  width: 100%;
  max-width: 420px;
  display: flex; flex-direction: column; gap: 0;
}
.compare-pane {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--ivory-3);
}
.compare-pane.bad { border-color: var(--red-soft); }
.compare-pane.good { border-color: var(--sage); }
.compare-label {
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.bad-label { background: var(--red-pale); color: var(--red-soft); }
.good-label { background: var(--sage-pale); color: var(--sage); }
.compare-code {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.6;
  padding: 16px;
  background: var(--white);
  white-space: pre;
  overflow-x: auto;
  color: var(--ink);
}
.compare-arrow-v {
  text-align: center;
  font-size: 1.5rem;
  color: var(--sage);
  padding: 10px 0;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════ */
.faq-section { padding: 100px 0; background: var(--ivory-2); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-q[aria-expanded="true"] { background: var(--ivory); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding var(--transition);
}
.faq-a.open { max-height: 500px; }
.faq-a p { padding: 0 20px 18px; font-size: .9rem; color: var(--ink-3); }

/* ══════════════════════════════════════════════════════
   TIPS
══════════════════════════════════════════════════════ */
.tips-section { padding: 100px 0; background: var(--ivory); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tip-card {
  padding: 28px;
  border: 1px solid var(--ivory-3);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tip-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ivory-3);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
}
.tip-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
  padding-right: 48px;
}
.tip-card p { font-size: .88rem; color: var(--ink-3); }

/* ══════════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════════ */
.cta-section { padding: 80px 0; background: var(--ivory-2); }
.cta-inner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(90,122,95,.3) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(196,124,43,.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta-decoration {
  font-size: 2rem;
  color: var(--sage-light);
  margin-bottom: 16px;
  position: relative;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 16px;
  position: relative;
}
.cta-inner p {
  color: var(--ivory-3);
  margin-bottom: 32px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-inner .btn-primary {
  background: var(--sage);
  box-shadow: 0 6px 24px rgba(90,122,95,.4);
  position: relative;
}
.cta-inner .btn-primary:hover { background: var(--sage-light); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink-2);
  color: var(--ivory-2);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .header-logo { color: var(--ivory); }
.footer-brand p { font-size: .88rem; color: var(--ivory-3); margin-top: 14px; max-width: 260px; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ivory-3);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .88rem;
  color: var(--ivory-3);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ivory-3); }
.footer-bottom a:hover { color: var(--ivory); }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}
[data-anim="fade-right"] { transform: translateX(-28px); }
[data-anim="fade-left"]  { transform: translateX(28px); }
[data-anim].visible {
  opacity: 1;
  transform: translate(0);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 80px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .stat-divider { display: none; }
  .editor-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .editor-center {
    flex-direction: row; justify-content: center;
    padding: 12px 16px;
    border-left: none; border-right: none;
    border-top: 1px solid var(--ivory-3);
    border-bottom: 1px solid var(--ivory-3);
  }
  .format-btn { flex-direction: row; padding: 12px 24px; min-width: auto; }
  .code-area { min-height: 200px; }
  .steps-row { flex-direction: column; }
  .step-arrow { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text .section-title { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 1.9rem; }
  .features-grid,
  .usecases-grid,
  .tips-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-inner { padding: 40px 24px; }
  .steps-row { gap: 16px; }
}
