/* =========================================================
   BLINKSKIT — GLOBAL DESIGN SYSTEM
   Premium Dark SaaS Theme
========================================================= */

:root {

    /* =========================
       BRAND COLORS
    ========================= */

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-dark: #4f46e5;

    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.12);

    /* =========================
       BACKGROUNDS
    ========================= */

    --bg: #080d1a;
    --bg-soft: #0c1324;

    --surface: #111827;
    --surface-2: #151e31;
    --surface-hover: #1a253b;

    /* =========================
       TEXT
    ========================= */

    --text: #f8fafc;
    --text-secondary: #a7b1c2;
    --text-muted: #718096;

    /* =========================
       BORDERS
    ========================= */

    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);

    /* =========================
       STATUS
    ========================= */

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* =========================
       SHADOWS
    ========================= */

    --shadow-sm:
        0 4px 14px rgba(0, 0, 0, 0.18);

    --shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.35);

    --glow:
        0 0 35px rgba(99, 102, 241, 0.16);

    /* =========================
       RADIUS
    ========================= */

    --radius-sm: 9px;
    --radius: 15px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    /* =========================
       LAYOUT
    ========================= */

    --container: 1180px;

    /* =========================
       TRANSITION
    ========================= */

    --transition: 0.22s ease;
}


/* =========================================================
   RESET
========================================================= */

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


/* =========================================================
   HTML / BODY
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(99, 102, 241, 0.14),
            transparent 34%
        ),
        radial-gradient(
            circle at 100% 40%,
            rgba(34, 211, 238, 0.055),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


/* =========================================================
   LINKS
========================================================= */

a {
    color: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: min(92%, var(--container));

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(8, 13, 26, 0.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--border);
}


.header-content {

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--text);

    text-decoration: none;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: -0.8px;
}

.logo-placeholder {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color: white;

    font-size: 9px;

    font-weight: 800;

    box-shadow: var(--glow);
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 28px;
}

.desktop-nav a {

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 14px;

    font-weight: 550;

    transition: var(--transition);
}

.desktop-nav a:hover {

    color: var(--text);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {

    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text);

    font-size: 20px;

    cursor: pointer;

    transition: var(--transition);
}

.menu-btn:hover {

    background: var(--surface-hover);

    border-color: var(--border-strong);
}


/* =========================================================
   HAMBURGER ICON
=========================================================
*/
.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    
}

/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {

    display: none;

    flex-direction: column;

    gap: 4px;

    padding: 12px 4% 20px;

    background:
        rgba(8, 13, 26, 0.97);

    border-top:
        1px solid var(--border);
}

.mobile-nav a {

    display: block;

    padding: 13px 15px;

    border-radius: 10px;

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus {

    background: var(--surface);

    color: var(--text);
}




/* =========================================================
   MOBILE NAVIGATION
=========================================================
*/

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 4% 20px;
    background:
        rgba(8, 13, 26, 0.97);
    border-top:
        1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 13px 15px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: var(--surface);
    color: var(--text);
}

/* OPEN STATE */

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

/* =========================================================
   HAMBURGER ICON
=========================================================
*/

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background: var(--text);
    border-radius: 999px;
}


/* =========================================================
   BUTTON SYSTEM
========================================================= */

button,
.primary-btn,
.secondary-btn {

    font-family: inherit;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-btn {

    min-height: 46px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 21px;

    border: 1px solid transparent;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.22);

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.primary-btn:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 12px 30px rgba(99, 102, 241, 0.30);
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-btn {

    min-height: 46px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 21px;

    border: 1px solid var(--border-strong);

    border-radius: 11px;

    background: var(--surface);

    color: var(--text);

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    transition: var(--transition);
}

.secondary-btn:hover {

    background: var(--surface-hover);

    border-color:
        rgba(129, 140, 248, 0.45);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    padding: 90px 0 60px;

    text-align: center;
}

.hero h1 {

    max-width: 900px;

    margin: 0 auto 20px;

    font-size:
        clamp(42px, 7vw, 68px);

    line-height: 1.04;

    letter-spacing: -3px;

    font-weight: 850;
}

.hero p {

    max-width: 730px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 18px;
}


/* =========================================================
   SECTIONS
========================================================= */

.featured-section {

    margin-top: 80px;
}

.section-title {

    margin-bottom: 30px;

    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -1px;
}


/* =========================================================
   TOOL GRID
========================================================= */

.tools-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 18px;
}


/* =========================================================
   TOOL CARD
========================================================= */

.tool-card,
.category-card {

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(21, 30, 49, 0.96),
            rgba(15, 23, 42, 0.96)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 25px;

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.tool-card:hover,
.category-card:hover {

    transform: translateY(-4px);

    border-color:
        rgba(129, 140, 248, 0.35);

    box-shadow:
        var(--shadow),
        var(--glow);
}

.tool-card h2,
.tool-card h3,
.category-card h3 {

    margin-bottom: 9px;

    font-size: 19px;

    letter-spacing: -0.4px;
}

.tool-card p,
.category-card p {

    margin-bottom: 20px;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   CARD ACTION
========================================================= */

.tool-card a {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 14px;

    border-radius: 9px;

    background:
        rgba(99, 102, 241, 0.11);

    color: var(--primary-hover);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}

.tool-card a:hover {

    background: var(--primary);

    color: white;
}


/* =========================================================
   CATEGORY BUTTON
========================================================= */

.category-btn {

    min-height: 38px;

    padding: 0 14px;

    border:
        1px solid var(--border-strong);

    border-radius: 9px;

    background: transparent;

    color: var(--text);

    font-size: 13px;

    font-weight: 650;

    cursor: pointer;

    transition: var(--transition);
}

.category-btn:hover {

    background: var(--surface-hover);

    border-color:
        rgba(129, 140, 248, 0.4);
}


/* =========================================================
   INPUTS
========================================================= */

input,
textarea,
select {

    width: 100%;

    font-family: inherit;

    background:
        rgba(8, 13, 26, 0.65);

    color: var(--text);

    border:
        1px solid var(--border-strong);

    border-radius: 11px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

input:focus,
textarea:focus,
select:focus {

    border-color: var(--primary);

    background: var(--surface);

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.11);
}

input::placeholder,
textarea::placeholder {

    color: var(--text-muted);
}


/* =========================================================
   ADVERTISEMENT
========================================================= */

.top-ad,
.large-sponsor,
.sidebar-sponsor,
.inline-ad,
.sidebar-ad,
.horizontal-ad-box,
.vertical-ad {

    background:
        rgba(17, 24, 39, 0.55);

    border:
        1px dashed var(--border-strong);

    color: var(--text-muted);

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-radius: var(--radius);
}


/* =========================================================
   EMAIL SECTION
========================================================= */

.email-section,
.email-box {

    margin-top: 80px;

    padding: 55px 30px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(99, 102, 241, 0.16),
            transparent 60%
        ),
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow);
}

.email-section h2,
.email-section h3,
.email-box h2 {

    margin-bottom: 12px;

    font-size: 29px;

    letter-spacing: -1px;
}

.email-section p,
.email-box p {

    max-width: 600px;

    margin: 0 auto 25px;

    color: var(--text-secondary);
}


/* =========================================================
   FOOTER
========================================================= */

footer {

    margin-top: 90px;

    padding: 42px 0;

    background:
        rgba(5, 9, 18, 0.75);

    border-top:
        1px solid var(--border);

    text-align: center;

    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {

        width: 92%;
    }

    .desktop-nav {

        display: none;
    }

    .menu-btn {

        display: inline-flex;
    }

    .hero {

        padding: 65px 0 45px;
    }

    .hero h1 {

        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero p {

        font-size: 16px;
    }

    .featured-section {

        margin-top: 60px;
    }

    .section-title {

        font-size: 27px;
    }

    .tools-grid {

        grid-template-columns: 1fr;
    }

    .email-section,
    .email-box {

        padding: 40px 20px;
    }
}
