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

/* === BLUE & WHITE DESIGN SYSTEM & THEMES === */
:root {
    /* Fonts */
    --font-display: 'DM Serif Display', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-w: 1120px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 6px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Blue & White Light Theme (Default / Clean Modern Professional) */
    --ink: #0f172a;               /* Slate-900 */
    --ink-mid: #1e293b;           /* Slate-800 */
    --ink-soft: #475569;          /* Slate-600 */
    --slate: #64748b;             /* Slate-500 */
    --mist: #e2e8f0;              /* Slate-200 */
    --paper: #f8fafc;             /* Slate-50 */
    --white: #ffffff;             /* Pure White */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    
    --accent: #0066ff;            /* Bright Electric Blue */
    --accent-deep: #004ecc;       /* Deep Ocean Blue */
    --accent-glow: rgba(0, 102, 255, 0.06);
    --accent-line: rgba(0, 102, 255, 0.15);
    
    --gold: #f5a623;
    --whatsapp-brand: #25D366;
    --whatsapp-dark: #128C7E;
    
    --card-shadow: 0 4px 30px rgba(0, 102, 255, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --card-border: 1px solid rgba(0, 102, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 102, 255, 0.08);
}

/* Theme: High-Tech Blue Space Dark Theme */
@media (prefers-color-scheme: dark) {
    :root:not(.light-theme-forced) {
        --ink: #f8fafc;           /* Slate-50 */
        --ink-mid: #0b0f19;       /* Deep Midnight Space */
        --ink-soft: #94a3b8;      /* Slate-400 */
        --slate: #64748b;         /* Slate-500 */
        --mist: #1e293b;          /* Slate-800 */
        --paper: #070a13;         /* Space Dark base */
        --white: #ffffff;         /* Pure White (Literal) */
        --bg-body: #020617;       /* Midnight Space background */
        --bg-card: rgba(11, 15, 25, 0.85); /* Midnight Space Card */
        
        --accent: #3b82f6;        /* Light Electric Blue */
        --accent-deep: #0066ff;   /* Bright Electric Blue */
        --accent-glow: rgba(59, 130, 246, 0.12);
        --accent-line: rgba(59, 130, 246, 0.3);
        
        --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        --card-border: 1px solid rgba(59, 130, 246, 0.12);
        --glass-bg: rgba(2, 6, 23, 0.8);
        --glass-border: rgba(59, 130, 246, 0.15);
    }
}

:root.dark-theme {
    --ink: #f8fafc;           /* Slate-50 */
    --ink-mid: #0b0f19;       /* Deep Midnight Space */
    --ink-soft: #94a3b8;      /* Slate-400 */
    --slate: #64748b;         /* Slate-500 */
    --mist: #1e293b;          /* Slate-800 */
    --paper: #070a13;         /* Space Dark base */
    --white: #ffffff;         /* Pure White (Literal) */
    --bg-body: #020617;       /* Midnight Space background */
    --bg-card: rgba(11, 15, 25, 0.85); /* Midnight Space Card */
    
    --accent: #3b82f6;        /* Light Electric Blue */
    --accent-deep: #0066ff;   /* Bright Electric Blue */
    --accent-glow: rgba(59, 130, 246, 0.12);
    --accent-line: rgba(59, 130, 246, 0.3);
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --card-border: 1px solid rgba(59, 130, 246, 0.12);
    --glass-bg: rgba(2, 6, 23, 0.8);
    --glass-border: rgba(59, 130, 246, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--transition-smooth), color 0.4s var(--transition-smooth);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--paper);
}
::-webkit-scrollbar-thumb {
    background: var(--mist);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* === NAVIGATION === */
nav.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    transition: var(--transition-smooth);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ink) 65%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

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

.nav-cta:hover {
    background: var(--accent-deep) !important;
    transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-soft);
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent-line);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--ink);
}

/* === HERO SECTION === */
.hero {
    background: radial-gradient(circle at 80% 30%, var(--accent-glow), transparent 50%), var(--bg-body);
    color: var(--ink);
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--accent-line) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent-line);
    border-radius: 100px;
    padding: 0.35rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
        box-shadow: 0 0 0 6px rgba(0, 102, 255, 0);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    position: relative;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border-top: none;
    padding-top: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.12);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === MOCK TERMINAL COMPONENT === */
.hero-visual {
    position: relative;
    width: 100%;
}

.terminal-container {
    background: #020617;
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 102, 255, 0.15);
    overflow: hidden;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #e2e8f0;
    text-align: left;
}

.terminal-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #eab308; }
.terminal-dot.green { background-color: #22c55e; }

.terminal-title {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.terminal-body {
    padding: 1.25rem;
    min-height: 250px;
    max-height: 250px;
    overflow-y: auto;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #3b82f6;
    flex-shrink: 0;
}

.terminal-content {
    color: #f8fafc;
}

.terminal-content.success {
    color: #10b981;
}

.terminal-content.info {
    color: #3b82f6;
}

.terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: #3b82f6;
    margin-left: 2px;
    animation: terminal-blink 1s infinite steps(2, start);
}

@keyframes terminal-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Float visual glow */
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* === INTERACTIVE ROI CALCULATOR === */
.calculator-section {
    background: linear-gradient(180deg, var(--bg-body), var(--paper));
    position: relative;
    overflow: hidden;
}

.calculator-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: 50px;
    right: -100px;
    z-index: 0;
    filter: blur(120px);
    pointer-events: none;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.calc-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

/* Styled HTML5 Range Sliders */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--mist);
    outline: none;
    transition: background 0.3s;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
    transition: transform 0.15s, background-color 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-deep);
}

.calculator-results {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.result-metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: var(--ink);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.metric-value.highlight {
    color: var(--accent);
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.5rem;
}

.calc-cta {
    margin-top: 1rem;
    text-align: center;
}

.calc-cta .btn-primary {
    width: 100%;
    justify-content: center;
}

/* === SECTION GENERAL === */
section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 650px;
    line-height: 1.8;
}

/* Scroll Animation Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === EXPERTISE PILLARS === */
.pillars {
    background: var(--paper);
    transition: background-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pillars::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
    filter: blur(120px);
    pointer-events: none;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.pillar-card {
    background: var(--bg-card);
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-lg);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px -4px rgba(0, 102, 255, 0.1);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border: 1px solid var(--accent-line);
}

.pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--paper);
    color: var(--slate);
    border: 1px solid var(--mist);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.pillar-card:hover .tag {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent-line);
}

/* === SAP MODULES === */
.sap-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.module-card {
    border: var(--card-border);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.module-card:hover {
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: 0 8px 25px -4px rgba(0, 102, 255, 0.12);
}

.module-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--ink-mid);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-smooth);
}

.module-card:hover .module-badge {
    background: var(--accent);
    color: var(--white);
}

.module-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.module-info p {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.5;
}

/* === METHODOLOGY === */
.methodology {
    background: var(--bg-body);
    color: var(--ink);
    position: relative;
    overflow: hidden;
}

.methodology .section-title {
    color: var(--ink);
}

.methodology .section-lead {
    color: var(--ink-soft);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.process-step {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.1);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.step-icon-bar {
    width: 40px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.process-step:hover .step-icon-bar {
    width: 60px;
    background: var(--accent);
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

/* === CERTIFICATIONS === */
.certifications {
    background: var(--paper);
    transition: background-color 0.4s ease;
}

.cert-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.cert-badge:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.08);
}

.cert-icon {
    font-size: 1.75rem;
}

.cert-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.cert-issuer {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 2px;
}

/* === TESTIMONIALS === */
.testimonials {
    background: var(--bg-body);
    transition: background-color 0.4s ease;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line);
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    user-select: none;
    pointer-events: none;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #82b1ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.author-role {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 1px;
}

/* === CTA BANNER === */
.cta-section {
    background: linear-gradient(135deg, #020617 0%, #031b4e 50%, #053b9c 100%);
    color: var(--white);
    text-align: center;
    padding: 7rem 2rem;
    border-radius: var(--radius-lg);
    max-width: calc(var(--max-w) + 4rem);
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.cta-section .section-title {
    color: var(--white);
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

.cta-section .section-lead {
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 3rem;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-white {
    background: var(--white);
    color: #020617;
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: var(--white);
    color: #020617;
    transform: translateY(-2px);
}

/* === CONTACT SECTION === */
.contact {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    bottom: -100px;
    right: -150px;
    z-index: 0;
    filter: blur(120px);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.contact-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: fit-content;
}

.contact-link:hover {
    color: var(--accent-deep);
    transform: translateX(4px);
}

.contact-form {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background-color 0.4s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg-body);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-body);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    background: var(--accent);
    color: var(--white);
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.btn-submit:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}

/* === WHATSAPP FLOATING WIDGET === */
.wa-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: var(--font-body);
}

/* Float Trigger Button */
.wa-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp-brand), var(--whatsapp-dark));
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    transition: var(--transition-smooth);
    position: relative;
}

.wa-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-trigger svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Ripple effect */
.wa-trigger::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-brand);
    animation: wa-ripple 2s infinite ease-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes wa-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Chat Card Window */
.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.wa-chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Widget Header */
.wa-header {
    background: linear-gradient(135deg, var(--whatsapp-dark), #075E54);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-profile-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.wa-avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.wa-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--whatsapp-brand);
    border-radius: 50%;
    border: 2px solid #075E54;
}

.wa-status-text {
    display: flex;
    flex-direction: column;
}

.wa-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.wa-status {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wa-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition-smooth);
}

.wa-close:hover {
    color: white;
}

/* Widget Form */
.wa-chat-form {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.wa-form-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wa-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wa-field-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wa-field-group input,
.wa-field-group textarea {
    border: 1px solid var(--mist);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.wa-field-group input:focus,
.wa-field-group textarea:focus {
    background: var(--bg-body);
    border-color: var(--whatsapp-brand);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
}

.wa-form-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--bg-card);
    border-top: var(--card-border);
}

.wa-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--whatsapp-brand), var(--whatsapp-dark));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.wa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.wa-submit-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.wa-submit-btn:hover svg {
    transform: translateX(2px);
}

/* === FOOTER === */
footer {
    background: var(--ink-mid);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
}

footer p {
    margin-top: 1rem;
}

/* === RESPONSIVE & MOBILE DESIGN === */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        max-width: 550px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .sap-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Background Glow Container */
.bg-glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Decorative Background Glow Blobs */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    transition: var(--transition-smooth);
}
.dark-theme .blur-blob,
@media (prefers-color-scheme: dark) {
    :root:not(.light-theme-forced) .blur-blob {
        opacity: 0.16;
    }
}
.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -100px;
    right: -150px;
}
.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #818cf8, transparent 70%);
    top: 40%;
    left: -150px;
}
.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    bottom: 5%;
    right: -100px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: var(--bg-body); /* Fully solid theme background to prevent leak-through! */
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 1.5rem;
        padding: 6rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.05rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .nav-cta {
        text-align: center;
        margin-top: 1rem;
    }

    .nav-right-container {
        gap: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    section {
        padding: 4rem 1.25rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 7rem 1.25rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 5rem 1.5rem;
    }

    .wa-chat-window {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 74px;
    }
    
    .calculator-results {
        padding: 2rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
