/* Premium Design Variables */
:root {
    /* Core Palette based on presumed SaaS colors (adjust as needed) */
    --primary: #0891b2;
    /* SaaS Cyan/Teal */
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --secondary: #0f172a;
    /* Slate - Dark Backgrounds */
    --accent: #10b981;
    /* Emerald - Success/Safety */
    --accent-red: #ef4444;
    /* Alert */

    --text-main: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;

    --bg-white: #ffffff;
    --bg-off-white: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --nav-height: 100px;
    --border-radius: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Accent Bar Removed */
.top-accent-bar {
    display: none;
}

/* Header */
.main-header {
    height: var(--nav-height);
    background: var(--secondary);
    /* Dark background */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    /* Removing top offset for cleaner look */
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-container img {
    height: 75px;
    /* Increased back up to make it stand out */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 1.3rem;
    /* Reduced from 1.5rem */
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tagline {
    font-size: 0.75rem;
    /* Reduced from 0.85rem */
    color: #94a3b8;
    /* Slate-400 */
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links>li>a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    /* White text */
    transition: color 0.3s ease;
}

.nav-links>li>a:hover {
    color: var(--primary-light);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown>a i {
    font-size: 0.8rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    /* Dark dropdown to match header */
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 16px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #fdfdfd;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    /* Increased video column width (was 1.2fr 1fr) */
    gap: 40px;
    /* Reduced gap slightly to fit better */
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bullet-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bullet-text {
    display: flex;
    flex-direction: column;
}

.bullet-text strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.bullet-text span {
    font-size: 0.95rem;
    color: var(--text-light);
}

.vsl-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: var(--secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.vsl-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark));
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
}

.light-bg {
    background: var(--bg-off-white);
}

.white-bg {
    background: white;
}

.dark-bg {
    background: var(--secondary);
    color: white;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.light-text h2,
.light-text p {
    color: var(--text-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-card .icon-box {
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--primary);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    margin-top: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.check-list li i {
    color: var(--accent);
}

/* Network Zones Map Visual */
.abstract-ui-card {
    background: #0f172a;
    /* Dark background like the screenshot */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Keep content inside */
    height: 350px;
    /* Slightly taller */
    position: relative;
    border: 1px solid #1e293b;
}

.ui-header {
    height: 36px;
    background: #1e293b;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.ui-body.graph-bg {
    height: calc(100% - 36px);
    position: relative;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    /* More subtle grid */
    background-size: 20px 20px;
}

/* Zones Simulation */
.zone-box {
    position: absolute;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.8);
}

.zone-header {
    background: linear-gradient(90deg, #3b82f6, #0e7490);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px 4px 0 0;
    margin: -8px -8px 8px -8px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.zone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.device-node {
    width: 28px;
    height: 28px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 0.7rem;
    position: relative;
    overflow: hidden;
}

/* Animations */
.pulse-node {
    animation: nodePulse 3s infinite ease-in-out;
}

@keyframes nodePulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(34, 211, 238, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
        transform: scale(1.1);
    }
}

.slide-in {
    opacity: 0;
    animation: slideInFade 0.8s forwards;
}

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-node::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    from {
        transform: translateY(-100%) rotate(45deg);
    }

    to {
        transform: translateY(100%) rotate(45deg);
    }
}

/* Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Specific Zone Positioning */
.z1 {
    top: 20px;
    left: 20px;
    width: 120px;
}

.z2 {
    top: 30px;
    right: 30px;
    width: 140px;
}

.z3 {
    bottom: 40px;
    left: 40px;
    width: 130px;
}

.z4 {
    bottom: 20px;
    right: 50px;
    width: 120px;
}

/* Disclaimer: CSS Drawing Lines is tricky without SVG, simulating with rotated divs */




/* We're Different */
.difference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.diff-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.diff-item h3 {
    color: var(--primary-light);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.diff-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    height: 30px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icons a {
    font-size: 1.2rem;
    color: #94a3b8;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    z-index: 10;
}

.modal-content {
    display: flex;
    width: 100%;
}

.modal-left {
    width: 40%;
    background: #f8fafc;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-left h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.modal-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.modal-bullets li i {
    color: var(--primary);
}

.modal-decor img {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    opacity: 0.05;
}

.modal-right {
    width: 60%;
    padding: 40px;
    overflow-y: auto;
}

#demoForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.half {
    grid-column: span 1;
}

.form-group:not(.half),
.form-check,
.form-disclaimer,
.btn-block {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.btn-block {
    width: 100%;
}

/* Chatbot Floating Action Button */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.chatbot-fab i {
    color: white;
    font-size: 1.5rem;
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px !important;
    right: 30px !important;
    width: 380px !important;
    max-width: 90vw;
    height: 550px !important;
    max-height: 80vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Expanded State for larger view */
.chatbot-container.expanded {
    width: 600px;
    height: 80vh;
    /* 80% viewport height */
    max-height: 800px;
}

/* Mobile responsive expansion */
@media (max-width: 768px) {
    .chatbot-container.expanded {
        width: 95%;
        right: 2.5%;
        /* Center roughly */
        bottom: 20px;
        height: 90vh;
    }
}

.chat-header {
    background: var(--primary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.chat-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    /* Fix for flex scrolling */
    position: relative;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.chat-controls {
    display: flex;
    /* Allow adjacent buttons */
    gap: 15px;
}

.close-chat,
.resize-chat {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.close-chat:hover,
.resize-chat:hover {
    color: white;
}

/* Chat Action Button (Demo Request) */
.chat-action-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.chat-action-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}


.bot-msg {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 12px 12px 12px 0;
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.chat-options button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.chat-options button:hover {
    background: var(--primary);
    color: white;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Responsive */
@media (max-width: 968px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* ... other 968px styles ... */

    /* Mobile specific for Feature Grids (Tablet/Phone) */
    @media (max-width: 768px) {
        .feature-detail-grid {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }

    .hero-bullets,
    .hero-bullets li,
    .hero-cta {
        align-items: center;
        justify-content: center;
        text-align: left;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .nav-links,
    .header-cta #nav-request-demo {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feature-grid,
    .difference-grid {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .flip-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        width: 100%;
        padding: 24px;
    }

    .modal-left {
        padding-bottom: 0;
    }

    #demoForm {
        grid-template-columns: 1fr;
    }

    .form-group.half,
    .form-group {
        grid-column: span 1 !important;
    }
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1002;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    margin-top: 60px;
}

.mobile-nav-links>li {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-sub-menu {
    margin-top: 10px;
    margin-left: 20px;
}

.mobile-sub-menu li {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.opacity-low {
    opacity: 0.1;
}

/* 3D Visual Animation */
.perspective-container {
    perspective: 1000px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-3d-visual {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate3D 10s infinite linear;
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(10deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.rotate-3d-visual i.floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* This ensures icons stay centered or move around the center */
}

/* Specific fix for the robot icon inside the rotator */
.rotate-3d-visual .fa-robot {
    transform: translate(-50%, -50%) translateZ(20px);
}

.rotate-3d-visual .fa-comment-dots {
    /* Orbiting effect */
    animation: orbitIcon 5s infinite linear;
}

@keyframes orbitIcon {
    from {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

.dark-bg .check-list li {
    color: rgba(255, 255, 255, 0.9);
}

.dark-bg .check-list li strong {
    color: white;
}

.rotate-3d-wrapper {
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(10deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg);
    }

    100% {
        transform: translateY(0px) rotateY(10deg);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.chatbot-trigger {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Fantasy Network Hero */
.hero-network-fantasy {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    perspective: 1000px;
}

.cyber-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: linear-gradient(rgba(34, 211, 238, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(50px);
    }
}

.cyber-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vw;
    border-radius: 40%;
    background: linear-gradient(45deg, transparent 40%, rgba(34, 211, 238, 0.1) 50%, transparent 60%);
    animation: waveRotate 15s linear infinite;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    opacity: 0.6;
}

.wave2 {
    width: 160vw;
    height: 160vw;
    animation-direction: reverse;
    animation-duration: 20s;
    background: linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.1) 50%, transparent 60%);
}

.wave3 {
    width: 140vw;
    height: 140vw;
    animation-duration: 25s;
    background: linear-gradient(45deg, transparent 40%, rgba(16, 185, 129, 0.05) 50%, transparent 60%);
}

@keyframes waveRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Chat Interface */
.chat-input-area {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    display: none;
    margin-top: 10px;
}

.chat-input-area.active {
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    display: none;
    margin-bottom: 10px;
    padding-right: 5px;
    /* For scrollbar */
}

.chat-history.active {
    display: block;
}

.user-msg {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 12px 12px 0 12px;
    margin-bottom: 8px;
    align-self: flex-end;
    margin-left: auto;
    width: max-content;
    max-width: 80%;
    font-size: 0.9rem;
}

/* 3D Tilt Effect */
.tilt-card {
    transition: transform 0.1s;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-content {
    transform: translateZ(20px);
}

/* MITRE Section */
.mitre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mitre-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mitre-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.mitre-tech-id {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* N8N Chat Overrides - Aggressive Theming */
:root {
    --chat--color-primary: var(--primary);
    --chat--color-secondary: var(--secondary);
    --chat--color-dark: #0f172a;
    --chat--font-family: 'Outfit', sans-serif;
    --chat--header-height: 0px;
    /* Try to collapse header */
}

/* Hide Branding Elements */
.n8n-chat-branding,
.n8n-chat-footer,
.n8n-chat-powered-by {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* Force Transparent Backgrounds */
.n8n-chat-widget,
.n8n-chat-window,
.n8n-chat-container {
    background-color: transparent !important;
    background: transparent !important;
}

/* Header Hiding */
.n8n-chat-header {
    display: none !important;
    /* Attempt to hide header completely */
}

/* Input Area Fixes */
.n8n-chat-input-container {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.n8n-chat-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 99px !important;
}

.n8n-chat-input::placeholder {
    color: rgba(148, 163, 184, 0.6) !important;
}

/* Messages */
.n8n-chat-message-container.n8n-chat-message-bot {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
}

.n8n-chat-message-container.n8n-chat-message-user {
    background: var(--primary) !important;
    color: white !important;
}

/* Remove any white backgrounds */
[class*="n8n-chat"] {
    font-family: 'Outfit', sans-serif !important;
}

/* Ensure parent card doesn't clip */
.tilt-card {
    overflow: visible !important;
}

/* Quadrant Chart Styles (from different.html) */
.quadrant-container {
    position: relative;
    width: 260px;
    /* Fixed smaller width to guarantee label space */
    height: 260px;
    margin: 10px auto;
    /* Reduced margin to center better vertically */
    border: 2px solid #334155;
    background: #0f172a;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: visible;
    /* CRITICAL */
}

.quadrant-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quadrant-grid-lines::before {
    /* Vertical */
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #334155;
    border-left: 2px dashed #64748b;
}

.quadrant-grid-lines::after {
    /* Horizontal */
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #334155;
    border-top: 2px dashed #64748b;
}

.axis-label {
    position: absolute;
    font-size: 0.75rem;
    /* Slightly smaller text */
    color: #cbd5e1;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent wrapping */
}

.axis-top {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-bottom {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-left {
    top: 50%;
    left: -85px;
    /* Reduced from -100px */
    transform: translateY(-50%);
    width: 85px;
    text-align: right;
}

.axis-right {
    top: 50%;
    right: -85px;
    /* Reduced from -100px */
    transform: translateY(-50%);
    width: 85px;
    text-align: left;
}

.competitor-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #475569;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.our-logo-pos {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: rgba(8, 145, 178, 0.2);
    border: 2px solid #0891b2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.4);
    animation: pulse-glow 3s infinite;
}

.our-logo-pos img {
    width: 40px;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(8, 145, 178, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
    }
}