/* ==========================================================================
   PROJECTHUB - Premium Project Management SaaS Template
   A $50+ Premium Template with Task Purple, Progress Green & Deadline Orange
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Brand Colors - Task Purple (Primary) */
    --color-purple-50: #faf5ff;
    --color-purple-100: #f3e8ff;
    --color-purple-200: #e9d5ff;
    --color-purple-300: #d8b4fe;
    --color-purple-400: #c084fc;
    --color-purple-500: #a855f7;
    --color-purple-600: #9333ea;
    --color-purple-700: #7c3aed;  /* Primary Brand Color */
    --color-purple-800: #6b21a8;
    --color-purple-900: #581c87;

    /* Progress Green (Success/Complete) */
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-200: #bbf7d0;
    --color-green-300: #86efac;
    --color-green-400: #4ade80;
    --color-green-500: #22c55e;  /* Progress Green */
    --color-green-600: #16a34a;
    --color-green-700: #15803d;
    --color-green-800: #166534;
    --color-green-900: #14532d;

    /* Deadline Orange (Warning/Urgent) */
    --color-orange-50: #fff7ed;
    --color-orange-100: #ffedd5;
    --color-orange-200: #fed7aa;
    --color-orange-300: #fdba74;
    --color-orange-400: #fb923c;
    --color-orange-500: #f97316;  /* Deadline Orange */
    --color-orange-600: #ea580c;
    --color-orange-700: #c2410c;
    --color-orange-800: #9a3412;
    --color-orange-900: #7c2d12;

    /* Slate - Clean Modern Neutrals */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f97316;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Typography Scale - Fluid Responsive */
    --text-hero: clamp(3rem, 8vw, 5rem);
    --text-display: clamp(2.5rem, 5vw, 4rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: 1.125rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Spacing Scale - 8px Base Unit */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

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

    /* Shadows - Refined for Premium Feel */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Glow Effects */
    --glow-purple: 0 0 60px rgba(124, 58, 237, 0.35);
    --glow-purple-lg: 0 0 100px rgba(124, 58, 237, 0.4);
    --glow-green: 0 0 60px rgba(34, 197, 94, 0.35);
    --glow-orange: 0 0 60px rgba(249, 115, 22, 0.35);
    --glow-gradient: 0 0 80px rgba(124, 58, 237, 0.25), 0 0 60px rgba(34, 197, 94, 0.2);

    /* 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-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal-backdrop: 40;
    --z-modal: 50;
    --z-popover: 60;
    --z-tooltip: 70;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-purple-700) 50%, var(--color-purple-800) 100%);
    --gradient-purple-green: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-green-500) 100%);
    --gradient-productivity: linear-gradient(135deg, var(--color-purple-700) 0%, var(--color-purple-500) 50%, var(--color-green-500) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-purple-700) 0%, var(--color-purple-600) 40%, var(--color-purple-500) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(34, 197, 94, 0.12) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(249, 115, 22, 0.1) 0px, transparent 50%),
                     radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.1) 0px, transparent 50%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);

    /* Light Mode Theme Colors */
    --color-bg: #ffffff;
    --color-bg-subtle: var(--color-slate-50);
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    --color-text-primary: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-600);
    --color-text-tertiary: var(--color-slate-500);
    --color-text-muted: var(--color-slate-400);
    --color-border: var(--color-slate-200);
    --color-border-subtle: var(--color-slate-100);
}

/* Dark Mode */
[data-theme="dark"] {
    --color-text: #F1F5F9;
    --color-text-muted: #94A3B8;
    --color-background: #0a0a0a;
    --color-surface: #171717;
    --color-border: #262626;
    --color-card: #171717;
}
[data-theme="dark"] body { background: var(--color-background); color: var(--color-text); }
[data-theme="dark"] .bg-white { background: var(--color-card) !important; }
[data-theme="dark"] .bg-gray-50 { background: var(--color-surface) !important; }
[data-theme="dark"] .bg-gray-100 { background: #262626 !important; }
[data-theme="dark"] .text-gray-900 { color: var(--color-text) !important; }
[data-theme="dark"] .text-gray-700 { color: #CBD5E1 !important; }
[data-theme="dark"] .text-gray-600 { color: var(--color-text-muted) !important; }
[data-theme="dark"] .border-gray-200 { border-color: var(--color-border) !important; }
[data-theme="dark"] nav { background: rgba(10, 10, 10, 0.9) !important; }
[data-theme="dark"] footer { background: #0a0a0a !important; }
[data-theme="dark"] input, [data-theme="dark"] textarea { background: var(--color-surface) !important; color: var(--color-text) !important; }
[data-theme="dark"] .card { background: var(--color-card) !important; }
.nav-link { padding: 0.5rem 1rem; font-weight: 500; color: #64748B; }
.nav-link:hover { color: #1E293B; }
[data-theme="dark"] .nav-link { color: #94A3B8; }
[data-theme="dark"] .nav-link:hover { color: #F1F5F9; }

/* Dark Mode Variables */
.dark {
    --color-bg: #0a0a0f;
    --color-bg-subtle: #12121a;
    --color-surface: #16161f;
    --color-surface-elevated: #1e1e2a;
    --color-text-primary: var(--color-slate-50);
    --color-text-secondary: var(--color-slate-300);
    --color-text-tertiary: var(--color-slate-400);
    --color-text-muted: var(--color-slate-500);
    --color-border: #2a2a3a;
    --color-border-subtle: #1e1e2a;

    --glass-bg: rgba(22, 22, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px 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.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--text-body);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

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

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

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all var(--transition-smooth);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--transition-smooth);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-smooth);
}

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

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger delays */
.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; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ==========================================================================
   HOVER ANIMATIONS
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.hover-lift-sm {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

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

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

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

/* ==========================================================================
   CONTINUOUS ANIMATIONS
   ========================================================================== */

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pulse-ring {
    animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-bounce-subtle {
    animation: subtle-bounce 2s ease-in-out infinite;
}

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

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

@keyframes task-complete {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(-45deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.animate-task-complete {
    animation: task-complete 0.5s ease-out forwards;
}

@keyframes progress-fill {
    0% { width: 0%; }
}

.animate-progress {
    animation: progress-fill 1.5s ease-out forwards;
}

@keyframes slide-in-right {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out forwards;
}

@keyframes card-pop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-card-pop {
    animation: card-pop 0.4s ease-out forwards;
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.glass-purple {
    background: rgba(124, 58, 237, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ==========================================================================
   BACKGROUND EFFECTS
   ========================================================================== */

.bg-gradient-mesh {
    background: var(--gradient-mesh);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-productivity {
    background: var(--gradient-productivity);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.bg-grid {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.dark .bg-grid {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
}

.bg-dots {
    background-image: radial-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dark .bg-dots {
    background-image: radial-gradient(rgba(124, 58, 237, 0.2) 1px, transparent 1px);
}

/* ==========================================================================
   KANBAN BOARD MOCKUP
   ========================================================================== */

.kanban-board {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-4);
}

.kanban-column {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
}

.dark .kanban-column {
    background: var(--color-surface-elevated);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-semibold);
    font-size: var(--text-small);
}

.kanban-column-count {
    background: var(--color-bg-subtle);
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.kanban-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    cursor: grab;
    transition: all var(--transition-base);
    position: relative;
}

.dark .kanban-card {
    background: var(--color-surface);
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-purple-300);
}

.dark .kanban-card:hover {
    border-color: var(--color-purple-600);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.6;
    transform: rotate(2deg) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Task priority indicators */
.priority-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.priority-high .priority-indicator { background: var(--color-error); }
.priority-medium .priority-indicator { background: var(--color-orange-500); }
.priority-low .priority-indicator { background: var(--color-green-500); }

.task-title {
    font-weight: var(--font-medium);
    font-size: var(--text-small);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.task-description {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-assignees {
    display: flex;
    margin-left: -6px;
}

.task-assignee {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    margin-left: -6px;
}

.task-due-date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.task-due-date.overdue {
    color: var(--color-error);
}

.task-due-date.due-soon {
    color: var(--color-orange-500);
}

.task-tag {
    font-size: 10px;
    font-weight: var(--font-medium);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-tag-design {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-purple-600);
}

.dark .task-tag-design {
    background: rgba(124, 58, 237, 0.2);
    color: var(--color-purple-400);
}

.task-tag-dev {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-green-600);
}

.dark .task-tag-dev {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-green-400);
}

.task-tag-urgent {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-orange-600);
}

.dark .task-tag-urgent {
    background: rgba(249, 115, 22, 0.2);
    color: var(--color-orange-400);
}

/* ==========================================================================
   GANTT CHART PREVIEW
   ========================================================================== */

.gantt-preview {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    overflow: hidden;
}

.dark .gantt-preview {
    background: var(--color-surface-elevated);
}

.gantt-header {
    display: grid;
    grid-template-columns: 200px repeat(7, 1fr);
    gap: 0;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: var(--space-3);
}

.gantt-header-item {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-tertiary);
    text-align: center;
}

.gantt-header-item:first-child {
    text-align: left;
}

.gantt-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.gantt-task-name {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gantt-bar-container {
    position: relative;
    height: 28px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
}

.gantt-bar {
    position: absolute;
    height: 100%;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: white;
    transition: width 1s ease-out;
}

.gantt-bar-purple { background: var(--gradient-primary); }
.gantt-bar-green { background: linear-gradient(135deg, var(--color-green-500), var(--color-green-600)); }
.gantt-bar-orange { background: linear-gradient(135deg, var(--color-orange-400), var(--color-orange-500)); }

.gantt-milestone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-purple-500);
    transform: rotate(45deg);
    top: 50%;
    margin-top: -6px;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PROGRESS INDICATORS
   ========================================================================== */

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 1s ease;
}

.progress-bar {
    height: 8px;
    background: var(--color-slate-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dark .progress-bar {
    background: var(--color-slate-700);
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.progress-bar-purple {
    background: var(--gradient-primary);
}

.progress-bar-green {
    background: linear-gradient(135deg, var(--color-green-400), var(--color-green-500));
}

.progress-bar-gradient {
    background: var(--gradient-productivity);
}

/* ==========================================================================
   TEAM COLLABORATION
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.team-member {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.dark .team-member {
    background: var(--color-surface-elevated);
}

.team-member:hover {
    border-color: var(--color-purple-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dark .team-member:hover {
    border-color: var(--color-purple-600);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    position: relative;
}

.team-avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
}

.team-avatar-status.online { background: var(--color-green-500); }
.team-avatar-status.away { background: var(--color-orange-500); }
.team-avatar-status.offline { background: var(--color-slate-400); }

.team-name {
    font-weight: var(--font-semibold);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-3);
}

.team-tasks {
    font-size: var(--text-xs);
    color: var(--color-purple-600);
    font-weight: var(--font-medium);
}

.dark .team-tasks {
    color: var(--color-purple-400);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.activity-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.dark .activity-item {
    background: var(--color-surface-elevated);
}

.activity-item:hover {
    border-color: var(--color-purple-300);
}

.dark .activity-item:hover {
    border-color: var(--color-purple-600);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.activity-text strong {
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
}

.activity-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: var(--font-semibold);
    font-size: var(--text-small);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body);
    border-radius: var(--radius-2xl);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg), 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--glow-purple);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-purple-300);
    transform: translateY(-2px);
}

.dark .btn-secondary {
    background: var(--color-surface-elevated);
}

.dark .btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-purple-600);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
    color: var(--color-purple-600);
    background: rgba(124, 58, 237, 0.1);
}

.dark .btn-ghost:hover {
    color: var(--color-purple-400);
    background: rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-blur {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-purple-600);
    background: rgba(124, 58, 237, 0.08);
}

.dark .nav-link:hover {
    color: var(--color-purple-400);
    background: rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   PRICING TOGGLE
   ========================================================================== */

.pricing-toggle {
    position: relative;
    display: inline-flex;
    background: var(--color-slate-100);
    border-radius: var(--radius-full);
    padding: 4px;
}

.dark .pricing-toggle {
    background: var(--color-surface-elevated);
}

.pricing-toggle button {
    position: relative;
    z-index: 2;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-small);
    cursor: pointer;
    transition: color var(--transition-base);
}

.pricing-toggle button.active {
    color: white;
}

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
    z-index: 1;
}

.pricing-toggle-slider.yearly {
    transform: translateX(100%);
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.dark .pricing-card {
    background: var(--color-surface-elevated);
}

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

.dark .pricing-card:hover {
    border-color: var(--color-purple-600);
}

.pricing-card.featured {
    border: 2px solid var(--color-purple-500);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: 4px 16px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.dark .feature-card {
    background: var(--color-surface-elevated);
}

.feature-card:hover {
    border-color: var(--color-purple-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.dark .feature-card:hover {
    border-color: var(--color-purple-600);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.feature-icon-purple {
    background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-600));
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25);
}

.feature-icon-green {
    background: linear-gradient(135deg, var(--color-green-400), var(--color-green-500));
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.25);
}

.feature-icon-orange {
    background: linear-gradient(135deg, var(--color-orange-400), var(--color-orange-500));
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-4);
}

.integration-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.dark .integration-item {
    background: var(--color-surface-elevated);
}

.integration-item:hover {
    border-color: var(--color-purple-300);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.dark .integration-item:hover {
    border-color: var(--color-purple-600);
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.dark .testimonial-card {
    background: var(--color-surface-elevated);
}

.testimonial-card:hover {
    border-color: var(--color-purple-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.dark .testimonial-card:hover {
    border-color: var(--color-purple-600);
}

.testimonial-quote {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.testimonial-name {
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.testimonial-role {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stat-card {
    text-align: center;
    padding: var(--space-6);
}

.stat-value {
    font-size: var(--text-display);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-purple-300);
}

.dark .faq-item:hover {
    border-color: var(--color-purple-600);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    cursor: pointer;
    background: var(--color-surface);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.dark .faq-question {
    background: var(--color-surface-elevated);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
}

.faq-icon.rotate-45 {
    transform: rotate(45deg);
}

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

.faq-answer.active {
    max-height: 500px;
    padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

.sr-only:focus {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    width: auto;
    height: auto;
    padding: var(--space-4);
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 2px solid var(--color-purple-500);
    border-radius: var(--radius-lg);
    z-index: 9999;
    clip: auto;
}

*:focus-visible {
    outline: 2px solid var(--color-purple-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: var(--color-purple-500);
    color: white;
}

::-moz-selection {
    background: var(--color-purple-500);
    color: white;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-subtle);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--color-slate-600);
}

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

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .animate-float,
    .animate-float-slow,
    .animate-float-delayed,
    .pulse-ring,
    .animate-gradient,
    .animate-bounce-subtle,
    .animate-rotate-slow {
        animation: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    img {
        page-break-inside: avoid;
    }

    h2, h3, p {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    nav, footer {
        display: none;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

#mobile-menu.active {
    max-height: 500px;
}

/* ==========================================================================
   DASHBOARD MOCKUP
   ========================================================================== */

.dashboard-mockup {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.dark .dashboard-mockup {
    background: var(--color-surface-elevated);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
}

.dark .dashboard-header {
    background: var(--color-surface);
}

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

.dashboard-dot.red { background: #ff5f57; }
.dashboard-dot.yellow { background: #febc2e; }
.dashboard-dot.green { background: #28c840; }

.dashboard-content {
    padding: var(--space-6);
}

/* ==========================================================================
   LOGO CLOUD
   ========================================================================== */

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0.6;
}

.dark .logo-cloud {
    opacity: 0.4;
}

.logo-cloud-item {
    font-size: var(--text-h3);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    transition: opacity var(--transition-base);
}

.logo-cloud-item:hover {
    opacity: 0.8;
}
