/* ==========================================================================
   Base — variables, reset, typography, utilities
   ========================================================================== */

:root {
    --bg: #0b0b0f;
    --bg-alt: #11121a;
    --bg-soft: #0f1018;
    --surface: #161824;
    --surface-2: #1c1f2e;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #ececf1;
    --text-muted: #b4b7c9;
    --text-soft: #8b8fa3;
    --accent: #00d4ff;
    --accent-2: #ff4d8d;
    --accent-soft: rgba(0, 212, 255, 0.14);
    --gradient: linear-gradient(135deg, #00d4ff 0%, #ff4d8d 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.18) 0%, rgba(255, 77, 141, 0.18) 100%);
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --max-w: 1200px;
}

html.light-mode {
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --bg-soft: #fafbff;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text: #15172a;
    --text-muted: #3a3f55;
    --text-soft: #6b7088;
    --accent: #008fb3;
    --accent-2: #d63672;
    --accent-soft: rgba(0, 143, 179, 0.1);
    --gradient: linear-gradient(135deg, #008fb3 0%, #d63672 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 143, 179, 0.12) 0%, rgba(214, 54, 114, 0.12) 100%);
    --shadow: 0 16px 40px rgba(20, 25, 60, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-clearance, 6rem);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #0b0b0f;
}

/* Layout primitives */
section {
    padding: 7rem 0;
    position: relative;
}

section[id] {
    scroll-margin-top: var(--nav-clearance, 6rem);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.4rem, 4.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes revealClients {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
