@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================
   RESET
========================= */

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


html {
    scroll-behavior: smooth;
}


/* =========================
   THEME VARIABLES
   Dark is the default / original palette (unchanged).
   Light overrides live in [data-theme="light"].
========================= */

:root {

    /* shared accent colors — identical in both themes */
    --accent-gradient: linear-gradient(120deg, #7138ef, #234cff);
    --accent-gradient-text: linear-gradient(90deg, #a04fff 0%, #684cff 42%, #2c8cff 100%);
    --accent-logo-gradient: linear-gradient(90deg, #914cff, #3768ff);
    --accent-purple: #9c75ff;
    --accent-purple-strong: #a95cff;
    --accent-hover: #9a7bff;
    --blue-text: #398cff;
    --purple-text: #a365ff;

    /* page */
    --bg-body: #020918;
    --bg-radial-1: rgba(72, 34, 220, 0.19);
    --bg-radial-2: rgba(0, 91, 255, 0.07);
    --glow-one: rgba(81, 32, 255, 0.14);
    --glow-two: rgba(0, 100, 255, 0.08);

    /* text */
    --text-primary: #f7f8ff;
    --text-heading: #f7f7fa;
    --text-secondary: #b8bac8;
    --text-muted: #9fa3b5;
    --text-faint: #9da1b1;
    --text-dim: #a7aaba;
    --text-body-card: #b0b3c2;

    /* navbar */
    --navbar-bg: rgba(2, 9, 24, 0.7);
    --navbar-border: rgba(255, 255, 255, 0.07);
    --nav-link-color: #f4f4fa;
    --mobile-bar-color: white;

    /* borders / dividers */
    --border-soft: rgba(112, 127, 170, 0.2);
    --border-softer: rgba(118, 134, 177, 0.18);
    --border-dashed: rgba(148, 158, 205, 0.44);
    --divider-color: rgba(255, 255, 255, 0.1);
    --hairline: rgba(255, 255, 255, 0.08);

    /* cards */
    --card-bg: linear-gradient(145deg, rgba(13, 24, 48, 0.86), rgba(10, 18, 37, 0.8));
    --card-bg-alt: linear-gradient(110deg, rgba(11, 21, 44, 0.87), rgba(12, 20, 40, 0.72));
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --card-hover-shadow: 0 14px 40px rgba(41, 30, 150, 0.15);
    --card-hover-border: rgba(108, 91, 255, 0.5);

    /* upload box */
    --upload-border: #6e62ff;
    --upload-bg: radial-gradient(circle at 85% 10%, rgba(109, 48, 255, 0.19), transparent 45%),
                 linear-gradient(140deg, rgba(15, 25, 50, 0.93), rgba(17, 22, 52, 0.92));
    --upload-shadow: 0 0 45px rgba(81, 55, 255, 0.1), inset 0 0 30px rgba(111, 58, 255, 0.06);
    --upload-drag-border: #a38cff;
    --upload-drag-shadow: 0 0 55px rgba(111, 70, 255, 0.25);
    --upload-inner-border: rgba(148, 158, 205, 0.44);

    /* footer */
    --footer-bg: rgba(4, 11, 28, 0.75);
    --footer-border: rgba(255, 255, 255, 0.07);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.12);

    color-scheme: dark;
}


[data-theme="light"] {

    /* page */
    --bg-body: #f6f7fc;
    --bg-radial-1: rgba(120, 90, 255, 0.10);
    --bg-radial-2: rgba(0, 91, 255, 0.05);
    --glow-one: rgba(120, 90, 255, 0.10);
    --glow-two: rgba(0, 100, 255, 0.05);

    /* text */
    --text-primary: #171a2b;
    --text-heading: #0e1120;
    --text-secondary: #565b72;
    --text-muted: #6b7086;
    --text-faint: #6b7086;
    --text-dim: #6b7086;
    --text-body-card: #5b6079;

    /* navbar */
    --navbar-bg: rgba(255, 255, 255, 0.78);
    --navbar-border: rgba(20, 20, 60, 0.08);
    --nav-link-color: #2a2e42;
    --mobile-bar-color: #22253a;

    /* borders / dividers */
    --border-soft: rgba(30, 32, 70, 0.1);
    --border-softer: rgba(30, 32, 70, 0.09);
    --border-dashed: rgba(90, 90, 160, 0.3);
    --divider-color: rgba(20, 20, 60, 0.08);
    --hairline: rgba(20, 20, 60, 0.07);

    /* cards */
    --card-bg: #ffffff;
    --card-bg-alt: #ffffff;
    --card-shadow: 0 10px 30px rgba(30, 32, 90, 0.06);
    --card-hover-shadow: 0 14px 34px rgba(60, 40, 180, 0.1);
    --card-hover-border: rgba(108, 91, 255, 0.45);

    /* upload box */
    --upload-border: #8b7bff;
    --upload-bg: radial-gradient(circle at 85% 10%, rgba(109, 48, 255, 0.07), transparent 45%),
                 #ffffff;
    --upload-shadow: 0 10px 40px rgba(60, 40, 180, 0.08);
    --upload-drag-border: #7a63ff;
    --upload-drag-shadow: 0 0 40px rgba(111, 70, 255, 0.18);
    --upload-inner-border: rgba(90, 90, 160, 0.3);

    /* footer */
    --footer-bg: #ffffff;
    --footer-border: rgba(20, 20, 60, 0.08);
    --input-bg: rgba(20, 20, 60, 0.03);
    --input-border: rgba(20, 20, 60, 0.12);

    color-scheme: light;
}


body {
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text-primary);

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 75% 18%,
            var(--bg-radial-1),
            transparent 26%
        ),
        radial-gradient(
            circle at 18% 50%,
            var(--bg-radial-2),
            transparent 30%
        ),
        var(--bg-body);

    transition: background 0.25s ease, color 0.25s ease;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}



/* =========================
   BACKGROUND GLOWS
========================= */

.background-glow {
    position: fixed;
    z-index: -1;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;

    transition: background 0.25s ease;
}


.glow-one {
    top: -200px;
    right: 5%;

    background: var(--glow-one);
}


.glow-two {
    bottom: -250px;
    left: -180px;

    background: var(--glow-two);
}



/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    height: 74px;

    padding: 0 5.6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--navbar-border);

    background: var(--navbar-bg);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;
    z-index: 100;

    transition: background 0.25s ease, border-color 0.25s ease;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 21px;
    font-weight: 700;
    color: var(--text-heading);

    flex-shrink: 0;
}


.logo-icon {
    position: relative;

    width: 32px;
    height: 32px;

    transform: rotate(-35deg);
}


.logo-icon span {
    position: absolute;

    width: 19px;
    height: 9px;

    border-radius: 8px;

    background: var(--accent-logo-gradient);
}


.logo-icon span:nth-child(1) {
    top: 2px;
    left: 3px;
}


.logo-icon span:nth-child(2) {
    top: 12px;
    left: 10px;
}


.logo-icon span:nth-child(3) {
    top: 22px;
    left: 3px;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}


.nav-links a {
    display: flex;
    align-items: center;

    color: var(--nav-link-color);

    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    transition: color 0.2s ease;
}


.nav-links a:hover {
    color: var(--accent-hover);
}


.chevron {
    margin-left: 4px;
    font-size: 12px;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;

    flex-shrink: 0;
}


.theme-toggle {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-soft);
    border-radius: 50%;

    background: transparent;
    color: var(--nav-link-color);

    cursor: pointer;

    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


.theme-toggle:hover {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
    transform: translateY(-1px);
}


.theme-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.theme-toggle .icon-moon {
    display: none;
}


[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}


[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}


.sign-in {
    font-size: 14px;
    color: var(--nav-link-color);
}


.get-started {
    min-width: 132px;
    height: 42px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid rgba(134, 110, 255, 0.6);
    border-radius: 8px;

    background: var(--accent-gradient);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    box-shadow:
        0 0 25px rgba(84, 54, 255, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.get-started:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 35px rgba(84, 54, 255, 0.35);
}


.mobile-menu {
    display: none;

    border: none;
    background: transparent;

    cursor: pointer;
}


.mobile-menu span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px;

    background: var(--mobile-bar-color);

    transition: background 0.25s ease;
}



/* =========================
   HERO
========================= */

.hero {
    width: min(1330px, 88%);

    margin: 0 auto;

    padding: 56px 0 40px;

    display: grid;
    grid-template-columns: 1fr 1.04fr;

    align-items: center;
    gap: 80px;
}


.hero-content {
    padding-left: 22px;
}


.hero-badge {
    width: fit-content;

    margin-bottom: 23px;
    padding: 8px 14px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid rgba(123, 92, 255, 0.14);
    border-radius: 30px;

    background: rgba(98, 73, 196, 0.1);

    color: var(--accent-purple);

    font-size: 13px;
    font-weight: 500;
}


.badge-lightning {
    color: var(--accent-purple-strong);
    font-size: 18px;
}


.hero h1 {
    max-width: 590px;

    color: var(--text-heading);

    font-size: clamp(45px, 4.2vw, 62px);
    font-weight: 750;

    line-height: 1.05;
    letter-spacing: -2.5px;
}


.gradient-text {
    background: var(--accent-gradient-text);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.hero-description {
    max-width: 560px;

    margin-top: 20px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.55;
}


.hero-benefits {
    margin-top: 32px;

    display: flex;
    align-items: center;
    gap: 38px;
}


.benefit {
    display: flex;
    align-items: center;
    gap: 11px;
}


.benefit-icon {
    width: 25px;
    height: 25px;
}


.benefit-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.benefit-icon.blue {
    color: #1687ff;
}


.benefit-icon.purple {
    color: #9548ff;
}


.benefit-icon.violet {
    color: #a64eff;
}


.benefit div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.benefit strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
}


.benefit span {
    color: var(--text-faint);
    font-size: 12px;
}



/* =========================
   UPLOAD AREA
========================= */

.upload-wrapper {
    width: 100%;
}


.upload-box {
    padding: 21px;

    border: 1px solid var(--upload-border);
    border-radius: 17px;

    background: var(--upload-bg);

    box-shadow: var(--upload-shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.upload-box.dragging {
    transform: scale(1.015);

    border-color: var(--upload-drag-border);

    box-shadow: var(--upload-drag-shadow);
}


.upload-inner {
    min-height: 310px;

    padding: 32px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px dashed var(--upload-inner-border);
    border-radius: 12px;
}


.pdf-file-icon {
    position: relative;

    width: 57px;
    height: 68px;

    margin-bottom: 20px;

    border: 1px solid #6f75ff;
    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(80, 98, 255, 0.45),
            rgba(36, 47, 115, 0.4)
        );
}


.file-fold {
    position: absolute;
    top: -1px;
    right: -1px;

    width: 20px;
    height: 20px;

    background: #7883ff;

    clip-path: polygon(0 0, 100% 100%, 100% 0);
}


.pdf-file-icon span {
    position: absolute;
    bottom: 5px;
    left: -8px;

    padding: 5px 8px;

    border-radius: 5px;

    background: linear-gradient(90deg, #7444ff, #335bff);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 4px 15px rgba(80, 60, 255, 0.4);
}


.upload-inner h2 {
    color: var(--text-heading);

    font-size: 18px;
    font-weight: 600;
}


.or-text {
    margin: 10px 0 15px;

    color: var(--text-dim);

    font-size: 14px;
}


.choose-pdf-btn {
    min-width: 260px;
    height: 54px;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid rgba(125, 101, 255, 0.7);
    border-radius: 9px;

    color: white;

    background: linear-gradient(100deg, #7538f4, #2354ff);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 35px rgba(72, 50, 255, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.choose-pdf-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 40px rgba(72, 50, 255, 0.35);
}


.choose-pdf-btn svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.upload-limit {
    margin-top: 17px;

    color: var(--text-dim);

    font-size: 13px;
}


.upload-limit span {
    margin: 0 8px;
}


.selected-file {
    min-height: 17px;

    margin-top: 8px;

    color: #8b93ff;

    font-size: 12px;
}


.security-note {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--text-dim);

    font-size: 13px;
}


.security-note svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: var(--text-dim);
    stroke-width: 1.8;
}


.blue-text {
    color: var(--blue-text);
    font-weight: 500;
}


.purple-text {
    color: var(--purple-text);
    font-weight: 500;
}



/* =========================
   TRUST BAR
========================= */

.trust-bar {
    width: min(1330px, 86%);

    min-height: 102px;

    margin: 40px auto 0;

    padding: 20px 38px;

    display: grid;
    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: center;

    border: 1px solid var(--border-softer);
    border-radius: 15px;

    background: var(--card-bg-alt);

    box-shadow: var(--card-shadow);

    transition: background 0.25s ease, border-color 0.25s ease;
}


.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


.trust-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}


.trust-icon svg {
    width: 27px;
    height: 27px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.purple-bg {
    color: #7a52ff;
    background: rgba(81, 63, 220, 0.16);
}


.blue-bg {
    color: #2f7ce0;
    background: rgba(32, 92, 200, 0.15);
}


.orange-bg {
    color: #e08615;
    background: rgba(195, 113, 26, 0.14);
}


.cyan-bg {
    color: #17a9d9;
    background: rgba(21, 150, 197, 0.14);
}


.trust-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.trust-item strong {
    font-size: 17px;
    font-weight: 650;
    color: var(--text-heading);
}


.trust-item span {
    color: var(--text-dim);
    font-size: 12px;
}


.divider {
    width: 1px;
    height: 48px;

    background: var(--divider-color);
}



/* =========================
   SECTION HEADING (shared)
========================= */

.section-heading {
    text-align: center;
}


.section-heading h2 {
    color: var(--text-heading);

    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.7px;
}


.section-heading p {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 15px;
}



/* =========================
   CHOOSE YOUR PATH
========================= */

.path-section {
    width: min(1330px, 88%);

    margin: 0 auto;

    padding: 60px 0 20px;
}


.path-grid {
    margin-top: 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}


.path-card {
    position: relative;
    overflow: hidden;

    padding: 30px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border-soft);
    border-radius: 18px;

    background: var(--card-bg);

    box-shadow: var(--card-shadow);

    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}


.path-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}


.path-card.featured {
    border-color: rgba(123, 92, 255, 0.4);
}


.path-top {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 14px;
}


.path-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}


.path-icon svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.workspace-path-icon {
    color: #b48bff;
    background: rgba(117, 44, 228, 0.3);
}


.tools-path-icon {
    color: #4aa8ff;
    background: rgba(20, 85, 200, 0.28);
}


.path-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


.path-card h3 {
    color: var(--text-heading);

    font-size: 19px;
    font-weight: 650;
}


.path-badge {
    padding: 3px 10px;

    border-radius: 20px;

    background: rgba(123, 92, 255, 0.18);
    color: #b391ff;

    font-size: 11px;
    font-weight: 600;
}


.path-card p {
    max-width: 90%;
    margin-bottom: 22px;

    color: var(--text-body-card);

    font-size: 14px;
    line-height: 1.6;
}


.path-btn {
    width: fit-content;
    height: 44px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


.path-btn.primary {
    color: #ffffff;
    background: var(--accent-gradient);

    box-shadow: 0 10px 30px rgba(72, 50, 255, 0.22);
}


.path-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(72, 50, 255, 0.35);
}


.path-btn.secondary {
    color: #ffffff;
    background: linear-gradient(100deg, #1c6bff, #2f8bff);

    box-shadow: 0 10px 30px rgba(30, 110, 255, 0.2);
}


.path-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 110, 255, 0.32);
}


.path-visual {
    position: absolute;
    right: -18px;
    bottom: -18px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.9;
    pointer-events: none;
}


.workspace-visual {
    width: 132px;
    height: 104px;

    border-radius: 14px;

    background: linear-gradient(145deg, rgba(123, 92, 255, 0.14), rgba(60, 40, 150, 0.08));
    border: 1px solid rgba(123, 92, 255, 0.18);
}


.workspace-visual::before {
    content: "";

    position: absolute;
    top: 14px;
    left: 14px;

    width: 60%;
    height: 8px;

    border-radius: 6px;

    background: rgba(150, 130, 255, 0.28);
    box-shadow:
        0 16px 0 rgba(150, 130, 255, 0.22),
        0 32px 0 rgba(150, 130, 255, 0.16);
}


#tools .path-visual {
    top: 30px;
    right: 30px;
    bottom: auto;
    left: auto;
}


.mini-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    grid-template-rows: repeat(2, 36px);
    gap: 8px;
}


.mini-icon-grid span {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(74, 168, 255, 0.14);
    border: 1px solid rgba(74, 168, 255, 0.2);
}


.mini-icon-grid svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: #4aa8ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================
   FEATURES
========================= */

.features-section {
    width: min(1360px, 88%);

    margin: 0 auto;

    padding: 55px 0 60px;

    text-align: center;
}


.feature-grid {
    margin-top: 19px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 16px;
}


.feature-card {
    min-height: 128px;

    padding: 18px 16px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;

    border: 1px solid var(--border-soft);
    border-radius: 12px;

    background: var(--card-bg);

    box-shadow: var(--card-shadow);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.feature-card:hover {
    transform: translateY(-5px);

    border-color: var(--card-hover-border);

    box-shadow: var(--card-hover-shadow);
}


.feature-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
}


.feature-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.chat-icon {
    color: #d0a2ff;
    background: rgba(117, 44, 228, 0.32);
}


.summary-icon {
    color: #4598ff;
    background: rgba(20, 85, 200, 0.32);
}


.translate-icon {
    color: #54e1c1;
    background: rgba(22, 149, 115, 0.28);
}


.extract-icon {
    color: #ffb047;
    background: rgba(168, 93, 24, 0.28);
}


.ocr-icon {
    color: #ff8bd8;
    background: rgba(172, 31, 119, 0.25);
}


.flashcard-icon {
    color: #43d9ef;
    background: rgba(10, 137, 168, 0.28);
}


.feature-card h3 {
    margin-bottom: 6px;

    color: var(--text-heading);

    font-size: 15px;
    font-weight: 600;
}


.feature-card p {
    color: var(--text-body-card);

    font-size: 12.5px;
    line-height: 1.5;
}


.explore-btn {
    width: fit-content;

    margin: 26px auto 0;
    padding: 11px 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border: 1px solid #6455e8;
    border-radius: 9px;

    color: var(--text-heading);

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.explore-btn:hover {
    transform: translateY(-2px);

    background: rgba(91, 66, 225, 0.12);
}


.explore-btn span {
    color: #4e8cff;
    font-size: 18px;
}



/* =========================
   TRUSTED / SOCIAL PROOF
========================= */

.trusted-section {
    width: min(1330px, 86%);

    margin: 10px auto 0;
    padding: 26px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;

    border: 1px solid var(--border-softer);
    border-radius: 15px;

    background: var(--card-bg-alt);

    box-shadow: var(--card-shadow);
}


.trusted-text strong {
    display: block;

    color: var(--text-heading);

    font-size: 17px;
    font-weight: 650;
}


.trusted-text span {
    display: block;
    margin-top: 6px;

    color: var(--text-dim);

    font-size: 13px;
}


.trusted-proof {
    display: flex;
    align-items: center;
    gap: 22px;
}


.avatar-stack {
    display: flex;
}


.avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: -10px;

    border: 2px solid var(--bg-body);
    border-radius: 50%;

    background: var(--avatar-color, #7a52ff);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


.avatar-stack .avatar:first-child {
    margin-left: 0;
}


.rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.stars {
    color: #ffb547;
    font-size: 15px;
    letter-spacing: 2px;
}


.rating strong {
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 700;
}


.rating span {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 400;
}



/* =========================
   HOW IT WORKS
========================= */

.how-section {
    width: min(1330px, 88%);

    margin: 0 auto;

    padding: 60px 0;
}


.how-steps {
    margin-top: 34px;

    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}


.how-step {
    padding: 26px 22px;

    border: 1px solid var(--border-soft);
    border-radius: 14px;

    background: var(--card-bg);

    box-shadow: var(--card-shadow);
}


.step-top {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 14px;
}


.step-num {
    width: 30px;
    height: 30px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent-gradient);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}


.step-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(117, 44, 228, 0.22);
    color: #b48bff;
}


.step-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.how-step h4 {
    margin-bottom: 6px;

    color: var(--text-heading);

    font-size: 16px;
    font-weight: 650;
}


.how-step p {
    color: var(--text-body-card);

    font-size: 13px;
    line-height: 1.5;
}


.step-arrow {
    color: var(--text-dim);
    font-size: 20px;
}



/* =========================
   MINI PERKS STRIP
========================= */

.perks-strip {
    width: min(1330px, 88%);

    margin: 0 auto;
    padding: 26px 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 34px;

    border-top: 1px solid var(--hairline);
}


.perk {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text-dim);

    font-size: 13px;
}


.perk svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;

    fill: none;
    stroke: var(--purple-text);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================
   FOOTER
========================= */

.site-footer {
    width: 100%;

    margin-top: 30px;
    padding: 56px 5.6% 0;

    border-top: 1px solid var(--footer-border);

    background: var(--footer-bg);
}


.footer-top {
    width: min(1330px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;

    padding-bottom: 40px;
}


.footer-brand .logo {
    margin-bottom: 14px;
}


.footer-brand p {
    max-width: 260px;

    color: var(--text-dim);

    font-size: 13px;
    line-height: 1.6;
}


.footer-col h5 {
    margin-bottom: 16px;

    color: var(--text-heading);

    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.2px;
}


.footer-col a {
    display: block;
    margin-bottom: 12px;

    color: var(--text-dim);

    font-size: 13px;

    transition: color 0.2s ease;
}


.footer-col a:hover {
    color: var(--accent-hover);
}


.footer-col p {
    margin-bottom: 14px;

    color: var(--text-dim);

    font-size: 13px;
    line-height: 1.55;
}


.newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}


.newsletter-form input {
    flex: 1;
    height: 42px;

    padding: 0 14px;

    border: 1px solid var(--input-border);
    border-radius: 8px;

    background: var(--input-bg);
    color: var(--text-primary);

    font-size: 13px;
    font-family: inherit;
}


.newsletter-form input::placeholder {
    color: var(--text-dim);
}


.newsletter-form button {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: var(--accent-gradient);
    color: #ffffff;

    cursor: pointer;

    transition: transform 0.2s ease;
}


.newsletter-form button:hover {
    transform: translateY(-2px);
}


.newsletter-form button svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.footer-bottom {
    width: min(1330px, 100%);

    margin: 0 auto;
    padding: 22px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;

    border-top: 1px solid var(--hairline);
}


.footer-bottom p {
    color: var(--text-dim);
    font-size: 12.5px;
}


.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}


.social-icons a {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-soft);
    border-radius: 50%;

    color: var(--text-dim);

    transition: color 0.2s ease, border-color 0.2s ease;
}


.social-icons a:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}


.social-icons svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .hero {
        width: 90%;
        gap: 45px;
    }


    .hero-benefits {
        gap: 20px;
    }


    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .trust-bar {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }


    .trust-bar .divider {
        display: none;
    }


    .path-grid {
        grid-template-columns: 1fr;
    }


    .footer-top {
        grid-template-columns: 1fr 1fr;
    }


    .how-steps {
        grid-template-columns: 1fr;
    }


    .step-arrow {
        display: none;
    }

}



@media (max-width: 900px) {

    .nav-links,
    .nav-actions .sign-in,
    .nav-actions .get-started {
        display: none;
    }


    .nav-links.open {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        padding: 18px 6%;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;

        background: var(--navbar-bg);
        border-bottom: 1px solid var(--navbar-border);
        backdrop-filter: blur(18px);
    }


    .mobile-menu {
        display: block;
    }


    .mobile-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }


    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }


    .mobile-menu.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    .hero {
        grid-template-columns: 1fr;

        padding-top: 45px;
    }


    .hero-content {
        padding-left: 0;

        text-align: center;
    }


    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }


    .hero h1 {
        margin: 0 auto;
    }


    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-benefits {
        justify-content: center;
        flex-wrap: wrap;
    }


    .trust-bar {
        width: 90%;
    }


    .trusted-section {
        justify-content: center;
        text-align: center;
    }


    .trusted-proof {
        justify-content: center;
    }

}



@media (max-width: 650px) {

    .navbar {
        height: 65px;
        padding: 0 5%;
    }


    .logo {
        font-size: 18px;
    }


    .hero {
        width: 92%;

        padding-top: 35px;
    }


    .hero h1 {
        font-size: 42px;

        letter-spacing: -1.7px;
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-benefits {
        align-items: flex-start;
        flex-direction: column;

        width: fit-content;

        margin-left: auto;
        margin-right: auto;
    }


    .upload-box {
        padding: 12px;
    }


    .upload-inner {
        min-height: 300px;

        padding: 25px 12px;
    }


    .upload-inner h2 {
        font-size: 16px;
    }


    .choose-pdf-btn {
        width: 90%;
        min-width: 0;
    }


    .security-note {
        align-items: flex-start;

        font-size: 11px;
        line-height: 1.5;
    }


    .trust-bar {
        grid-template-columns: 1fr;

        padding: 25px;
    }


    .trust-item {
        justify-content: flex-start;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }


    .section-heading h2 {
        font-size: 24px;
    }


    .path-card {
        padding: 22px;
    }


    .path-visual {
        display: none;
    }


    .footer-top {
        grid-template-columns: 1fr;
    }


    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

}

/* =========================
   PDF TOOLS LISTING PAGE
========================= */

.page-shell {
    display: flex;
    align-items: flex-start;
    width: min(1440px, 94%);
    margin: 0 auto;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 28px 14px 28px 0;
    position: sticky;
    top: 74px;
    align-self: flex-start;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
}

.sidebar-label {
    padding: 0 12px;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 22px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover { background: var(--card-bg-alt); color: var(--text-primary); }
.sidebar-link.active { background: rgba(123, 92, 255, 0.14); color: var(--accent-hover); font-weight: 600; }
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sidebar-link.soon { justify-content: space-between; cursor: default; opacity: 0.85; }
.sidebar-link.soon .soon-left { display: flex; align-items: center; gap: 11px; }

.soon-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--divider-color);
    padding: 2px 8px;
    border-radius: 20px;
}

.sidebar-divider { height: 1px; background: var(--divider-color); margin: 8px 12px 16px; }

.sidebar-help {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(123, 92, 255, 0.1);
    border: 1px solid var(--border-softer);
}

.sidebar-help-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg);
    color: var(--accent-hover);
    box-shadow: var(--card-shadow);
}
.sidebar-help-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-help-text p:first-child { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.sidebar-help-text a { font-size: 12.5px; color: var(--accent-hover); font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }

.main-content {
    flex: 1;
    min-width: 0;
    padding: 28px 0 60px 40px;
    border-left: 1px solid var(--divider-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    margin-bottom: 22px;
}
.breadcrumb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.breadcrumb .sep { font-size: 12px; opacity: 0.7; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.page-header p { color: var(--text-secondary); font-size: 15px; }

.search-box {
    flex-shrink: 0;
    width: 260px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-dim);
}
.search-box svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-box input { border: none; background: transparent; outline: none; color: var(--text-primary); font-size: 13.5px; width: 100%; font-family: inherit; }
.search-box input::placeholder { color: var(--text-dim); }

.tools-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    margin-bottom: 34px;
    border-radius: 18px;
    border: 1px solid rgba(123, 92, 255, 0.18);
    background: linear-gradient(110deg, rgba(109, 48, 255, 0.10), rgba(0, 91, 255, 0.05));
    position: relative;
    overflow: hidden;
}

.banner-icon {
    width: 62px; height: 62px; flex-shrink: 0;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-gradient);
    box-shadow: 0 10px 24px rgba(84, 54, 255, 0.25);
}
.banner-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.banner-text h3 { font-size: 19px; font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.banner-text p { font-size: 14px; color: var(--text-secondary); }

.banner-deco {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    opacity: 0.9;
    pointer-events: none;
}
.banner-deco svg { width: 130px; height: auto; }

.tools-section { margin-bottom: 34px; }
.tools-section h2 { font-size: 18px; font-weight: 700; color: var(--text-heading); margin-bottom: 16px; }

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

.tool-card {
    position: relative;
    display: block;
    padding: 22px 22px 26px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-softer);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--card-hover-border);
}

.tool-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.tool-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tool-card h4 { font-size: 15.5px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.tool-card p { font-size: 13px; color: var(--text-body-card); line-height: 1.5; padding-right: 6px; }

.tool-arrow {
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 15px; height: 15px;
    color: var(--accent-hover);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}
.tool-card:hover .tool-arrow { transform: translateX(3px); }

.icon-purple { background: rgba(123, 76, 255, 0.14); color: #7b4cff; }
.icon-pink   { background: rgba(239, 88, 118, 0.14); color: #ef5876; }
.icon-orange { background: rgba(240, 145, 58, 0.14); color: #f0913a; }
.icon-green  { background: rgba(43, 182, 115, 0.14); color: #2bb673; }
.icon-blue   { background: rgba(63, 127, 224, 0.16); color: #3f7fe0; }
.icon-teal   { background: rgba(31, 169, 146, 0.14); color: #1fa992; }
.icon-yellow { background: rgba(232, 165, 58, 0.14); color: #e8a53a; }
.icon-red    { background: rgba(226, 73, 91, 0.14); color: #e2495b; }
.icon-lblue  { background: rgba(53, 146, 224, 0.16); color: #3592e0; }

[data-theme="light"] .icon-purple { background: #efe9ff; }
[data-theme="light"] .icon-pink   { background: #fde9ee; }
[data-theme="light"] .icon-orange { background: #fdeee0; }
[data-theme="light"] .icon-green  { background: #e2f7ee; }
[data-theme="light"] .icon-blue   { background: #e5eefd; }
[data-theme="light"] .icon-teal   { background: #e2f6f2; }
[data-theme="light"] .icon-yellow { background: #fdf3de; }
[data-theme="light"] .icon-red    { background: #fce5e6; }
[data-theme="light"] .icon-lblue  { background: #e2effd; }

@media (max-width: 1200px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-deco { display: none; }
}

@media (max-width: 980px) {
    .sidebar { display: none; }
    .main-content { padding-left: 0; border-left: none; }
    .page-shell { width: 92%; }
}

@media (max-width: 640px) {
    .page-header { flex-direction: column; }
    .search-box { width: 100%; }
    .tools-grid { grid-template-columns: 1fr; }
    .tools-banner { flex-direction: column; align-items: flex-start; }
}


/* nav active link indicator (used on pdf-tools.html etc.) */
.nav-links a.active {
    color: var(--accent-hover);
}


/* =========================
   INDIVIDUAL TOOL PAGE
   (Merge / Split / Compress / Convert etc.)
========================= */

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.tool-header-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.tool-header-icon {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.tool-header-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tool-header-text h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.tool-header-text > p {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin-bottom: 4px;
}
.tool-header-sub {
    color: var(--text-dim);
    font-size: 13px;
}

.trust-chip-group {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
}

.trust-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-chip-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.trust-chip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.trust-chip-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-heading); }
.trust-chip-text span { font-size: 12px; color: var(--text-dim); }

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.tool-dropzone {
    padding: 46px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--border-dashed);
    border-radius: 16px;
    background: var(--card-bg);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tool-dropzone.dragging {
    border-color: var(--accent-hover);
    transform: scale(1.008);
    background: rgba(123, 92, 255, 0.06);
}

.tool-dropzone-icon {
    width: 64px; height: 64px;
    margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-hover);
}
.tool-dropzone-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.tool-dropzone h3 { font-size: 18px; font-weight: 650; color: var(--text-heading); margin-bottom: 14px; }
.tool-dropzone .or-text { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }

.btn-flat-primary {
    height: 46px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 9px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(84, 54, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-flat-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(84, 54, 255, 0.32); }
.btn-flat-primary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-flat-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.tool-dropzone-limit { margin-top: 14px; color: var(--text-dim); font-size: 12.5px; }

.file-list-wrap { margin-top: 22px; }

.file-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.file-list-head h4 { font-size: 15px; font-weight: 650; color: var(--text-heading); }
.file-list-clear { font-size: 13px; color: var(--accent-hover); font-weight: 500; cursor: pointer; background: none; border: none; }

.file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border-softer);
    border-radius: 11px;
    background: var(--card-bg);
}

.file-drag-handle { color: var(--text-dim); cursor: grab; font-size: 14px; line-height: 1; letter-spacing: 2px; }

.file-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(226, 73, 91, 0.16);
    color: #ef5876;
    font-size: 10px;
    font-weight: 700;
}

.file-meta { flex: 1; min-width: 0; }
.file-meta .file-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta .file-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.file-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.file-actions button { background: none; border: none; color: var(--text-dim); cursor: pointer; display: flex; }
.file-actions button:hover { color: var(--accent-hover); }
.file-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.settings-panel {
    padding: 22px;
    border: 1px solid var(--border-softer);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 94px;
}
.settings-panel h4 { font-size: 15.5px; font-weight: 700; color: var(--text-heading); margin-bottom: 16px; }

.setting-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider-color);
}
.setting-item:last-of-type { border-bottom: none; }

.setting-item-left { display: flex; align-items: flex-start; gap: 12px; }
.setting-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: rgba(123, 92, 255, 0.12); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; }
.setting-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.setting-text strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.setting-text span { font-size: 12px; color: var(--text-dim); }

.setting-select {
    font-size: 12.5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 6px;
}

.switch {
    position: relative;
    width: 38px; height: 22px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--divider-color);
    cursor: pointer;
    transition: background 0.2s ease;
}
.switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}
.switch.on { background: var(--accent-gradient); }
.switch.on::after { transform: translateX(16px); }

.settings-cta {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(84, 54, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.settings-cta:hover { transform: translateY(-2px); }
.settings-cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.settings-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.settings-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
}
.settings-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tool-bottom-strip {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 22px 26px;
    border: 1px solid var(--border-softer);
    border-radius: 14px;
    background: var(--card-bg-alt);
}
.tool-bottom-item { display: flex; align-items: center; gap: 14px; }
.tool-bottom-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.tool-bottom-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-bottom-item strong { display: block; font-size: 13.5px; font-weight: 650; color: var(--text-heading); }
.tool-bottom-item span { font-size: 12px; color: var(--text-dim); }

.processing-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(123, 92, 255, 0.1);
    border: 1px solid rgba(123, 92, 255, 0.22);
    color: var(--text-primary);
    font-size: 13.5px;
}
.processing-banner.success { background: rgba(43, 182, 115, 0.1); border-color: rgba(43, 182, 115, 0.3); }
.processing-banner.error { background: rgba(226, 73, 91, 0.1); border-color: rgba(226, 73, 91, 0.3); }
.processing-banner a.download-link { margin-left: auto; color: var(--accent-hover); font-weight: 600; }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border-soft);
    border-top-color: var(--accent-hover);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
    .tool-layout { grid-template-columns: 1fr; }
    .settings-panel { position: static; }
    .trust-chip-group { display: none; }
}
@media (max-width: 640px) {
    .tool-bottom-strip { grid-template-columns: 1fr; }
}

/* =========================================================
   DOCFLOW V1 UI POLISH — PDF TOOLS RESPONSIVE HARDENING
========================================================= */
html, body { max-width: 100%; overflow-x: clip; }

@media (max-width: 1180px) {
    .page-shell { width: min(94%, 1180px); }
    .sidebar { width: 220px; }
    .main-content { padding-left: 28px; }
    .tools-grid { gap: 14px; }
    .tool-card { padding: 20px 18px 24px; }
}

@media (max-width: 1040px) {
    .nav-links { gap: 18px; }
    .page-shell { width: min(94%, 980px); }
    .sidebar { width: 205px; }
    .main-content { padding-left: 22px; }
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .page-shell { width: min(94%, 760px); }
    .sidebar { display: none; }
    .main-content { padding: 26px 0 48px; border-left: 0; }
    .page-header { align-items: stretch; gap: 16px; }
    .page-header h1 { font-size: clamp(27px, 5vw, 32px); }
    .search-box { width: min(100%, 340px); }
    .tools-banner { padding: 24px; }
}

@media (max-width: 640px) {
    .page-shell { width: calc(100% - 24px); }
    .main-content { padding-top: 20px; }
    .breadcrumb { margin-bottom: 16px; font-size: 12px; }
    .page-header { margin-bottom: 22px; }
    .page-header h1 { font-size: 27px; letter-spacing: -0.4px; }
    .page-header p { font-size: 13.5px; line-height: 1.5; }
    .search-box { width: 100%; height: 42px; }
    .tools-banner { padding: 20px; gap: 14px; border-radius: 14px; margin-bottom: 26px; }
    .banner-icon { width: 48px; height: 48px; border-radius: 13px; }
    .banner-icon svg { width: 23px; height: 23px; }
    .banner-text h3 { font-size: 16px; }
    .banner-text p { font-size: 12.5px; line-height: 1.5; }
    .tools-section { margin-bottom: 28px; }
    .tools-section h2 { font-size: 16px; margin-bottom: 12px; }
    .tools-grid { grid-template-columns: 1fr; gap: 10px; }
    .tool-card { min-height: 132px; padding: 18px 18px 22px; }
    .tool-icon { width: 40px; height: 40px; margin-bottom: 12px; }
    .tool-card h4 { font-size: 15px; }
    .tool-card p { font-size: 12.5px; padding-right: 22px; }
    .tool-arrow { right: 18px; bottom: 18px; }
}

@media (max-width: 380px) {
    .page-shell { width: calc(100% - 20px); }
    .tools-banner { padding: 16px; }
    .tool-card { min-height: 124px; }
}


/* =========================
   SHARED HOMEPAGE ACCOUNT UI
   Kept in sync with the homepage navbar.
========================= */

.hidden {
    display: none !important;
}

.nav-unavailable {
    color: var(--text-dim);
    cursor: default;
    opacity: 0.62;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.homepage-account {
    position: relative;
    flex-shrink: 0;
}

.homepage-avatar {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-account-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 9px);
    right: 0;
    width: 215px;
    padding: 9px;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    background: var(--card-bg);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.homepage-account-email {
    overflow: hidden;
    padding: 6px 8px 2px;
    color: var(--text-heading);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-account-state {
    display: block;
    padding: 2px 8px 7px;
    color: var(--text-dim);
    font-size: 11px;
}

.homepage-account-divider {
    height: 1px;
    margin: 3px 0;
    background: var(--border-soft);
}

.homepage-account-item {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.homepage-account-item:not(.unavailable):hover {
    background: rgba(255,255,255,.06);
}

.homepage-account-item.unavailable {
    color: var(--text-dim);
    cursor: default;
}

/* Keep the same mobile navbar behavior as the homepage. */
@media (max-width: 900px) {
    .nav-actions .sign-in,
    .nav-actions .get-started,
    .nav-actions .homepage-account {
        display: none;
    }

    .nav-links.open .nav-unavailable {
        display: block;
    }

    .nav-links.open .homepage-account {
        display: block;
    }

    .nav-links.open {
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }
}


/* =========================================================
   LOCAL PDF TOOLS AUTH + WORKSPACE ENTRY
   No navigation to the homepage.
========================================================= */

.pdf-auth-overlay,
.pdf-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(5, 6, 15, .76);
    backdrop-filter: blur(14px);
}

.pdf-auth-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 440px) minmax(280px, 390px);
    width: min(820px, 100%);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.pdf-auth-form-panel {
    padding: 38px 36px 32px;
}

.pdf-auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.pdf-auth-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
}

.pdf-auth-brand b { color: #9c7cff; }

.pdf-auth-brand-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
}

.pdf-auth-form-panel h2 {
    margin: 0 0 7px;
    color: var(--text-heading);
    font-size: 28px;
    letter-spacing: -.5px;
}

.pdf-auth-form-panel > p,
.pdf-auth-subtitle {
    margin: 0 0 24px;
    color: var(--text-dim);
    font-size: 13px;
}

.pdf-auth-field {
    display: block;
    margin-bottom: 15px;
}

.pdf-auth-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.pdf-auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    outline: none;
    background: rgba(255,255,255,.035);
    color: var(--text-heading);
    font: inherit;
}

.pdf-auth-field input:focus {
    border-color: rgba(145,112,255,.8);
    box-shadow: 0 0 0 3px rgba(123,92,255,.12);
}

.pdf-auth-error {
    min-height: 18px;
    margin: 5px 0 8px;
    color: #ff7288;
    font-size: 12px;
}

.pdf-auth-submit,
.pdf-upload-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 15px;
    border: 0;
    border-radius: 9px;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.pdf-auth-submit:disabled,
.pdf-upload-button:disabled { opacity: .6; cursor: wait; }

.pdf-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 13px;
    color: var(--text-dim);
    font-size: 11px;
}

.pdf-auth-divider::before,
.pdf-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border-soft);
}

.pdf-google-wrap {
    min-height: 40px;
    display: flex;
    justify-content: center;
}

.pdf-google-fallback {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font: inherit;
}

.google-g {
    margin-right: 7px;
    font-weight: 800;
    font-size: 17px;
}

.pdf-auth-switch {
    display: block;
    width: 100%;
    margin-top: 17px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.pdf-auth-switch b { color: #a48bff; }

.pdf-auth-art {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 30% 30%, rgba(126,88,255,.28), transparent 42%),
        linear-gradient(145deg, #151126, #0d0d18);
}

.pdf-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-a {
    width: 190px;
    height: 190px;
    top: 70px;
    right: 45px;
    background: rgba(125,92,255,.18);
}

.orb-b {
    width: 100px;
    height: 100px;
    top: 210px;
    left: 35px;
    background: rgba(67,150,255,.13);
}

.pdf-auth-document {
    position: absolute;
    top: 105px;
    left: 50%;
    width: 190px;
    height: 245px;
    transform: translateX(-50%) rotate(-5deg);
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 25px 50px rgba(0,0,0,.3);
}

.pdf-auth-document div:not(.chart) {
    height: 7px;
    margin-bottom: 14px;
    border-radius: 99px;
    background: rgba(255,255,255,.17);
}

.pdf-auth-document .short { width: 60%; }

.pdf-auth-document .chart {
    height: 70px;
    margin-top: 25px;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(126,91,255,.6), rgba(71,144,255,.2));
}

.pdf-auth-art h3,
.pdf-auth-art p {
    position: relative;
    z-index: 1;
    max-width: 300px;
}

.pdf-auth-art h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 22px;
}

.pdf-auth-art p {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.6;
}

.pdf-upload-card {
    position: relative;
    width: min(440px, 100%);
    padding: 40px 34px 32px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    text-align: center;
}

.pdf-upload-icon {
    width: 58px;
    height: 58px;
    margin: 4px auto 18px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(123,92,255,.14);
    color: #a58bff;
    font-size: 28px;
}

.pdf-upload-card h2 {
    margin: 0 0 8px;
    color: var(--text-heading);
    font-size: 25px;
}

.pdf-upload-card p {
    margin: 0 auto 22px;
    max-width: 320px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.55;
}

.pdf-upload-status {
    margin-top: 12px;
    min-height: 17px;
    color: var(--text-dim);
    font-size: 11px;
}

@media (max-width: 720px) {
    .pdf-auth-modal { grid-template-columns: 1fr; }
    .pdf-auth-art { display: none; }
    .pdf-auth-form-panel { padding: 32px 24px 25px; }
}

@media (max-width: 460px) {
    .pdf-auth-overlay,
    .pdf-upload-overlay { padding: 10px; }

    .pdf-auth-modal { border-radius: 16px; }
    .pdf-auth-form-panel { padding: 28px 18px 22px; }
}


/* =========================================================
   TOOL PAGE MOTION — subtle, purposeful, reduced-motion safe
========================================================= */
@keyframes mtoolFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mtoolIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.mtool-header {
    animation: mtoolFadeUp .42s cubic-bezier(.22, 1, .36, 1) both;
}

.mtool-icon {
    animation: mtoolIconFloat 3.6s ease-in-out .45s infinite;
}

.mtool-badge {
    transition: transform .2s ease, opacity .2s ease;
}

.mtool-badge:hover {
    transform: translateY(-2px);
}

.mtool-badge-icon {
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}

.mtool-badge:hover .mtool-badge-icon {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(90, 70, 220, .14);
}

.mtool-dropzone {
    transition: transform .22s cubic-bezier(.22, 1, .36, 1),
                border-color .2s ease,
                box-shadow .2s ease,
                background .2s ease;
}

.mtool-dropzone:hover {
    transform: translateY(-2px);
}

.mtool-choose-btn,
.mtool-submit-btn,
.mtool-clear-all,
.mtool-option-card {
    transition: transform .18s cubic-bezier(.22, 1, .36, 1),
                border-color .18s ease,
                box-shadow .18s ease,
                background .18s ease,
                filter .18s ease;
}

.mtool-choose-btn:hover:not(:disabled),
.mtool-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.mtool-choose-btn:active:not(:disabled),
.mtool-submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(.985);
}

.mtool-trust-item {
    transition: transform .2s ease;
}

.mtool-trust-item:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .mtool-header,
    .mtool-icon {
        animation: none;
    }

    .mtool-badge,
    .mtool-dropzone,
    .mtool-choose-btn,
    .mtool-submit-btn,
    .mtool-clear-all,
    .mtool-option-card,
    .mtool-trust-item,
    .mtool-badge-icon {
        transition: none;
    }
}


/* =========================================================
   PDF TOOL UX POLISH — shared alignment + restrained motion
   Keep all four tool pages visually consistent.
========================================================= */

.mtool-header {
    animation: mtool-fade-up 420ms cubic-bezier(.22,1,.36,1) both;
}

.mtool-badges {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
}

.mtool-badge {
    transition: transform .22s ease, opacity .22s ease;
}

.mtool-badge:hover {
    transform: translateY(-2px);
}

.mtool-secure-note {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    transition: opacity .2s ease;
}

.mtool-trust-strip {
    animation: mtool-fade-up 520ms 70ms cubic-bezier(.22,1,.36,1) both;
}

.mtool-trust-item {
    transition: transform .22s ease, opacity .22s ease;
}

.mtool-trust-item:hover {
    transform: translateY(-2px);
}

.mtool-dropzone {
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}

.mtool-dropzone:hover {
    transform: translateY(-1px);
}

.mtool-choose-btn,
.mtool-merge-btn {
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.mtool-choose-btn:hover,
.mtool-merge-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

@keyframes mtool-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mtool-header,
    .mtool-trust-strip {
        animation: none;
    }
    .mtool-badge,
    .mtool-trust-item,
    .mtool-dropzone,
    .mtool-choose-btn,
    .mtool-merge-btn {
        transition: none;
    }
}
