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

        :root {
            --bg: #f9fafb;
            --surface: #ffffff;
            --surface-raised: #ffffff;
            --border: rgba(0,0,0,0.08);
            --border-strong: rgba(0,0,0,0.14);
            --text-primary: #0d1117;
            --text-secondary: #586069;
            --text-muted: #8b949e;
            --accent: #2563eb;
            --accent-hover: #1d4ed8;
            --accent-light: #eff6ff;
            --accent-light-border: #bfdbfe;
            --green: #059669;
            --green-light: #ecfdf5;
            --red: #dc2626;
            --red-light: #fef2f2;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
            --shadow-lg: 0 10px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
            --radius-sm: 6px;
            --radius: 10px;
            --radius-lg: 14px;
            --radius-xl: 20px;
        }

        html.dark {
            --bg: #0d1117;
            --surface: #161b22;
            --surface-raised: #1c2128;
            --border: rgba(255,255,255,0.06);
            --border-strong: rgba(255,255,255,0.12);
            --text-primary: #e6edf3;
            --text-secondary: #8b949e;
            --text-muted: #6e7681;
            --accent: #3b82f6;
            --accent-hover: #60a5fa;
            --accent-light: rgba(59,130,246,0.08);
            --accent-light-border: rgba(59,130,246,0.2);
            --green: #10b981;
            --green-light: rgba(16,185,129,0.08);
            --red: #f87171;
            --red-light: rgba(248,113,113,0.08);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
            --shadow-lg: 0 10px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.2);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            transition: background 0.2s, color 0.2s;
            -webkit-font-smoothing: antialiased;
            /* ADD THESE TWO LINES FOR EXTRA PROTECTION */
            width: 100%;
            overflow-x: hidden;
        }

        /* ── Header ── */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(249,250,251,0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 0.0px solid var(--border);
            transition: background 0.2s;
        }
        html.dark header { background: rgba(13,17,23,0.88); }

        .header-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            height: 65px;
            padding-top: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
        }

        .logo-mark {
            width: 30px;
            height: 34px;
            flex-shrink: 0;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }


        /* 1. New dedicated background layer that safely handles the document shape mask */
        .logo-mark::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--accent);
            border-radius: 0 0 0 0;
            clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 8px, 100% 100%, 0% 100%);
            z-index: 1; /* Sits below the inner SVG document lines */
        }

        /* 2. The Page Fold Flap (Stays assigned to the background boundary layer) */
        .logo-mark::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 8px;
            height: 8px;
            background: rgba(255, 255, 255, 0.4); 
            border-bottom-left-radius: 3px; 
            clip-path: polygon(0 0, 100% 100%, 0 100%);
            z-index: 2;
        }

        /* 3. Ensure your inner SVG icon floats safely above the new background layer */
        .logo-mark svg {
            position: relative;
            z-index: 3;
        }

        /* 4. The green status light wrapper (Now completely immune to clipping!) */
        .logo-dot {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            background-color: #3fb950;
            border-radius: 50%;
            border: 2px solid var(--surface); /* Keeps a clean separation line around it */
            z-index: 4; /* Highest layer level so it overlays everything */
            transition: background-color 0.3s ease; /*changed line*/
        }
        /*changed line*/
        .logo-dot.is-offline {
            background-color: #f85149; /* Bright red color matching modern UI kits */
        }




        .logo-text { line-height: 1.2; }
        .logo-name {
            font-size: 30px;  /*it controls the logo text size */
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }
        .logo-name span { color: var(--accent); font-weight: 700; }
        .logo-sub {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
            font-family: 'SF Mono', 'Fira Code', monospace;
        }

        /* Clean unified layout container for the right-side nav elements — no border/box */
        nav {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .hamburger-btn { margin-left: auto; }

        /* Hamburger (mobile only) — hidden by default, shown by the media query below.
           Uses currentColor so it automatically follows the theme (dark/light). */
        .hamburger-btn {
            display: none;
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, color 0.15s;
        }
        .hamburger-btn:hover { background: var(--border); }
        .hamburger-btn svg { transition: transform 0.2s; }

        /* Mobile slide-out drawer — hidden by default, shown by the media query below */
        .nav-scrim {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 199;
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .nav-scrim.open { opacity: 1; }

        .nav-drawer { display: none; }
        body.drawer-open { overflow: hidden; }

        .nav-link {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            transition: color 0.15s, background 0.15s;
        }
        .nav-link:hover { color: var(--text-primary); background: var(--border); }

        /* Dropdown */
        .nav-dropdown { position: relative; }
        .nav-dropdown-btn {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            border: none;
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.15s, background 0.15s;
        }

        /* Fix navigation stretching on mobile screens */
        @media (max-width: 600px) {
            .header-inner {
                padding: 0 12px; /* Reduce side padding of header */
                gap: 8px;        /* Bring logo and navigation closer */
            }
            .logo-name {
                font-size: 20px; /* Marginally scale down logo text size on phones */
            }

            /* Hide the entire desktop nav, show the hamburger instead */
            nav { display: none; }
            .hamburger-btn { display: flex; margin-left: auto; }

            .nav-scrim { display: block; pointer-events: none; }
            .nav-scrim.open { pointer-events: auto; }

            /* Full-height drawer sliding from the right */
            .nav-drawer {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                width: min(82vw, 320px);
                max-width: 100vw;
                box-sizing: border-box;
                background: var(--surface);
                border-left: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                z-index: 200;
                display: flex;
                flex-direction: column;
                gap: 4px;
                padding: 20px 16px;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                overflow-y: auto;
                overflow-x: hidden;
            }
            .nav-drawer.open { transform: translateX(0); }

            .nav-drawer-close {
                align-self: flex-end;
                width: 32px;
                height: 32px;
                border: none;
                background: transparent;
                border-radius: 50%;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 8px;
                transition: background 0.15s;
            }
            .nav-drawer-close:hover { background: var(--border); }

            .nav-drawer .nav-link,
            .nav-drawer .theme-btn-mobile {
                width: 100%;
                justify-content: flex-start;
                padding: 12px 10px;
                border-radius: var(--radius-sm);
                font-size: 14px;
            }
            .theme-btn-mobile {
                display: flex;
                align-items: center;
                gap: 10px;
                background: none;
                border: none;
                color: var(--text-secondary);
                cursor: pointer;
                width: 100%;
                text-align: left;
                transition: background 0.15s;
            }
            .theme-btn-mobile:hover { background: var(--border); }

            /* Mobile dropdown becomes an accordion inside the drawer */
            .nav-drawer .nav-dropdown-btn {
                width: 100%;
                justify-content: space-between;
                padding: 12px 10px;
            }
            .nav-drawer .dropdown-menu {
                position: static;
                left: auto;
                display: none;
                grid-template-columns: 1fr;
                min-width: 0;
                width: 100%;
                border: none;
                box-shadow: none;
                background: var(--bg);
                border-radius: var(--radius);
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: none;
                padding: 8px;
                margin-top: 4px;
            }
            .nav-drawer .dropdown-menu.open {
                display: grid;
                transform: none;
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }
            .nav-drawer .dropdown-column + .dropdown-column {
                margin-top: 6px;
            }
        }




        .nav-dropdown-btn:hover { color: var(--text-primary); background: var(--border); }
        .nav-dropdown-btn svg { transition: transform 0.2s; }
        .nav-dropdown-btn.open svg { transform: rotate(180deg); }

        /* Two-column dropdown, fade + slide open, no divider lines, centered under trigger */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            min-width: 460px;
            max-width: min(460px, 92vw);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            padding: 10px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translate(-50%, -8px);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
            z-index: 50;
        }
        .dropdown-menu.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translate(-50%, 0);
        }
        .dropdown-column {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .dropdown-column-title {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 6px 10px 8px;
        }
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            transition: background 0.12s;
        }
        .dropdown-item:hover { background: var(--bg); }
        .dropdown-icon {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            background: var(--accent-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        /* Transparent circular theme toggle — highlights only on hover */
        .theme-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: background 0.15s;
        }
        .theme-btn:hover { background: var(--border); }

        /* ── Main ── */
        main {
            max-width: 1100px;
            margin: 0 auto;
            padding: 80px 24px 80px;
        }

        /* Hero */
        .hero {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            margin-bottom: 100px;
        }

        @media (max-width: 800px) {
            .hero { grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-light);
            border: 1px solid var(--accent-light-border);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 11.5px;
            font-weight: 600;
            color: var(--accent);
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .hero-eyebrow::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
        }

        .hero-title {
            font-size: clamp(32px, 5vw, 52px);
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.1;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .hero-title em {
            font-style: normal;
            color: var(--accent);
        }

        .hero-desc {
            font-size: 15.5px;
            color: var(--text-secondary);
            line-height: 1.65;
            margin-bottom: 32px;
            max-width: 420px;
        }

        .hero-features {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .hero-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .check-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--green-light);
            border: 1px solid rgba(5,150,105,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        html.dark .check-icon { border-color: rgba(16,185,129,0.2); }

        .check-icon svg { display: block; }

        /* ── Upload Card ── */
        .upload-card {
            background: var(--surface);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-xl);
            padding: 28px;
            box-shadow: var(--shadow-md);
            position: relative;
        }

        .upload-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: calc(var(--radius-xl) + 1px);
            background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, transparent 50%);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .upload-card.drag-over::before { opacity: 1; }

        .drop-zone {
            border: 1.5px dashed var(--border-strong);
            border-radius: var(--radius-lg);
            padding: 36px 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: border-color 0.2s, background 0.2s;
            cursor: pointer;
        }
        .drop-zone:hover, .upload-card.drag-over .drop-zone {
            border-color: var(--accent);
            background: var(--accent-light);
        }

        .drop-icon {
            width: 52px;
            height: 64px;
            margin-bottom: 18px;
            position: relative;
        }

        .drop-icon-file {
            width: 44px;
            height: 56px;
            background: var(--surface-raised);
            border: 1.5px solid var(--border-strong);
            border-radius: var(--radius-sm);
            position: relative;
            display: flex;
            align-items: flex-end;
            padding: 5px;
            box-shadow: var(--shadow-sm);
        }

        .drop-icon-file::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 14px;
            height: 14px;
            background: var(--bg);
            border-left: 1.5px solid var(--border-strong);
            border-bottom: 1.5px solid var(--border-strong);
            border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
        }

        .pdf-badge {
            background: #ef4444;
            color: white;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.08em;
            padding: 2px 5px;
            border-radius: 3px;
            width: 100%;
            text-align: center;
            font-family: 'SF Mono', monospace;
        }

        .drop-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .drop-sub {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-bottom: 18px;
        }

        .btn-upload {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent);
            color: white;
            font-size: 12.5px;
            font-weight: 600;
            padding: 9px 18px;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.15s, transform 0.1s;
            text-decoration: none;
        }
        .btn-upload:hover { background: var(--accent-hover); }
        .btn-upload:active { transform: scale(0.98); }

        /* Status */
        .status-bar {
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 12.5px;
            font-weight: 500;
            margin-bottom: 14px;
            display: none;
        }
        .status-bar.info { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-light-border); display: block; }
        .status-bar.success { background: var(--green-light); color: var(--green); border: 1px solid rgba(5,150,105,0.2); display: block; }
        .status-bar.error { background: var(--red-light); color: var(--red); border: 1px solid rgba(220,38,38,0.15); display: block; }

        /* File list */
        .file-list {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .file-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 12.5px;
        }

        .file-item-icon {
            width: 28px;
            height: 28px;
            background: rgba(239,68,68,0.1);
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .file-item-name {
            flex: 1;
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-item-size {
            font-size: 11px;
            color: var(--text-muted);
            font-family: 'SF Mono', monospace;
            flex-shrink: 0;
        }

        /* Merge button */
        .btn-merge {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--text-primary);
            color: var(--surface);
            font-size: 13px;
            font-weight: 600;
            padding: 12px;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            letter-spacing: 0.01em;
            transition: opacity 0.15s, transform 0.1s;
            margin-top: 14px;
        }
        .btn-merge:hover { opacity: 0.88; }
        .btn-merge:active { transform: scale(0.99); }

        /* Add more button */
        .btn-add-more {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent);
            color: white;
            font-size: 12.5px;
            font-weight: 600;
            padding: 9px 18px;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.15s, transform 0.1s;
            margin-top: 10px;
        }
        .btn-add-more:hover { background: var(--accent-hover); }
        .btn-add-more:active { transform: scale(0.98); }

        /* ── Features Section ── */
        .scroll-cue {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 64px;
            margin-bottom: 0;
        }
        .scroll-cue-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .scroll-cue-arrow {
            color: var(--text-muted);
            animation: bounce 2s ease-in-out infinite;
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(4px); }
        }

        .features-section {
            border-top: 1px solid var(--border);
            padding-top: 80px;
            scroll-margin-top: 80px;
        }

        .features-label {
            font-size: 11.5px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 12px;
        }

        .features-title {
            font-size: clamp(22px, 3vw, 32px);
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            margin-bottom: 48px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        @media (max-width: 700px) {
            .features-grid { grid-template-columns: 1fr; }
        }

        .feature-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .feature-card:hover {
            border-color: var(--border-strong);
            box-shadow: var(--shadow-md);
        }

        .feature-num {
            font-size: 11px;
            font-weight: 700;
            font-family: 'SF Mono', monospace;
            letter-spacing: 0.08em;
            color: var(--accent);
            margin-bottom: 14px;
        }

        .feature-icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: var(--accent-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
        }

        .feature-h {
            font-size: 14.5px;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .feature-p {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* ── Tools Showcase Section ── */
        .tools-section {
            border-top: 1px solid var(--border);
            padding-top: 80px;
            margin-top: 80px;
            scroll-margin-top: 80px;
        }
        .tools-label {
            font-size: 11.5px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 12px;
        }
        .tools-title {
            font-size: clamp(22px, 3vw, 32px);
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            margin-bottom: 40px;
        }
        .dashboard-container {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
        }
        @media (max-width: 900px) {
            .dashboard-container { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 480px) {
            .dashboard-container { grid-template-columns: repeat(1, 1fr); }
        }
        .column-group {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        .column-title {
            text-align: center;
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 5px;
            min-height: 24px;
        }
        .tool-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 35px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            text-decoration: none;
            color: inherit;
            aspect-ratio: 1.3 / 1;
            position: relative;
            transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
            box-shadow: var(--shadow-sm);
        }
        .tool-card:hover {
            border-color: var(--accent);
            border-width: 1.5px;
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        .tool-card p {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-top: 18px;
            line-height: 1.3;
        }
        .status-badge {
            position: absolute;
            top: 12px;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
            text-transform: lowercase;
        }
        .status-badge.uc {
            background-color: #fef9c3;
            color: #854d0e;
        }
        html.dark .status-badge.uc {
            background-color: #3a341c;
            color: #fef4a3;
        }
        .icon-wrapper {
            position: relative;
            width: 55px;
            height: 55px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .doc-shape {
            width: 34px;
            height: 42px;
            border-radius: 6px;
            position: relative;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .doc-shape::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 10px;
            height: 10px;
            background: rgba(255,255,255,0.4);
            border-bottom-left-radius: 4px;
        }
        .purple-file { background: linear-gradient(135deg, #a855f7, #7c3aed); }
        .red-file { background: linear-gradient(135deg, #f87171, #dc2626); }
        .blue-file { background: linear-gradient(135deg, #60a5fa, #2563eb); }
        .doc-badge {
            position: absolute;
            bottom: 4px;
            left: 4px;
            font-size: 8px;
            font-weight: 700;
            color: white;
            letter-spacing: 0.5px;
        }


        .flow-icons {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .flow-arrow {
            font-size: 12px;
            color: var(--accent);
            font-weight: bold;
        }
        .icon-inner-symbol {
            color: white;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            width: 100%;
        }

        /* ── FAQ Section ── */
        .faq-section {
            border-top: 1px solid var(--border);
            padding-top: 80px;
            margin-top: 80px;
            scroll-margin-top: 80px;
        }

        .faq-label {
            font-size: 11.5px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 12px;
        }

        .faq-title {
            font-size: clamp(22px, 3vw, 32px);
            font-weight: 800;
            letter-spacing: -0.03em;
            color: var(--text-primary);
            margin-bottom: 40px;
        }

        .faq-list {
            display: flex;
            flex-direction: column;
        }

        .faq-item {
            border-bottom: 1px solid var(--border);
        }

        .faq-toggle {
            width: 100%;
            background: none;
            border: none;
            outline: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: left;
            padding: 20px 0;
            cursor: pointer;
            color: var(--text-primary);
            font-size: 14.5px;
            font-weight: 700;
            gap: 20px;
        }

        .faq-toggle:hover { color: var(--accent); }

        .faq-icon {
            position: relative;
            width: 28px;
            height: 28px;
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-sm);
            flex-shrink: 0;
            transition: transform 0.25s ease, border-color 0.2s ease;
        }

        .faq-icon::before,
        .faq-icon::after {
            content: "";
            position: absolute;
            background-color: var(--text-primary);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: transform 0.25s ease, opacity 0.2s ease;
        }

        .faq-icon::before { width: 10px; height: 1.5px; }
        .faq-icon::after { width: 1.5px; height: 10px; }

        .faq-item.active .faq-toggle { color: var(--accent); }
        .faq-item.active .faq-icon { border-color: var(--accent); }
        .faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
        .faq-item.active .faq-icon::before { background-color: var(--accent); }

        .faq-content {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
        }

        .faq-item.active .faq-content { opacity: 1; }

        .faq-content p {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.65;
            padding: 0 26px 20px 0;
        }

        /* ── Footer ── */
        footer {
            border-top: 1px solid var(--border);
            background: var(--surface);
            padding: 28px 24px;
            margin-top: 80px;
        }

        .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }

        .footer-copy {
            font-size: 12.5px;
            color: var(--text-muted);
        }

        .footer-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .footer-link {
            font-size: 12.5px;
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.15s;
        }

        .scroll-arrow-link{
            display:inline-flex;
            cursor:pointer;
            color:inherit;
            text-decoration:none;
        }

        .scroll-arrow-link:hover .scroll-cue-arrow{
            transform:translateY(4px);
            color:var(--accent);
        }

        .scroll-cue-arrow{
            transition:transform .2s,color .2s;
        }



        .footer-link:hover { color: var(--text-primary); }

        /* Language Selection Popover Components matching tool page framework layout styles precisely */
        .lang-box { position: relative; display: inline-block; }
        .lang-trigger { font-size: 12px; font-weight: 500; color: var(--text-muted); background: none; border: 1px solid var(--border-strong); padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 4px; }
        .lang-trigger:hover { color: var(--text-primary); background: var(--bg); }
        .lang-popover { position: absolute; bottom: calc(100% + 6px); right: 0; min-width: 130px; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(4px); transition: all 0.15s; z-index: 150; }
        .lang-popover.open { opacity: 1; visibility: visible; transform: translateY(0); }
        .lang-option { width: 100%; background: none; border: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 12.5px; color: var(--text-primary); cursor: pointer; text-align: left; }
        .lang-option:hover { background: var(--bg); }
        .lang-option.selected { color: var(--accent); font-weight: 600; }

        /* Clear Workspace button */
        .btn-clear {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: transparent;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            padding: 8px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-strong);
            cursor: pointer;
            letter-spacing: 0.01em;
            transition: background 0.15s, color 0.15s;
            margin-top: 8px;
        }
        .btn-clear:hover { background: var(--red-light); color: var(--red); border-color: rgba(220,38,38,0.2); }

        /* Remove file button */
        .file-item-remove {
            width: 22px;
            height: 22px;
            border-radius: 4px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            font-size: 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.12s, color 0.12s;
        }
        .file-item-remove:hover { background: var(--red-light); color: var(--red); border-color: rgba(220,38,38,0.2); }
