/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Scheme 03 — teal brand palette */
  --primary: #06B6D4;
  --primary-light: #22D3EE;
  --primary-dark: #0F766E;
  --accent: #14B8A6;
  --accent-light: #A7F3D0;

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;

  /* Text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Radii */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 30px -6px rgba(15,23,42,.1);
  --shadow-xl: 0 24px 50px -12px rgba(15,23,42,.15);

  --max-w: 1200px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Scroll Progress Bar (Original Innovation #1) ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  width: 0; transition: none;
}

/* ===== Gradient Section Titles (Original Innovation #2) ===== */
.gradient-title {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Reveal Animations with Stagger (Original Innovation #3) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .1s; }
.stagger-3 { transition-delay: .15s; }
.stagger-4 { transition-delay: .2s; }
.stagger-5 { transition-delay: .25s; }
.stagger-6 { transition-delay: .3s; }

.hero .reveal {
  opacity: 1; transform: none;
  animation: heroSlideUp .9s cubic-bezier(.4,0,.2,1);
}
.hero .hero-visual.reveal {
  animation: heroSlideUp .9s cubic-bezier(.4,0,.2,1) .2s both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.logo-icon { flex-shrink: 0; display: block; }
.logo img { display: none; }
.logo-zh {
  font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.25rem; font-weight: 850;
  color: var(--text);
}
.logo-en {
  font-family: Inter, 'Segoe UI', sans-serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--text);
}
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .logo-zh { display: none; }
html:not([lang="zh-CN"]):not([lang="zh-TW"]) .logo-en { font-size: 1.25rem; font-weight: 800; }

.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a {
  font-size: .88rem; color: var(--text-secondary); font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: all var(--transition);
}
.desktop-nav a:hover { color: var(--text); background: var(--bg-alt); }

.nav-placeholder {
  font-size: .88rem; color: var(--text-light); font-weight: 500;
  padding: 6px 12px; cursor: default; opacity: .55;
}
.footer-placeholder {
  color: var(--text-light); cursor: default; opacity: .55;
}
.footer-col .footer-placeholder { opacity: .7; color: #94a3b8; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn { padding: 7px 16px; font-size: .85rem; border-radius: 8px; }
.header-actions .btn-ghost { border-color: transparent; background: transparent; color: var(--text-secondary); }
.header-actions .btn-ghost:hover { background: var(--bg-alt); color: var(--text); border-color: transparent; }
.header-actions .btn-primary { padding: 7px 18px; font-size: .85rem; }

.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; font-size: .875rem; color: var(--text-secondary);
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.lang-btn svg { width: 16px; height: 16px; }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 420px; display: none; overflow: hidden;
  padding: 6px;
  grid-template-columns: 1fr 1fr 1fr; gap: 2px;
  max-height: 420px; overflow-y: auto;
}
.lang-menu.open { display: grid; }
.lang-menu button, .lang-menu a {
  display: block; width: 100%; padding: 8px 14px; text-align: left;
  border: none; background: none; cursor: pointer; font-size: .85rem;
  color: var(--text-secondary); transition: var(--transition);
  border-radius: var(--radius-sm); text-decoration: none;
}
.lang-menu button:hover, .lang-menu a:hover { background: #eef0ff; color: var(--primary); }
.lang-menu button.active, .lang-menu a.active { color: var(--primary); font-weight: 600; background: rgba(79,70,229,.12); box-shadow: inset 3px 0 0 var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-alt); }
.btn-primary {
  background: var(--primary-dark); color: #fff;
  border-color: transparent;
}
.btn-primary:hover { background: #0a5e56; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,118,110,.3); }
.btn-primary:active { transform: none; }
.btn-outline {
  background: #fff; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-alt); border-color: var(--border-strong); }
.btn-glow { position: relative; }

#menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--text);
}
#menu-toggle svg { width: 28px; height: 28px; }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 16px 24px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 1rem;
  color: var(--text-secondary); font-weight: 500;
  border-bottom: 1px solid var(--bg-alt);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  background: #fff;
}
.hero::before { display: none; }
.hero::after { display: none; }
.hero-decor { display: none; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 1;
}
.hero-content { text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: #ecfdf5; color: var(--primary-dark);
  border-radius: 6px; font-size: .8rem; font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid #d1fae5;
}
.hero-badge-dot { display: none; }
.hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; color: var(--text); letter-spacing: -.03em;
}
.hero p {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 32px; max-width: 480px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-buttons .btn { padding: 12px 28px; font-size: .95rem; border-radius: var(--radius-sm); }
.hero-buttons .btn-primary {
  background: var(--primary-dark); color: #fff;
}
.hero-buttons .btn-primary:hover {
  background: #0a5e56;
  box-shadow: 0 4px 14px rgba(15,118,110,.25);
  transform: translateY(-1px);
}


/* ===== Hero Visual Mockup ===== */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.demo-mockup {
  display: flex; align-items: center; gap: 18px;
  filter: drop-shadow(0 16px 40px rgba(79,70,229,.1));
}
.mock-doc {
  width: 220px; background: #fff;
  border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease;
}
.mock-doc:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.08); }
.mock-doc-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; background: var(--bg-alt);
  border-bottom: 1px solid rgba(0,0,0,.04);
  font-size: .7rem; color: var(--text-light);
}
.mock-dot { width: 7px; height: 7px; border-radius: 50%; }
.mock-dot:first-child { background: #ef4444; }
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #22c55e; }
.mock-lang {
  margin-left: auto; font-weight: 600; color: var(--text-secondary);
  transition: all .3s ease;
}
.mock-doc-body { padding: 14px; }
.mock-line {
  height: 7px; border-radius: 4px;
  background: #f1f5f9; margin-bottom: 7px;
  transition: all .4s ease;
}
.mock-line.mock-title { height: 9px; background: #e2e8f0; margin-bottom: 12px; }
.mock-line.translated { background: rgba(79,70,229,.12); }
.mock-line.mock-title.translated { background: rgba(79,70,229,.2); }
.mock-spacer { height: 10px; }
.mock-table { margin-bottom: 7px; }
.mock-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px;
  margin-bottom: 3px;
}
.mock-row span { height: 7px; border-radius: 3px; background: #f1f5f9; transition: all .4s ease; }
.mock-row.translated span { background: rgba(79,70,229,.1); }
.mock-arrow {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); position: relative;
}
.mock-arrow svg { width: 24px; height: 24px; }
.mock-arrow::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(79,70,229,.08);
  animation: arrowRipple 2s ease-out infinite;
}
@keyframes arrowRipple {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.mock-doc-target {
  animation: targetReveal 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes targetReveal {
  from { opacity: 0; filter: blur(6px); transform: translateX(15px) scale(.96); }
  to { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
}

/* ===== Upload Section ===== */
.upload-section {
  padding: 80px 0;
  background: var(--bg);
  position: relative;
}
.upload-card {
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05), 0 0 0 1px rgba(79,70,229,.03);
  transition: box-shadow .4s ease, border-color .4s ease;
  overflow: visible; position: relative; z-index: 10;
}
.upload-card:hover {
  box-shadow: 0 8px 40px rgba(79,70,229,.1), 0 0 0 1px rgba(79,70,229,.08);
  border-color: rgba(79,70,229,.12);
}
.upload-card h2 {
  font-size: 1.6rem; font-weight: 700; text-align: center;
  margin-bottom: 24px; color: var(--text);
}
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 24px; text-align: center;
  cursor: pointer; transition: all .3s ease;
  margin-bottom: 24px;
  background: #fafbff;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary); background: rgba(79,70,229,.03);
  box-shadow: 0 0 0 4px rgba(79,70,229,.06);
}
.drop-zone-icon { margin-bottom: 12px; color: var(--primary); opacity: .6; }
.drop-zone-icon svg { width: 40px; height: 40px; margin: 0 auto; }
.drop-zone-text { color: var(--text-secondary); font-size: .92rem; }
.drop-zone-text .browse-link { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }
.drop-zone-formats { font-size: .78rem; color: var(--text-light); margin-top: 10px; }
#file-name {
  display: none; text-align: center; padding: 10px;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  color: var(--primary); font-weight: 600; font-size: .9rem;
  margin-bottom: 16px;
}
.upload-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 20px; overflow: visible;
}
.upload-options label { font-size: .82rem; color: var(--text-light); font-weight: 600; margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: .04em; }
.upload-options select, .upload-options .lang-pick-wrap select {
  width: 100%; padding: 11px 36px 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  font-size: .9rem; color: var(--text); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.upload-options select:hover { border-color: var(--primary-light); }
.upload-options select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

/* ===== Language Picker ===== */
.lang-pick-wrap { flex: 1; min-width: 0; }
.lang-picker { position: relative; }
.lang-pick-current {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
  font-size: .9rem; color: var(--text);
}
.lang-pick-current:hover { border-color: var(--primary-light); }
.lang-pick-text { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-pick-arrow {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--text-light); transition: transform .2s ease;
}
.lang-picker.open .lang-pick-current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.lang-picker.open .lang-pick-arrow { transform: rotate(180deg); }

.lang-pick-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  width: 520px; max-height: 420px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl); z-index: 100; overflow: hidden;
  flex-direction: column;
}
.lang-picker.open .lang-pick-dropdown { display: flex; }
.lang-pick-search-wrap {
  padding: 12px 14px 8px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.lang-pick-search {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--border); font-size: .85rem;
  outline: none; transition: border-color .2s;
}
.lang-pick-search:focus { border-color: var(--primary); }
.lang-pick-list {
  padding: 8px 14px 14px; overflow-y: auto; flex: 1;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
}
.lang-group-label {
  width: 100%; font-size: .75rem; font-weight: 600; color: var(--text-secondary);
  padding: 10px 0 4px; text-transform: uppercase; letter-spacing: .5px;
}
.lang-group-label:first-child { padding-top: 4px; }
.lang-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 14px; border-radius: 6px; font-size: .82rem;
  background: #f8f9fa; border: 1px solid #e9ecef; color: var(--text);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.lang-chip:hover { background: #eef0ff; border-color: var(--primary-light); color: var(--primary); }
.lang-chip-selected {
  background: var(--primary) !important; color: #fff !important;
  border-color: var(--primary) !important; font-weight: 500;
}
.lang-chip.lang-hidden { display: none; }
.lang-group-label.lang-hidden { display: none; }

/* ===== Model Selector ===== */
.model-select-wrap { grid-column: 1 / -1; position: relative; z-index: 20; }
.model-selector { position: relative; }
.model-current {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
  font-size: .9rem; color: var(--text);
}
.model-current:hover { border-color: var(--primary-light); }
.model-cur-icon { flex-shrink: 0; }
.model-current .model-name { font-weight: 500; }
.model-current .model-arrow {
  width: 16px; height: 16px; margin-left: auto;
  color: var(--text-light); transition: transform .2s ease;
}
.model-selector.open .model-current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.model-selector.open .model-arrow { transform: rotate(180deg); }

.model-badge-safe {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600;
  background: #dcfce7; color: #16a34a; white-space: nowrap;
}

.model-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl); z-index: 200; max-height: 380px; overflow-y: auto;
}
.model-selector.open .model-dropdown { display: block; }

.model-group-label {
  padding: 10px 14px 4px; font-size: .72rem; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px;
}
.model-group-pro { color: var(--primary-dark); }

.model-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: .88rem;
  transition: background .15s ease;
}
.model-opt-icon { flex-shrink: 0; border-radius: 4px; }
.model-option:hover { background: var(--bg-alt); }
.model-option.selected { background: #ecfdf5; color: var(--primary-dark); font-weight: 500; }
.model-opt-name { flex: 1; }
.model-check { width: 18px; height: 18px; flex-shrink: 0; display: none; }
.model-option.selected .model-check { display: block; }

.model-badge-pro {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 600;
  background: #ccfbf1; color: var(--primary-dark); white-space: nowrap;
}

.model-option.model-locked {
  opacity: .55; cursor: default;
}
.model-option.model-locked:hover { background: transparent; }
.model-option.model-locked .model-opt-name { color: var(--text-light); }
.translate-btn-wrap { text-align: center; }
.translate-btn-wrap .btn {
  width: 100%; padding: 13px; font-size: .95rem;
  border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
}
.translate-btn-wrap .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6,182,212,.25);
}

/* ===== Format Strip ===== */
.formats-section { padding: 80px 0; background: var(--bg-alt); }
.formats-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.formats-header-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.formats-desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; max-width: 560px; }
.formats-badges { display: flex; gap: 10px; flex-shrink: 0; padding-top: 6px; }
.fmt-badge {
  padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.fmt-badge--core { background: #f97316; color: #fff; }
.fmt-badge--update { background: #e2e8f0; color: #475569; }
.format-cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0;
}
.format-cats span {
  font-size: .82rem; font-weight: 600; color: #64748b; letter-spacing: .02em;
}
.format-card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.format-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.format-card:hover {
  border-color: var(--primary); box-shadow: 0 8px 20px -4px rgba(6,182,212,.1);
  transform: translateY(-2px);
}
.fc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-text strong { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.fc-text small { font-size: .75rem; color: #94a3b8; white-space: nowrap; }
.fc-more { border-style: dashed; }

/* ===== Section Headers ===== */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
  padding: 4px 12px; border-radius: 50px;
  background: #ecfdf5; border: 1px solid #d1fae5;
}
.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--text); text-align: center; margin-bottom: 14px;
}
.section-subheading {
  color: var(--text-secondary); font-size: 1.025rem; line-height: 1.7;
  text-align: center; max-width: 560px; margin: 0 auto 56px;
}

/* Applied to section wrappers */
.section-header-block { text-align: center; margin-bottom: 56px; }

/* ===== Features ===== */
.features-section { padding: 100px 0; position: relative; background: #f8fafc; }
.features-section h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.features-section .section-sub { text-align: center; color: var(--text-secondary); font-size: 1rem; margin-bottom: 48px; max-width: 560px; margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.feature-card {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: all .2s ease;
}
.feature-card::before { display: none; }
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px -6px rgba(6,182,212,.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.fi-align { background: rgba(6,182,212,.08); color: var(--primary); }
.fi-format { background: rgba(6,182,212,.08); color: var(--accent); }
.fi-cost { background: rgba(16,185,129,.08); color: #10b981; }
.fi-api { background: rgba(249,115,22,.08); color: #f97316; }
.fi-glossary { background: rgba(139,92,246,.08); color: #8b5cf6; }
.fi-bilingual { background: rgba(236,72,153,.08); color: #ec4899; }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .925rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== Translation Demo ===== */
.demo-section {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}
.demo-section h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.demo-section .section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 50px; }
.demo-panel {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: stretch; max-width: 1000px; margin: 0 auto;
}
.demo-doc {
  background: #ffffff; border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06); overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-doc:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.08); transform: translateY(-4px); }
.demo-doc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}
.demo-doc-tag {
  padding: 2px 10px; border-radius: 4px;
  background: #ef4444; color: #fff; font-size: .7rem; font-weight: 800;
}
.demo-doc-tag.tag-translated { background: var(--primary); }
.demo-doc-content { padding: 20px; }
.demo-text-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.demo-text { font-size: .8rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.demo-table {
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-bottom: 14px;
}
.demo-table-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  font-size: .75rem; color: var(--text-secondary);
}
.demo-table-row span {
  padding: 6px 10px; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-table-row span:last-child { border-right: none; }
.demo-table-row:last-child span { border-bottom: none; }
.demo-table-header { background: var(--bg-alt); font-weight: 700; color: var(--text); }
.demo-arrow-col { display: flex; align-items: center; justify-content: center; }
.demo-arrow-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(6,182,212,.25);
  transition: all .2s ease;
  position: relative;
}
.demo-arrow-btn::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: .2; animation: arrowRipple 2s ease-out infinite;
}
.demo-arrow-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(6,182,212,.3); }
.demo-arrow-btn svg { width: 22px; height: 22px; position: relative; z-index: 1; }

/* ===== Engines Strip ===== */
.engines-strip {
  padding: 20px 0 40px; background: var(--bg);
  position: relative;
  border-top: 1px solid rgba(0,0,0,.03);
}
.engines-strip-label {
  text-align: center; font-size: .78rem; color: var(--text-light);
  font-weight: 500; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .1em;
}
.engines-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 32px;
}
.engine-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; color: var(--text-light);
  transition: color var(--transition);
  opacity: .65; transition: opacity .3s ease, color .3s ease;
}
.engine-logo:hover { color: var(--text); opacity: 1; }
.engine-logo svg { flex-shrink: 0; }
.featured-engine {
  color: var(--primary); font-weight: 700; opacity: .85;
}

/* ===== Stats ===== */
.stats-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center;
  max-width: var(--max-w); margin: 0 auto;
}
.stat-item {
  padding: 32px 20px;
  position: relative;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: clamp(1.9rem,3vw,2.8rem); font-weight: 800; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p { font-size: .875rem; color: var(--text-secondary); font-weight: 500; }


/* ===== Testimonials (Vertical Scrolling Wall) ===== */
.testimonials-section { padding: 100px 0 0; background: var(--bg-alt); overflow: hidden; }
.testimonials-section h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.testimonials-section .section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }
.testimonials-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  height: 480px; overflow: hidden; position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}
.tm-col {
  display: flex; flex-direction: column; gap: 16px;
}
.tm-col-up { animation: tmScrollUp 30s linear infinite; }
.tm-col-down { animation: tmScrollDown 30s linear infinite; }
@keyframes tmScrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes tmScrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
.testimonials-wall:hover .tm-col { animation-play-state: paused; }
.tm-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg); position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.tm-quote {
  font-size: 2.5rem; font-family: Georgia, serif; line-height: 1;
  color: var(--primary-light); opacity: .4; margin-bottom: 4px;
}
.tm-card p {
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.8; margin: 0;
}
.tm-author {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
}
.tm-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tm-author span { font-size: .8rem; color: var(--text-light); }

/* ===== Pricing ===== */
.pricing-section { padding: 100px 0; background: #f8fafc; }
.pricing-section h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.pricing-section .section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 56px; font-size: 1.025rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1060px; margin: 0 auto; }
.pricing-card {
  padding: 36px 30px; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow);
  transition: all .3s cubic-bezier(0.16,1,0.3,1); position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured {
  border: 2px solid var(--primary-dark);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6,182,212,.08), var(--shadow-lg);
}
.pricing-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff; font-size: .73rem; font-weight: 700;
  padding: 4px 16px; border-radius: 50px;
  box-shadow: 0 4px 12px rgba(15,118,110,.3);
  letter-spacing: .04em;
}
.pricing-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.price { margin-bottom: 24px; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.price .period { font-size: .9rem; color: var(--text-light); }
.price .save-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  background: rgba(16,185,129,.1); color: #10b981; border-radius: 50px;
  font-size: .75rem; font-weight: 700;
}
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: .9rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: ""; display: inline-block; width: 18px; height: 18px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.pricing-card .btn { width: 100%; padding: 12px; }

/* ===== FAQ ===== */
.faq-section { padding: 100px 0; background: var(--bg-alt); }
.faq-section h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 50px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--bg); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--border-strong); box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 12px rgba(6,182,212,.08); }
.faq-question {
  padding: 22px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: var(--text);
  transition: color .15s ease;
}
.faq-item.open .faq-question { color: var(--primary-dark); }
.faq-question::after {
  content: "+"; font-size: 1.3rem; color: var(--text-light);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-alt); flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-question::after {
  content: "\2212"; color: #fff;
  background: var(--primary-dark);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 22px; }
.faq-answer p { color: var(--text-secondary); font-size: .925rem; line-height: 1.8; }

/* ===== Footer ===== */
.site-footer { background: #0f172a; color: #94a3b8; padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #0d9488; font-size: .82rem; font-weight: 700; margin-bottom: 18px;
  letter-spacing: .04em; text-transform: uppercase;
}
.footer-col a,
.footer-col .footer-placeholder {
  display: block; font-size: .84rem; color: #94a3b8; margin-bottom: 12px;
  transition: color .15s;
}
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px; text-align: center; font-size: .78rem; color: #475569;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-sep { color: #334155; }
.footer-icp a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-icp a:hover { color: #64748b; }

/* ===== Section Titles Shared ===== */
.section-sub { font-size: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-content { text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: 1; }
  .demo-mockup { transform: scale(.85); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-panel { grid-template-columns: 1fr; gap: 16px; }
  .demo-arrow-col { transform: rotate(90deg); padding: 8px 0; }
  .testimonials-wall { grid-template-columns: 1fr 1fr; height: 400px; }
  .testimonials-wall .tm-col:nth-child(3) { display: none; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 100%; }
  .pricing-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .format-card-grid { grid-template-columns: repeat(2, 1fr); }
  .format-cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  #menu-toggle { display: block; }
  .header-actions .btn { display: none; }

  .hero { padding: 88px 0 24px; }
  .hero-visual { order: 1; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 14px; }
  .hero p { font-size: .88rem; margin-bottom: 20px; line-height: 1.7; }
  .hero-badge { font-size: .72rem; margin-bottom: 16px; padding: 4px 12px; }
  .hero-buttons .btn { padding: 11px 22px; font-size: .88rem; border-radius: 10px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-buttons .btn { width: 100%; padding: 12px; }
  .hero-grid { gap: 16px; }
  .mock-doc { width: 150px; }
  .mock-doc-bar { padding: 7px 10px; font-size: .6rem; }
  .mock-dot { width: 5px; height: 5px; }
  .mock-doc-body { padding: 10px; }
  .mock-line { height: 5px; margin-bottom: 5px; }
  .mock-line.mock-title { height: 7px; margin-bottom: 8px; }
  .mock-spacer { height: 6px; }
  .mock-row span { height: 5px; }
  .mock-arrow { width: 28px; height: 28px; }
  .mock-arrow svg { width: 16px; height: 16px; }
  .mock-arrow::before { display: none; }
  .demo-mockup { gap: 10px; transform: none; filter: drop-shadow(0 8px 20px rgba(79,70,229,.08)); }

  .engines-strip { padding: 10px 0 16px; }
  .engines-strip-label { font-size: .68rem; margin-bottom: 10px; letter-spacing: .06em; }
  .engines-row { gap: 8px 14px; }
  .engine-logo { font-size: .72rem; gap: 4px; }
  .engine-logo svg { width: 14px; height: 14px; }

  .upload-section { padding: 32px 0; }
  .upload-card { padding: 20px 16px; }
  .upload-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
  .upload-options { grid-template-columns: 1fr; gap: 12px; }
  .drop-zone { padding: 24px 14px; margin-bottom: 16px; }
  .drop-zone-icon svg { width: 32px; height: 32px; }
  .translate-btn-wrap .btn { padding: 11px; font-size: .9rem; }
  .lang-pick-dropdown { width: calc(100vw - 40px); left: 50%; transform: translateX(-50%); max-height: 360px; }
  .lang-pick-list { gap: 6px; }
  .lang-chip { padding: 4px 10px; font-size: .76rem; }

  .formats-section { padding: 32px 0; }
  .formats-header { flex-direction: column; gap: 16px; }
  .formats-header-text h2 { font-size: 1.25rem; margin-bottom: 6px; }
  .formats-desc { font-size: .88rem; }
  .formats-badges { align-self: flex-start; }
  .fmt-badge { font-size: .75rem; padding: 4px 12px; }
  .format-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; padding-bottom: 12px; }
  .format-cats span { font-size: .75rem; }
  .format-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .format-card { padding: 12px 14px; gap: 10px; }
  .fc-icon { width: 34px; height: 34px; border-radius: 8px; }
  .fc-icon svg { width: 18px; height: 18px; }
  .fc-text strong { font-size: .82rem; }
  .fc-text small { font-size: .7rem; }

  .features-section { padding: 36px 0; }
  .features-section h2 { font-size: 1.3rem; margin-bottom: 8px; }
  .features-section .section-sub { font-size: .85rem; margin-bottom: 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 18px 16px; }
  .feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
  .feature-card p { font-size: .85rem; }
  .feature-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px; }
  .feature-icon svg { width: 20px; height: 20px; }

  .demo-section { padding: 36px 0; }
  .demo-section h2 { font-size: 1.3rem; margin-bottom: 8px; }
  .demo-section .section-sub { margin-bottom: 24px; font-size: .88rem; }
  .demo-doc-content { padding: 14px; }
  .demo-text-title { font-size: .88rem; margin-bottom: 8px; }
  .demo-text { font-size: .75rem; margin-bottom: 10px; }
  .demo-arrow-btn { width: 40px; height: 40px; }
  .demo-arrow-btn svg { width: 18px; height: 18px; }

  .stats-section { padding: 32px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { padding: 14px 8px; }
  .stat-item h3 { font-size: 1.5rem; margin-bottom: 2px; }
  .stat-item p { font-size: .75rem; }
  .stat-item + .stat-item::before { display: none; }

  .testimonials-section { padding: 36px 0 0; }
  .testimonials-section h2 { font-size: 1.3rem; margin-bottom: 6px; }
  .testimonials-section .section-sub { margin-bottom: 20px; }
  .testimonials-wall { height: 300px; gap: 10px; padding: 0 16px; }
  .tm-card { padding: 14px; border-radius: 12px; }
  .tm-card p { font-size: .78rem; line-height: 1.65; }
  .tm-quote { font-size: 1.6rem; margin-bottom: 2px; }
  .tm-avatar { width: 22px; height: 22px; font-size: .6rem; }
  .tm-author span { font-size: .72rem; }
  .tm-author { margin-top: 10px; gap: 6px; }

  .pricing-section { padding: 36px 0; }
  .pricing-section h2 { font-size: 1.3rem; }
  .pricing-section .section-sub { margin-bottom: 24px; font-size: .88rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card { padding: 24px 18px; }
  .pricing-card h3 { font-size: 1.05rem; }
  .price .amount { font-size: 2rem; }
  .pricing-features li { padding: 6px 0; font-size: .85rem; }

  .faq-section { padding: 36px 0; }
  .faq-section h2 { font-size: 1.3rem; margin-bottom: 24px; }
  .faq-question { padding: 14px 16px; font-size: .92rem; }
  .faq-answer p { font-size: .85rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .footer-col h4 { font-size: .85rem; margin-bottom: 10px; }
  .footer-col a { font-size: .8rem; margin-bottom: 6px; }
  .site-footer { padding: 32px 0 16px; }
  .footer-bottom { padding-top: 14px; font-size: .72rem; }
  .footer-grid { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 80px 0 20px; }
  .hero h1 { font-size: 1.4rem; line-height: 1.3; }
  .hero p { font-size: .84rem; }
  .mock-doc { width: 130px; }

  .engines-row { gap: 6px 12px; }
  .engine-logo { font-size: .68rem; }
  .engine-logo svg { width: 13px; height: 13px; }

  .upload-section { padding: 24px 0; }
  .upload-card { padding: 16px 14px; }
  .upload-card h2 { font-size: 1.1rem; }
  .drop-zone { padding: 20px 12px; }
  .drop-zone-text { font-size: .82rem; }

  .formats-section { padding: 24px 0; }
  .formats-header-text h2 { font-size: 1.15rem; }
  .format-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .format-cats { grid-template-columns: 1fr 1fr; gap: 6px; }

  .features-section { padding: 28px 0; }
  .features-section h2 { font-size: 1.2rem; }
  .feature-card { padding: 16px 14px; }

  .demo-section { padding: 28px 0; }
  .demo-section h2 { font-size: 1.2rem; }

  .stats-section { padding: 24px 0; }
  .stat-item h3 { font-size: 1.3rem; }
  .stat-item p { font-size: .7rem; }

  .testimonials-section { padding: 28px 0 0; }
  .testimonials-section h2 { font-size: 1.2rem; }
  .testimonials-wall { height: 260px; gap: 8px; padding: 0 12px; }
  .tm-card { padding: 12px; }

  .pricing-section { padding: 28px 0; }
  .pricing-section h2 { font-size: 1.2rem; }
  .pricing-card { padding: 20px 16px; }
  .price .amount { font-size: 1.8rem; }

  .faq-section { padding: 28px 0; }
  .faq-section h2 { font-size: 1.2rem; margin-bottom: 20px; }
  .faq-question { padding: 12px 14px; font-size: .88rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: .78rem; }
  .footer-col h4 { font-size: .82rem; margin-bottom: 8px; }
  .footer-col a { font-size: .78rem; margin-bottom: 5px; }
  .site-footer { padding: 28px 0 14px; }
}

/* ==================== AUTH MODAL ==================== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .2s ease;
}
.auth-overlay.open { display: flex; opacity: 1; }

.auth-modal {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 420px;
  padding: 32px 28px 24px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  max-height: 90vh; overflow-y: auto;
}
.auth-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.5rem;
  color: #9ca3af; cursor: pointer; line-height: 1;
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.auth-close:hover { background: #f3f4f6; color: #374151; }

.auth-panel h2 {
  font-size: 1.3rem; font-weight: 700; color: #1a1a2e;
  margin-bottom: 20px; text-align: center;
}

.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; font-size: .88rem; color: #374151; font-weight: 500;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.oauth-btn:hover:not(:disabled) { border-color: #9ca3af; background: #f9fafb; }
.oauth-btn--wechat:hover:not(:disabled) { border-color: #07C160; background: #f0fdf4; }
.oauth-btn:disabled { opacity: .5; cursor: not-allowed; }

.auth-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: #9ca3af; font-size: .8rem;
}
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.auth-panel label {
  display: block; font-size: .82rem; font-weight: 500;
  color: #374151; margin-bottom: 5px; margin-top: 14px;
}
.auth-panel input[type="email"],
.auth-panel input[type="password"],
.auth-panel input[type="text"] {
  width: 100%; padding: 9px 12px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: .88rem; color: #1a1a2e;
  outline: none; transition: border-color .15s;
  box-sizing: border-box;
}
.auth-panel input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,182,212,.08); }

.email-row { display: flex; gap: 8px; }
.email-row input { flex: 1; min-width: 0; }
.send-code-btn {
  white-space: nowrap; padding: 9px 14px;
  border: 1px solid #d1d5db; border-radius: 8px;
  background: #f9fafb; color: #374151;
  font-size: .82rem; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.send-code-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.send-code-btn:disabled { opacity: .5; cursor: not-allowed; }

.pwd-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pwd-row label { margin: 0; }
.pwd-forgot { font-size: .8rem; color: #6b7280; }
.pwd-forgot:hover { color: var(--primary-dark); }

.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 40px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px;
}
.pwd-toggle:hover { color: #6b7280; }

.auth-error {
  color: #ef4444; font-size: .82rem; margin-top: 8px;
  min-height: 0; transition: min-height .2s;
}
.auth-error:not(:empty) { min-height: 20px; }

.auth-submit {
  width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: #1a1a2e; color: #fff;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  margin-top: 16px; transition: background .15s;
}
.auth-submit:hover { background: #111827; }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }
.auth-submit.loading { pointer-events: none; opacity: .6; }

.auth-switch {
  text-align: center; font-size: .85rem; color: #6b7280;
  margin-top: 18px;
}
.auth-switch a { color: var(--primary-dark); font-weight: 600; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }

.auth-terms {
  text-align: center; font-size: .72rem; color: #9ca3af;
  margin-top: 14px; line-height: 1.5;
}
.auth-terms a { color: #9ca3af; text-decoration: underline; }
.auth-terms a:hover { color: #6b7280; }

@media (max-width: 480px) {
  .auth-modal { padding: 24px 20px 20px; }
  .auth-panel h2 { font-size: 1.15rem; }
}

/* Trust Bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #64748b;
  font-weight: 500;
}
.trust-item svg {
  color: #14b8a6;
  flex-shrink: 0;
}
