:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #6d28d9;
    /* Purple */
    --accent: #00ff9d;
    /* Green/Cyan Neon */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
    animation: bgMove 60s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.4);
    /* Darken image for better text contrast */
}

@keyframes bgMove {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* --- Background FX --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    /* Above image, below content */
    pointer-events: none;
    /* Let clicks pass through */
}

#particles canvas {
    display: block;
}

.bg-animation {
    /* Optional: Keep or remove blobs depending on if background is enough */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    opacity: 0.3;
    /* Subtle blend */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #2563eb;
    bottom: -50px;
    right: -50px;
    animation-duration: 25s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-duration: 15s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    /* Adjust as needed */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(109, 40, 217, 0.5));
}

.highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(109, 40, 217, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.6);
}

.btn-secondary {
    background: #5865F2;
    /* Discord Color */
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #4752c4;
}

/* --- Features --- */
.section-pad {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-glow {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

/* --- Pricing Slider --- */
.pricing-calculator {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.pricing-calculator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.slider-wrapper {
    text-align: center;
}

.slider-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* Native Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--text-main);
    border: 2px solid var(--primary);
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 0 20px var(--primary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #333;
    border-radius: 3px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-muted);
}

.specs-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    color: var(--text-muted);
}

.glow-button {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, var(--primary), #4c1d95);
}

/* --- Ecosystem Section --- */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.ecosystem-card {
    text-align: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.ecosystem-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.eco-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.text-glow-purple {
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.text-glow-green {
    color: var(--accent);
    filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.4));
}

.ecosystem-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ecosystem-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-link:hover {
    gap: 12px;
    text-shadow: 0 0 10px var(--accent);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .specs-display {
        grid-template-columns: 1fr 1fr;
    }

    .price-action {
        flex-direction: column;
        gap: 2rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }
}

/* Fixed missing closing brace for media query */

/* --- Web Chat Widget (Tawk.to Style) --- */
.webchat-closed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.webchat-float-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10000;
}

.webchat-float-bubble {
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    position: relative;
    animation: floatBubble 2s infinite ease-in-out;
    white-space: nowrap;
}

.webchat-float-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.webchat-float-btn.tawk-style {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #006BFF;
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webchat-float-btn.tawk-style:hover {
    transform: scale(1.05);
    background: #0056cc;
}

.toggle-icon-open,
.toggle-icon-close {
    transition: opacity 0.2s, transform 0.2s;
}

.hidden-icon {
    display: none !important;
}

.webchat-window {
    width: 360px;
    height: 550px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    margin-bottom: 15px;
}

.webchat-window.hidden {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    pointer-events: none;
}

/* --- WebChat Menu Dropdown --- */
.webchat-menu {
    position: absolute;
    top: 60px;
    right: 15px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    width: 170px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.webchat-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.menu-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #ccc;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-item i {
    width: 16px;
    text-align: center;
}

.menu-item.danger {
    color: #ff4757;
}

.menu-item.danger:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* --- Inactivity Overlay --- */
.webchat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.webchat-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.webchat-overlay i {
    font-size: 44px;
    color: #f39c12;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.4));
}

.webchat-overlay h5 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
    margin-top: 0;
}

.webchat-overlay p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-restart {
    background: #006BFF;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-restart:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 255, 0.3);
}

.webchat-header {
    background: #006BFF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.webchat-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.2s;
    outline: none;
}

.webchat-header button:hover {
    opacity: 0.8;
}

.header-titles {
    text-align: center;
    flex: 1;
}

.header-titles h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
    margin-right: 4px;
}

.webchat-messages {
    flex: 1;
    background: #F9F9F9;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.webchat-intake-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
    gap: 15px;
    animation: fadeIn 0.3s ease;
}

.intake-logo {
    width: 60px;
    margin-bottom: 5px;
}

.webchat-intake-screen h5 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.webchat-intake-screen p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

#webchat-name-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#webchat-name-input:focus {
    border-color: #006BFF;
}

.btn-start-chat {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #006BFF;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-start-chat:hover {
    background: #0056cc;
}

.webchat-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.chat-msg {
    display: flex;
    width: 100%;
    animation: fadeInMsg 0.3s ease forwards;
}

@keyframes fadeInMsg {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    justify-content: flex-start;
}

.bot-msg .msg-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.msg-bubble-container {
    max-width: 78%;
}

.bot-msg .msg-author {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
    margin-left: 2px;
}

.bot-msg .msg-content {
    background: #006BFF;
    color: white;
    padding: 12px 16px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-msg {
    justify-content: flex-end;
}

.user-msg .msg-content {
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    max-width: 85%;
    word-break: break-word;
}

/* Chat Image Styling */
.chat-image-container {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.chat-image {
    max-width: 100%;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chat-image:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.transcript-container {
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px dashed #006BFF;
    border-radius: 8px;
    text-align: center;
}

.transcript-container p {
    color: #4b5563 !important;
    /* Dark gray for visibility */
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.transcript-link {
    display: inline-block;
    background: #006BFF;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.9rem;
}

.transcript-link:hover {
    background: #0056cc;
}

.webchat-input-area {
    background: white;
    padding: 12px 20px;
    border-top: 1px solid #EDEDED;
    display: none;
    /* Hidden by default */
    flex-direction: column;
}

.webchat-input-area input {
    width: 100%;
    border: none;
    padding: 5px 0 10px 0;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    font-family: inherit;
    background: transparent;
}

.webchat-input-area input::placeholder {
    color: #bbb;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 15px;
}

.icon-btn:hover {
    color: #666;
}

.icon-btn.send {
    color: #006BFF;
    margin-right: 0;
    margin-left: auto;
}

.icon-btn.send:hover {
    color: #0056cc;
}

.webchat-footer {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #f9f9f9;
}

.webchat-footer a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.70rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s;
}

.webchat-footer a:hover {
    color: #888;
}

/* Scrollbar for chat */
.webchat-messages::-webkit-scrollbar {
    width: 6px;
}

.webchat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

@media (max-width: 480px) {
    .webchat-closed {
        bottom: 10px;
        right: 10px;
    }

    .webchat-window {
        width: calc(100vw - 20px);
        height: 70vh;
    }
}
/* --- Footer --- */
.footer {
    padding: 3rem 5%;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info p {
    margin: 0;
}

.footer-contact {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact i {
    color: var(--accent);
}

.divider {
    opacity: 0.3;
}

.footer-link {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--accent));
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
}