/* =====================================================
   ProKeywords.com — Main Stylesheet
   style.css
   ===================================================== */

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

/* ─── CSS VARIABLES (your colour palette & tokens) ── */
:root {
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --deep: #0F172A;
    --text: #334155;
    --muted: #94A3B8;
    --accent: #06B6D4;
    --accent-hover: #0891B2;
    --accent-light: #ECFEFF;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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


/* ─── NAVBAR ─────────────────────────────────────────── */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--deep);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.18s;
}

.nav-links a:hover {
    color: var(--accent);
}


/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--deep);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-white {
    background: white;
    color: var(--deep);
}

.btn-white:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}


/* ─── HERO ───────────────────────────────────────────── */
.hero {
    background: var(--surface);
    padding: 7rem 2rem 6rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* subtle dot grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}

/* soft teal radial glow */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(6, 182, 212, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: var(--deep);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 540px;
    margin: 0 auto 3rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), var(--shadow-md);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: var(--deep);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--muted);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--deep);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    height: 38px;
    align-self: center;
}


/* ─── SECTION COMMONS ─────────────────────────────────── */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg);
}

.section-white {
    background: var(--surface);
}

.container {
    max-width: 1160px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--deep);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-sub {
    margin-top: 0.75rem;
    font-size: 0.975rem;
    color: var(--muted);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}


/* ─── TOOLS GRID ──────────────────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.15rem;
}

.tool-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.tool-card:hover {
    border-color: rgba(6, 182, 212, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

.tool-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tool-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 0.4rem;
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.tool-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tool-link .arrow {
    transition: transform 0.2s;
}

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


/* ─── FEATURES ────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1.5px solid var(--border);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: var(--accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.2rem;
}

.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 0.55rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}


/* ─── CTA SECTION ─────────────────────────────────────── */
.cta-section {
    background: var(--deep);
    padding: 6.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section .section-label {
    color: var(--accent);
}

.cta-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    line-height: 1.1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    margin-bottom: 2.25rem;
}

.cta-inner {
    position: relative;
    z-index: 1;
}


/* ─── FOOTER ──────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem 2rem;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 230px;
}

.footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--deep);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}


/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}