/* ================================================================
   JK INTERNATIONAL DIGITAL TRENDS — Premium Design System
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-elevated: #ffffff;
    --color-surface: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #94a3b8;
    --color-text-inverse: #ffffff;

    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-secondary: #06b6d4;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-mesh: radial-gradient(at 20% 20%, rgba(99,102,241,0.08) 0%, transparent 50%),
                     radial-gradient(at 80% 80%, rgba(6,182,212,0.06) 0%, transparent 50%);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --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.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --shadow-card-hover: 0 20px 40px -12px rgba(99,102,241,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-max: 1200px;
    --section-spacing: 120px;
    --navbar-height: 72px;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --color-bg: #0a0a1a;
    --color-bg-alt: #0f0f23;
    --color-bg-card: #12122a;
    --color-bg-elevated: #1a1a35;
    --color-surface: #1e1e3a;
    --color-border: #2a2a4a;
    --color-border-light: #1e1e3a;

    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-tertiary: #64748b;

    --gradient-mesh: radial-gradient(at 20% 20%, rgba(99,102,241,0.12) 0%, transparent 50%),
                     radial-gradient(at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.2);
    --shadow-card-hover: 0 20px 40px -12px rgba(99,102,241,0.25);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.011em;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul { list-style: none; }

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

::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-text);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.preloader-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* ===== CUSTOM CURSOR ===== */
/* Custom cursor disabled */
.custom-cursor,
.cursor-follower {
    display: none !important;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    border-bottom-color: var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.navbar.scrolled .nav-links a {
    color: var(--color-text-secondary);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--color-text);
}

[data-theme="dark"] .navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .navbar.scrolled .nav-links a:hover,
[data-theme="dark"] .navbar.scrolled .nav-links a.active {
    color: #fff;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.navbar.scrolled .theme-toggle {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.theme-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
}

.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: block; }

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-base);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MEGA MENU ===== */
/* ===== MEGA MENU ===== */
.has-mega {
    position: relative;
}

.has-mega > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Invisible hover bridge between nav link and mega menu */
.has-mega::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -40px;
    right: -40px;
    height: 20px;
    transform: translateY(100%);
}


.nav-chevron {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.has-mega:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 100vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 1000;
    padding: 0 24px;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 240px;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.04);
    padding: 32px 12px;
    overflow: hidden;
}

.navbar:not(.scrolled) .mega-menu-inner {
    background: rgba(8, 8, 28, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.06);
}

.mega-col {
    padding: 0 24px;
}

.mega-col:not(:last-child) {
    border-right: 1px solid var(--color-border-light);
}

.navbar:not(.scrolled) .mega-col:not(:last-child) {
    border-right-color: rgba(255, 255, 255, 0.05);
}

.mega-heading {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
    padding-left: 14px;
}

.navbar:not(.scrolled) .mega-heading {
    color: rgba(255, 255, 255, 0.3);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    margin-bottom: 2px;
}

.mega-link:hover {
    background: var(--color-surface);
    transform: translateX(3px);
}

.navbar:not(.scrolled) .mega-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mega-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Each mega icon gets its own color */
.mega-col:nth-child(1) .mega-link:nth-child(2) .mega-icon { background: rgba(99, 102, 241, 0.08); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.08); }
.mega-col:nth-child(1) .mega-link:nth-child(3) .mega-icon { background: rgba(16, 185, 129, 0.08); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.08); }
.mega-col:nth-child(1) .mega-link:nth-child(4) .mega-icon { background: rgba(245, 158, 11, 0.08); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.08); }
.mega-col:nth-child(2) .mega-link:nth-child(2) .mega-icon { background: rgba(236, 72, 153, 0.08); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.08); }
.mega-col:nth-child(2) .mega-link:nth-child(3) .mega-icon { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.08); }
.mega-col:nth-child(3) .mega-link:nth-child(2) .mega-icon { background: rgba(6, 182, 212, 0.08); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.08); }
.mega-col:nth-child(3) .mega-link:nth-child(3) .mega-icon { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.08); }

.navbar:not(.scrolled) .mega-icon {
    border-color: transparent !important;
}
.navbar:not(.scrolled) .mega-col:nth-child(1) .mega-link:nth-child(2) .mega-icon { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.navbar:not(.scrolled) .mega-col:nth-child(1) .mega-link:nth-child(3) .mega-icon { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.navbar:not(.scrolled) .mega-col:nth-child(1) .mega-link:nth-child(4) .mega-icon { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.navbar:not(.scrolled) .mega-col:nth-child(2) .mega-link:nth-child(2) .mega-icon { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
.navbar:not(.scrolled) .mega-col:nth-child(2) .mega-link:nth-child(3) .mega-icon { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.navbar:not(.scrolled) .mega-col:nth-child(3) .mega-link:nth-child(2) .mega-icon { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.navbar:not(.scrolled) .mega-col:nth-child(3) .mega-link:nth-child(3) .mega-icon { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.mega-link:hover .mega-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.mega-link span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    line-height: 1.3;
}

.navbar:not(.scrolled) .mega-link span {
    color: rgba(255, 255, 255, 0.92);
}

.mega-link small {
    font-size: 0.73rem;
    color: var(--color-text-tertiary);
    display: block;
    margin-top: 3px;
    line-height: 1.3;
}

.navbar:not(.scrolled) .mega-link small {
    color: rgba(255, 255, 255, 0.35);
}

.mega-featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(239, 68, 68, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.mega-featured::after {
    content: 'HOT';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-radius: 4px;
}

.navbar:not(.scrolled) .mega-featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
    border-color: rgba(245, 158, 11, 0.15);
}

.mega-cta-col {
    padding-left: 12px;
    display: flex;
    align-items: stretch;
}

.mega-cta-box {
    background: linear-gradient(145deg, #151535, #0a0a20);
    border-radius: 16px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.mega-cta-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
}

.mega-cta-box::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
}

.mega-cta-box h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.mega-cta-box p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.mega-cta-box .btn-sm {
    padding: 11px 20px;
    font-size: 0.78rem;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.mega-cta-box .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.btn-white {
    background: white;
    color: #0f172a;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(10, 10, 30, 0.6) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.12);
    top: -200px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.08);
    top: 50%;
    left: 50%;
    animation: orbFloat 30s ease-in-out infinite 5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes erpIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes erpIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* SVG Shape Animations */
.svg-float {
    animation: svgFloat 8s ease-in-out infinite;
}

.svg-float-reverse {
    animation: svgFloat 10s ease-in-out infinite reverse;
}

.svg-rotate {
    animation: svgRotate 20s linear infinite;
    transform-origin: center;
}

.svg-rotate-slow {
    animation: svgRotate 30s linear infinite;
}

.svg-pulse {
    animation: svgPulse 4s ease-in-out infinite;
}

.svg-pulse-delay {
    animation: svgPulse 4s ease-in-out infinite 2s;
}

@keyframes svgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes svgRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes svgPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hero Container */
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding-top: var(--navbar-height);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

/* Hero Label */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 32px;
}

.label-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: #fff;
}

.title-line {
    display: block;
}

.title-accent {
    position: relative;
    display: inline-block;
}

.title-underline {
    display: none;
}

.draw-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawLine 1.5s ease forwards 1s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 44px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 28px 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

/* Hero Visual (unused — kept for reference) */

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 2px;
    position: absolute;
    left: -1px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -12px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== STATS BAND ===== */
.stats-band {
    padding: 48px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    position: relative;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
    background: var(--color-bg);
}

.section:nth-child(even) {
    background: var(--color-bg-alt);
}

.section-header {
    margin-bottom: 64px;
    max-width: 560px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.section-label span {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 560px;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    display: block;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.service-card-inner {
    position: relative;
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.service-card:hover .service-card-inner {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transform: translateY(-6px);
}

.featured-card .service-card-inner {
    border-color: rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.15;
}

.featured-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 18px;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition-base);
}

.service-card:nth-child(2) .service-icon-wrap {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.08));
    border-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.service-card:nth-child(3) .service-icon-wrap {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.08));
    border-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.service-card:nth-child(4) .service-icon-wrap {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.08));
    border-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.service-card:nth-child(5) .service-icon-wrap {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.service-card:nth-child(6) .service-icon-wrap {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
    border-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.service-card:hover .service-icon-wrap {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.service-card:hover .service-icon-wrap svg {
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-tertiary);
    transition: var(--transition-base);
    margin-top: auto;
}

.service-card:hover .service-arrow {
    background: var(--gradient-primary);
    color: white;
    transform: translate(4px, -4px);
}

/* Service Highlights */
.service-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.service-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.service-highlights li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.service-card:nth-child(2) .service-highlights li::before { background: #ec4899; }
.service-card:nth-child(3) .service-highlights li::before { background: #06b6d4; }
.service-card:nth-child(4) .service-highlights li::before { background: #f59e0b; }
.service-card:nth-child(5) .service-highlights li::before { background: #10b981; }
.service-card:nth-child(6) .service-highlights li::before { background: #ef4444; }

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.about-features {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-check {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-success);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* About Visual */
.about-image-box {
    position: relative;
}

.about-svg-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
}

.about-illustration {
    width: 100%;
    display: block;
}

.trend-line {
    animation: drawTrend 2s ease forwards 0.5s;
}

@keyframes drawTrend {
    to { stroke-dashoffset: 0; }
}

.trend-dot {
    opacity: 0;
    animation: dotAppear 0.4s ease forwards;
}

.trend-dot:nth-child(1) { animation-delay: 1s; }
.trend-dot:nth-child(2) { animation-delay: 1.3s; }
.trend-dot:nth-child(3) { animation-delay: 1.6s; }
.trend-dot:nth-child(4) { animation-delay: 1.9s; }

.about-notif-float {
    animation: aboutNotifFloat 3s ease-in-out infinite;
}

@keyframes aboutNotifFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes dotAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 20px 24px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
    font-weight: 500;
}

/* ===== FEATURES SECTION (Dark) ===== */
.features-dark {
    position: relative;
    padding: 120px 0;
    background: #070720;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.features-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.features-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -150px;
    left: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.features-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -120px;
    right: -80px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.features-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.08);
    top: 40%;
    left: 55%;
    animation: orbFloat 30s ease-in-out infinite 5s;
}

.features-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.features-dark .section-header {
    margin-bottom: 64px;
}

.features-dark .section-label span {
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 16px;
}

.features-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 520px;
    margin: 0 auto;
}

.features-dark .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.features-dark .feature-card {
    position: relative;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.features-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.features-dark .feature-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    letter-spacing: -0.05em;
}

.features-dark .feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    color: #a5b4fc;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.features-dark .feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
}

.features-dark .feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.features-dark .feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

/* Features Grid (Inner Pages) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.08);
    transform: translateY(-4px);
}

.feature-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.08);
    line-height: 1;
    letter-spacing: -0.05em;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

[data-theme="dark"] .feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .feature-num {
    color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

[data-theme="dark"] .feature-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .feature-card p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== ERP SECTION ===== */
.erp-section {
    background: var(--color-bg-alt);
    overflow: hidden;
}

.erp-section .section-header {
    max-width: 720px;
}

.erp-section .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.erp-section .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.erp-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.erp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-border);
    transition: all 0.35s ease;
    opacity: 0;
}

.erp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.erp-card:hover::before {
    opacity: 1;
}

/* Each card gets a colored top border on hover */
.erp-featured:hover::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.erp-card:nth-child(2):hover::before { background: linear-gradient(90deg, #6366f1, #06b6d4); }
.erp-card:nth-child(3):hover::before { background: linear-gradient(90deg, #ef4444, #ec4899); }
.erp-card:nth-child(4):hover::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.erp-card:nth-child(5):hover::before { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.erp-card:nth-child(6):hover::before { background: linear-gradient(90deg, #06b6d4, #10b981); }

.erp-featured {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.03), rgba(239, 68, 68, 0.02));
}

.erp-featured::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    pointer-events: none;
}

.erp-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.erp-card-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: erpBadgePulse 2s ease-in-out infinite;
}

@keyframes erpBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ERP Icon Wrappers */
.erp-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 20px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.erp-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(16px);
    opacity: 0.35;
    z-index: -1;
    transition: opacity 0.35s ease;
}

.erp-card:hover .erp-icon-wrap::after {
    opacity: 0.6;
}

.erp-icon-wrap svg {
    transition: transform 0.35s ease;
}

.erp-card:hover .erp-icon-wrap svg {
    transform: scale(1.1);
}

.erp-icon-temple {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: erpIconFloat 4s ease-in-out infinite;
}

.erp-icon-edu {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.15);
    animation: erpIconFloat 4s ease-in-out infinite 0.3s;
}

.erp-icon-health {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(239, 68, 68, 0.15);
    animation: erpIconFloat 4s ease-in-out infinite 0.6s;
}

.erp-icon-mfg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.15);
    animation: erpIconFloat 4s ease-in-out infinite 0.9s;
}

.erp-icon-retail {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(236, 72, 153, 0.15);
    animation: erpIconFloat 4s ease-in-out infinite 1.2s;
}

.erp-icon-logistics {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(6, 182, 212, 0.15);
    animation: erpIconFloat 4s ease-in-out infinite 1.5s;
}

.erp-card:hover .erp-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.erp-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.erp-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.erp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.erp-features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-full);
}

.erp-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

/* Sector-specific feature pill colors */
.erp-features-edu li {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.1);
}
.erp-features-edu li::before { background: #6366f1; }

.erp-features-health li {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.1);
}
.erp-features-health li::before { background: #ef4444; }

.erp-features-mfg li {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.1);
}
.erp-features-mfg li::before { background: #10b981; }

.erp-features-retail li {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.1);
}
.erp-features-retail li::before { background: #ec4899; }

.erp-features-logistics li {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.1);
}
.erp-features-logistics li::before { background: #06b6d4; }

.erp-card .service-arrow {
    margin-top: auto;
    color: var(--color-text-tertiary);
    transition: all 0.3s ease;
}

.erp-card:hover .service-arrow {
    color: var(--color-primary);
    transform: translate(4px, -4px);
}

.erp-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer Contact Info */
.footer-contact-info {
    margin-bottom: 20px;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    color: var(--color-primary-light);
    width: 14px;
    font-size: 0.75rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1px;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 32px 0;
    background: var(--color-bg);
}

.cta-wrapper {
    position: relative;
    padding: 80px 64px;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.cta-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.contact-method p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
    padding: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-base);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--color-bg);
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--color-text);
    padding: 80px 0 32px;
    color: white;
}

[data-theme="dark"] .footer {
    background: #050510;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer .logo img {
    height: 52px;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 20px 0 24px;
}

.footer .social-link {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer .social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 4px;
}

.footer-col > p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Newsletter */
.newsletter-input-wrap {
    display: flex;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-base);
}

.newsletter-input-wrap:focus-within {
    border-color: var(--color-primary);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: white;
}

/* ===== PAGE HEADER (Inner Pages) ===== */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    background: #0a0a1a;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.12), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(236, 72, 153, 0.08), transparent);
    animation: pageHeaderGradient 8s ease-in-out infinite alternate;
}

@keyframes pageHeaderGradient {
    0% {
        background:
            radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.2), transparent),
            radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.12), transparent),
            radial-gradient(ellipse 50% 50% at 20% 80%, rgba(236, 72, 153, 0.08), transparent);
    }
    50% {
        background:
            radial-gradient(ellipse 70% 60% at 60% 10%, rgba(99, 102, 241, 0.25), transparent),
            radial-gradient(ellipse 50% 50% at 70% 70%, rgba(6, 182, 212, 0.15), transparent),
            radial-gradient(ellipse 60% 40% at 30% 70%, rgba(236, 72, 153, 0.1), transparent);
    }
    100% {
        background:
            radial-gradient(ellipse 90% 40% at 40% 5%, rgba(99, 102, 241, 0.18), transparent),
            radial-gradient(ellipse 70% 30% at 90% 50%, rgba(6, 182, 212, 0.1), transparent),
            radial-gradient(ellipse 40% 60% at 10% 90%, rgba(236, 72, 153, 0.12), transparent);
    }
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 1;
}

/* Floating particles for page header */
.page-header-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ph-particle {
    position: absolute;
    border-radius: 50%;
    animation: phFloat linear infinite;
    opacity: 0;
}

.ph-particle:nth-child(1) {
    width: 4px; height: 4px;
    background: #6366f1;
    left: 10%; top: 80%;
    animation-duration: 12s;
    animation-delay: 0s;
}
.ph-particle:nth-child(2) {
    width: 3px; height: 3px;
    background: #06b6d4;
    left: 25%; top: 90%;
    animation-duration: 14s;
    animation-delay: 2s;
}
.ph-particle:nth-child(3) {
    width: 5px; height: 5px;
    background: #ec4899;
    left: 45%; top: 85%;
    animation-duration: 10s;
    animation-delay: 1s;
}
.ph-particle:nth-child(4) {
    width: 3px; height: 3px;
    background: #a5b4fc;
    left: 65%; top: 95%;
    animation-duration: 16s;
    animation-delay: 3s;
}
.ph-particle:nth-child(5) {
    width: 4px; height: 4px;
    background: #67e8f9;
    left: 80%; top: 80%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}
.ph-particle:nth-child(6) {
    width: 2px; height: 2px;
    background: #6366f1;
    left: 90%; top: 90%;
    animation-duration: 13s;
    animation-delay: 4s;
}

@keyframes phFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-400px) translateX(40px);
        opacity: 0;
    }
}

/* Animated horizontal line */
.page-header-line {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2), transparent);
    z-index: 1;
    animation: phLineGlow 4s ease-in-out infinite;
}

@keyframes phLineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Page header text animations */
.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    animation: phSlideUp 0.8s ease-out both;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
    animation: phSlideUp 0.8s ease-out 0.15s both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.85rem;
    animation: phSlideUp 0.8s ease-out 0.3s both;
}

@keyframes phSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb a {
    color: #a5b4fc;
}

.breadcrumb a:hover {
    color: #c7d2fe;
}

.breadcrumb span { color: rgba(255, 255, 255, 0.45); }
.breadcrumb i, .breadcrumb svg { color: rgba(255, 255, 255, 0.3); font-size: 0.7rem; }

/* ===== INNER SECTIONS ===== */
.inner-section {
    padding: 100px 0;
    background: var(--color-bg);
}

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

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.service-detail-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-detail-visual {
    padding: 48px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.service-detail-visual i {
    font-size: 6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.service-detail-visual:has(img) {
    padding: 0;
    overflow: hidden;
    min-height: 320px;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    position: relative;
    padding: 36px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-base);
}

.process-step:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.process-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-base);
}

.team-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.team-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.team-social a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Impact Stats */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.impact-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.impact-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.impact-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.value-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.value-card .value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition-base);
}

.faq-question i {
    color: var(--color-primary);
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Legal Pages */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content ul li {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    list-style-type: disc;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.case-study-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.case-study-card:hover::before { opacity: 1; }

.case-study-card:nth-child(1)::before { background: linear-gradient(90deg, #06b6d4, #10b981); }
.case-study-card:nth-child(2)::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.case-study-card:nth-child(3)::before { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.case-study-card:nth-child(4)::before { background: linear-gradient(90deg, #6366f1, #06b6d4); }

.case-study-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.case-study-featured .case-study-image {
    height: 100%;
    min-height: 280px;
}

.case-study-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-image svg {
    width: 100%;
    height: 100%;
}

.case-study-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-study-featured .case-study-content {
    padding: 28px;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cs-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.cs-tag-cyan {
    background: rgba(6, 182, 212, 0.08);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.12);
}

.cs-tag-amber {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.12);
}

.cs-tag-pink {
    background: rgba(236, 72, 153, 0.08);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.12);
}

.cs-tag-green {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.12);
}

.cs-tag-red {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.12);
}

.case-study-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.case-study-featured h3 {
    font-size: 1.35rem;
}

.case-study-card > .case-study-content > p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.case-study-metrics {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    margin-bottom: 16px;
}

.cs-metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.case-study-featured .cs-metric-value {
    font-size: 1.6rem;
}

.cs-metric-label {
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
    transition: gap 0.3s ease;
}

.case-study-card:hover .case-study-link {
    gap: 10px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background: var(--color-bg-alt);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.portfolio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.portfolio-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-thumb svg {
    width: 100%;
    height: 100%;
}

.portfolio-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-hover-overlay {
    opacity: 1;
}

.portfolio-view-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-view-btn {
    transform: scale(1);
}

.portfolio-info {
    padding: 20px 24px 24px;
}

.portfolio-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 6px;
    display: block;
}

.portfolio-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.portfolio-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
}

/* Portfolio filter (dedicated page) */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.portfolio-filter-btn {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.portfolio-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}

/* ===== CASE STUDY DETAIL PAGE ===== */
.cs-intro-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cs-intro-stat {
    text-align: center;
}

.cs-intro-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-intro-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.cs-detail-card {
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cs-detail-card:last-child {
    border-bottom: none;
}

.cs-detail-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: center;
}

.cs-detail-grid.reverse {
    grid-template-columns: 3fr 2fr;
}

.cs-detail-grid.reverse .cs-detail-visual {
    order: 2;
}

.cs-detail-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.cs-detail-visual svg {
    width: 100%;
    height: 100%;
}

.cs-detail-content .cs-tag {
    margin-bottom: 4px;
}

.cs-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}

.cs-industry-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-bottom: 20px;
    display: block;
}

.cs-detail-content h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 8px;
    margin-top: 20px;
}

.cs-detail-content h4:first-of-type {
    margin-top: 0;
}

.cs-detail-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.cs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.cs-metric-box {
    padding: 16px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cs-metric-box .cs-metric-value {
    font-size: 1.3rem;
}

.cs-metric-box .cs-metric-label {
    font-size: 0.7rem;
}

.cs-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cs-tech-pill {
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.section-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .mega-menu { display: none !important; }
    .nav-chevron { display: none; }
    .has-mega { position: relative; }
    .has-mega > a { pointer-events: auto; }

    .erp-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-container {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-stats { gap: 24px; padding: 24px 28px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid,
    .features-dark .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-dark { padding: 80px 0; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-card:not(:last-child)::after { display: none; }

    .process-grid,
    .team-grid,
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .service-detail { grid-template-columns: 1fr; gap: 40px; }
    .service-detail.reverse { direction: ltr; }

    .case-studies-grid { grid-template-columns: 1fr 1fr; }
    .case-study-featured { grid-column: span 2; grid-row: span 1; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-detail-grid,
    .cs-detail-grid.reverse { grid-template-columns: 1fr; gap: 32px; }
    .cs-detail-grid.reverse .cs-detail-visual { order: 0; }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 64px;
        --navbar-height: 64px;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.25rem;
        color: var(--color-text);
    }

    .hamburger { display: flex; }
    .btn-nav { display: none; }

    .services-grid,
    .features-grid,
    .features-dark .features-grid,
    .testimonials-grid,
    .erp-grid,
    .case-studies-grid,
    .portfolio-grid { grid-template-columns: 1fr; }

    .case-study-featured { grid-column: span 1; }

    .features-dark { padding: 64px 0; }
    .features-title { font-size: 1.75rem; }

    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }

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

    .scroll-indicator { display: none; }

    .hero-stats { flex-wrap: wrap; gap: 20px; padding: 20px 24px; }
    .hero-stat-divider { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .cta-wrapper { padding: 48px 24px; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }

    .page-header { padding: 140px 0 60px; }
    .process-grid, .team-grid, .impact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 16px; padding: 20px 16px; border-radius: 16px; }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-stat-label { font-size: 0.7rem; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ===== CURSOR HIDE ON MOBILE ===== */
@media (hover: none) {
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .preloader, .hero-bg, .scroll-indicator,
    .custom-cursor, .cursor-follower { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
    .section { padding: 40px 0; }
}
