/* ============================================
   ActProof.ai - Custom CSS (No Tailwind)
   Modern, Professional, Animated Design
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #8b5cf6;
    --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-white: #ffffff;
    --color-indigo-600: #4f46e5;
    --color-indigo-700: #4338ca;
    --spacing-unit: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-white);
    color: var(--color-slate-900);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Animated Background - Professional & Modern
   ============================================ */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: gradient-shift 25s ease infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 40s linear infinite;
    opacity: 0.6;
}

@keyframes gradient-shift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(40px, -40px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translate(-40px, 40px) scale(0.95);
        opacity: 0.85;
    }
    75% {
        transform: translate(30px, 30px) scale(1.02);
        opacity: 0.95;
    }
}

@keyframes grid-drift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* Floating particles - subtle and professional */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    animation: float-particle 20s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 55%;
    right: 10%;
    animation-delay: 7s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    width: 280px;
    height: 280px;
    bottom: 15%;
    left: 15%;
    animation-delay: 14s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 35%;
    right: 25%;
    animation-delay: 10s;
    animation-duration: 28s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(60px, -60px) scale(1.08);
        opacity: 0.35;
    }
    50% {
        transform: translate(-40px, 40px) scale(0.92);
        opacity: 0.25;
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
        opacity: 0.4;
    }
}

/* Animated gradient lines */
.animated-bg .gradient-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: line-move 15s linear infinite;
}

.animated-bg .gradient-line:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.animated-bg .gradient-line:nth-child(2) {
    left: 60%;
    animation-delay: 5s;
}

.animated-bg .gradient-line:nth-child(3) {
    left: 80%;
    animation-delay: 10s;
}

@keyframes line-move {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ============================================
   Layout & Container
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

@media (min-width: 640px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-slate-200);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

nav {
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--color-slate-700);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-slate-900);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--color-slate-100);
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
    margin-left: calc(var(--spacing-unit) * 1);
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--color-slate-500);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--color-slate-900);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:not(.active):hover {
    color: var(--color-slate-900);
    background: rgba(30, 41, 59, 0.1);
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .mobile-lang {
        display: none;
    }
}

/* ============================================
   Sections
   ============================================ */

section {
    position: relative;
    padding: calc(var(--spacing-unit) * 6) 0;
}

@media (min-width: 1024px) {
    section {
        padding: calc(var(--spacing-unit) * 8) 0;
    }
}

.section-bg-white {
    background: var(--color-white);
}

.section-bg-light {
    background: var(--color-slate-50);
}

.section-bg-dark {
    background: var(--color-slate-900);
    color: var(--color-white);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-slate-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--color-slate-600);
}

.text-center {
    text-align: center;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.uppercase {
    text-transform: uppercase;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-slate-900);
    color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--color-slate-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-slate-900);
    border: 1px solid var(--color-slate-300);
}

.btn-secondary:hover {
    border-color: var(--color-slate-400);
    background: var(--color-slate-50);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-slate-900);
}

.btn-white:hover {
    background: var(--color-slate-100);
}

.btn-full {
    width: 100%;
}

/* Button Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-slate-200);
    padding: calc(var(--spacing-unit) * 1.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-slate-300);
}

.feature-card {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-slate-200);
    padding: calc(var(--spacing-unit) * 1.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-slate-300);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 1.5);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .grid-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-md-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-md-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-lg-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Combined grid classes - responsive */
.grid-md-2.grid-lg-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .grid-md-2.grid-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-md-2.grid-lg-3 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .grid-md-2.grid-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-lg-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Flexbox Utilities
   ============================================ */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

.gap-12 {
    gap: 48px;
}

/* ============================================
   Spacing
   ============================================ */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-12 {
    margin-bottom: 48px;
}

.mb-16 {
    margin-bottom: 64px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 40px;
}

.p-4 {
    padding: 16px;
}

.p-5 {
    padding: 20px;
}

.p-6 {
    padding: 24px;
}

.p-8 {
    padding: 32px;
}

.p-10 {
    padding: 40px;
}

.p-12 {
    padding: 48px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.px-8 {
    padding-left: 32px;
    padding-right: 32px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.py-1\.5 {
    padding-top: 6px;
    padding-bottom: 6px;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-3\.5 {
    padding-top: 14px;
    padding-bottom: 14px;
}

.py-5 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-12 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.py-16 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.py-24 {
    padding-top: 96px;
    padding-bottom: 96px;
}

.pt-32 {
    padding-top: 128px;
}

.pb-20 {
    padding-bottom: 80px;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-slate-900);
    margin-bottom: 8px;
}

.input-modern,
textarea.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-slate-300);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-slate-900);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-modern:focus,
textarea.input-modern:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.input-modern:hover {
    border-color: var(--color-slate-400);
}

textarea.input-modern {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Badges & Tags
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-slate-100);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Icons & Images
   ============================================ */

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--color-slate-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-box-sm {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

/* ============================================
   Animations
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.w-full {
    width: 100%;
}

.h-8 {
    height: 32px;
}

.h-10 {
    height: 40px;
}

.h-12 {
    height: 48px;
}

.h-14 {
    height: 56px;
}

.h-16 {
    height: 64px;
}

.h-32 {
    height: 128px;
}

.w-8 {
    width: 32px;
}

.w-10 {
    width: 40px;
}

.w-12 {
    width: 48px;
}

.w-14 {
    width: 56px;
}

.w-16 {
    width: 64px;
}

.w-32 {
    width: 128px;
}

.w-auto {
    width: auto;
}

.h-auto {
    height: auto;
}

.rounded {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border: 1px solid var(--color-slate-200);
}

.border-b {
    border-bottom: 1px solid var(--color-slate-200);
}

.border-t {
    border-top: 1px solid var(--color-slate-800);
}

.border-y {
    border-top: 1px solid var(--color-slate-200);
    border-bottom: 1px solid var(--color-slate-200);
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.opacity-30 {
    opacity: 0.3;
}

.overflow-hidden {
    overflow: hidden;
}

/* ============================================
   Colors
   ============================================ */

.text-slate-300 {
    color: var(--color-slate-300);
}

.text-slate-400 {
    color: var(--color-slate-400);
}

.text-slate-500 {
    color: var(--color-slate-500);
}

.text-slate-600 {
    color: var(--color-slate-600);
}

.text-slate-700 {
    color: var(--color-slate-700);
}

.text-slate-900 {
    color: var(--color-slate-900);
}

.text-white {
    color: var(--color-white);
}

.text-indigo-600 {
    color: var(--color-indigo-600);
}

.text-indigo-700 {
    color: var(--color-indigo-700);
}

.bg-white {
    background: var(--color-white);
}

.bg-slate-50 {
    background: var(--color-slate-50);
}

.bg-slate-100 {
    background: var(--color-slate-100);
}

.bg-slate-900 {
    background: var(--color-slate-900);
}

.bg-slate-50 {
    background: var(--color-slate-50);
}

/* ============================================
   Form Messages
   ============================================ */

.form-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.form-message.success {
    display: block !important;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.form-message.error {
    display: block !important;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* ============================================
   Loading Spinner
   ============================================ */

.btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 1.2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-500);
}

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hidden-md {
        display: none;
    }
}

/* ============================================
   Additional Dynamic Animations
   ============================================ */

/* Pulse animation for badges */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.badge {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Card entrance animation */
@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-card {
    animation: card-entrance 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth hover transitions */
.card,
.feature-card,
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation on hover */
.icon-box {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Text gradient animation */
@keyframes gradient-text-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradient-text-shift 5s ease infinite;
}

/* Smooth section transitions */
section {
    transition: opacity 0.6s ease-out;
}

/* ============================================
   Dynamic Interactive Elements
   ============================================ */

/* Animated underline for links */
.nav-link,
a[href^="#"] {
    position: relative;
}

.nav-link::after,
a[href^="#"]:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
a[href^="#"]:not(.btn):hover::after {
    width: 100%;
}

/* Card glow effect on hover */
.feature-card:hover {
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

/* Button hover lift effect */
.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Icon pulse animation */
@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.icon-box {
    animation: icon-pulse 3s ease-in-out infinite;
}

.feature-card:hover .icon-box {
    animation: none;
}

/* Text shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gradient-text {
    background-size: 200% auto;
    animation: gradient-text-shift 5s ease infinite, shimmer 3s ease infinite;
}

/* Section background fade */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

section:hover::before {
    opacity: 1;
}

section > * {
    position: relative;
    z-index: 1;
}

/* Smooth number counter animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state animation */
@keyframes loading-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Parallax scroll effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Smooth reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Rotate animation */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Scale pulse */
@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-scale {
    animation: scale-pulse 2s ease-in-out infinite;
}

/* ============================================
   Aspect Ratio
   ============================================ */

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* ============================================
   Space Utilities
   ============================================ */

.space-y-3 > * + * {
    margin-top: 12px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.space-y-6 > * + * {
    margin-top: 24px;
}

/* ============================================
   Link Styles
   ============================================ */

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-indigo-600);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--color-slate-900);
    color: var(--color-white);
    padding: calc(var(--spacing-unit) * 4) 0;
}

footer h4 {
    color: var(--color-white);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

footer a {
    color: var(--color-slate-400);
}

footer a:hover {
    color: var(--color-white);
}

footer img {
    filter: brightness(0) invert(1);
}

/* ============================================
   Sticky Elements
   ============================================ */

.sticky {
    position: sticky;
}

.top-24 {
    top: 96px;
}

/* ============================================
   Hover Effects
   ============================================ */

.hover\:bg-slate-50:hover {
    background: var(--color-slate-50);
}

.hover\:bg-slate-100:hover {
    background: var(--color-slate-100);
}

.hover\:bg-slate-800:hover {
    background: var(--color-slate-800);
}

.hover\:border-slate-300:hover {
    border-color: var(--color-slate-300);
}

.hover\:border-slate-400:hover {
    border-color: var(--color-slate-400);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hover\:text-indigo-600:hover {
    color: var(--color-indigo-600);
}

.hover\:text-indigo-700:hover {
    color: var(--color-indigo-700);
}

.hover\:text-white:hover {
    color: var(--color-white);
}

.transition-colors {
    transition: color 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ============================================
   Inline Flex
   ============================================ */

.inline-flex {
    display: inline-flex;
}

/* ============================================
   Block Display
   ============================================ */

.block {
    display: block;
}

/* ============================================
   SVG Sizing
   ============================================ */

svg {
    width: 1em;
    height: 1em;
}

.w-3 {
    width: 12px;
}

.h-3 {
    height: 12px;
}

.w-4 {
    width: 16px;
}

.h-4 {
    height: 16px;
}

.w-5 {
    width: 20px;
}

.h-5 {
    height: 20px;
}

/* ============================================
   Text Utilities
   ============================================ */

strong {
    font-weight: 600;
}

/* ============================================
   Responsive Text Sizes
   ============================================ */

@media (min-width: 768px) {
    .md\:text-xl {
        font-size: 1.25rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-3xl {
        font-size: 1.875rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:pt-40 {
        padding-top: 160px;
    }
    
    .lg\:pb-28 {
        padding-bottom: 112px;
    }
    
    .lg\:py-32 {
        padding-top: 128px;
        padding-bottom: 128px;
    }
    
    .lg\:px-8 {
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .lg\:px-10 {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .lg\:text-7xl {
        font-size: 4.5rem;
    }
}

/* ============================================
   Flex Direction Responsive
   ============================================ */

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .hero-buttons {
        flex-direction: row !important;
    }
}

/* Hero buttons responsive */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Block display utility */
.block {
    display: block;
}

/* Items center utility */
.items-center {
    align-items: center;
}

/* Justify center utility */
.justify-center {
    justify-content: center;
}

/* Flex wrap */
.flex-wrap {
    flex-wrap: wrap;
}

/* Inline flex */
.inline-flex {
    display: inline-flex;
}

/* Space utilities */
.space-y-3 > * + * {
    margin-top: 12px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

.space-y-6 > * + * {
    margin-top: 24px;
}

/* Additional responsive text sizes */
@media (min-width: 768px) {
    .md\:text-xl {
        font-size: 1.25rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\:text-3xl {
        font-size: 1.875rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .lg\:pt-40 {
        padding-top: 160px;
    }
    
    .lg\:pb-28 {
        padding-bottom: 112px;
    }
    
    .lg\:py-32 {
        padding-top: 128px;
        padding-bottom: 128px;
    }
    
    .lg\:px-8 {
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .lg\:px-10 {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .lg\:text-7xl {
        font-size: 4.5rem;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .lg\:sticky {
        position: sticky;
    }
    
    .lg\:top-24 {
        top: 96px;
    }
}
