/* === Atlastron Custom Styles v2.27 — Pro Max Design System === */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root {
  --emerald: #10b981; --emerald-light: #34d399; --emerald-dark: #059669;
  --blue: #3b82f6; --purple: #8b5cf6; --amber: #f59e0b; --red: #ef4444;
  --bg-base: #0b0b10; --bg-card: #0f0f16; --bg-sidebar: #08080d;
  --border: rgba(255,255,255,0.06); --border-hover: rgba(255,255,255,0.12);
  --text-primary: #e4e4e7; --text-secondary: #71717a; --text-muted: #52525b;
}
:focus-visible { outline: 2px solid rgba(16,185,129,0.5); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(16,185,129,0.3); color: #fff; }

/* ===== Animations ===== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float-orb-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}
@keyframes border-glow {
    0%, 100% { border-color: rgba(16,185,129,0.3); box-shadow: 0 0 20px rgba(16,185,129,0.1); }
    50% { border-color: rgba(20,184,166,0.6); box-shadow: 0 0 40px rgba(20,184,166,0.25); }
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes number-count {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes stripe-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* ===== Grid Background ===== */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}
.grid-bg-animated {
    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: 80px 80px;
    animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #34d399, #2dd4bf, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-animated {
    background: linear-gradient(270deg, #34d399, #2dd4bf, #2dd4bf, #34d399);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #0d9488);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(16,185,129,0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #34d399, #14b8a6);
    box-shadow: 0 8px 32px rgba(16,185,129,0.5);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary.pulse {
    animation: pulse-ring 2s infinite;
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d4d4d8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: white;
}

/* ===== Cards ===== */
.glass-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(16,185,129,0.2);
    box-shadow: 0 12px 40px rgba(16,185,129,0.08);
    transform: translateY(-2px);
}

.card-glow {
    position: relative;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16,185,129,0.4), transparent, rgba(20,184,166,0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}
.card-glow:hover::before {
    opacity: 1;
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16,185,129,0.3);
    box-shadow: 0 16px 48px rgba(16,185,129,0.1);
}
.feature-card .feature-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 24px rgba(16,185,129,0.3);
}

/* ===== FAQ Accordion ===== */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item:has(.faq-answer.open) {
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.03);
}
.faq-question {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer.open {
    max-height: 500px;
    padding-top: 4px;
    padding-bottom: 16px;
}

/* ===== Pricing Cards ===== */
.pricing-card-highlight {
    border-color: rgba(16,185,129,0.25);
    background: rgba(16,185,129,0.04);
}
.pricing-card-highlight:hover {
    border-color: rgba(16,185,129,0.5);
    box-shadow: 0 20px 60px rgba(16,185,129,0.15);
}
.pricing-badge {
    background: linear-gradient(135deg, #10b981, #0d9488);
    animation: pulse-ring 2.5s infinite;
}

/* ===== Navbar ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.navbar-scrolled {
    background: rgba(10,10,11,0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Sidebar ===== */
.sidebar-overlay {
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.nav-item-active {
    background: rgba(16,185,129,0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
    position: relative;
}
.nav-item-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #10b981, #14b8a6);
    border-radius: 0 2px 2px 0;
}

/* ===== Progress Bar ===== */
.progress-bar {
    position: relative;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ===== Input Fields ===== */
.input-glow:focus {
    border-color: rgba(16,185,129,0.5);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1), 0 0 20px rgba(16,185,129,0.1);
    background: rgba(255,255,255,0.06);
}

/* ===== Password Strength ===== */
.password-strength-bar {
    width: 0;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.pw-weak { width: 25%; background: #ef4444; }
.pw-fair { width: 50%; background: #f59e0b; }
.pw-good { width: 75%; background: #84cc16; }
.pw-strong { width: 100%; background: #22c55e; }

/* ===== Custom Checkbox ===== */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.custom-checkbox:hover {
    border-color: rgba(16,185,129,0.4);
}
.custom-checkbox.checked {
    background: linear-gradient(135deg, #10b981, #0d9488);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(16,185,129,0.3);
}

/* ===== Blur Orbs ===== */
.blur-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    will-change: transform;
}
.blur-orb-animated {
    animation: float-orb 8s ease-in-out infinite;
}
.blur-orb-animated-slow {
    animation: float-orb-slow 12s ease-in-out infinite;
}

/* ===== Step Numbers ===== */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 32px rgba(16,185,129,0.3);
    position: relative;
    transition: all 0.3s ease;
}
.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(16,185,129,0.5);
}
.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #10b981, #14b8a6);
    margin: 0 auto;
    opacity: 0.4;
}

/* ===== Toast Notifications ===== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    animation: slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}
.toast-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}
.toast-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}
.toast-info {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-stagger > *.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Stats Counter ===== */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ===== Selection ===== */
::selection {
    background: rgba(16,185,129,0.3);
    color: white;
}

/* ===== Particle Canvas ===== */
#particle-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ===== Striped Progress ===== */
.striped-bg {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.03) 5px,
        rgba(255,255,255,0.03) 10px
    );
}

/* ===== Chat Panel ===== */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
    animation: slide-up 0.25s ease;
}
.chat-bubble-buyer {
    align-self: flex-end;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.2);
    border-bottom-right-radius: 0.25rem;
    color: #d1fae5;
}
.chat-bubble-agent {
    align-self: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom-left-radius: 0.25rem;
    color: #e4e4e7;
}

/* Typing indicator */
.chat-typing {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.4s infinite ease-in-out both;
}
.chat-typing span:nth-child(1) { animation-delay: 0s; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Chat quick-action chips */
.chat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}
.chat-chip:hover {
    border-color: rgba(16,185,129,0.4);
    color: #6ee7b7;
    background: rgba(16,185,129,0.08);
}

/* Employee card */
.employee-card {
    cursor: pointer;
    transition: all 0.25s ease;
}
.employee-card:hover {
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.04);
}
.employee-card.selected {
    border-color: rgba(16,185,129,0.5);
    background: rgba(16,185,129,0.08);
    box-shadow: 0 0 20px rgba(16,185,129,0.08);
}