/* =========================================================
   ATAL RAWAT - GLOBAL STYLES
   Simple | Lightweight | Responsive
   ========================================================= */


/* =========================
   RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================
   VARIABLES
   ========================= */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;

    --black: #111111;
    --text: #333333;
    --muted: #6b7280;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;

    --white: #ffffff;

    --border-radius: 12px;

    --container: 1150px;
}


/* =========================
   COMMON CONTAINER
   ========================= */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 800px;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
}

.nav-wrapper {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================
   LOGO
   ========================= */

.logo {
    display: inline-block;

    font-size: 24px;
    font-weight: 800;

    color: var(--black);
}

.logo span {
    color: var(--primary);
}


/* =========================
   NAVIGATION
   ========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #444444;

    font-size: 15px;
    font-weight: 600;

    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}


/* =========================
   HERO
   ========================= */

.hero {
    padding: 95px 0 90px;

    background: #ffffff;

    border-bottom: 1px solid var(--gray-200);
}

.hero .container {
    max-width: 850px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 20px;

    color: var(--black);

    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-text {
    max-width: 680px;
    margin: 0 auto 30px;

    color: var(--muted);

    font-size: 18px;
}


/* =========================
   BUTTONS
   ========================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 22px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);

    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
}


/* =========================
   SECTION
   ========================= */

.tools-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin-bottom: 10px;

    color: var(--black);

    font-size: 34px;
    line-height: 1.2;
}

.section-heading > p:last-child {
    color: var(--muted);
}


/* =========================
   TOOL GRID
   ========================= */

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================
   TOOL CARD
   ========================= */

.tool-card {
    padding: 28px;

    background: var(--white);

    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.tool-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: #f1eafe;
    color: var(--primary);

    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
}

.tool-card h3 {
    margin-bottom: 10px;

    font-size: 21px;
    line-height: 1.3;
}

.tool-card p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 15px;
}

.tool-link {
    color: var(--primary);

    font-size: 15px;
    font-weight: 700;
}

.tool-link:hover {
    color: var(--primary-dark);
}


/* =========================
   INFO SECTION
   ========================= */

.info-section {
    padding: 80px 0;

    background: var(--white);
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.feature {
    padding: 24px;

    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.feature h3 {
    margin-bottom: 8px;

    font-size: 19px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
}


/* =========================
   ABOUT SECTION
   ========================= */

.about-section {
    padding: 80px 0;

    background: var(--gray-50);
}

.about-section h2 {
    margin-bottom: 15px;

    font-size: 34px;
    line-height: 1.25;
}

.about-section p {
    color: var(--muted);
}

.about-section p:not(.eyebrow) {
    margin-bottom: 18px;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.text-link:hover {
    color: var(--primary-dark);
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
    background: #111111;
    color: #ffffff;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 40px;

    padding-top: 55px;
    padding-bottom: 45px;
}

.footer-logo {
    color: #ffffff;
}

.footer-grid > div:first-child p {
    max-width: 280px;

    margin-top: 12px;

    color: #a1a1aa;

    font-size: 14px;
}

.footer-grid h3 {
    margin-bottom: 15px;

    font-size: 15px;
}

.footer-grid a:not(.logo) {
    display: block;

    margin-bottom: 9px;

    color: #a1a1aa;

    font-size: 14px;
}

.footer-grid a:not(.logo):hover {
    color: #ffffff;
}


/* =========================
   FOOTER BOTTOM
   ========================= */

.footer-bottom {
    border-top: 1px solid #2a2a2a;

    padding: 18px 0;
}

.footer-bottom p {
    color: #888888;

    font-size: 13px;
}


/* =========================
   GENERAL CONTENT
   Useful for inner pages
   ========================= */

.page-header {
    padding: 65px 0;

    background: var(--gray-50);

    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    margin-bottom: 12px;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.page-header p {
    max-width: 700px;

    color: var(--muted);

    font-size: 17px;
}

.content-section {
    padding: 70px 0;
}

.content-section h2 {
    margin-top: 35px;
    margin-bottom: 12px;

    font-size: 28px;
}

.content-section h3 {
    margin-top: 25px;
    margin-bottom: 10px;

    font-size: 21px;
}

.content-section p {
    margin-bottom: 16px;

    color: #444444;
}

.content-section ul,
.content-section ol {
    margin: 0 0 20px 22px;

    color: #444444;
}

.content-section li {
    margin-bottom: 7px;
}


/* =========================
   TOOL PAGE
   ========================= */

.tool-page {
    padding: 60px 0 80px;
}

.tool-page-header {
    max-width: 800px;

    margin-bottom: 35px;
}

.tool-page-header h1 {
    margin-bottom: 12px;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.tool-page-header p {
    color: var(--muted);

    font-size: 17px;
}


/* =========================
   TOOL BOX
   ========================= */

.tool-box {
    max-width: 900px;

    padding: 28px;

    background: var(--white);

    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.tool-box h2 {
    margin-bottom: 18px;

    font-size: 24px;
}


/* =========================
   FORM ELEMENTS
   ========================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--black);

    font-size: 14px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;

    padding: 12px 14px;

    color: var(--black);
    background: var(--white);

    border: 1px solid var(--gray-300);
    border-radius: 8px;

    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

textarea {
    min-height: 180px;

    resize: vertical;
}


/* =========================
   TOOL ACTIONS
   ========================= */

.tool-actions {
    display: flex;

    gap: 10px;
    flex-wrap: wrap;

    margin-top: 20px;
}

.tool-actions button,
.tool-actions a {
    min-height: 44px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;
}

.primary-action {
    background: var(--primary);
    color: var(--white);

    border: 1px solid var(--primary);
}

.primary-action:hover {
    background: var(--primary-dark);
}

.secondary-action {
    background: var(--white);
    color: var(--black);

    border: 1px solid var(--gray-300);
}

.secondary-action:hover {
    background: var(--gray-100);
}


/* =========================
   RESULT BOX
   ========================= */

.result-box {
    margin-top: 25px;
    padding: 20px;

    background: var(--gray-50);

    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.result-box.hidden {
    display: none;
}


/* =========================
   NOTICE / MESSAGE
   ========================= */

.notice {
    margin-top: 20px;
    padding: 14px 16px;

    background: #f5f3ff;

    border: 1px solid #ddd6fe;
    border-radius: 8px;

    color: #4c1d95;

    font-size: 14px;
}

.error-message {
    margin-top: 15px;

    color: #b91c1c;

    font-size: 14px;
}

.success-message {
    margin-top: 15px;

    color: #15803d;

    font-size: 14px;
}


/* =========================
   TABLE
   ========================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: var(--white);
}

th,
td {
    padding: 12px 14px;

    text-align: left;

    border-bottom: 1px solid var(--gray-200);

    font-size: 14px;
}

th {
    background: var(--gray-100);

    color: var(--black);

    font-weight: 700;
}


/* =========================
   FILE INPUT
   ========================= */

input[type="file"] {
    padding: 10px;

    background: var(--gray-50);

    cursor: pointer;
}


/* =========================
   QR RESULT
   ========================= */

.qr-result {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 280px;

    margin-top: 25px;

    padding: 25px;

    background: var(--gray-50);

    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.qr-result canvas,
.qr-result img {
    max-width: 100%;
}


/* =========================
   FAQ
   ========================= */

.faq-list {
    max-width: 850px;
}

.faq-item {
    padding: 20px 0;

    border-bottom: 1px solid var(--gray-200);
}

.faq-item h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.faq-item p {
    color: var(--muted);
}


/* =========================
   CONTACT
   ========================= */

.contact-box {
    max-width: 700px;

    padding: 30px;

    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.contact-box p {
    margin-bottom: 12px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {

    .tool-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 650px) {

    .nav-wrapper {
        min-height: auto;

        padding-top: 18px;
        padding-bottom: 18px;

        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }

    .main-nav {
        width: 100%;

        gap: 18px;

        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 14px;
    }


    .hero {
        padding: 65px 0 60px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 16px;
    }


    .tools-section,
    .info-section,
    .about-section {
        padding: 60px 0;
    }


    .section-heading h2,
    .about-section h2 {
        font-size: 29px;
    }


    .tool-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }


    .tool-card,
    .tool-box {
        padding: 22px;
    }


    .footer-grid {
        grid-template-columns: 1fr;

        gap: 28px;

        padding-top: 40px;
        padding-bottom: 35px;
    }


    .page-header {
        padding: 50px 0;
    }

    .content-section,
    .tool-page {
        padding: 50px 0 60px;
    }


    .tool-actions {
        flex-direction: column;
    }

    .tool-actions button,
    .tool-actions a {
        width: 100%;
    }

}