@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;
    }

}

/* =========================
   AUTH MODAL
   ========================= */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    position: relative;
    display: flex;
    align-items: stretch;
    width: min(660px, 100%);
    max-height: min(92vh, 700px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: #0a0f22;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.55);
    cursor: pointer;
    opacity: 0.9;
}

.auth-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.auth-close:hover { opacity: 1; background: rgba(10, 15, 30, 0.8); }

/* ---- shared panel ---- */
.auth-panel {
    box-sizing: border-box;
    min-width: 0;
    overflow-y: auto;
}

.auth-panel-form {
    flex: 1 1 58%;
    padding: 32px 36px;
    background: var(--card-bg, #0d1330);
}

/* ---- logo / header ---- */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-heading);
}

.auth-logo b { color: #9c7bff; font-weight: 800; }

.auth-logo-mark {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--accent-logo-gradient);
    transform: rotate(-6deg);
}

.auth-logo-mark svg {
    position: absolute;
    inset: 5px;
    width: 18px;
    height: 18px;
}

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
}

.auth-header p {
    margin: 0 0 20px;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ---- fields ---- */
.auth-field {
    display: block;
    margin-bottom: 14px;
}

.auth-field span:first-child {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-input-wrap {
    position: relative;
    display: block;
}

.auth-input-wrap svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px 11px 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color .15s ease;
}

.auth-field input::placeholder { color: var(--text-dim); }

.password-field.auth-input-wrap input { padding-right: 40px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.showing { color: #a996ff; }

.auth-field input:focus {
    border-color: rgba(140, 120, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 18px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.auth-remember input { accent-color: #7b5cff; width: 15px; height: 15px; }

.auth-forgot {
    color: #a996ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover { text-decoration: underline; }

.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease;
}

.auth-submit:hover { filter: brightness(1.08); }

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-submit-arrow { transition: transform .15s ease; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(3px); }

.auth-switch {
    width: 100%;
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    opacity: 0.9;
    cursor: pointer;
}

.auth-switch b { color: #a996ff; font-weight: 700; }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 14px; color: var(--text-dim); font-size: 12px; font-weight: 500; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

.oauth-row {
    display: flex;
    gap: 10px;
}

.oauth-btn-wrap { position: relative; flex: 1; }

.oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.oauth-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.oauth-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.oauth-btn[disabled] { opacity: 0.5; pointer-events: none; }

.google-signin-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.01;
}

.google-unavailable { margin: 8px 0 0; color: var(--text-dim); font-size: 12px; text-align: center; }

/* ---- art panel ---- */
.auth-panel-art {
    position: relative;
    flex: 1 1 42%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 26px 30px;
    background:
        radial-gradient(circle at 30% 12%, rgba(155, 108, 255, 0.4), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(80, 60, 255, 0.32), transparent 55%),
        linear-gradient(150deg, #24144f 0%, #170c3c 55%, #0d0726 100%);
    overflow: hidden;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

.orb-one {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
    opacity: 0.4;
}

.orb-two {
    width: 40px;
    height: 40px;
    bottom: 34%;
    left: 8%;
    background: radial-gradient(circle, rgba(160, 130, 255, 0.75), transparent 70%);
    opacity: 0.55;
}

.auth-sparkle {
    position: absolute;
    color: #fff;
    opacity: 0.8;
    pointer-events: none;
}

.sparkle-one { top: 16%; right: 20%; font-size: 13px; }
.sparkle-two { top: 30%; left: 14%; font-size: 9px; opacity: 0.55; }

.auth-doc-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 165px;
}

.auth-doc-main {
    position: relative;
    width: 118px;
    padding: 20px 14px;
    border-radius: 12px 12px 12px 3px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    transform: rotate(-6deg);
}

.auth-doc-line {
    display: block;
    height: 5px;
    margin-bottom: 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
}

.auth-doc-line.line-wide { width: 100%; }
.auth-doc-line:not(.line-wide):not(.line-short) { width: 78%; }
.auth-doc-line.line-short { width: 52%; margin-bottom: 12px; }

.auth-doc-accent {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.auth-doc-accent svg { width: 22px; height: 22px; }

.pie-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: conic-gradient(#fff 0deg 130deg, rgba(255,255,255,0.35) 130deg 360deg);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}

.accent-image {
    top: -14px;
    left: -30px;
    background: linear-gradient(145deg, #b06bff, #6f5cff);
    transform: rotate(-8deg);
}

.accent-pie {
    bottom: -12px;
    right: -22px;
    background: linear-gradient(145deg, #7b5cff, #4a3ec9);
    transform: rotate(6deg);
}

.auth-art-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

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

.auth-feature-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-gradient);
    box-shadow: 0 8px 18px rgba(90, 60, 255, 0.35);
}

.auth-feature-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-feature strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.auth-feature small {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11.5px;
}

.homepage-account { position: relative; }
.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; }
.homepage-account-menu { position: absolute; z-index: 20; 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; }

.auth-error {
    min-height: 20px;
    margin: 2px 0 8px;
    color: #ff647c;
    font-size: 13px;
}

.hidden { display: none !important; }

.nav-unavailable { color: var(--text-dim); cursor: default; opacity: 0.62; }

.auth-status {
    max-width: 190px;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-unavailable {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 13px;
    opacity: 0.62;
}

.social-unavailable {
    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);
    opacity: 0.62;
}

@media (max-width: 900px) {
    .nav-actions .auth-status { display: none !important; }
    .nav-links.open .nav-unavailable { display: block; }
    .auth-overlay { align-items: flex-start; overflow-y: auto; }
    .auth-modal { margin: 24px 0; }
}

@media (max-width: 760px) {
    .auth-modal { max-height: none; }
    .auth-panel-art { display: none; }
    .auth-panel-form { flex: 1 1 100%; padding: 34px 24px; }
}
/* =========================================================
   DOCFLOW V1 UI POLISH — RESPONSIVE HARDENING
   Keep existing visual language; tighten layout across phones,
   tablets and desktop without changing product behavior.
========================================================= */
html, body { max-width: 100%; overflow-x: clip; }
button, input, textarea, select { font: inherit; }
img, svg, canvas { max-width: 100%; }

@media (max-width: 1180px) {
    .navbar { padding-inline: 4%; gap: 14px; }
    .nav-links { gap: 20px; }
    .nav-actions { gap: 12px; }
    .hero { width: min(94%, 1120px); gap: 42px; }
    .hero h1 { font-size: clamp(42px, 5vw, 56px); }
}

@media (max-width: 900px) {
    .navbar { min-height: 68px; height: 68px; }
    .nav-links.open { max-height: calc(100vh - 68px); overflow-y: auto; }
    .nav-links.open a, .nav-links.open .nav-unavailable { width: 100%; padding: 4px 0; }
    .hero { width: min(92%, 760px); grid-template-columns: 1fr; gap: 34px; padding-top: 42px; }
    .hero-content { padding-left: 0; }
    .upload-wrapper { width: min(100%, 680px); margin-inline: auto; }
    .footer-top { gap: 30px; }
}

@media (max-width: 640px) {
    .navbar { padding: 0 16px; }
    .logo { font-size: 18px; gap: 9px; }
    .logo-icon { width: 28px; height: 28px; transform: scale(.9) rotate(-35deg); }
    .hero { width: calc(100% - 28px); padding-top: 28px; padding-bottom: 28px; }
    .hero h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.02; letter-spacing: -1.6px; }
    .hero-description { font-size: 15px; line-height: 1.55; }
    .hero-benefits { gap: 12px; }
    .benefit { min-height: 30px; }
    .upload-box { padding: 10px; border-radius: 14px; }
    .upload-inner { min-height: 270px; padding: 24px 14px; }
    .choose-pdf-btn { width: 100%; max-width: 320px; }
    .security-note { width: 100%; }
    .feature-grid { gap: 12px; }
    .feature-card { min-width: 0; }

    .auth-overlay { padding: 12px; }
    .auth-modal { width: min(100%, 430px); max-width: 100%; border-radius: 16px; }
    .auth-panel-form { padding: 28px 20px; }
    .auth-header h2 { font-size: 22px; }
    .auth-row-between { gap: 10px; flex-wrap: wrap; }
    .oauth-row { flex-direction: column; }
    .oauth-btn { min-height: 44px; }
}

@media (max-width: 380px) {
    .navbar { padding-inline: 12px; }
    .logo { font-size: 17px; }
    .hero h1 { font-size: 33px; }
    .upload-inner { min-height: 245px; }
    .auth-panel-form { padding: 24px 16px; }
}
