/* ============ CUSTOM STYLES ============ */
:root {
    --bg-base: #0B0F19;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    --cyan: #22d3ee;
    --purple: #a855f7;
    --blue: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: #e2e8f0;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Background radial gradients --- */
.bg-radial-top {
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 80% 10%, rgba(34, 211, 238, 0.08) 0%, transparent 70%),
        var(--bg-base);
}
.bg-radial-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 65%),
        transparent;
}
.bg-radial-export {
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(234, 179, 8, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 60%, rgba(34, 211, 238, 0.06) 0%, transparent 70%),
        rgba(17, 24, 39, 0.6);
}

/* --- Glassmorphism card --- */
.glass-card {
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.15),
        0 0 60px rgba(168, 85, 247, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* --- Gradient text --- */
.gradient-text {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 40%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Glow button --- */
.btn-glow {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #fff;
    border: none;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.35), 0 0 40px rgba(59, 130, 246, 0.25);
}
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.55), 0 0 80px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline-glow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    transition: all 0.4s ease;
}
.btn-outline-glow:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(34, 211, 238, 0.05);
    transform: translateY(-2px);
}

/* --- Navbar glass --- */
.navbar-glass {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.navbar-glass.scrolled {
    background: rgba(11, 15, 25, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- Mobile menu --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
    max-height: 480px;
}

/* --- Hero dashboard graphic --- */
.dashboard-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow:
        0 0 50px rgba(34, 211, 238, 0.12),
        0 0 100px rgba(168, 85, 247, 0.08),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}
.dashboard-bar {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border-radius: 4px;
    transition: width 0.8s ease;
}
.dashboard-bar-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 4px;
}

/* --- Orbits / decorative rings --- */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, 0.2);
    animation: spin 20s linear infinite;
}
.orbit-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(168, 85, 247, 0.2);
    animation: spin 30s linear infinite reverse;
}

/* --- Timeline --- */
.timeline-line {
    position: absolute;
    top: 2rem;
    left: 50%;
    right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #a855f7);
    opacity: 0.5;
    transform: translateX(-50%);
}
.timeline-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.9);
    border: 2px solid rgba(34, 211, 238, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}
.timeline-dot:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    transform: scale(1.1);
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B0F19;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
}

/* --- Input focus --- */
.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    font-size: 0.95rem;
}
.form-input:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}
.form-input option {
    background: #111827;
    color: #e2e8f0;
}

/* --- Export highlight border --- */
.export-accent {
    position: relative;
    border: 1px solid rgba(234, 179, 8, 0.25);
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(234, 179, 8, 0.06) 0%, transparent 70%), rgba(17, 24, 39, 0.7);
}
.export-accent::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.4), rgba(34, 211, 238, 0.3), rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- Fade-in-up on scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Grid pattern overlay --- */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }
    .orbit-ring,
    .orbit-ring-2 {
        display: none;
    }
}
/* cookie popup */
 .cookie-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 1rem;
        pointer-events: none;
    }
    .cookie-popup-content {
        max-width: 600px;
        margin: 0 auto;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        padding: 1.25rem 1.5rem;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        pointer-events: auto;
        display: none;
    }
    .cookie-popup-content.active {
        display: block;
        animation: slideUp 0.4s ease-out;
    }
    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }