﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #7155e8;
    --primary-dark: #5940cc;
    --dark: #101827;
    --text: #273247;
    --muted: #718096;
    --background: #ffffff;
    --light: #f6f7fb;
    --border: #e9eaf1;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

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

.container {
    width: min(1120px, 90%);
    margin: auto;
}

/* NAVIGATION */

.navbar {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dark);
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

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

.nav-links a {
    color: #647084;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-button {
    background: var(--dark);
    color: white;
    padding: 11px 19px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    color: var(--dark);
}

/* HERO */

.hero {
    background:
        radial-gradient(ellipse at 80% 20%, #eae5ff 0%, transparent 40%),
        linear-gradient(135deg, #faf9ff, #f5f7ff);
    padding: 110px 0 100px;
    text-align: center;
}

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

.eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.15;
    letter-spacing: -2.5px;
    color: var(--dark);
    margin: 24px 0;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, #7155e8, #ad67e9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 610px;
    margin: auto;
    font-size: 17px;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 13px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    padding: 14px 24px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
}

.primary-button {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px #7155e833;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid #ded9f7;
    background: white;
    color: var(--dark);
}

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

.hero-note {
    color: #8490a3;
    font-size: 12px;
    margin-top: 28px;
}

/* TOOLS */

.tools-section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(25px, 4vw, 37px);
    color: var(--dark);
    margin: 12px 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}

.search-box {
    max-width: 550px;
    margin: 0 auto 35px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #7155e815;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 14px;
}

.search-shortcut {
    color: #9aa2b1;
    font-size: 10px;
    font-weight: 800;
}

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

.tool-card {
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: 13px;
    background: white;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #d5ccff;
    box-shadow: 0 12px 35px #1c244010;
}

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

.purple { background: #f0ebff; color: #7554e8; }
.blue { background: #e9f3ff; color: #3b83d7; }
.orange { background: #fff1e7; color: #e88b40; }
.green { background: #e7f8ef; color: #2a9e69; }
.pink { background: #ffeaf2; color: #d95b91; }
.yellow { background: #fff7dc; color: #c99b23; }

.tool-category {
    font-size: 10px;
    font-weight: 800;
    color: #9a8acb;
    letter-spacing: 1px;
}

.tool-card h3 {
    font-size: 17px;
    margin: 7px 0;
    color: var(--dark);
}

.tool-card p {
    font-size: 13px;
    color: var(--muted);
    min-height: 63px;
}

.tool-link {
    display: inline-block;
    margin-top: 17px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

.no-results {
    text-align: center;
    color: var(--muted);
    padding: 35px;
}

/* BENEFITS */

.benefits-section {
    padding: 85px 0;
    background: var(--light);
}

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

.benefit-card {
    background: white;
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 12px;
}

.benefit-icon {
    font-size: 27px;
    margin-bottom: 12px;
}

.benefit-card h3 {
    color: var(--dark);
    font-size: 17px;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--muted);
}

/* CTA */

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: #151d31;
    color: white;
}

.cta-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-content p {
    color: #b5bfd1;
    margin-bottom: 27px;
}

/* FOOTER */

.footer {
    background: #0e1524;
    color: white;
    padding: 48px 0 20px;
}

.footer-logo {
    color: white;
    display: inline-flex;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-content p {
    color: #9ba7bc;
    font-size: 13px;
    margin-top: 12px;
}

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

.footer-links a {
    font-size: 12px;
    color: #b4bfd0;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #273044;
    padding-top: 18px;
    text-align: center;
    color: #8b96aa;
    font-size: 11px;
}

/* INNER PAGES */

.page-section {
    min-height: 65vh;
    padding: 80px 0;
}

.page-content {
    max-width: 800px;
    margin: auto;
}

.page-content h1 {
    color: var(--dark);
    font-size: 38px;
    margin-bottom: 18px;
}

.page-content h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 21px;
    color: var(--dark);
}

.page-content p,
.page-content li {
    color: var(--muted);
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 22px;
}

.page-content a {
    color: var(--primary);
}

/* CONTACT */

.contact-form {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    border: 0;
    cursor: pointer;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
}

/* TOOLS DIRECTORY */

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 35px;
}

/* RESPONSIVE */

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

    .nav-button {
        display: none;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 65px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: white;
        padding: 22px 5%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--border);
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: 75px 0;
    }

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

    .hero p {
        font-size: 14px;
    }

    .tools-section,
    .benefits-section {
        padding: 65px 0;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 15px;
    }

    .tool-card p {
        min-height: auto;
    }
}

/* =========================================
   STAGE 2 - INDIVIDUAL TOOL INTERFACES
========================================= */

.tool-workspace {
    padding-top: 45px;
    padding-bottom: 80px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary, #635bff);
}

.tool-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.tool-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eeecff;
    font-size: 30px;
}

.tool-heading h1 {
    font-size: clamp(30px, 5vw, 44px);
    margin: 10px 0;
    color: var(--heading, #172033);
}

.tool-heading > p:last-child {
    color: var(--text-secondary, #64748b);
    line-height: 1.7;
}

.tool-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.tool-input-area,
.tool-output-area {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e6e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(20, 30, 60, 0.04);
}

.tool-input-area label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #172033;
}

.tool-input-area textarea {
    display: block;
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border: 1px solid #dfe3ec;
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    background: #fbfcff;
    color: #172033;
}

.tool-input-area textarea:focus {
    border-color: #7166f5;
    box-shadow: 0 0 0 3px rgba(113, 102, 245, 0.12);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 20px;
    color: #7b8497;
    font-size: 12px;
}

.primary-button,
.generate-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #635bff;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.primary-button:hover,
.generate-button:hover {
    background: #5046e5;
    transform: translateY(-1px);
}

.generate-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stage-notice {
    margin-top: 15px;
    color: #777f91;
    font-size: 12px;
    line-height: 1.6;
}

.output-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.output-heading h2 {
    margin: 5px 0 0;
    color: #172033;
}

.copy-button {
    padding: 9px 16px;
    border: 1px solid #dfe3ec;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
}

.copy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.output-content {
    min-height: 300px;
    padding: 24px;
    border: 1px dashed #d7dce8;
    border-radius: 12px;
    background: #fbfcff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.output-content h3 {
    margin: 12px 0 6px;
    color: #263149;
}

.output-content p {
    color: #7b8497;
    line-height: 1.6;
    font-size: 14px;
}

.empty-output-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eeecff;
    color: #635bff;
    font-size: 25px;
}

.tool-tip {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 22px 25px;
    border: 1px solid #e6e8f0;
    border-radius: 14px;
    background: #ffffff;
    line-height: 1.7;
}

.tool-tip strong {
    color: #172033;
}

.tool-tip p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom a {
    margin-left: 16px;
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #635bff;
}

@media (max-width: 800px) {
    .tool-panel {
        grid-template-columns: 1fr;
    }

    .tool-workspace {
        padding-top: 25px;
    }
}

@media (max-width: 520px) {
    .tool-input-area,
    .tool-output-area {
        padding: 18px;
    }

    .input-footer {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom a {
        margin: 0 14px 0 0;
    }
}

/* =========================================
   STAGE 3 - FUNCTIONAL TOOL RESULTS
========================================= */

.generated-result {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #263149;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.output-content:has(.generated-result) {
    display: block;
    min-height: 300px;
    text-align: left;
}

.output-heading {
    flex-wrap: wrap;
}

.output-heading > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.copy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .output-heading {
        align-items: flex-start;
    }
}

/* =========================================
   STAGE 4 - QUALITY IMPROVEMENTS
========================================= */

.tool-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}

.tool-actions .generate-button {
    flex: 1;
    margin: 0;
}

.secondary-button {
    padding: 12px 18px;
    border: 1px solid #dfe3ec;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.secondary-button:hover {
    background: #f2f3f8;
}

.tool-input-area textarea {
    max-width: 100%;
}

.tool-input-area textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(99, 91, 255, 0.35);
    outline-offset: 3px;
}

@media (max-width: 420px) {
    .tool-actions {
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
    }
}
