/* =========================================================
   PDF MASTER AI
   Main Stylesheet
   ========================================================= */

/* =========================================================
   1. RESET & VARIABLES
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --text: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --background: #ffffff;
    --background-soft: #f8fafc;
    --background-blue: #f0f7ff;

    --border: #e5e7eb;
    --border-light: #eef2f7;

    --success: #16a34a;
    --warning: #f59e0b;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1180px;

    --transition: 0.25s ease;
}


/* =========================================================
   2. GLOBAL RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   3. CONTAINER
   ========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 14px;
    font-weight: 700;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.20);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--background-soft);
    border-color: #d1d5db;
}

.btn-large {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
}


/* =========================================================
   5. HEADER / NAVBAR
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-light);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-tagline {
    margin-top: 4px;

    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);

    letter-spacing: 0.4px;
}


/* Navigation */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;

    margin-left: auto;
}

.nav-menu a {
    position: relative;

    color: #4b5563;
    font-size: 14px;
    font-weight: 600;

    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}


/* Navigation actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;

    padding: 105px 0 110px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 30%,
            rgba(59, 130, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.hero-section::before {
    content: "";

    position: absolute;
    top: -180px;
    right: -150px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.hero-section::after {
    content: "";

    position: absolute;
    bottom: -220px;
    left: -180px;

    width: 450px;
    height: 450px;

    border: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;
    margin-inline: auto;

    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;
    padding: 7px 14px;

    background: var(--primary-light);
    border: 1px solid #dbeafe;
    border-radius: 999px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.hero-content h1 {
    max-width: 850px;
    margin-inline: auto;

    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2.8px;
    font-weight: 850;
}

.hero-content h1 span {
    display: block;
    color: var(--primary);
}

.hero-description {
    max-width: 680px;
    margin: 25px auto 0;

    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


/* =========================================================
   7. SECTION HEADER
   ========================================================= */

.section-header {
    max-width: 720px;
    margin: 0 auto 48px;

    text-align: center;
}

.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.section-header p {
    margin-top: 13px;

    color: var(--text-secondary);
    font-size: 15px;
}


/* =========================================================
   8. TOOLS SECTION
   ========================================================= */

.tools-section {
    padding: 100px 0;

    background: #ffffff;
}

.tools-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.tool-card {
    position: relative;

    padding: 28px 24px 26px;

    background: #ffffff;
    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.tool-card:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: var(--primary-light);

    border-radius: 14px;

    font-size: 25px;
}

.tool-card h3 {
    margin-bottom: 10px;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.tool-card p {
    min-height: 105px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.tool-link {
    display: inline-flex;
    align-items: center;

    margin-top: 20px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    transition:
        gap var(--transition),
        color var(--transition);
}

.tool-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   9. FEATURES
   ========================================================= */

.features-section {
    padding: 100px 0;

    background: var(--background-soft);

    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.feature-card {
    padding: 28px 24px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    text-align: center;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    background: var(--primary-light);

    border-radius: 50%;

    font-size: 23px;
}

.feature-card h3 {
    margin-bottom: 8px;

    font-size: 17px;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   10. CTA
   ========================================================= */

.cta-section {
    padding: 95px 0;
}

.cta-content {
    position: relative;
    overflow: hidden;

    padding: 65px 30px;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(255, 255, 255, 0.13),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );

    border-radius: var(--radius-xl);

    text-align: center;

    color: #ffffff;

    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.cta-content p {
    margin: 12px 0 25px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;
}

.cta-content .btn-primary {
    background: #ffffff;
    color: var(--primary);

    box-shadow: none;
}

.cta-content .btn-primary:hover {
    background: #f8fafc;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    padding: 70px 0 0;

    background: #0f172a;

    color: #ffffff;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 55px;
}


/* Footer brand */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.footer-logo img {
    width: 40px;
    height: 40px;

    border-radius: 9px;
}

.footer-logo strong {
    display: block;

    font-size: 16px;
    font-weight: 800;
}

.footer-logo span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}

.footer-brand > p {
    max-width: 350px;

    margin-top: 18px;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.8;
}


/* Footer columns */

.footer-column h3 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-column li + li {
    margin-top: 11px;
}

.footer-column a {
    color: #94a3b8;

    font-size: 13px;

    transition:
        color var(--transition);
}

.footer-column a:hover {
    color: #ffffff;
}


/* Footer bottom */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #64748b;

    font-size: 12px;
}

.footer-bottom strong {
    color: #cbd5e1;
}


/* =========================================================
   12. FOCUS ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   13. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        min-height: 70px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .tools-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   14. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, var(--container));
    }


    /* Header */

    .site-header {
        position: relative;
    }

    .navbar {
        flex-wrap: wrap;

        padding: 13px 0;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .nav-menu {
        order: 3;

        width: 100%;

        justify-content: center;

        padding-top: 7px;

        gap: 20px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .btn {
        min-height: 38px;
        padding: 0 12px;

        font-size: 12px;
    }


    /* Hero */

    .hero-section {
        padding: 75px 0 80px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 11vw, 52px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }


    /* Sections */

    .tools-section,
    .features-section {
        padding: 75px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }


    /* Cards */

    .tools-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .tool-card p {
        min-height: auto;
    }


    /* CTA */

    .cta-section {
        padding: 65px 0;
    }

    .cta-content {
        padding: 50px 22px;
        border-radius: 20px;
    }


    /* Footer */

    .site-footer {
        padding-top: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        padding: 20px 0;
    }

}


/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .nav-menu {
        overflow-x: auto;
        justify-content: flex-start;

        padding-bottom: 4px;

        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .hero-badge {
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn-large {
        min-height: 49px;
        font-size: 14px;
    }

}
/* AUTH LOGO SIZE */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: inline-block;
}


/* FIX AUTH LOGO */
body.auth-page .auth-logo {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.auth-page .auth-logo img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    object-fit: contain !important;
    display: block !important;
}


/* =========================================================
   AUTHENTICATION PAGES
   Register / Login / Verify Email
   ========================================================= */

body.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    display: block !important;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
}

.auth-header p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
}

.password-toggle:hover {
    background: var(--background-soft);
}

.terms-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
}

.auth-message {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 20px;
    color: var(--text-light);
    font-size: 12px;
}

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

.google-login-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.google-login-button:hover {
    background: var(--background-soft);
    border-color: #d1d5db;
}

.google-icon {
    font-size: 18px;
    font-weight: 800;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

.verification-email {
    color: var(--primary) !important;
    font-weight: 700;
}

.verification-actions {
    margin-top: 25px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.verification-actions p {
    margin-bottom: 10px;
}

.resend-status {
    margin-top: 10px;
    font-size: 12px;
}

@media (max-width: 520px) {

    .auth-container {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

}

