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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9ff;
    color: #20233a;
}

.navbar {
    height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 800;
}

.logo span:last-child {
    color: #7155e9;
}

.logo-icon {
    background: #7155e9;
    color: white;
    padding: 7px 11px;
    border-radius: 10px;
    margin-right: 9px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a,
.footer-links a {
    color: #555b70;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover,
.footer-links a:hover {
    color: #7155e9;
}

.nav-button,
.primary-button {
    background: #7155e9;
    color: white;
    border: none;
    padding: 13px 23px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.nav-button:hover,
.primary-button:hover {
    background: #573bd0;
}

.hero {
    padding: 90px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(120deg, #f2efff, #f9faff);
}

.hero-content {
    max-width: 600px;
}

.tag {
    color: #7155e9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    margin: 20px 0;
}

.hero h1 span {
    color: #7155e9;
}

.hero-content > p {
    color: #6b7085;
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    color: #555b70;
    font-size: 13px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    flex: 1;
}

.document-card {
    width: 280px;
    padding: 35px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(75,60,150,0.13);
    transform: rotate(3deg);
}

.pdf-icon {
    background: #ffeded;
    color: #eb5353;
    font-size: 23px;
    font-weight: 800;
    padding: 20px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.document-card p {
    color: #9295a6;
    font-size: 13px;
    margin: 10px 0 25px;
}

.document-line {
    height: 8px;
    background: #ececf5;
    border-radius: 10px;
    margin: 12px 0;
}

.document-line.short {
    width: 65%;
}

.tools-section {
    padding: 90px 9%;
}

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

.section-heading h2,
.about-section h2 {
    font-size: 35px;
    margin: 15px 0;
}

.section-heading p,
.about-section > p {
    color: #777c90;
}

.search-box {
    max-width: 480px;
    margin: 35px auto 45px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 17px 45px 17px 20px;
    border: 1px solid #e4e5ee;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
}

.search-box input:focus {
    border-color: #7155e9;
}

.search-box span {
    position: absolute;
    right: 17px;
    top: 12px;
    font-size: 24px;
}

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

.tool-card {
    background: white;
    padding: 28px 22px;
    border: 1px solid #eeeef5;
    border-radius: 16px;
    transition: 0.25s;
}

.tool-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(60,50,120,0.09);
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 23px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.purple { background: #f0ebff; color: #7155e9; }
.blue { background: #eaf2ff; color: #4285e8; }
.green { background: #e5f8ef; color: #23a66d; }
.orange { background: #fff0e4; color: #e98a39; }
.pink { background: #ffeaf3; color: #db6096; }
.yellow { background: #fff8dc; color: #c49b25; }
.red { background: #ffeaea; color: #e45151; }
.teal { background: #e2f7f6; color: #229c96; }

.tool-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.tool-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #82869a;
    min-height: 44px;
    margin-bottom: 20px;
}

.tool-card a {
    color: #7155e9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.no-results {
    text-align: center;
    color: #777c90;
}

.about-section {
    background: #f0edff;
    padding: 75px 10%;
    text-align: center;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.benefits div {
    background: white;
    padding: 25px;
    border-radius: 14px;
}

.benefits p {
    margin-top: 12px;
    color: #777c90;
    font-size: 13px;
}

footer {
    padding: 35px 8%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    color: #9295a6;
    font-size: 12px;
}

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

@media (max-width: 950px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 70px 7%;
    }
}

@media (max-width: 650px) {
    .navbar {
        height: auto;
        padding: 20px;
        flex-wrap: wrap;
        gap: 18px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .nav-button {
        padding: 10px 14px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 65px 7%;
    }

    .hero-features {
        justify-content: center;
    }

    .tools-section {
        padding: 65px 6%;
    }

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

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

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =====================================
   PDFMASTER - PREMIUM DESIGN UPGRADE
===================================== */

:root {
    --primary: #6546e8;
    --primary-dark: #5032ce;
    --text-main: #191b35;
    --text-muted: #737990;
    --surface: #ffffff;
    --page-bg: #f8f9ff;
    --border: #e9eaf3;
}

/* Smooth overall appearance */

body {
    background: var(--page-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Premium navigation */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(230,230,245,0.8);
    transition: box-shadow 0.3s ease;
}

.logo {
    letter-spacing: -0.8px;
}

.logo-icon {
    box-shadow: 0 5px 15px rgba(101,70,232,0.25);
}

nav a {
    transition: color 0.2s ease;
}

/* Premium buttons */

.nav-button,
.primary-button {
    background: linear-gradient(135deg, #7658f1, #5435d2);
    box-shadow: 0 6px 18px rgba(101,70,232,0.2);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.nav-button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(101,70,232,0.3);
}

/* Hero section */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%,
        rgba(126,98,255,0.16), transparent 35%),
        linear-gradient(120deg, #f1edff, #f8faff);
}

.hero h1 {
    letter-spacing: -2px;
    color: #191b35;
}

.hero h1 span {
    background: linear-gradient(90deg, #7658f1, #a15cf4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tag {
    display: inline-block;
    padding: 9px 14px;
    background: #e9e3ff;
    border-radius: 30px;
}

.document-card {
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 25px 70px rgba(75,60,150,0.16);
    transition: transform 0.35s ease;
}

.document-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

/* Section headings */

.section-heading h2,
.about-section h2 {
    letter-spacing: -1px;
    color: #191b35;
}

.section-heading > p {
    line-height: 1.8;
}

/* Search field */

.search-box input {
    background: white;
    border: 1px solid #e5e4f0;
    box-shadow: 0 5px 20px rgba(40,35,90,0.04);
    transition: all 0.25s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(101,70,232,0.10);
}

/* Premium tool cards */

.tool-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(35,35,80,0.025);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7658f1, #ad65f5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: #d9d0ff;
    box-shadow: 0 18px 40px rgba(70,55,140,0.10);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08);
}

.tool-card h3 {
    color: #252642;
    letter-spacing: -0.3px;
}

.tool-card p {
    color: #777c91;
}

.tool-card a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.tool-card a:hover {
    transform: translateX(4px);
}

/* About section */

.about-section {
    background:
        radial-gradient(circle at 10% 10%,
        rgba(135,110,255,0.10), transparent 35%),
        #f0edff;
}

.benefits div {
    border: 1px solid rgba(230,225,255,0.8);
    box-shadow: 0 8px 25px rgba(50,40,100,0.04);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.benefits div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(50,40,100,0.08);
}

/* Footer */

footer {
    border-top: 1px solid #ececf4;
}

.footer-links a {
    transition: color 0.2s ease;
}

/* Keyboard accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(101,70,232,0.4);
    outline-offset: 3px;
}

/* Responsive improvements */

@media (max-width: 950px) {
    .hero {
        gap: 35px;
    }

    .tools-grid {
        gap: 18px;
    }
}

@media (max-width: 650px) {
    .navbar {
        position: relative;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .document-card {
        max-width: 280px;
        width: 100%;
    }

    .section-heading h2,
    .about-section h2 {
        font-size: 29px;
    }

    .tool-card {
        padding: 25px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

