@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #08090d;
    --bg-surface: #0f1018;
    --bg-card: #14151e;
    --bg-card-hover: #1a1b27;
    --border: #252633;
    --text-primary: #e8e8f0;
    --text-secondary: #8a8da3;
    --text-muted: #5c5e74;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.25);
    --accent-secondary: #a855f7;
    --accent-secondary-glow: rgba(168, 85, 247, 0.2);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

.neon-text {
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 229, 255, 0.1);
}

.neon-border {
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15), 0 0 20px rgba(0, 229, 255, 0.05);
}

.glow-accent {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 229, 255, 0.1);
}

.glow-accent-green {
    box-shadow: 0 0 20px var(--accent-green-glow), 0 0 40px rgba(16, 185, 129, 0.08);
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent);
    top: 200px;
    right: -80px;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    bottom: -50px;
    left: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.nav-glass {
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 38, 51, 0.5);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.card-hover:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background-color: var(--bg-card-hover);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.btn-neon {
    background: linear-gradient(135deg, #00e5ff, #00b8d4);
    color: #08090d;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover::after {
    left: 100%;
}

.btn-outline {
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--accent);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.feature-icon-wrap {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.15);
    transition: all 0.3s ease;
}

.feature-icon-wrap:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(0, 229, 255, 0.3);
}

.step-connector {
    background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
    opacity: 0.3;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.flowbite-override .modal {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

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

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}