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

:root {
    /* Color Palette - Professional & Clean */
    --color-brand: #2563eb;
    /* Royal Blue */
    --color-brand-dark: #1d4ed8;
    /* Darker Blue */
    --color-brand-light: #60a5fa;
    /* Lighter Blue */

    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    /* Slate 50 */
    --color-bg-tertiary: #f1f5f9;
    /* Slate 100 */

    --color-text-primary: #0f172a;
    /* Slate 900 */
    --color-text-secondary: #475569;
    /* Slate 600 */
    --color-text-tertiary: #64748b;
    /* Slate 500 */

    --color-border: #e2e8f0;
    /* Slate 200 */
    --color-border-hover: #cbd5e1;
    /* Slate 300 */
}

.dark {
    /* Dark Mode Palette */
    --color-brand: #3b82f6;
    --color-brand-dark: #2563eb;
    --color-brand-light: #60a5fa;

    --color-bg-primary: #0f172a;
    /* Slate 900 */
    --color-bg-secondary: #1e293b;
    /* Slate 800 */
    --color-bg-tertiary: #334155;
    /* Slate 700 */

    --color-text-primary: #f8fafc;
    /* Slate 50 */
    --color-text-secondary: #cbd5e1;
    /* Slate 300 */
    --color-text-tertiary: #94a3b8;
    /* Slate 400 */

    --color-border: #334155;
    /* Slate 700 */
    --color-border-hover: #475569;
    /* Slate 600 */
}

/* Base Reset & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Utilities */
.text-balance {
    text-wrap: balance;
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-text-primary);
    /* Black/White pivot */
    color: var(--color-bg-primary);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: var(--color-brand);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
}

/* Feature Cards (Clean) */
.feature-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-brand);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image Wrappers */
.img-wrap-rounded {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
}

.img-wrap-rounded img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: auto;
    display: block;
}

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

/* Gradients (Subtle) */
.bg-subtle-gradient {
    background: linear-gradient(to bottom right, var(--color-bg-secondary), var(--color-bg-primary));
}

/* Scroll Reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Grid Pattern for Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--color-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

.animate-modal-in {
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

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

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}