/* ============================================================
   pdfGens.com — Global Stylesheet  (Light Theme)
   Clean White & Minimal — Google Docs inspired
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

   :root {
     --bg:          #FFFFFF;
     --surf:        #F8F9FA;
     --surf2:       #F1F3F4;
     --border:      #E8EAED;
     --border2:     #DADCE0;
     --accent:      #1A73E8;
     --accent-dark: #1557B0;
     --accent-dim:  rgba(26,115,232,0.08);
     --accent2:     #FA7B17;
     --text:        #202124;
     --text-muted:  #5F6368;
     --text-light:  #80868B;
     --bright:      #202124;
     --danger:      #D93025;
     --danger-dim:  rgba(217,48,37,0.08);
     --warning:     #F9AB00;
     --success:     #1E8E3E;
     --success-dim: rgba(30,142,62,0.08);
     --shadow-sm:   0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.08);
     --shadow-md:   0 2px 8px rgba(60,64,67,0.15), 0 1px 4px rgba(60,64,67,0.08);
     --mono:        'IBM Plex Mono', monospace;
     --display:     'Syne', sans-serif;
     --body:        'Manrope', sans-serif;
     --radius:      12px;
     --radius-sm:   8px;
     --radius-xs:   6px;
   }
   
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   html { scroll-behavior: smooth; }
   body {
     background: var(--bg);
     color: var(--text);
     font-family: var(--body);
     font-size: 15px;
     line-height: 1.6;
     overflow-x: hidden;
     min-height: 100vh;
   }
   
   /* ── SCROLLBAR ──────────────────────────────── */
   ::-webkit-scrollbar { width: 7px; height: 7px; }
   ::-webkit-scrollbar-track { background: var(--surf); }
   ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
   ::-webkit-scrollbar-thumb:hover { background: #BDC1C6; }
   
   /* ── NAV ────────────────────────────────────── */
   nav {
     position: sticky; top: 0; z-index: 200;
     background: rgba(255,255,255,0.96);
     backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--border);
     box-shadow: var(--shadow-sm);
     padding: 0 5vw;
     display: flex; align-items: center; justify-content: space-between;
     height: 60px;
   }
   .nav-logo {
     font-family: var(--display); font-weight: 800; font-size: 1.25rem;
     color: var(--text); letter-spacing: -0.02em;
     text-decoration: none; display: flex; align-items: center; gap: 2px;
     flex-shrink: 0;
   }
   .nav-logo span { color: var(--accent); }
   
   /* ── Nav centre links ────────────────────────── */
   .nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
   .nav-links > li { position: relative; }
   .nav-links a {
     color: var(--text-muted); text-decoration: none;
     font-size: 0.83rem; font-weight: 500;
     padding: 6px 11px; border-radius: var(--radius-xs);
     transition: all 0.15s; display: flex; align-items: center; gap: 4px;
     white-space: nowrap;
   }
   .nav-links a:hover  { background: var(--surf); color: var(--text); }
   .nav-links a.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
   .nav-drop-arrow {
     font-size: 0.55rem; opacity: 0.5; transition: transform 0.2s;
     display: inline-block;
   }
   .nav-links > li:hover .nav-drop-arrow { transform: rotate(180deg); opacity: 1; }
   
   /* ── Dropdown panel ─────────────────────────── */
   .nav-dropdown {
     position: absolute; top: calc(100% + 8px); left: 50%;
     transform: translateX(-50%);
     background: #fff; border: 1px solid var(--border);
     border-radius: 12px; box-shadow: 0 8px 32px rgba(60,64,67,0.18);
     padding: 16px; min-width: 560px;
     opacity: 0; visibility: hidden; pointer-events: none;
     transition: opacity 0.18s, transform 0.18s;
     transform: translateX(-50%) translateY(-4px);
     z-index: 300;
   }
   .nav-links > li:hover .nav-dropdown {
     opacity: 1; visibility: visible; pointer-events: all;
     transform: translateX(-50%) translateY(0);
   }
   .nav-dropdown-grid {
     display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
   }
   .nav-dropdown-col-title {
     font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
     text-transform: uppercase; letter-spacing: 0.08em;
     color: var(--text-light); padding: 4px 8px 8px;
     grid-column: 1 / -1;
   }
   .nav-dd-item {
     display: flex; align-items: center; gap: 9px;
     padding: 8px 10px; border-radius: 8px;
     text-decoration: none; transition: background 0.12s;
     color: var(--text);
   }
   .nav-dd-item:hover { background: var(--surf); }
   .nav-dd-item:hover .nav-dd-name { color: var(--accent); }
   .nav-dd-icon {
     width: 30px; height: 30px; border-radius: 7px;
     background: var(--surf); border: 1px solid var(--border);
     display: flex; align-items: center; justify-content: center;
     font-size: 0.9rem; flex-shrink: 0;
   }
   .nav-dd-name { font-size: 0.78rem; font-weight: 600; color: var(--text); line-height: 1.2; }
   .nav-dd-desc { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }
   /* Arrow connector so dropdown doesn't close on gap hover */
   .nav-links > li:hover::after {
     content: ''; position: absolute; top: 100%; left: 0;
     width: 100%; height: 10px;
   }
   
   /* ── Right side ─────────────────────────────── */
   .nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
   .nav-cta {
     display: inline-flex; align-items: center; gap: 6px;
     padding: 7px 16px; border-radius: var(--radius-sm);
     background: var(--accent); color: #fff;
     font-size: 0.8rem; font-weight: 600;
     text-decoration: none; transition: all 0.15s;
     white-space: nowrap;
   }
   .nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
   .nav-badge {
     font-family: var(--mono); font-size: 0.6rem;
     background: var(--success-dim); color: var(--success);
     border: 1px solid rgba(30,142,62,0.25);
     border-radius: 20px; padding: 3px 9px; letter-spacing: 0.04em;
     font-weight: 600; white-space: nowrap;
   }
   
   /* ── Mobile hamburger ───────────────────────── */
   .nav-hamburger {
     display: none; flex-direction: column; gap: 4px;
     background: none; border: none; cursor: pointer; padding: 4px;
   }
   .nav-hamburger span {
     display: block; width: 20px; height: 2px;
     background: var(--text); border-radius: 2px; transition: all 0.2s;
   }
   .nav-mobile-menu {
     display: none; position: absolute; top: 60px; left: 0; right: 0;
     background: #fff; border-bottom: 1px solid var(--border);
     box-shadow: var(--shadow-md); padding: 12px 5vw 16px; z-index: 299;
     flex-direction: column; gap: 4px;
   }
   .nav-mobile-menu.open { display: flex; }
   .nav-mobile-menu a {
     padding: 9px 12px; border-radius: 8px; font-size: 0.85rem;
     color: var(--text); text-decoration: none; font-weight: 500;
     display: flex; align-items: center; gap: 8px; transition: background 0.12s;
   }
   .nav-mobile-menu a:hover { background: var(--surf); color: var(--accent); }
   .nav-mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }
   
   @media (max-width: 768px) {
     .nav-links, .nav-cta { display: none; }
     .nav-hamburger { display: flex; }
   }
   
   /* ── TYPOGRAPHY ─────────────────────────────── */
   h1 {
     font-family: var(--display); font-weight: 800;
     font-size: clamp(2rem,5.5vw,3.6rem);
     color: var(--text); line-height: 1.1;
     letter-spacing: -0.03em; margin-bottom: 18px;
   }
   h1 em { font-style: normal; color: var(--accent); }
   h2 {
     font-family: var(--display); font-weight: 700;
     font-size: 1.7rem; color: var(--text);
     letter-spacing: -0.02em; margin-bottom: 8px;
   }
   h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
   p { color: var(--text-muted); line-height: 1.7; }
   
   /* ── BUTTONS ────────────────────────────────── */
   .btn {
     display: inline-flex; align-items: center; gap: 7px;
     padding: 9px 20px; border-radius: var(--radius-sm);
     border: none; cursor: pointer;
     font-family: var(--body); font-weight: 600; font-size: 0.85rem;
     transition: all 0.15s; text-decoration: none; white-space: nowrap;
   }
   .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(26,115,232,0.3); }
   .btn-primary:hover { background: var(--accent-dark); box-shadow: 0 2px 6px rgba(26,115,232,0.4); transform: translateY(-1px); }
   .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
   .btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border2); box-shadow: var(--shadow-sm); }
   .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
   .btn-danger  { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(217,48,37,0.25); }
   .btn-danger:hover { background: rgba(217,48,37,0.14); }
   .btn-sm  { padding: 6px 14px; font-size: 0.78rem; }
   .btn-xs  { padding: 4px 10px; font-size: 0.72rem; }
   .btn-icon { padding: 8px; border-radius: var(--radius-xs); background: var(--surf); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-size: 1rem; line-height:1; }
   .btn-icon:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
   .btn-icon.active { background: var(--accent); border-color: var(--accent); color: #fff; }
   
   /* ── CARDS ──────────────────────────────────── */
   .card {
     background: #fff; border: 1px solid var(--border);
     border-radius: 14px; padding: 24px;
     box-shadow: var(--shadow-sm);
     transition: box-shadow 0.2s, border-color 0.2s;
   }
   .card:hover { box-shadow: var(--shadow-md); }
   
   /* ── DROP ZONE ──────────────────────────────── */
   .drop-zone {
     border: 2px dashed var(--border2); border-radius: 14px;
     padding: 44px 24px; text-align: center;
     transition: all 0.2s; cursor: pointer;
     background: var(--surf); position: relative;
   }
   .drop-zone:hover, .drop-zone.drag-over {
     border-color: var(--accent); background: var(--accent-dim);
   }
   .drop-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
   .drop-icon  { font-size: 2.2rem; margin-bottom: 12px; display: block; }
   .drop-text  { font-weight: 700; color: var(--text); font-size: 0.95rem; margin-bottom: 5px; }
   .drop-sub   { font-size: 0.78rem; color: var(--text-muted); }
   .drop-sub span { font-family: var(--mono); color: var(--accent); font-weight: 500; }
   
   /* ── FILE LIST ──────────────────────────────── */
   .file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
   .file-item {
     background: #fff; border: 1px solid var(--border);
     border-radius: 10px; padding: 10px 14px;
     display: flex; align-items: center; gap: 12px;
     box-shadow: var(--shadow-sm);
   }
   .file-item-icon { font-size: 1.15rem; flex-shrink: 0; }
   .file-item-name { flex:1; font-size:0.82rem; color:var(--text); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
   .file-item-size { font-family:var(--mono); font-size:0.7rem; color:var(--text-muted); white-space:nowrap; }
   .file-item-remove { background:none; border:none; color:var(--text-light); cursor:pointer; font-size:1rem; transition:color 0.15s; padding:0 4px; }
   .file-item-remove:hover { color: var(--danger); }
   
   /* ── CONTROLS ───────────────────────────────── */
   .controls { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
   .ctrl-group { display: flex; flex-direction: column; gap: 6px; }
   .ctrl-label {
     font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted);
     letter-spacing: 0.06em; text-transform: uppercase;
     display: flex; justify-content: space-between; min-width: 110px;
   }
   .ctrl-label span { color: var(--accent); }
   
   input[type=range] {
     -webkit-appearance: none; width: 200px; height: 4px;
     background: var(--border2); border-radius: 2px; outline: none; cursor: pointer;
   }
   input[type=range]::-webkit-slider-thumb {
     -webkit-appearance: none; width: 16px; height: 16px;
     border-radius: 50%; background: var(--accent); cursor: pointer;
     box-shadow: 0 1px 3px rgba(26,115,232,0.4);
   }
   input[type=number], input[type=text], select, textarea {
     background: #fff; border: 1px solid var(--border2);
     border-radius: var(--radius-sm); padding: 8px 12px;
     color: var(--text); font-family: var(--body); font-size: 0.85rem;
     outline: none; transition: border-color 0.15s, box-shadow 0.15s;
     box-shadow: var(--shadow-sm);
   }
   input[type=number]:focus, input[type=text]:focus, select:focus, textarea:focus {
     border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
   }
   select option { background: #fff; color: var(--text); }
   
   /* ── RADIO GROUP ────────────────────────────── */
   .radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
   .radio-opt { position: relative; }
   .radio-opt input { position: absolute; opacity: 0; }
   .radio-opt label {
     display: flex; align-items: center; gap: 6px;
     padding: 7px 14px; border-radius: var(--radius-sm);
     border: 1px solid var(--border2); cursor: pointer;
     font-size: 0.78rem; color: var(--text-muted);
     transition: all 0.15s; font-family: var(--mono); background: #fff;
     box-shadow: var(--shadow-sm);
   }
   .radio-opt input:checked + label { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); box-shadow: none; }
   .radio-opt label:hover:not(:has(input:checked)) { border-color: var(--border2); color: var(--text); background: var(--surf); }
   
   /* ── PROGRESS ───────────────────────────────── */
   .progress-wrap { margin-top: 18px; display: none; }
   .progress-wrap.visible { display: block; }
   .progress-label { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
   .progress-bar { height: 5px; background: var(--border2); border-radius: 3px; overflow: hidden; }
   .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #4285F4); border-radius: 3px; transition: width 0.3s; width: 0%; }
   
   /* ── RESULT BOX ─────────────────────────────── */
   .result-box {
     margin-top: 20px; display: none;
     background: var(--success-dim); border: 1px solid rgba(30,142,62,0.25);
     border-radius: var(--radius); padding: 20px;
   }
   .result-box.visible { display: block; }
   .result-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
   .result-stats { display: flex; gap: 24px; flex-wrap: wrap; }
   .result-stat { text-align: center; }
   .result-stat-num { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--text); }
   .result-stat-num.green { color: var(--success); }
   .result-stat-label { font-size: 0.68rem; color: var(--text-muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
   .result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
   
   /* ── ALERT ──────────────────────────────────── */
   .alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.82rem; margin-top: 12px; display: none; }
   .alert.visible { display: flex; align-items: flex-start; gap: 8px; }
   .alert-error   { background: var(--danger-dim); border: 1px solid rgba(217,48,37,0.25); color: var(--danger); }
   .alert-success { background: var(--success-dim); border: 1px solid rgba(30,142,62,0.25); color: var(--success); }
   
   /* ── OCR OUTPUT ─────────────────────────────── */
   .ocr-output {
     background: #fff; border: 1px solid var(--border);
     border-radius: 10px; padding: 18px;
     font-family: var(--mono); font-size: 0.8rem;
     color: var(--text); line-height: 1.85;
     white-space: pre-wrap; max-height: 380px;
     overflow-y: auto; margin-top: 14px;
     box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
   }
   
   /* ── OUTPUT IMAGE GRID ──────────────────────── */
   .output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; margin-top: 16px; }
   .output-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
   .output-card img { width:100%; aspect-ratio:3/4; object-fit:cover; display:block; background: var(--surf); }
   .output-card-footer { padding: 8px 10px; display:flex; align-items:center; justify-content:space-between; background: var(--surf); }
   .output-card-name { font-family:var(--mono); font-size:0.65rem; color:var(--text-muted); }
   
   /* ── HERO ───────────────────────────────────── */
   .hero {
     padding: 64px 5vw 0;
     text-align: center;
     position: relative;
     overflow: hidden;
     background: #fff;
   }
   /* Subtle grid background */
   .hero::before {
     content: '';
     position: absolute; inset: 0;
     background-image:
       linear-gradient(rgba(26,115,232,0.04) 1px, transparent 1px),
       linear-gradient(90deg, rgba(26,115,232,0.04) 1px, transparent 1px);
     background-size: 40px 40px;
     pointer-events: none;
   }
   /* Blue gradient fade at bottom of grid */
   .hero::after {
     content: '';
     position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
     background: linear-gradient(to bottom, transparent, #fff);
     pointer-events: none;
   }
   
   /* ── Eyebrow ─────────────────────────── */
   .hero-eyebrow {
     font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
     letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
     display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
   }
   .hero-eyebrow::before, .hero-eyebrow::after {
     content: ''; display: inline-block; width: 28px; height: 1px;
     background: var(--accent); opacity: 0.35;
   }
   
   /* ── Headline ────────────────────────── */
   .hero h1 {
     font-size: clamp(2.6rem, 6vw, 4.2rem);
     margin-bottom: 20px;
     line-height: 1.06;
   }
   .hero h1 .h1-line2 {
     display: block;
     color: var(--accent);
   }
   
   /* ── Sub ─────────────────────────────── */
   .hero-sub {
     max-width: 520px; margin: 0 auto 32px;
     color: var(--text-muted); font-size: 1.05rem; line-height: 1.65;
   }
   
   /* ── CTA buttons ─────────────────────── */
   .hero-cta-row {
     display: flex; justify-content: center; align-items: center;
     gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
   }
   .hero-cta-primary {
     display: inline-flex; align-items: center; gap: 8px;
     background: var(--accent); color: #fff;
     padding: 13px 28px; border-radius: 10px;
     font-size: 0.95rem; font-weight: 700;
     text-decoration: none;
     box-shadow: 0 4px 14px rgba(26,115,232,0.35);
     transition: all 0.18s;
   }
   .hero-cta-primary:hover {
     background: var(--accent-dark);
     box-shadow: 0 6px 20px rgba(26,115,232,0.45);
     transform: translateY(-2px);
   }
   .hero-cta-secondary {
     display: inline-flex; align-items: center; gap: 8px;
     background: #fff; color: var(--text);
     padding: 13px 24px; border-radius: 10px;
     font-size: 0.92rem; font-weight: 600;
     text-decoration: none;
     border: 1px solid var(--border2);
     box-shadow: var(--shadow-sm);
     transition: all 0.18s;
   }
   .hero-cta-secondary:hover {
     border-color: var(--accent); color: var(--accent);
     box-shadow: var(--shadow-md); transform: translateY(-1px);
   }
   
   /* ── Trust pills ─────────────────────── */
   .hero-trust {
     display: flex; justify-content: center; flex-wrap: wrap;
     gap: 8px; margin-bottom: 52px;
   }
   .trust-pill {
     display: inline-flex; align-items: center; gap: 6px;
     font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
     padding: 5px 13px; border-radius: 20px;
     background: var(--surf); border: 1px solid var(--border);
   }
   .trust-pill .tp-dot {
     width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
   }
   .trust-pill .tp-dot.green  { background: var(--success); }
   .trust-pill .tp-dot.blue   { background: var(--accent); }
   .trust-pill .tp-dot.orange { background: var(--accent2); }
   .trust-pill .tp-dot.purple { background: #9C27B0; }
   
   /* ── Stats strip ─────────────────────── */
   .hero-stats {
     display: flex; justify-content: center; gap: 0;
     border: 1px solid var(--border); border-radius: 14px;
     background: #fff; box-shadow: var(--shadow-sm);
     max-width: 580px; margin: 0 auto 0;
     overflow: hidden; position: relative; z-index: 1;
   }
   .hero-stat {
     flex: 1; padding: 20px 16px; text-align: center;
     position: relative;
   }
   .hero-stat + .hero-stat::before {
     content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
     width: 1px; background: var(--border);
   }
   .hero-stat-num {
     font-family: var(--display); font-weight: 800;
     font-size: 1.85rem; color: var(--text); line-height: 1;
     margin-bottom: 5px;
   }
   .hero-stat-num.blue   { color: var(--accent); }
   .hero-stat-num.green  { color: var(--success); }
   .hero-stat-label {
     font-family: var(--mono); font-size: 0.68rem;
     color: var(--text-muted); text-transform: uppercase;
     letter-spacing: 0.06em;
   }
   
   /* ── Tools preview strip ─────────────── */
   .hero-tools-strip {
     display: flex; justify-content: center; flex-wrap: wrap;
     gap: 8px; padding: 40px 0 56px; position: relative; z-index: 1;
   }
   .strip-tool {
     display: inline-flex; align-items: center; gap: 7px;
     padding: 7px 14px; border-radius: 8px;
     border: 1px solid var(--border); background: #fff;
     font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
     text-decoration: none; transition: all 0.15s;
     box-shadow: var(--shadow-sm);
   }
   .strip-tool:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
   .strip-tool .st-icon { font-size: 0.9rem; }
   
   /* Google Ads placeholder zone — sits just below hero */
   .ads-zone {
     max-width: 1100px; margin: 0 auto;
     padding: 16px 5vw 0;
     min-height: 100px;
     display: flex; align-items: center; justify-content: center;
   }
   .ads-zone-label {
     font-family: var(--mono); font-size: 0.62rem; color: var(--text-light);
     text-align: center; padding: 12px;
     border: 1px dashed var(--border2); border-radius: 8px;
     width: 100%; background: var(--surf);
   }
   
   @media (max-width: 640px) {
     .hero { padding: 48px 16px 0; }
     .hero-stats { flex-direction: column; max-width: 280px; }
     .hero-stat + .hero-stat::before { top: 0; bottom: auto; left: 20%; right: 20%; width: auto; height: 1px; }
     .hero-tools-strip { gap: 6px; padding: 28px 0 40px; }
   }
   
   /* ── TOOLS GRID ─────────────────────────────── */
   .tools-section { padding: 56px 5vw; background: var(--surf); }
   .section-header { text-align:center; margin-bottom:36px; }
   .section-label { font-family:var(--mono); font-size:0.68rem; color:var(--text-muted); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:10px; }
   .tools-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(245px,1fr)); gap:14px; max-width:1100px; margin:0 auto; }
   .tool-card {
     background:#fff; border:1px solid var(--border);
     border-radius:14px; padding:22px; cursor:pointer;
     transition:all 0.2s; text-decoration:none; display:block; position:relative;
     box-shadow:var(--shadow-sm);
   }
   .tool-card:hover { border-color:var(--accent); box-shadow:var(--shadow-md); transform:translateY(-2px); }
   .card-icon  { font-size:1.8rem; margin-bottom:12px; display:block; }
   .card-name  { font-family:var(--display); font-weight:700; font-size:0.95rem; color:var(--text); margin-bottom:5px; }
   .card-desc  { font-size:0.78rem; color:var(--text-muted); line-height:1.5; }
   .card-badge { position:absolute; top:14px; right:14px; font-family:var(--mono); font-size:0.58rem; padding:2px 7px; border-radius:4px; font-weight:600; letter-spacing:0.04em; }
   .badge-free { background:var(--success-dim); color:var(--success); border:1px solid rgba(30,142,62,0.2); }
   .badge-ai   { background:rgba(250,123,23,0.1); color:var(--accent2); border:1px solid rgba(250,123,23,0.25); }
   .badge-new  { background:var(--accent-dim); color:var(--accent); border:1px solid rgba(26,115,232,0.2); }
   
   /* ── TOOL PAGE ──────────────────────────────── */
   .tool-page { max-width: 860px; margin: 0 auto; padding: 44px 24px 80px; }
   .breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:28px; }
   .breadcrumb a { font-family:var(--mono); font-size:0.73rem; color:var(--text-muted); text-decoration:none; transition:color 0.15s; }
   .breadcrumb a:hover { color:var(--accent); }
   .breadcrumb-sep  { color:var(--border2); font-size:0.8rem; }
   .breadcrumb-curr { font-family:var(--mono); font-size:0.73rem; color:var(--accent); font-weight:500; }
   .tool-header { display:flex; align-items:center; gap:18px; margin-bottom:32px; }
   .tool-icon-lg { width:54px; height:54px; border-radius:14px; background:var(--accent-dim); border:1px solid rgba(26,115,232,0.18); display:flex; align-items:center; justify-content:center; font-size:1.5rem; flex-shrink:0; }
   .tool-title    { font-family:var(--display); font-weight:700; font-size:1.65rem; color:var(--text); letter-spacing:-0.02em; }
   .tool-subtitle { font-size:0.82rem; color:var(--text-muted); margin-top:4px; }
   
   /* ── DIVIDER ────────────────────────────────── */
   .divider { height:1px; background:var(--border); }
   
   /* ── FOOTER ─────────────────────────────────── */
   footer {
     background: #fff;
     border-top: 1px solid var(--border);
     padding: 48px 5vw 28px;
     margin-top: auto;
   }
   .footer-inner {
     max-width: 1100px; margin: 0 auto;
     display: grid;
     grid-template-columns: 240px 1fr;
     gap: 40px;
     padding-bottom: 32px;
     border-bottom: 1px solid var(--border);
   }
   /* Left: Brand column */
   .footer-brand {}
   .footer-logo  { font-family:var(--display); font-weight:800; color:var(--text); font-size:1.2rem; }
   .footer-logo span { color:var(--accent); }
   .footer-tagline {
     font-size: 0.82rem; color: var(--text-muted);
     line-height: 1.7; margin-top: 8px; max-width: 200px;
   }
   .footer-badges {
     display: flex; flex-direction: column; gap: 5px; margin-top: 16px;
   }
   .footer-badge {
     display: inline-flex; align-items: center; gap: 6px;
     font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted);
   }
   .footer-badge-dot {
     width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
   }
   .footer-badge-dot.green  { background: var(--success); }
   .footer-badge-dot.blue   { background: var(--accent); }
   .footer-badge-dot.orange { background: var(--accent2); }
   
   /* Right: Tool columns grid */
   .footer-cols {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 24px 16px;
   }
   .footer-col-title {
     font-family: var(--mono); font-size: 0.65rem;
     text-transform: uppercase; letter-spacing: 0.1em;
     color: var(--text-light); font-weight: 600;
     margin-bottom: 10px;
   }
   .footer-col-links {
     display: flex; flex-direction: column; gap: 7px;
   }
   .footer-col-links a {
     font-size: 0.8rem; color: var(--text-muted);
     text-decoration: none; transition: color 0.15s;
     display: flex; align-items: center; gap: 6px;
   }
   .footer-col-links a:hover { color: var(--accent); }
   .footer-col-links a .lk-icon { font-size: 0.82rem; flex-shrink: 0; }
   
   /* Bottom bar */
   .footer-bottom {
     max-width: 1100px; margin: 20px auto 0;
     display: flex; justify-content: space-between; align-items: center;
     flex-wrap: wrap; gap: 12px;
   }
   .footer-copy {
     font-family: var(--mono); font-size: 0.68rem; color: var(--text-light);
   }
   .footer-bottom-links { display: flex; gap: 16px; }
   .footer-bottom-links a {
     font-family: var(--mono); font-size: 0.68rem;
     color: var(--text-light); text-decoration: none; transition: color 0.15s;
   }
   .footer-bottom-links a:hover { color: var(--accent); }
   
   /* Responsive */
   @media (max-width: 768px) {
     .footer-inner { grid-template-columns: 1fr; gap: 28px; }
     .footer-cols  { grid-template-columns: repeat(2, 1fr); }
   }
   @media (max-width: 480px) {
     .footer-cols  { grid-template-columns: 1fr 1fr; }
   }
   
   /* Keep old .footer-links for index.html inline footer if any */
   .footer-links { display:flex; gap:16px; flex-wrap:wrap; }
   .footer-links a { font-size:0.78rem; color:var(--text-muted); text-decoration:none; transition:color 0.15s; }
   .footer-links a:hover { color:var(--accent); }
   
   /* ── LIVE DOT ───────────────────────────────── */
   @keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
   .live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--danger); animation:pulse-dot 2s infinite; vertical-align:middle; }
   
   /* ── ANIMATIONS ─────────────────────────────── */
   @keyframes fadeInUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
   .anim-1 { animation:fadeInUp 0.5s ease both; }
   .anim-2 { animation:fadeInUp 0.5s 0.08s ease both; }
   .anim-3 { animation:fadeInUp 0.5s 0.16s ease both; }
   .anim-4 { animation:fadeInUp 0.5s 0.24s ease both; }
   
   /* ── PROGRESS STEPS ─────────────────────────── */
   .prog-steps { display:flex; flex-direction:column; gap:4px; margin-top:8px; }
   .prog-step  { font-family:var(--mono); font-size:0.7rem; color:var(--text-muted); display:flex; align-items:center; gap:8px; }
   .prog-step .dot { width:6px; height:6px; border-radius:50%; background:var(--border2); flex-shrink:0; transition:background 0.3s; }
   .prog-step.active .dot { background:var(--accent); }
   .prog-step.done   .dot { background:var(--success); }
   .prog-step.active { color:var(--accent); }
   .prog-step.done   { color:var(--text-light); text-decoration:line-through; }
   
   /* ── WORD CONFIDENCE ────────────────────────── */
   .word-tag { font-family:var(--mono); font-size:0.72rem; padding:2px 8px; border-radius:4px; border:1px solid var(--border); color:var(--text-muted); background:var(--surf); display:inline-block; margin:2px; }
   .word-tag.high-conf { border-color:rgba(30,142,62,0.35); color:var(--success); background:var(--success-dim); }
   .word-tag.low-conf  { border-color:rgba(217,48,37,0.3);  color:var(--danger);  background:var(--danger-dim); }
   
   /* ── PDF EDITOR ─────────────────────────────── */
   .editor-wrap { display:flex; flex-direction:column; height:calc(100vh - 60px); }
   .editor-toolbar {
     background:#fff; border-bottom:1px solid var(--border);
     padding:8px 16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
     box-shadow:var(--shadow-sm); position:sticky; top:60px; z-index:100;
   }
   .toolbar-sep { width:1px; height:28px; background:var(--border2); margin:0 4px; flex-shrink:0; }
   .editor-canvas-area {
     flex:1; overflow-y:auto; background:var(--surf);
     display:flex; flex-direction:column; align-items:center;
     padding:24px 16px; gap:16px;
   }
   .page-wrap {
     position:relative; display:inline-block;
     box-shadow:0 2px 12px rgba(60,64,67,0.2);
     border-radius:2px; overflow:hidden;
     background:#fff;
   }
   .page-render  { display:block; }
   .page-annot   { position:absolute; inset:0; cursor:crosshair; }
   .page-label   { font-family:var(--mono); font-size:0.68rem; color:var(--text-muted); text-align:center; margin-top:6px; }
   
   /* ── RESPONSIVE ─────────────────────────────── */
   @media (max-width:640px) {
     nav { padding:0 14px; }
     .nav-links { display:none; }
     .hero, .tools-section { padding-left:16px; padding-right:16px; }
     .tool-page { padding:28px 14px 60px; }
     .controls { flex-direction:column; align-items:flex-start; }
     input[type=range] { width:100%; }
     .footer-inner { flex-direction:column; align-items:flex-start; }
     .editor-toolbar { gap:4px; }
   }