@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;

    --color-page: #f4f6fb;
    --color-surface: #ffffff;
    --color-surface-alt: #f8fafc;
    --color-primary: #2563eb;
    --color-primary-dark: #1e3a8a;
    --color-secondary: #7c3aed;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-accent: #38bdf8;

    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 26px 60px rgba(15, 23, 42, 0.12);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #3b82f6 25%, #1e40af 75%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-page);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.5);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 64, 175, 0.7);
}

/* Project-specific layout helpers */
custom-navbar,
custom-hero,
custom-acronyms,
custom-tactics,
custom-legal,
custom-business,
custom-faq,
custom-testimonials,
custom-stats,
custom-process,
custom-cta,
custom-footer {
    display: block;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
}
.back-to-top svg {
    width: 22px;
    height: 22px;
}
