/* ═══════════════════════════════════════════════════════════
   ROSA SOLUTIONS — V3 DESIGN SYSTEM
   Style: Modern B2B SaaS Premium Creative
   Dual theme: Dark (neutral, warm) + Light (clean, airy)
   Updated: 2026-07-12
   ═══════════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* ── Brand — Primary ── */
    --primary: #E55D25;
    --primary-dark: #D44A1A;
    --primary-light: #F07B4F;
    --primary-gradient: linear-gradient(135deg, #E55D25 0%, #D44A1A 100%);
    --primary-glow: rgba(229, 93, 37, 0.15);
    --primary-glow-strong: rgba(229, 93, 37, 0.3);

    /* ── Surfaces — Light theme (default) ── */
    --bg-body: #FAFBFC;
    --bg-white: #FFFFFF;
    --bg-subtle: #F3F4F6;
    --bg-muted: #E5E7EB;

    /* ── Surfaces — Dark (neutral warm, not harsh black) ── */
    --bg-dark: #111318;
    --bg-dark-soft: #181B22;
    --bg-dark-card: #1E2128;
    --bg-dark-elevated: #262A33;
    --bg-dark-border: rgba(255, 255, 255, 0.06);

    /* ── Glass effects ── */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.14);

    /* ── Text ── */
    --text: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --text-light: #D1D5DB;
    --text-on-dark: #E5E7EB;
    --text-on-dark-muted: rgba(255, 255, 255, 0.55);

    /* ── Borders ── */
    --border: #E5E7EB;
    --border-hover: #D1D5DB;

    /* ── Status ── */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* ── Typography ── */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 2rem;      /* 32px */
    --font-size-3xl: 2.5rem;    /* 40px */
    --font-size-hero: clamp(2.5rem, 5vw, 4rem);

    /* ── Spacing (8dp rhythm) ── */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --section-padding: 96px;

    /* ── Layout ── */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --nav-height: 72px;

    /* ── Borders ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* ── Shadows — subtle, layered ── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-primary: 0 4px 14px rgba(229, 93, 37, 0.25);
    --shadow-primary-lg: 0 8px 25px rgba(229, 93, 37, 0.35);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(229, 93, 37, 0.08);

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s ease;
    --transition: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* ── Z-index ── */
    --z-sticky: 100;
    --z-nav: 1000;
    --z-overlay: 1500;
    --z-modal: 2000;
    --z-toast: 3000;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-body);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.75rem, 3vw, var(--font-size-3xl));
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Section labels — small caps above headings */
.section-label {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.section-title-center {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title-center h2 {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Text accent */
.text-accent {
    color: var(--primary);
}

/* ─── LAYOUT ────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark .section-subtitle {
    color: var(--text-on-dark-muted);
}

.section-dark .section-label {
    color: var(--primary-light);
}

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

/* CTA sections — used on every page as the final dark call-to-action */
.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-section h2 {
    margin-bottom: var(--space-md);
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA buttons — used in hero sections and CTA sections across all pages */
.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Centered CTA button below sections (comparison tables, etc.) */
.section-cta-center {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* CTA mobile responsive */
@media (max-width: 480px) {
    .cta-section .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .cta-section .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-section {
        padding: var(--space-3xl) 0;
    }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

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

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Ghost on dark backgrounds */
.section-dark .btn-ghost,
.btn-ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .btn-ghost:hover,
.btn-ghost-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--font-size-xs);
}

/* CTA pulse — subtle attention grab */
@keyframes cta-pulse {
    0%, 100% { box-shadow: var(--shadow-primary); }
    50% { box-shadow: 0 4px 28px rgba(229, 93, 37, 0.45); }
}

.btn-pulse {
    animation: cta-pulse 2.5s ease-in-out infinite;
}

.btn-pulse:hover {
    animation: none;
}

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
}

.card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Glass card — for dark sections */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
}

.card-glass:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-light);
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-nav.scrolled {
    background: rgba(250, 251, 252, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

/* Active page indicator */
.nav-links a.active {
    color: var(--text);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-cta {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-sm) !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 1px;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    align-items: start;
}

.footer-brand img {
    max-height: 44px;
    width: auto;
}

.footer-brand p {
    color: var(--text-on-dark-muted);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    color: var(--text-on-dark-muted);
    font-size: var(--font-size-sm);
    padding: 5px 0;
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    font-size: var(--font-size-xs);
    color: var(--text-on-dark-muted);
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-socials a {
    font-size: var(--font-size-xs);
    color: var(--text-on-dark-muted);
    transition: color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--primary-light);
}

/* ─── UTILITIES ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --section-padding: 72px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 56px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: rgba(250, 251, 252, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-2xl) var(--space-lg);
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: var(--font-size-lg);
        color: var(--text);
        font-weight: 600;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-cta {
        margin-top: var(--space-lg) !important;
        text-align: center !important;
        display: block !important;
        padding: 16px 24px !important;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 24px;
        font-size: var(--font-size-sm);
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: var(--font-size-sm);
    }
}
