/* ==========================================
   KONSYA TECHNOLOGY - DESIGN SYSTEM & STYLES
   ========================================== */

/* 1. CSS Variables & Design Tokens */
:root {
    /* Color Palette - Vibrant Professional */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7ff;        /* Soft blue-tinted white */
    --color-card: #ffffff;
    --color-card-hover: #eef1ff;
    
    --color-primary: #4338ca;       /* Deep vibrant Indigo */
    --color-primary-hover: #3730a3;
    --color-secondary: #0284c7;     /* Vivid Sky Blue */
    --color-secondary-hover: #0369a1;
    --color-accent: #7c3aed;        /* Purple accent */
    --color-accent2: #0891b2;       /* Cyan accent */
    
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: rgba(67, 56, 202, 0.12);
    --color-border-glow: rgba(67, 56, 202, 0.25);
    
    --color-success: #10b981;
    --color-error: #ef4444;
    
    /* Gradients - More vibrant */
    --grad-primary: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #0284c7 100%);
    --grad-primary-simple: linear-gradient(135deg, #4338ca 0%, #0284c7 100%);
    --grad-dark: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
    --grad-glow: radial-gradient(circle, rgba(67, 56, 202, 0.1) 0%, transparent 70%);
    --grad-card: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows - elevated for depth */
    --shadow-sm: 0 1px 4px rgba(67, 56, 202, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px -2px rgba(67, 56, 202, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px -6px rgba(67, 56, 202, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(67, 56, 202, 0.18), 0 0 60px rgba(67, 56, 202, 0.07);
    --shadow-card-hover: 0 16px 40px -8px rgba(67, 56, 202, 0.22), 0 4px 12px rgba(0,0,0,0.08);
}

/* 2. Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--color-bg-alt);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.paragraph {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* 3. Reusable Components & Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--transition-slow);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(67, 56, 202, 0.35);
    letter-spacing: 0.3px;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(67, 56, 202, 0.5);
    filter: brightness(1.08);
}
.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(67, 56, 202, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background: rgba(67, 56, 202, 0.1);
    border-color: var(--color-border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid rgba(67, 56, 202, 0.2);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(67, 56, 202, 0.15);
    transform: translateY(-2px);
    background: rgba(67, 56, 202, 0.04);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

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

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.w-100 { width: 100%; }

/* Sections Common */
section {
    padding: 90px 0;
    position: relative;
}

.section-tag {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 30px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    margin: 0 auto 48px;
    border-radius: var(--border-radius-sm);
}

/* Top Info Bar */
.top-info-bar {
    background: #11131e;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-items-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    transition: var(--transition-fast);
}

a.top-info-item:hover {
    color: #ffffff;
}

.top-info-icon {
    color: #6366f1; /* Glowing indigo icon */
    flex-shrink: 0;
}

/* 4. Header & Navigation */
.main-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-normal);
}

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

/* Burger Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-normal);
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition-slow);
    z-index: 999;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* 5. Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: radial-gradient(ellipse at 40% 20%, #dde4ff 0%, #f0f4ff 35%, var(--color-bg) 70%);
    overflow: hidden;
}

/* Decorative tech elements */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(67, 56, 202, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 56, 202, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0%   { opacity: 0.14; transform: translate(0, 0) scale(1); }
    50%  { opacity: 0.2;  transform: translate(20px, -20px) scale(1.05); }
    100% { opacity: 0.14; transform: translate(-10px, 15px) scale(0.97); }
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #818cf8 0%, #4338ca 100%);
    top: 5%;
    left: 8%;
    animation-delay: 0s;
}

.orb-2 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, #38bdf8 0%, #7c3aed 100%);
    bottom: 5%;
    right: 3%;
    animation-delay: -4s;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.highlight {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-footer-bar {
    width: 100%;
    max-width: 900px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-footer-bar .divider {
    color: rgba(15, 23, 42, 0.1);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-slide-up {
    animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

/* Scroll reveal - triggered by JS observer */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 6. About Section */
.about-section {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}

.about-subheading {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.mv-container {
    margin-top: 40px;
}

.mv-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.mv-card:hover {
    border-color: var(--color-border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mv-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mv-icon {
    font-size: 1.5rem;
}

.mv-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.mv-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Stats panel */
.about-stats-panel {
    position: relative;
}

.stats-card-wrapper {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Values Widget */
.values-widget {
    margin-top: 32px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.values-list li {
    display: flex;
    gap: 16px;
}

.val-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
}

.val-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.val-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* 7. Capabilities Section */
.capabilities-section {
    background-color: var(--color-bg);
}

.tabs-header-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    padding: 14px 26px;
    border-radius: 50px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 50px;
    z-index: 0;
}

.tab-btn > * { position: relative; z-index: 1; }

.tab-btn:hover {
    border-color: var(--color-border-glow);
    color: var(--color-primary);
    background-color: var(--color-card-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(67, 56, 202, 0.38);
    transform: translateY(-1px);
}

/* Tab contents */
.tabs-content-container {
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tabs-content-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.capability-panel-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.cap-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cap-heading {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cap-bullets {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cap-bullets li {
    padding-left: 28px;
    position: relative;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.cap-bullets li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Visual displays for capabilities */
.cap-visual-side {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Model visual node chart */
.visual-nodes {
    width: 200px;
    height: 200px;
    position: relative;
}

.node {
    position: absolute;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transform: translate(-50%, -50%);
    color: var(--color-text);
}

.node.central {
    top: 50%;
    left: 50%;
    background: var(--grad-primary);
    color: #ffffff;
    font-size: 1rem;
    padding: 10px 20px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    border: none;
}

.node.n1 { top: 30%; left: 20%; }
.node.n2 { top: 30%; left: 80%; }
.node.n3 { top: 70%; left: 20%; }
.node.n4 { top: 70%; left: 80%; }

.node-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.node-lines line {
    stroke: rgba(15, 23, 42, 0.08) !important;
}

/* Journey Track Visual */
.journey-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.track-step {
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text-muted);
}

.track-step.done {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.track-step.active {
    background: var(--grad-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.25);
}

.track-arrow {
    color: var(--color-text-muted);
}

/* Agentic Visual */
.agentic-visual {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.agent-circle {
    width: 80px;
    height: 80px;
    background: var(--color-card);
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.agent-radar {
    position: absolute;
    inset: -6px;
    border: 1px solid var(--color-secondary);
    border-radius: 50%;
    animation: radarPulse 2s linear infinite;
    opacity: 0;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.agent-dialog {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    max-width: 220px;
    position: relative;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

.agent-dialog::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--color-border);
}

/* Integration System Visual */
.integration-visual {
    padding: 24px;
}

.integration-nodes {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sys-node {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.sys-node.middleware {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
}

.sys-connector {
    color: var(--color-primary);
    font-weight: bold;
    animation: floatHorizontal 1.5s ease-in-out infinite alternate;
}

@keyframes floatHorizontal {
    0% { transform: translateX(-4px); }
    100% { transform: translateX(4px); }
}

/* Analytics Chart Visual */
.analytics-visual {
    align-items: flex-end;
    padding: 32px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 150px;
    width: 180px;
}

.bar-col {
    flex: 1;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    transition: height 1s ease;
}

.bar-col.b1 { height: 40%; background-color: rgba(79, 70, 229, 0.3); }
.bar-col.b2 { height: 75%; background-color: rgba(79, 70, 229, 0.6); }
.bar-col.b3 { height: 55%; background-color: rgba(8, 145, 178, 0.4); }
.bar-col.b4 { height: 95%; background-color: var(--color-secondary); }

/* Capability Subtabs for Integration/Analytics */
.capability-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.subtab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 18px;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-normal);
    border: 1.5px solid transparent;
}

.subtab-btn:hover {
    color: var(--color-primary);
    background: rgba(67, 56, 202, 0.05);
    border-color: var(--color-border-glow);
}

.subtab-btn.active {
    background: rgba(67, 56, 202, 0.1);
    color: var(--color-primary);
    border-color: rgba(67, 56, 202, 0.25);
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.12);
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 8. Why Us Section */
.why-us-section {
    background: linear-gradient(180deg, #f5f7ff 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}

.why-card {
    background: var(--grad-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-md);
    padding: 1.5px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-normal);
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-10px);
    background: var(--color-card);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-glow);
}

.why-card:hover::before, .why-card:hover::after {
    opacity: 1;
}

.why-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform var(--transition-normal);
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(-5deg);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 9. Industries Section */
.industries-section {
    background-color: var(--color-bg);
}

.filter-buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    border-color: var(--color-border-glow);
    color: var(--color-primary);
    background: rgba(67, 56, 202, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(67, 56, 202, 0.35);
    transform: translateY(-1px);
}

.industries-grid {
    transition: var(--transition-slow);
}

.industry-card {
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 26px;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-card.hidden {
    display: none !important;
}

.industry-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    background: var(--grad-card);
}

.ind-icon {
    font-size: 2rem;
    display: inline-block;
    transition: transform var(--transition-normal);
}

.industry-card:hover .ind-icon {
    transform: scale(1.2) rotate(-8deg);
}

.industry-card h3 {
    font-size: 1.15rem;
    color: var(--color-text);
}

.industry-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 10. Contact Section */
.contact-section {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-tag {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.detail-text p, .detail-text a {
    font-size: 1rem;
    color: var(--color-text);
}

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

/* Form Panel */
.contact-form-panel {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    width: 100%;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

.grid-2-sm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Form Success Overlay */
.form-success-alert {
    position: absolute;
    inset: 0;
    background: var(--color-card);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    z-index: 10;
    animation: fadeIn var(--transition-normal) forwards;
}

.form-success-alert.show {
    display: flex;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.form-success-alert h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.form-success-alert p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 320px;
}

/* 11. Footer */
.main-footer {
    background-color: #0f172a; /* Anchoring dark footer */
    color: #f8fafc;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 40px;
}

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

.footer-about {
    max-width: 400px;
}

.footer-about p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    color: #64748b;
    font-size: 0.85rem;
}

.dev-tag {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.05);
}

/* 12. Mock Agentic Chatbot Widget */
.chatbot-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
}

/* Floating Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    transition: var(--transition-fast);
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
}

.chat-toggle-icon {
    font-size: 1.75rem;
}

.chat-toggle-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-error);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg);
}

.chatbot-pulse-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: radarPulse 2s linear infinite;
}

/* Chat Window Panel */
.chat-window-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-window-panel.open {
    display: flex;
}

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

.chat-header {
    background: #0f172a;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-indicator {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.chat-header .status {
    font-size: 0.7rem;
    color: var(--color-success);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Chat Messages */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    width: 100%;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 80%;
}

.agent-msg {
    justify-content: flex-start;
}

.agent-msg .msg-bubble {
    background: #f1f5f9;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--color-border);
}

.user-msg {
    justify-content: flex-end;
}

.user-msg .msg-bubble {
    background: var(--grad-primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* Chat Suggestions Chips */
.chat-chips-container {
    padding: 0 20px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-chips-container::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    background: rgba(79, 70, 229, 0.06);
    color: var(--color-primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.chip-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Chat Input Bar */
.chat-input-bar {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-bar input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 10px 16px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

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

.chat-input-bar button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

/* Typing state animation */
.typing-msg {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* 13. Responsive Breakpoints */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Nav Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .desktop-nav {
        display: none;
    }
    
    .top-info-bar {
        display: none; /* Hide top bar on mobile for cleaner screen space */
    }
    
    /* Hero Adjustments */
    .hero-section {
        min-height: auto;
    }

    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .hero-footer-bar {
        font-size: 0.8rem;
    }
    
    /* Capabilities Tab container */
    .tabs-content-container {
        padding: 24px;
    }
    
    .capability-panel-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cap-visual-side {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cap-heading {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Chat window size */
    .chat-window-panel {
        width: calc(100vw - 64px);
        right: 0;
    }
}

@media (max-width: 480px) {
    .grid-2-sm {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .contact-form-panel {
        padding: 24px;
    }
}
