/* ==========================================================================
   Cortexis AI - CSS Design System & Layouts
   ========================================================================== */

/* --- CSS Variables & Tokens --- */
:root {
    --bg-main: #07070A;
    --primary: #086AD8;
    --secondary: #7B61FF;
    --accent: #00E5FF;
    
    --card-bg: rgba(13, 13, 20, 0.45);
    --card-bg-hover: rgba(18, 18, 28, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(123, 97, 255, 0.25);
    
    --text-primary: #FFFFFF;
    --text-muted: #94A3B8;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --glow-blue: 0 0 30px rgba(8, 106, 216, 0.25);
    --glow-purple: 0 0 30px rgba(123, 97, 255, 0.25);
    --glow-cyan: 0 0 30px rgba(0, 229, 255, 0.25);
}

/* --- Base & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(123, 97, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.align-center {
    align-items: center;
}

.w-full {
    width: 100%;
}

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

/* --- Background Glow Elements --- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 40%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-3 {
    bottom: 5%;
    right: 5%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* --- Typography & Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons & CTAs --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-blue);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(123, 97, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- Floating Glass Cards --- */
.floating-card {
    position: absolute;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: floating-y 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    width: 18px;
    height: 18px;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-active {
    color: #4ade80;
}

.status-growth {
    color: var(--accent);
}

.card-top {
    top: 15%;
    left: -5%;
}

.card-bottom-left {
    bottom: 15%;
    left: -10%;
}

.card-bottom-right {
    bottom: 20%;
    right: -5%;
}

@keyframes floating-y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo Styling --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.logo-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--glow-cyan);
}

.logo-dot-1 {
    width: 10px;
    height: 10px;
    top: 2px;
    left: 2px;
    background: var(--accent);
}

.logo-dot-2 {
    width: 8px;
    height: 8px;
    bottom: 2px;
    right: 2px;
    background: var(--secondary);
    box-shadow: var(--glow-purple);
}

.logo-dot-3 {
    width: 6px;
    height: 6px;
    top: 4px;
    right: 4px;
    background: var(--primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

/* --- Desktop Nav --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-main);
    z-index: 99;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

.mobile-nav-ctas {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 97, 255, 0.08);
    border: 1px solid rgba(123, 97, 255, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: pulse 1.5s infinite alternate;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    width: 100%;
}

.hero-metrics {
    display: flex;
    gap: 32px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    width: 100%;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* --- Hero 3D Graphic Canvas Container --- */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(123, 97, 255, 0.03) 0%, transparent 70%);
}

#hero-canvas {
    width: 100%;
    height: 100%;
    outline: none;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   Trusted By Section
   ========================================================================== */
.trusted-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.3);
}

.trusted-title {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.trusted-logos-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.trusted-logos-wrapper::before,
.trusted-logos-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trusted-logos-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.trusted-logos-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.trusted-logos {
    display: inline-flex;
}

.logo-slide {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: infinite-scroll 25s linear infinite;
    padding-right: 80px;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.partner-logo i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ==========================================================================
   AI Features Section
   ========================================================================== */
.features-section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--card-bg-hover);
    border-color: rgba(123, 97, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(123, 97, 255, 0.08);
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(123, 97, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 106, 216, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    border: 1px solid rgba(123, 97, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.feature-card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Large Span Card (Security) --- */
.span-full {
    grid-column: span 3;
}

.feature-visual-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 240px;
}

.security-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--glow-cyan);
}

.shield-core i {
    width: 28px;
    height: 28px;
}

.orbiting-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation: spin 10s linear infinite;
}

.ring-2 {
    width: 170px;
    height: 170px;
    animation: spin 15s linear infinite reverse;
}

.security-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.security-nodes .node {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.security-nodes .node.active {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: var(--glow-purple);
}

.security-nodes .node:nth-child(1) { top: 10%; left: 20%; }
.security-nodes .node:nth-child(2) { top: 50%; right: 5%; }
.security-nodes .node:nth-child(3) { bottom: 10%; left: 40%; }

.text-left {
    text-align: left;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.benefit-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.benefit-icon i {
    width: 24px;
    height: 24px;
}

.benefit-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.benefit-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.text-cyan { color: var(--accent); }
.text-purple { color: var(--secondary); }
.text-blue { color: var(--primary); }

/* --- Interactive Comparison Panel --- */
.why-visual {
    display: flex;
    justify-content: center;
}

.comparison-card {
    width: 100%;
    max-width: 480px;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.comparison-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.panel-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-left: 8px;
}

.comparison-body {
    padding: 16px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:first-child {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.comp-col {
    font-size: 0.9rem;
}

.comp-col.legacy {
    color: #ef4444;
}

.comp-col.cortexis {
    font-weight: 600;
}

.comp-col.highlight {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.comparison-footer {
    background: rgba(255, 255, 255, 0.01);
    padding: 14px 24px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.spin-icon {
    width: 14px;
    height: 14px;
    animation: spin 4s linear infinite;
    color: var(--accent);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-section {
    padding: 120px 0;
    background: radial-gradient(100% 50% at 50% 50%, rgba(8, 106, 216, 0.02) 0%, transparent 100%);
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
    position: relative;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
}

.step-number-glow {
    position: absolute;
    right: -10px;
    top: -20px;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.step-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.step-icon-box i {
    width: 22px;
    height: 22px;
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   AI Solutions Showcase Section
   ========================================================================== */
.solutions-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.solutions-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(123, 97, 255, 0.15);
    border-color: var(--secondary);
    box-shadow: var(--glow-purple);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

/* --- Showcase Display Panel --- */
.showcase-panel {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    margin: 0 auto;
}

.panel-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.circles {
    display: flex;
    gap: 6px;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.circle.r { background: #ef4444; }
.circle.y { background: #f59e0b; }
.circle.g { background: #10b981; }

.panel-tab-title {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.panel-controls {
    color: var(--text-muted);
    cursor: pointer;
}

.panel-controls i {
    width: 14px;
    height: 14px;
}

.panel-content {
    padding: 40px;
    min-height: 380px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.5s ease;
}

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

/* --- Tab 1 Simulator: Chatbot --- */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.chat-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan);
}

.bot-avatar i {
    width: 18px;
    height: 18px;
}

.bot-meta h4 {
    font-size: 0.9rem;
}

.bot-meta span {
    font-size: 0.75rem;
    color: var(--accent);
}

.chat-body {
    padding: 20px;
    height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.9rem;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 12px;
    line-height: 1.4;
}

.chat-msg.system {
    align-self: center;
    background: none;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-right-radius: 2px;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(8, 106, 216, 0.1);
    border: 1px solid rgba(8, 106, 216, 0.2);
    border-bottom-left-radius: 2px;
}

.chat-input-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.chat-input-bar input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-send-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* --- Tab 2 Simulator: Workflow Node Tree --- */
.workflow-builder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    transition: var(--transition-smooth);
}

.node-item.active {
    border-color: var(--secondary);
    background: rgba(123, 97, 255, 0.05);
    box-shadow: 0 10px 25px rgba(123, 97, 255, 0.08);
}

.node-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.node-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.node-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.node-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.node-status {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.node-status.processing {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.connector-line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.connector-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 10px;
    background: var(--accent);
    animation: connectorPulse 3s linear infinite;
}

@keyframes connectorPulse {
    0% { top: -10px; opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* --- Tab 3 Simulator: Analytics Hub --- */
.analytics-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card-mini {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.m-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.m-val {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 4px 0;
}

.m-trend {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-trend i {
    width: 12px;
    height: 12px;
}

.insight-box {
    background: rgba(123, 97, 255, 0.05);
    border: 1px solid rgba(123, 97, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
}

.insight-box i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.insight-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.chart-display {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
}

.svg-chart {
    width: 100%;
    height: auto;
}

.chart-pulse-dot {
    animation: radialPulse 2s infinite;
    transform-origin: center;
}

@keyframes radialPulse {
    0% { r: 4px; opacity: 1; }
    50% { r: 8px; opacity: 0.4; }
    100% { r: 4px; opacity: 1; }
}

/* ==========================================================================
   Customer Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(123, 97, 255, 0.25);
    background: var(--card-bg-hover);
    transform: translateY(-5px);
}

.rating {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    color: #f59e0b;
}

.rating i {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
}

.quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 32px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-meta h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bg-purple { background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.bg-cyan { background: linear-gradient(135deg, var(--accent), var(--primary)); }

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.faq-accordion-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 24px;
}

.faq-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(123, 97, 255, 0.3);
    background: var(--card-bg-hover);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta-section {
    padding: 120px 0;
    position: relative;
}

.cta-glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(5, 5, 10, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    background: rgba(5, 5, 7, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--text-primary);
    background: rgba(123, 97, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.social-links a i {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h5 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-newsletter h5 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 100px;
}

.newsletter-form input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding-left: 16px;
    font-size: 0.9rem;
}

.newsletter-form button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.newsletter-form button i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ==========================================================================
   Responsive Media Queries (Desktop-first)
   ========================================================================== */

/* --- Tablet / Large Devices (Under 1024px) --- */
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-metrics {
        justify-content: center;
    }
    
    .canvas-container {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .span-full {
        grid-column: span 2;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: span 3;
        max-width: 480px;
    }
    
    .why-visual {
        margin-top: 20px;
    }
}

/* --- Small Devices / Mobiles (Under 768px) --- */
@media (max-width: 768px) {
    .nav-menu, .header-ctas {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .span-full {
        grid-column: span 1;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .analytics-showcase {
        grid-template-columns: 1fr;
    }
    
    .cta-actions, .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .floating-card {
        display: none; /* Hide floating UI cards on mobile to clear spacing */
    }
}

/* ==========================================================================
   GSAP & Scroll Animation Classes
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}
