/*
 * CitoRank marketing site — shared styles
 *
 * Source of truth for values: design-system/tokens/tokens.json
 * Pages link this after Bootstrap and keep only page-specific rules inline.
 */

:root {
    /* Brand (teal) */
    --citorank-brand-50:  #f0fdfa;
    --citorank-brand-100: #ccfbf1;
    --citorank-brand-600: #24b1a8;  /* primary */
    --citorank-brand-700: #1d8f87;  /* primary hover */
    --citorank-brand-900: #0e3f3c;

    /* Ink (Tailwind slate) */
    --citorank-ink-100: #f1f5f9;
    --citorank-ink-200: #e2e8f0;
    --citorank-ink-300: #cbd5e1;
    --citorank-ink-400: #94a3b8;
    --citorank-ink-500: #64748b;
    --citorank-ink-600: #475569;  /* body text */
    --citorank-ink-800: #1e293b;  /* heading text */
    --citorank-ink-900: #0f172a;  /* deep / dark bands */

    /* Surfaces */
    --citorank-paper:         #ffffff;
    --citorank-surface-muted: #f8fafc;
    --citorank-line:          #e2e8f0;

    /* Motion */
    --citorank-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
    --citorank-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    /* Legacy aliases — the inline page styles consume these */
    --brand-primary:       var(--citorank-brand-600);
    --brand-primary-hover: var(--citorank-brand-700);
    --brand-dark:          var(--citorank-ink-900);
    --brand-light:         var(--citorank-brand-50);
    --text-body:           var(--citorank-ink-600);
    --text-heading:        var(--citorank-ink-800);
    --surface-muted:       var(--citorank-surface-muted);
    --border-subtle:       var(--citorank-line);
    --ease-out:            var(--citorank-ease-out);
    --ease-in-out:         var(--citorank-ease-in-out);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--text-body);
    background-color: var(--citorank-paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--citorank-brand-100);
    color: var(--citorank-ink-900);
}

/* ── Navbar — the system's one allowed glass effect; don't propagate ── */
.navbar {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 10px;
    transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover { color: var(--brand-primary); }
}

.nav-link.active { color: var(--brand-primary); }

/* ── Buttons ── */
.btn-primary-custom {
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 180ms var(--ease-out),
                transform 160ms var(--ease-out),
                box-shadow 180ms var(--ease-out);
    box-shadow: 0 4px 14px rgba(36, 177, 168, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary-custom:hover {
        background-color: var(--brand-primary-hover);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(36, 177, 168, 0.35);
    }
}

.btn-primary-custom:active { transform: scale(0.97); }
.btn-primary-custom:focus-visible {
    outline: 3px solid rgba(36, 177, 168, 0.45);
    outline-offset: 2px;
}

.btn-outline-dark-custom {
    background: #fff;
    color: var(--brand-dark);
    border: 1.5px solid var(--brand-dark);
    padding: 11px 26px;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 180ms var(--ease-out),
                color 180ms var(--ease-out),
                transform 160ms var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .btn-outline-dark-custom:hover {
        background: var(--brand-dark);
        color: #fff;
        transform: translateY(-2px);
    }
}

.btn-outline-dark-custom:active { transform: scale(0.97); }
.btn-outline-dark-custom:focus-visible {
    outline: 3px solid rgba(36, 177, 168, 0.45);
    outline-offset: 2px;
}

/* ── Pills (hero + page-header) ── */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(36, 177, 168, 0.30);
    color: var(--brand-primary);
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.hero-pill .pill-tag {
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(36, 177, 168, 0.10);
    color: var(--brand-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

/* ── Internal page header band ── */
.page-header {
    padding: 150px 0 70px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(36, 177, 168, 0.12), transparent 55%),
        linear-gradient(180deg, var(--brand-light) 0%, #ffffff 100%);
}

.page-title {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.page-lead {
    color: var(--citorank-ink-500);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.55;
}

/* ── Cards ── */
.feature-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 36px 28px;
    transition: transform 220ms var(--ease-out),
                box-shadow 220ms var(--ease-out),
                border-color 220ms var(--ease-out);
    height: 100%;
    background: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
        border-color: var(--brand-primary);
    }
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}

/* ── Dark band (closing CTA / stat-card / company card) ── */
.stat-card {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1e293b 100%);
    color: #fff;
    border-radius: 28px;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(36, 177, 168, 0.25), transparent 60%);
    pointer-events: none;
}

.stat-card h2 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.stat-card .lead {
    color: var(--citorank-ink-400);
    position: relative;
}

.btn-light-custom {
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: background-color 180ms var(--ease-out),
                color 180ms var(--ease-out),
                transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .btn-light-custom:hover {
        background: var(--brand-primary);
        color: #fff;
        transform: translateY(-2px);
    }
}

.btn-light-custom:active { transform: scale(0.97); }

/* ── Final CTA strip on internal pages ── */
.final-cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--border-subtle);
}

.final-cta-section h2 {
    color: var(--brand-dark);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.final-cta-section p {
    color: var(--citorank-ink-500);
    margin-bottom: 28px;
}

/* ── Footer ── */
footer {
    background: #fff;
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 30px;
}

footer a {
    color: var(--citorank-ink-400);
    text-decoration: none;
    margin: 0 10px;
    transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    footer a:hover { color: var(--brand-primary); }
}

/* ── Accessibility ── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(36, 177, 168, 0.45);
    outline-offset: 2px;
}

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