/* Common base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --surface: rgba(255,255,255,.88);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(255,255,255,.16);
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(15,23,42,.10);
    --radius: 28px;
    --container: 1280px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

section {
    scroll-margin-top: 120px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
    transition: .6s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover::before {
    left: 120%;
}

.btn-primary {
    background: linear-gradient(135deg,var(--accent),#3b82f6);
    color: #fff;
    box-shadow: 0 10px 30px rgba(37,99,235,.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg,var(--accent-dark),#2563eb);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,.14);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 30px;
}

/* Shared animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

::-webkit-scrollbar-track {
    background: #e9eef6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#2563eb,#3b82f6);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .cta-buttons .btn,
    .card .btn,
    .footer .btn {
        width: 100%;
    }
}
