/* ============================================
 * Lumecloud Solutions - Master Stylesheet
 * Premium design system with animations, 
 * glassmorphism, and dark mode support
 * ============================================ */

/* ─── CSS Custom Properties ─────────────────── */
:root {
    /* Brand Colors */
    --color-primary: #2E3192;
    --color-secondary: #8B2CBF;
    --color-accent: #D63384;
    --color-primary-light: #4A4ED4;
    --color-secondary-light: #A855F7;
    --color-accent-light: #EC4899;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #2E3192, #8B2CBF, #D63384);
    --gradient-brand-reverse: linear-gradient(135deg, #D63384, #8B2CBF, #2E3192);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --gradient-subtle: linear-gradient(135deg, rgba(46, 49, 146, 0.1), rgba(139, 44, 191, 0.1));
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 44, 191, 0.15), transparent 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(46, 49, 146, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(214, 51, 132, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(139, 44, 191, 0.1) 0px, transparent 50%);

    /* Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-strong: rgba(255, 255, 255, 0.85);

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    /* Borders */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-gradient: linear-gradient(135deg, rgba(46, 49, 146, 0.3), rgba(139, 44, 191, 0.3), rgba(214, 51, 132, 0.3));

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 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(139, 44, 191, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(139, 44, 191, 0.25);

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-cursor: 500;
    --z-loader: 600;
    --z-toast: 700;
}

/* ─── Dark Mode Variables ───────────────────── */
[data-theme="dark"] {
    --bg-primary: #09090b;
    --bg-secondary: #0f0f13;
    --bg-tertiary: #18181b;
    --bg-card: #111114;
    --bg-glass: rgba(17, 17, 20, 0.8);
    --bg-glass-strong: rgba(17, 17, 20, 0.92);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --text-inverse: #09090b;

    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 44, 191, 0.2);
    --shadow-glow-strong: 0 0 80px rgba(139, 44, 191, 0.3);

    --gradient-subtle: linear-gradient(135deg, rgba(46, 49, 146, 0.15), rgba(139, 44, 191, 0.15));
}

/* ─── Global Reset & Base ───────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    /* Flex column layout: main grows to fill, footer sits flush at bottom */
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ─── Skip Navigation (Accessibility) ───────── */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: var(--z-loader);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-nav:focus {
    top: 0;
}

/* ─── Custom Scrollbar ─────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ─── Selection ────────────────────────────── */
::selection {
    background: rgba(139, 44, 191, 0.25);
    color: var(--text-primary);
}

/* ─── Focus Indicators (Accessibility) ──────── */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

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

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

/* ─── Gradient Text ────────────────────────── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-reverse {
    background: var(--gradient-brand-reverse);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Glassmorphism ────────────────────────── */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
}

.glass-strong {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--border-medium);
}

/* ─── Gradient Border ──────────────────────── */
.gradient-border {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity var(--transition-base);
}

.gradient-border:hover::before {
    opacity: 0.8;
}

/* ─── Cards ────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 44, 191, 0.2);
}

.card-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ─── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:active::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 44, 191, 0.35);
}

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

.btn-secondary:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.05);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* ─── Animated Gradient Button ─────────────── */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─── Input Fields ─────────────────────────── */
.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.input-field:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(139, 44, 191, 0.1), var(--shadow-glow);
}

.input-field::placeholder {
    color: var(--text-tertiary);
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

textarea.input-field {
    resize: vertical;
    min-height: 140px;
}

/* ─── Badges ───────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: rgba(46, 49, 146, 0.1);
    color: var(--color-primary);
}

[data-theme="dark"] .badge-primary {
    background: rgba(46, 49, 146, 0.2);
    color: var(--color-primary-light);
}

.badge-accent {
    background: rgba(214, 51, 132, 0.1);
    color: var(--color-accent);
}

/* ─── Section Styles ───────────────────────── */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.container,
.container-narrow,
.container-wide {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}

/* ─── Scroll Progress Bar ──────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: var(--z-sticky);
    transition: width 50ms linear;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* ─── Page Loader ──────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: var(--z-loader);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-light);
    border-top-color: var(--color-secondary);
    border-right-color: var(--color-accent);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin-bottom: 2rem;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-height: 1.5em;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    margin-top: 1.5rem;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ─── Custom Cursor ────────────────────────── */
.custom-cursor {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99999 !important;
    background: transparent;
    border: 1.5px solid rgba(139, 44, 191, 0.6);
    box-shadow: 0 0 10px rgba(139, 44, 191, 0.2);
    opacity: 0;
    will-change: transform;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(139, 44, 191, 0.08);
    border-color: rgba(139, 44, 191, 0.4);
    box-shadow: 0 0 20px rgba(139, 44, 191, 0.3);
}

.custom-cursor-dot {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 100000 !important;
    background: var(--color-secondary);
    box-shadow: 0 0 6px var(--color-secondary);
    opacity: 0;
    will-change: transform;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .custom-cursor {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

[data-theme="dark"] .custom-cursor.cursor-hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

/* ─── Context Menu ─────────────────────────── */
.context-menu {
    position: fixed;
    z-index: var(--z-modal);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background: rgba(139, 44, 191, 0.1);
    color: var(--text-primary);
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.context-menu-separator {
    height: 1px;
    background: var(--border-light);
    margin: 0.375rem 0.5rem;
}

.context-menu-footer {
    padding: 0.5rem 0.875rem;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* ─── Navbar ───────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: padding var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar {
    border-bottom: 1px solid transparent;
}

[data-theme="dark"] .navbar.scrolled {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

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

.navbar-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
    background: rgba(139, 44, 191, 0.05);
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.mobile-nav a:hover {
    background: rgba(139, 44, 191, 0.1);
    color: var(--color-secondary);
}

/* ─── Hero Section ─────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

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

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 44, 191, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 44, 191, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

.hero-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: floatBlob 15s ease-in-out infinite;
    will-change: transform;
}

.hero-gradient-1 {
    background: radial-gradient(circle at center, rgba(46, 49, 146, 0.45) 0%, rgba(46, 49, 146, 0.15) 45%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero-gradient-2 {
    background: radial-gradient(circle at center, rgba(214, 51, 132, 0.35) 0%, rgba(214, 51, 132, 0.1) 45%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

.hero-gradient-3 {
    background: radial-gradient(circle at center, rgba(139, 44, 191, 0.4) 0%, rgba(139, 44, 191, 0.12) 45%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 44, 191, 0.08);
    border: 1px solid rgba(139, 44, 191, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    margin-bottom: 2rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

/* ─── Stats Bar ────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.stat-item {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(139, 44, 191, 0.06);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Code Window (Hero) ───────────────────── */
.code-window {
    background: #1a1a2e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .code-window {
    background: #0d0d14;
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window-dot:nth-child(1) {
    background: #ff5f56;
}

.code-window-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-window-dot:nth-child(3) {
    background: #27c93f;
}

.code-window-title {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
}

.code-window-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    overflow-x: auto;
}

.code-line-number {
    color: rgba(255, 255, 255, 0.2);
    margin-right: 1.5rem;
    user-select: none;
}

.code-keyword {
    color: #c678dd;
}

.code-string {
    color: #98c379;
}

.code-function {
    color: #61afef;
}

.code-comment {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.code-variable {
    color: #e5c07b;
}

.code-operator {
    color: #56b6c2;
}

/* ─── Service Cards ────────────────────────── */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(139, 44, 191, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(139, 44, 191, 0.08);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-brand);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.service-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 1rem;
}

.service-tech-item {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ─── Portfolio ─────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.portfolio-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    transition: opacity var(--transition-base);
}

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

.portfolio-card-body {
    padding: 1.5rem;
}

.portfolio-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.portfolio-card-body p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ─── Pricing Cards ────────────────────────── */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border-color: rgba(139, 44, 191, 0.3);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1.25rem;
    background: var(--gradient-brand);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-price-wrap {
    margin: 1.75rem 0 0.25rem;
}

.pricing-from-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
}

.pricing-amount-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
}

.pricing-currency {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.pricing-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-meta-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: #27c93f;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─── Timeline ─────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-brand);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-brand);
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.9375rem;
}

/* ─── Testimonials ─────────────────────────── */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.testimonial-text {
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.testimonial-info p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ─── Blog Cards ───────────────────────────── */
.blog-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.875rem;
}

/* ─── FAQ Accordion ────────────────────────── */
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active {
    border-color: rgba(139, 44, 191, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ─── CTA Section ──────────────────────────── */
.cta-section {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
}

.cta-section h2 {
    color: white;
    position: relative;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-section .btn {
    position: relative;
}

/* ─── Footer ───────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding: 5rem 0 3rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.05);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

.footer-newsletter {
    margin-top: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.footer-bottom-links a:hover {
    color: var(--color-secondary);
}

/* ─── Back to Top ──────────────────────────── */
.back-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.3s ease,
        box-shadow 0.3s ease;
    z-index: 9998 !important;
    box-shadow: 0 4px 20px rgba(139, 44, 191, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: var(--shadow-glow-strong);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ─── WhatsApp Floating Button ────────────── */
.whatsapp-btn {
    position: fixed !important;
    bottom: 2rem !important;
    left: 2rem !important;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 9998 !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 3s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* ─── Toast Notification ───────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 320px;
    max-width: 420px;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-spring);
}

.toast.active {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #27c93f;
}

.toast-error {
    border-left: 4px solid #ff5f56;
}

/* ─── Dark Mode Toggle ─────────────────────── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

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

/* ─── Noise Texture Overlay ────────────────── */
/* Subtle grain texture. Using minimal numOctaves for performance. */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.008;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ─── Animations ───────────────────────────── */
@keyframes floatBlob {

    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.03);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--color-secondary);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ─── Tech Marquee ─────────────────────────── */
.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 1;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

[data-theme="dark"] .marquee-container::before {
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

[data-theme="dark"] .marquee-container::after {
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-base);
}

.marquee-item:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ─── Page Header (Internal Pages) ─────────── */
.page-header {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
}

.page-header h1 {
    position: relative;
    margin-bottom: 1rem;
}

.page-header p {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    position: relative;
}

.breadcrumbs a {
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-secondary);
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
}

/* ─── Contact Info Cards ───────────────────── */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: rgba(139, 44, 191, 0.2);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(139, 44, 191, 0.08);
    color: var(--color-secondary);
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

/* ─── Blog Article ─────────────────────────── */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
}

.article-content pre {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-content blockquote {
    border-left: 3px solid var(--color-secondary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(139, 44, 191, 0.03);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

/* ─── Share Buttons ────────────────────────── */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    background: none;
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.05);
}

/* ─── Process/Workflow Steps ───────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(139, 44, 191, 0.08);
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
    background: var(--gradient-brand);
    color: white;
    transform: scale(1.1);
}

/* ─── Version Modal ────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* ─── 404 Page ─────────────────────────────── */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 h1 {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
}

/* ─── Filter Tabs ──────────────────────────── */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.filter-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.filter-tab:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.filter-tab.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
}

/* ─── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ─── Page Header (Inner Pages) ────────────── */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-mesh), var(--bg-primary);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 44, 191, 0.08), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.0625rem;
    position: relative;
}

/* ─── Breadcrumbs ──────────────────────────── */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    position: relative;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-secondary);
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ─── Contact Cards ────────────────────────── */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: rgba(139, 44, 191, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: rgba(139, 44, 191, 0.08);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

/* ─── Filter Tabs (Portfolio) ──────────────── */
.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-tab:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.04);
}

.filter-tab.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 44, 191, 0.3);
}

/* ─── Article Content (Blog / Legal) ───────── */
.article-content {
    padding: 3rem;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

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

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--color-secondary-light);
}

.article-content blockquote {
    border-left: 3px solid var(--color-secondary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(139, 44, 191, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-accent);
}

/* ─── Share Buttons ────────────────────────── */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.share-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.05);
    transform: translateY(-2px);
}

/* ─── 404 Page ─────────────────────────────── */
.page-404 h1 {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .navbar-links {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .page-header {
        padding: 8rem 0 3rem;
    }
}

@media (max-width: 768px) {

    .container,
    .container-narrow,
    .container-wide {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .navbar-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

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

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

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }

    .whatsapp-btn {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .page-header {
        padding: 7rem 0 2.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .section {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }
}

/* ─── Print Styles ─────────────────────────── */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .whatsapp-btn,
    .custom-cursor,
    .custom-cursor-dot,
    .context-menu,
    .loader-overlay,
    .noise-overlay,
    .scroll-progress {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 2rem 0;
    }
}

/* ─── Social Share Brand Styles ────────────── */
.share-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: #25D366 !important;
    color: #25D366 !important;
}

.share-btn-facebook:hover {
    background: rgba(24, 119, 242, 0.15) !important;
    border-color: #1877F2 !important;
    color: #1877F2 !important;
}

.share-btn-twitter:hover {
    background: rgba(0, 0, 0, 0.15) !important;
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.share-btn-linkedin:hover {
    background: rgba(10, 102, 194, 0.15) !important;
    border-color: #0A66C2 !important;
    color: #0A66C2 !important;
}

.share-btn-telegram:hover {
    background: rgba(34, 158, 217, 0.15) !important;
    border-color: #229ED9 !important;
    color: #229ED9 !important;
}

.share-btn-instagram:hover {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.15), rgba(230, 68, 85, 0.15), rgba(220, 39, 67, 0.15)) !important;
    border-color: #E4405F !important;
    color: #E4405F !important;
}

.share-btn-copy:hover {
    background: rgba(139, 44, 191, 0.15) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

/* ─── Footer Contact Line-Break Fix ───────── */
.footer-contact-list li {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    white-space: nowrap !important;
}

.footer-contact-list li svg {
    flex-shrink: 0 !important;
}

.footer-contact-list li a,
.footer-contact-list li span {
    white-space: nowrap !important;
}

/* ─── Contact Form Template Validation & Live Checklist ─── */
.template-checklist-container {
    background: linear-gradient(135deg, rgba(139, 44, 191, 0.07), rgba(46, 49, 146, 0.05));
    border: 1px solid rgba(139, 44, 191, 0.22);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-base);
}

[data-theme="dark"] .template-checklist-container {
    background: linear-gradient(135deg, rgba(139, 44, 191, 0.15), rgba(46, 49, 146, 0.12));
    border-color: rgba(139, 44, 191, 0.35);
}

.template-checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.template-checklist-header span.checklist-title {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-secondary);
}

[data-theme="dark"] .template-checklist-header span.checklist-title {
    color: #c084fc;
}

.template-checklist-badge {
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.template-checklist-badge.all-complete {
    background: rgba(39, 201, 63, 0.15);
    color: #27c93f;
    border-color: rgba(39, 201, 63, 0.3);
}

.template-checklist-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checklist-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.checklist-pill:hover {
    transform: translateY(-1px);
    border-color: var(--color-secondary);
    color: var(--text-primary);
}

.checklist-pill .pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

/* Pill Complete State */
.checklist-pill.is-complete {
    background: rgba(39, 201, 63, 0.12);
    border-color: rgba(39, 201, 63, 0.4);
    color: #22c55e;
}

[data-theme="dark"] .checklist-pill.is-complete {
    background: rgba(39, 201, 63, 0.2);
    color: #4ade80;
    border-color: rgba(39, 201, 63, 0.5);
}

.checklist-pill.is-complete .pill-icon {
    background: #22c55e;
    color: #ffffff;
}

/* Pill Missing / Warning State */
.checklist-pill.is-missing {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    animation: pillPulse 2s infinite ease-in-out;
}

.checklist-pill.is-missing .pill-icon {
    background: #ef4444;
    color: #ffffff;
}

@keyframes pillPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
}

/* Field Validation UI */
.input-field.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-field.is-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.field-error-msg {
    display: none !important;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.775rem;
    color: #ef4444;
    margin-top: 0.375rem;
    font-weight: 500;
}

.field-error-msg.visible {
    display: flex !important;
    animation: slideDownFade 0.25s ease forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Attention Shake Effect */
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.shake {
    animation: fieldShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

/* ─── AI Smart Suggestions Assistant ─── */
.ai-suggestions-container {
    background: linear-gradient(135deg, rgba(139, 44, 191, 0.08), rgba(46, 49, 146, 0.05));
    border: 1px solid rgba(139, 44, 191, 0.25);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    position: relative;
    transition: all var(--transition-base);
}

[data-theme="dark"] .ai-suggestions-container {
    background: linear-gradient(135deg, rgba(139, 44, 191, 0.16), rgba(46, 49, 146, 0.12));
    border-color: rgba(139, 44, 191, 0.4);
}

.ai-suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-sparkle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b2cbf, #2e3192);
    color: #fff;
    font-size: 0.7rem;
    box-shadow: 0 0 8px rgba(139, 44, 191, 0.4);
    animation: sparklePulse 2.5s infinite;
}

@keyframes sparklePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 44, 191, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 2px rgba(139, 44, 191, 0.6);
    }
}

.ai-context-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-secondary);
}

[data-theme="dark"] .ai-context-label {
    color: #c084fc;
}

.ai-header-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ai-filter-tab {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--color-secondary);
}

.ai-filter-tab.active {
    background: rgba(139, 44, 191, 0.18);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

[data-theme="dark"] .ai-filter-tab.active {
    color: #e9d5ff;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.25);
}

.ai-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px dashed var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-shuffle-btn:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background: rgba(139, 44, 191, 0.08);
}

.ai-shuffle-btn.is-spinning svg {
    animation: rotateShuffle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.ai-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chips-grid.is-refreshing {
    opacity: 0.3;
    transform: translateY(3px);
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.ai-chip:hover {
    transform: translateY(-2px);
    border-color: var(--color-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(139, 44, 191, 0.15);
}

[data-theme="dark"] .ai-chip:hover {
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.ai-chip .ai-chip-tag {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ai-chip.is-added {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #22c55e !important;
    pointer-events: none;
    transform: scale(0.98);
}

.ai-chip.is-added .ai-chip-tag {
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

/* Quick Fill Suggestions Chips */
.quick-fill-chips {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.quick-chip {
    font-size: 0.725rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-chip:hover {
    background: rgba(139, 44, 191, 0.1);
    border-color: var(--color-secondary);
    color: var(--text-primary);
    border-style: solid;
}

/* ─── Validation Alert Banner & Action Tags ─── */
.validation-alert-banner {
    display: none !important;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
    position: relative;
    animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .validation-alert-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.12));
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.2);
}

.validation-alert-banner.visible {
    display: block !important;
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.validation-alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .validation-alert-header {
    color: #f87171;
}

.validation-alert-body {
    font-size: 0.835rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

.validation-alert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.validation-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    cursor: pointer;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .validation-action-tag {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.validation-action-tag:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}