/* Base Styles & Variables */
:root {
    /* Original Brand Colors */
    --brand-purple: #630094;
    --brand-magenta: #e4007f;
    --gradient-brand: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-magenta) 100%);
    
    /* Structure Colors */
    --bg-dark: #1a1a1a;
    --bg-light: #fcfcfc;
    --bg-white: #ffffff;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;
    --text-muted-light: #cccccc;
    
    --font-sans: 'Montserrat', -apple-system, sans-serif;
    --container-width: 1200px;
    --radius-soft: 8px;
    --radius-circle: 50%;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-brand);
    margin: 1.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.gradient-divider.left {
    margin-left: 0;
}

.gradient-divider.center {
    margin: 1.5rem auto;
}

/* Backgrounds & Sections */
.bg-light {
    background-color: var(--bg-light);
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-section h2, .dark-section h3 {
    color: var(--text-light);
}

.dark-section p {
    color: var(--text-muted-light);
}

/* Utilities */
.shadow {
    box-shadow: var(--shadow-soft);
}

.rounded-img {
    border-radius: var(--radius-soft);
}

.brand-gradient {
    background: var(--gradient-brand);
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(228, 0, 127, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--text-dark);
}

.btn-text {
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar.scrolled {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Original Logo Recreation */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-icon.small {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Header */
.header {
    background-color: var(--bg-dark);
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text-light);
}

.logo-text strong {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Slider Section */
.hero.slider-container {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Security Slide Background */
.css-bg-security {
    background: radial-gradient(ellipse at 70% 50%, #1a0f2e 0%, #0d0d12 60%, var(--bg-dark) 100%);
    overflow: hidden;
}

/* Hex grid */
.sec-hex-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(30deg, rgba(99, 0, 148, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(99, 0, 148, 0.06) 87.5%),
        linear-gradient(150deg, rgba(99, 0, 148, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(99, 0, 148, 0.06) 87.5%),
        linear-gradient(30deg, rgba(99, 0, 148, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(99, 0, 148, 0.06) 87.5%),
        linear-gradient(150deg, rgba(99, 0, 148, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(99, 0, 148, 0.06) 87.5%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 0.6;
}

/* Scanning line */
.sec-scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-magenta), transparent);
    opacity: 0.4;
    animation: scan-down 4s linear infinite;
}

@keyframes scan-down {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Shield with rings */
.sec-shield {
    position: absolute;
    right: 12%; top: 50%;
    transform: translateY(-50%);
    width: 350px; height: 350px;
    display: flex; align-items: center; justify-content: center;
}

.sec-shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 0, 148, 0.3);
}

.sec-shield-ring.ring-1 {
    width: 120px; height: 120px;
    border-width: 2px;
    border-color: rgba(228, 0, 127, 0.5);
    box-shadow: 0 0 30px rgba(228, 0, 127, 0.15), inset 0 0 30px rgba(228, 0, 127, 0.08);
    animation: sec-ring-pulse 3s ease-in-out infinite alternate;
}

.sec-shield-ring.ring-2 {
    width: 200px; height: 200px;
    border-color: rgba(99, 0, 148, 0.4);
    border-style: dashed;
    animation: sec-ring-spin 25s linear infinite;
}

.sec-shield-ring.ring-3 {
    width: 300px; height: 300px;
    border-color: rgba(255,255,255,0.05);
    animation: sec-ring-spin 40s linear infinite reverse;
}

.sec-lock-icon {
    width: 60px; height: 60px;
    filter: drop-shadow(0 0 20px rgba(228, 0, 127, 0.6));
    animation: sec-lock-float 4s ease-in-out infinite alternate;
    z-index: 5;
}

@keyframes sec-ring-pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes sec-ring-spin {
    100% { transform: rotate(360deg); }
}

@keyframes sec-lock-float {
    0% { transform: translateY(5px) scale(1); }
    100% { transform: translateY(-5px) scale(1.05); }
}

/* Threat particles */
.sec-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--brand-magenta);
    border-radius: 50%;
    opacity: 0;
    animation: sec-particle-drift 6s ease-in-out infinite;
}

.sec-particle.p1 { right: 25%; top: 20%; animation-delay: 0s; }
.sec-particle.p2 { right: 35%; top: 70%; animation-delay: 1.2s; width: 3px; height: 3px; }
.sec-particle.p3 { right: 10%; top: 40%; animation-delay: 2.4s; background: var(--brand-purple); width: 5px; height: 5px; }
.sec-particle.p4 { right: 40%; top: 30%; animation-delay: 3.6s; width: 3px; height: 3px; }
.sec-particle.p5 { right: 15%; top: 65%; animation-delay: 4.8s; background: var(--brand-purple); }

@keyframes sec-particle-drift {
    0% { opacity: 0; transform: translate(0, 0); }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { opacity: 0; transform: translate(-30px, -20px); }
}

.css-bg-ai {
    background: radial-gradient(ellipse at 75% 50%, #2a0e22 0%, #180a14 40%, var(--bg-dark) 80%);
}

/* AI Banner Orb — smaller version of the section orb */
.ai-banner-orb {
    position: absolute;
    right: 12%; top: 50%;
    transform: translateY(-50%);
    width: 420px; height: 420px;
    z-index: 5;
}

.ab-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228,0,127,0.35) 0%, rgba(99,0,148,0.18) 50%, transparent 70%);
    filter: blur(25px);
}

.ab-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(228,0,127,0.18);
    transform: translate(-50%,-50%) rotateX(65deg);
    animation: orb-spin 20s linear infinite;
}
.ab-ring-1 { width: 170px; height: 170px; }
.ab-ring-2 { width: 250px; height: 250px; animation-duration: 28s; animation-direction: reverse; border-color: rgba(99,0,148,0.18); }
.ab-ring-3 { width: 330px; height: 330px; animation-duration: 35s; border-color: rgba(228,0,127,0.14); }

.ab-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--brand-magenta);
    box-shadow: 0 0 5px 2px rgba(228,0,127,0.3);
    top: 50%; left: 50%;
    animation: orb-orbit var(--dur) linear infinite var(--delay);
    transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle)));
}
.ab-p-sm { width: 2px; height: 2px; background: var(--brand-purple); box-shadow: 0 0 4px 1.5px rgba(99,0,148,0.4); }
.ab-p-xs { width: 1.5px; height: 1.5px; background: rgba(255,255,255,0.4); box-shadow: 0 0 3px 1px rgba(255,255,255,0.2); }

.ab-flux {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 190px; height: 190px;
}

.ab-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #e4007f 40%, #630094 80%, transparent 100%);
    box-shadow: 0 0 25px 8px rgba(228,0,127,0.6), 0 0 50px 16px rgba(99,0,148,0.35);
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 20px 6px rgba(228,0,127,0.5), 0 0 40px 12px rgba(99,0,148,0.3); }
    50% { transform: translate(-50%,-50%) scale(1.15); box-shadow: 0 0 25px 8px rgba(228,0,127,0.6), 0 0 50px 15px rgba(99,0,148,0.4); }
}

@media (max-width: 900px) {
    .ai-banner-orb {
        left: auto; right: -30px; top: 50%;
        width: 220px; height: 220px;
        opacity: 0.4;
    }
    .ab-ring-1 { width: 90px; height: 90px; }
    .ab-ring-2 { width: 130px; height: 130px; }
    .ab-ring-3 { width: 170px; height: 170px; }
    .ab-flux { width: 100px; height: 100px; }
    .ab-glow { width: 110px; height: 110px; }
    .ab-core { width: 12px; height: 12px; }
}

/* Sophisticated Dark Gradient Overlay */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(15,15,15,0.9) 0%, rgba(15,15,15,0.7) 40%, rgba(15,15,15,0.3) 100%);
}

.slide-ai .slide-overlay {
    background: linear-gradient(90deg, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.5) 40%, rgba(15,15,15,0.05) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-ai .hero-content {
    margin-left: 5%;
    margin-right: auto;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 3rem;
    color: var(--text-muted-light);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    pointer-events: none; /* Let clicks pass through empty space */
}

.slider-btn {
    width: 60px; height: 60px;
    border-radius: var(--radius-circle);
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto; /* Re-enable clicks on the buttons */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn svg {
    width: 28px; height: 28px;
    transition: transform 0.3s ease;
}

.slider-btn:hover {
    background: var(--brand-magenta);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(228, 0, 127, 0.4);
}

.prev-btn:hover svg { transform: translateX(-3px); }
.next-btn:hover svg { transform: translateX(3px); }

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-circle);
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--brand-magenta);
    transform: scale(1.2);
}

/* Base Section */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header.left-align {
    text-align: left;
    margin: 0 0 3rem 0;
}

/* Foundation Section */
.foundation-section {
    background-color: var(--bg-white);
    padding: 8rem 0 4rem 0;
}

.foundation-content {
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Cards (Ecosystem) */
.grid {
    display: grid;
    gap: 2rem;
}

.cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.clean-card {
    background: var(--bg-white);
    border-radius: var(--radius-soft);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.clean-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-circle);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 2rem auto;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.clean-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }

/* Lifestyles (Removed) */

/* AI Workflows */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-features {
    list-style: none;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-marker {
    width: 24px; height: 24px;
    border-radius: var(--radius-circle);
    margin-right: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature-text span {
    color: var(--text-muted-light);
}

.feature-text strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

/* Light section overrides for feature list */
.bg-light .feature-marker {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    margin-right: 1rem;
}

.bg-light .feature-text span {
    color: var(--text-muted);
}

.bg-light .feature-text strong {
    color: var(--text-dark);
    font-size: 1rem;
}

/* Neural Network Visual */
.ai-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* AI Orb with Flux Core */
.ai-orb {
    position: relative;
    width: 340px;
    height: 340px;
}

/* Ambient background glow */
.orb-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 0, 148, 0.12) 0%, rgba(228, 0, 127, 0.06) 40%, transparent 70%);
    animation: orb-breathe 8s ease-in-out infinite;
    z-index: 0;
}

.orb-glow-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 0, 127, 0.1) 0%, transparent 70%);
    animation: orb-breathe 5s ease-in-out infinite 1s;
    z-index: 0;
}

/* Arc connectors */
.orb-arcs {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px; height: 320px;
    z-index: 1;
    animation: orb-arcs-rotate 40s linear infinite;
}

/* Orbit rings (tilted for 3D feel) */
.orb-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(228, 0, 127, 0.1);
    z-index: 1;
}

.orb-ring-1 {
    width: 180px; height: 180px;
    transform: translate(-50%, -50%) rotateX(65deg);
    animation: orb-ring-spin 20s linear infinite;
    border-color: rgba(99, 0, 148, 0.2);
}

.orb-ring-2 {
    width: 250px; height: 250px;
    transform: translate(-50%, -50%) rotateX(65deg) rotateZ(60deg);
    animation: orb-ring-spin 30s linear infinite reverse;
    border-color: rgba(228, 0, 127, 0.12);
}

.orb-ring-3 {
    width: 310px; height: 310px;
    transform: translate(-50%, -50%) rotateX(65deg) rotateZ(120deg);
    animation: orb-ring-spin 40s linear infinite;
    border-color: rgba(99, 0, 148, 0.08);
}

/* Floating particles */
.orb-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--brand-magenta);
    box-shadow: 0 0 5px 2px rgba(228, 0, 127, 0.3);
    top: 50%; left: 50%;
    z-index: 3;
    animation: orb-orbit var(--dur) linear infinite var(--delay);
    transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle)));
}

.orb-particle-lg {
    width: 4px; height: 4px;
    background: var(--brand-magenta);
    box-shadow: 0 0 8px 3px rgba(228, 0, 127, 0.35);
}

.orb-particle-sm {
    width: 2.5px; height: 2.5px;
    background: var(--brand-purple);
    box-shadow: 0 0 4px 1.5px rgba(99, 0, 148, 0.4);
}

.orb-particle-xs {
    width: 1.5px; height: 1.5px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.2);
}

/* Absorbed particles (tiny, drift toward flux edge nodes) */
.orb-absorbed {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: rgba(228, 0, 127, 0.7);
    box-shadow: 0 0 4px 1px rgba(228, 0, 127, 0.3);
    top: 50%; left: 50%;
    z-index: 3;
    animation: orb-absorb var(--dur) ease-in infinite var(--delay);
}

@keyframes orb-absorb {
    0% {
        transform: rotate(var(--start-angle)) translateX(var(--start-dist));
        opacity: 0;
    }
    15% {
        opacity: 0.5;
    }
    60% {
        transform: rotate(calc(var(--start-angle) + 60deg)) translateX(calc(var(--start-dist) * 0.45));
        opacity: 0.6;
    }
    90% {
        transform: translate(var(--target-x), var(--target-y));
        opacity: 0.4;
    }
    100% {
        transform: translate(var(--target-x), var(--target-y)) scale(0);
        opacity: 0;
    }
}

/* Flux capacitor (inner Y-shape) */
.flux-capacitor {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 190px; height: 190px;
    z-index: 4;
}

.flux-svg {
    width: 100%; height: 100%;
}

.flux-core {
    position: absolute;
    width: 22px; height: 22px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 20px 8px rgba(228, 0, 127, 0.5), 0 0 50px 18px rgba(99, 0, 148, 0.25);
    animation: flux-core-pulse 4s ease-in-out infinite;
    z-index: 6;
}

.flux-core-inner {
    position: absolute;
    width: 8px; height: 8px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
    z-index: 7;
    animation: flux-inner-pulse 4s ease-in-out infinite 0.5s;
}

/* Keyframes */
@keyframes orb-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

@keyframes orb-ring-spin {
    from { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(var(--rz, 0deg)); }
    to { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(calc(var(--rz, 0deg) + 360deg)); }
}

@keyframes orb-arcs-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orb-orbit {
    from { transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle))); }
    to { transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--dist)) rotate(calc(-1 * (var(--angle) + 360deg))); }
}

@keyframes flux-core-pulse {
    0%, 100% { box-shadow: 0 0 20px 8px rgba(228, 0, 127, 0.5), 0 0 50px 18px rgba(99, 0, 148, 0.25); }
    50% { box-shadow: 0 0 30px 12px rgba(228, 0, 127, 0.7), 0 0 65px 25px rgba(99, 0, 148, 0.4); }
}

@keyframes flux-inner-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

/* Command Center */
.command-center { 
    padding: 8rem 0; 
    overflow: hidden;
}

.command-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.command-content {
    padding-right: 2rem;
}

.command-visual {
    position: relative;
    width: 100%;
}

.dashboard-wrapper {
    position: relative;
    border-radius: var(--radius-soft);
    z-index: 10;
    /* Clean, soft border mimicking a browser window */
    border: 1px solid rgba(255,255,255,0.8);
    background: #0f111a; /* Match the dark theme of the dashboard image */
    padding: 10px; /* Small inset like a frame */
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.dashboard-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* Inner radius for the image itself */
    opacity: 0.95; /* Slight transparency to blend better */
}

.dashboard-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(circle, rgba(99, 0, 148, 0.4) 0%, rgba(228, 0, 127, 0.4) 50%, transparent 100%);
    filter: blur(40px);
    z-index: 1;
    animation: dashboard-pulse 6s infinite alternate ease-in-out;
}

@keyframes dashboard-pulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Dashboard Mockup */
.dashboard-mockup {
    position: relative;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
    background: #0d1117;
    font-size: 0.65rem;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-url {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.05);
    padding: 3px 12px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
}

.mockup-body {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 42px;
    background: #161b22;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.mockup-nav-item {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
}

.mockup-nav-item.active {
    background: var(--gradient-brand);
}

.mockup-main {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

/* Lighthouses */
.mockup-lighthouses {
    display: flex;
    gap: 8px;
}

.mockup-lh {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
}

.lh-tag {
    background: #3b82f6;
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lh-status {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lh-status.online {
    color: #22c55e;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Group Tags */
.mockup-groups {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.group-tag {
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 0.5rem;
    font-weight: 600;
}

.group-tag.accent {
    background: rgba(99, 0, 148, 0.3);
    color: rgba(228, 0, 127, 0.9);
}

/* Host Table */
.mockup-table {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 0.8fr 0.6fr;
    gap: 8px;
    padding: 6px 8px;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-row {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 0.8fr 0.6fr;
    gap: 8px;
    padding: 7px 8px;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s ease;
}

.mockup-row:hover {
    background: rgba(255,255,255,0.03);
}

.anim-row {
    opacity: 0;
    transform: translateX(-10px);
    animation: row-slide-in 0.5s ease forwards;
}

@keyframes row-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.host-name {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-tag {
    font-style: normal;
    font-size: 0.45rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.row-tag.purple { background: rgba(99, 0, 148, 0.4); color: #c084fc; }
.row-tag.green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.row-tag.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.row-tag.orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }

.status-active {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.55rem;
    letter-spacing: 0.3px;
}

.agent-ok {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.55rem;
}
/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.chatbot-fab:hover {
    transform: scale(1.1);
}

.chat-widget.open .chat-icon-open { display: none; }
.chat-widget.open .chat-icon-close { display: block; }
.chat-icon-close { display: none; }

.chat-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    max-height: 450px;
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-widget.open .chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.chat-close:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 250px;
    max-height: 300px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: chatFadeIn 0.3s ease;
}

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

.chat-msg.bot {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--brand-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chat-quick-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.chat-quick-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--brand-primary);
    color: #fff;
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input::placeholder {
    color: rgba(255,255,255,0.35);
}

.chat-input-area input:focus {
    border-color: var(--brand-primary);
}

.chat-send {
    background: var(--brand-primary);
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.chat-send:hover { opacity: 0.85; }

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 30px);
        right: -15px;
    }
}

/* Footer */
.footer {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p { margin-top: 0.5rem; font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--text-light); }

.copy {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

/* Base fade-up animations from scripts.js */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-login-mobile { display: none; }

/* Responsive */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .clean-card { padding: 1.2rem 0.8rem; }
    .clean-card p { display: none; }
    .clean-card h3 { font-size: 0.95rem; margin-bottom: 0; }
    .card-icon { width: 44px; height: 44px; margin-bottom: 0.8rem; }
    .card-icon svg { width: 22px; height: 22px; }
    .lifestyle-item, .lifestyle-item.reverse { flex-direction: column; gap: 2rem; }
    .ai-grid { grid-template-columns: 1fr; }
    .ai-visual {
        height: auto;
        padding: 0;
        margin: -36px 0;
    }
    .ai-orb {
        width: 260px;
        height: 260px;
    }
    .orb-ring-3 { width: 250px; height: 250px; }
    .orb-ring-2 { width: 200px; height: 200px; }
    .orb-ring-1 { width: 145px; height: 145px; }
    .flux-capacitor { width: 150px; height: 150px; }
    .orb-arcs { width: 250px; height: 250px; }
    .orb-glow { width: 200px; height: 200px; }

    /* Footer: stack on mobile */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-title { font-size: 3rem; }

    .hamburger { display: block; }
    .nav-login-desktop { display: none !important; }
    .nav-login-mobile { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links a::after { display: none; }

    /* Hero arrows: hide on mobile */
    .slider-btn { display: none; }

    /* Command Center: stack on mobile */
    .command-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .command-content {
        padding-right: 0;
    }
    .command-visual {
        max-width: 100%;
    }
}
