@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== MODERN BRAND VARIABLES & RESET ===== */
:root {
    --navy: #0f172a;               /* Obsidian Slate */
    --blue: #4f46e5;               /* Vibrant Indigo */
    --indigo: #4338ca;             /* Deep Indigo */
    --indigo-light: rgba(79, 70, 229, 0.08);
    --teal: #06b6d4;               /* Cyber Cyan / Teal */
    --teal-dark: #0891b2;          /* Luminous Teal Dark */
    --teal-bg: rgba(6, 182, 212, 0.08);
    --teal-border: rgba(6, 182, 212, 0.22);
    --mid: #0284c7;                /* Sky Blue Accent */
    --orchid: #a855f7;             /* Orchid Highlight */
    --bg-light: #f8fafc;           /* Ultra Clean Light Grey */
    --text-gray: #475569;          /* Readable Muted Slate */
    --white: #ffffff;
    --border: #e2e8f0;             /* Subtly Soft Border */
    --shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(79, 70, 229, 0.18), 0 0 20px -5px rgba(6, 182, 212, 0.1);
    --radius: 14px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --logo-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --logo-gradient-h: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
    --dark-bg: #090d16;            /* Premium Dark Mode Surface */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

a { 
    color: var(--blue); 
    text-decoration: none; 
    transition: color var(--transition);
}
a:hover { 
    color: var(--indigo); 
}

img { 
    max-width: 100%; 
    height: auto;
}

/* ===== TYPOGRAPHY OVERHAUL ===== */
h1, h2, h3, h4 { 
    line-height: 1.2; 
    font-weight: 800; 
    color: var(--navy); 
    letter-spacing: -0.02em;
}
h1 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem); 
}
h2 { 
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); 
    margin-bottom: 1rem; 
}
h3 { 
    font-size: 1.25rem; 
    margin-bottom: 0.5rem; 
    font-weight: 700;
}
p { 
    color: var(--text-gray); 
    margin-bottom: 1.25rem; 
    font-size: 0.95rem;
}
p:last-child { 
    margin-bottom: 0; 
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

section { 
    padding: 100px 0; 
    position: relative;
    overflow: hidden;
}
section:nth-child(even) { 
    background: var(--bg-light); 
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-bg);
    border: 1px solid var(--blue-border);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    margin-bottom: 1.5rem;
    max-width: 750px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 720px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ===== PREMIUM NAVIGATION ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0 32px;
    transition: all var(--transition);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition);
}
.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo-mark {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition), left var(--transition);
}

.nav-links a:hover { 
    color: var(--navy); 
}
.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-cta {
    background: var(--logo-gradient);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ===== HIGH-TECH HERO ===== */
#hero {
    padding: 20px 0;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
                linear-gradient(175deg, #f1f5f9 0%, var(--white) 80%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-bg);
    border: 1px solid var(--blue-border);
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    display: block;
    animation: beacon 2s infinite;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title span { 
    background: var(--logo-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: var(--logo-gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    transition: all var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    transition: all var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(79, 70, 229, 0.04);
}

.hero-trust {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-trust::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--teal);
    display: block;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== GLOWING HERO GRAPHIC PANEL ===== */
.hero-diagram {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.08), 
                0 0 0 1px rgba(79, 70, 229, 0.03);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
}

.hero-visual {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.hero-visual-wrapper:hover .hero-visual {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 1.5s infinite;
}

.diagram-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(226,232,240,0) 0%, rgba(226,232,240,1) 50%, rgba(226,232,240,0) 100%);
    margin: 24px 0 20px;
}

.diagram-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 20px;
    text-align: center;
}

.diagram-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.diagram-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.diagram-layer {
    text-align: center;
    padding: 10px 0;
}

.diagram-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
}

.diagram-arrow svg {
    color: var(--teal);
    filter: drop-shadow(0 2px 4px rgba(6,182,212,0.2));
}

.d-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all var(--transition);
}
.d-chip:hover {
    border-color: var(--blue-border);
    transform: translateY(-1px);
}

.d-chip.blue {
    background: var(--blue-bg);
    border-color: var(--blue-border);
    color: var(--blue);
}

.d-chip.teal {
    background: var(--teal-bg);
    border-color: var(--teal-border);
    color: var(--teal-dark);
}

.d-chip.navy {
    background: var(--logo-gradient);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(79,70,229,0.15);
}

.diagram-layer-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* ===== PROBLEM CARDS (GLOWING GLASS) ===== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.problem-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background var(--transition);
}

.problem-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.15);
}

.problem-card:hover::before {
    background: var(--logo-gradient-h);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.2);
}

.card-icon.red { 
    background: rgba(239, 68, 68, 0.1); 
    color: #ef4444; 
}
.card-icon.amber { 
    background: rgba(245, 158, 11, 0.1); 
    color: #f59e0b; 
}
.card-icon.blue-light { 
    background: var(--blue-bg); 
    color: var(--blue); 
}

.problem-card h3 { 
    font-size: 1.15rem; 
    margin-bottom: 10px;
}
.problem-card p { 
    font-size: 0.88rem; 
    line-height: 1.6;
    margin: 0;
}

/* ===== SOLUTION GRID ===== */
.solution-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.solution-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-3px);
}

.solution-card .card-icon {
    background: var(--teal-bg);
    color: var(--teal-dark);
}

.solution-card h3 { 
    font-size: 1rem; 
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
}

/* ===== DYNAMIC PROCESS STEPS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
    z-index: 0;
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 10px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-gray);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all var(--transition);
}

.process-step:hover .step-number {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.step-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== USE CASES OVERHAUL ===== */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.usecase-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--logo-gradient-h);
    opacity: 0;
    transition: opacity var(--transition);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.usecase-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.12);
}

.usecase-card:hover::before { 
    opacity: 1; 
}

.usecase-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--teal-bg);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.2);
}

.usecase-card h3 { 
    font-size: 1.2rem; 
    margin-bottom: 12px;
}
.usecase-card p { 
    font-size: 0.9rem; 
    line-height: 1.65;
    flex: 1;
    margin-bottom: 24px;
}

.usecase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-bg);
    border: 1px solid var(--blue-border);
    border-radius: 8px;
    transition: all var(--transition);
}

.usecase-card:hover .usecase-link {
    background: var(--logo-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(79,70,229,0.15);
}

/* ===== ONTOLOGY SECTION (COMPARISON TABLE) ===== */
.ontology-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.comparison-table thead tr {
    background: var(--navy);
    color: var(--white);
}

.comparison-table thead th {
    padding: 18px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
}

.comparison-table thead th:first-child { 
    color: #94a3b8; 
}
.comparison-table thead th:last-child { 
    color: var(--teal); 
}

.comparison-table tbody tr { 
    background: var(--white); 
    transition: background var(--transition);
}
.comparison-table tbody tr:hover {
    background: rgba(79,70,229,0.02);
}
.comparison-table tbody tr:nth-child(even) { 
    background: var(--bg-light); 
}
.comparison-table tbody tr:nth-child(even):hover { 
    background: rgba(79,70,229,0.02); 
}

.comparison-table tbody td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child { 
    color: var(--navy); 
    font-weight: 600;
}
.comparison-table tbody td:last-child { 
    color: var(--blue); 
    font-weight: 700; 
}

.check-icon { 
    color: #10b981; 
    font-weight: 800; 
    margin-right: 8px; 
    background: rgba(16,185,129,0.1);
    padding: 2px 6px;
    border-radius: 6px;
}
.cross-icon { 
    color: #94a3b8; 
    margin-right: 8px; 
    background: rgba(148,163,184,0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

/* ===== TECHNOLOGY GRID ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.tech-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.15);
    transform: translateY(-4px);
}

.tech-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--blue-bg);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.2);
}

.tech-card h3 { 
    font-size: 1rem; 
    font-weight: 800; 
}

.tech-note {
    margin-top: 2.5rem;
    padding: 18px 24px;
    background: var(--teal-bg);
    border: 1px solid var(--teal-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.tech-note-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

.benefit-dot {
    width: 10px;
    height: 10px;
    background: var(--teal);
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.benefit-card h3 { 
    font-size: 1.05rem; 
    font-weight: 800; 
}
.benefit-card p { 
    font-size: 0.85rem; 
    line-height: 1.6;
    margin: 0;
}

/* ===== PREMIUM NEON-GLOW CONTACT / CTA ===== */
#contact {
    background: var(--dark-bg);
    position: relative;
    padding: 120px 0;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

#contact .section-label { 
    color: var(--teal); 
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

#contact .section-title { 
    color: var(--white); 
    max-width: 750px; 
    margin: 0 auto 1.5rem;
}

#contact p { 
    color: #94a3b8; 
    max-width: 600px; 
    margin: 0 auto 3rem; 
    font-size: 1.05rem;
}

.contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-btn-primary {
    background: var(--logo-gradient);
    color: var(--white);
    padding: 16px 38px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
    transition: all var(--transition);
    display: inline-block;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
    color: var(--white);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 1rem;
}

.contact-email svg {
    color: var(--teal);
}

.contact-email a {
    color: #94a3b8;
    font-weight: 600;
    transition: color var(--transition);
}

.contact-email a:hover { 
    color: var(--teal); 
}

/* ===== FOOTER SYSTEM ===== */
footer {
    background: #0b0f19;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo-img { 
    height: 36px; 
    width: auto; 
    max-width: none; 
    object-fit: contain; 
    opacity: 0.9; 
    filter: brightness(0) invert(1); 
    display: block; 
}
.footer-tagline { 
    color: #475569; 
    font-size: 0.85rem; 
}

.footer-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.footer-copy {
    color: #334155;
    font-size: 0.8rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ===== INSIGHTS & BLOG ENGINE ===== */
.nav-active { 
    color: var(--navy) !important; 
    font-weight: 800 !important; 
}

.insights-hero {
    background: linear-gradient(160deg, #f1f5f9 0%, var(--white) 80%);
    padding: 88px 0 60px;
    border-bottom: 1px solid var(--border);
}
.insights-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin: 0.25rem 0 1rem;
}
.insights-hero-sub {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 680px;
    line-height: 1.75;
    margin: 0;
}

.insights-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 100;
    padding: 16px 0;
}
.insights-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}
.filter-btn:hover { 
    background: var(--blue-bg); 
    border-color: var(--blue-border); 
    color: var(--blue); 
}
.filter-btn.active { 
    background: var(--blue); 
    border-color: var(--blue); 
    color: var(--white); 
    box-shadow: 0 4px 10px rgba(79,70,229,0.25);
}

.insights-section { 
    padding: 80px 0 100px; 
    background: var(--white); 
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.insight-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.12);
    color: inherit;
}

.insight-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}
.insight-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
}
.insight-card:hover .insight-card-img img { 
    transform: scale(1.05); 
}

.insight-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.insight-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    gap: 10px;
}
.insight-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.35;
    margin: 0;
}
.insight-card-summary {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.insight-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}
.insight-meta-sep { 
    color: var(--border); 
}
.insight-meta-read { 
    color: var(--blue); 
    font-weight: 700; 
}

/* ===== ARTICLE DETAILS ENGINE ===== */
.article-hero-img {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--navy);
}
.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.85) 100%);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    padding: 32px 0 0;
    font-weight: 600;
}
.article-breadcrumb a { 
    color: var(--blue); 
    font-weight: 700; 
}
.article-breadcrumb a:hover { 
    color: var(--indigo); 
}
.article-breadcrumb span:last-child { 
    color: #94a3b8; 
}

.article-header {
    max-width: 800px;
    padding: 24px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.article-header .insight-category {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
    border-radius: 100px;
}
.article-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
}
.article-lead {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.article-body {
    max-width: 800px;
    padding-bottom: 60px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-gray);
}
.article-body p { 
    margin-bottom: 1.5rem; 
    color: var(--text-gray); 
}
.article-body p:last-child { 
    margin-bottom: 0; 
}
.article-body h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    font-weight: 800;
}
.article-body em { 
    color: var(--navy); 
    font-style: italic; 
}
.article-body ul, .article-body ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}
.article-body li { 
    margin-bottom: 0.5rem; 
}

.article-cta-block {
    border-top: 1px solid var(--border);
    padding: 60px 0 80px;
    max-width: 800px;
}
.article-cta-inner {
    background: linear-gradient(135deg, rgba(79,70,229,0.03) 0%, rgba(6,182,212,0.03) 100%);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 20px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.article-cta-inner h2 { 
    font-size: 1.6rem; 
    margin-bottom: 10px; 
}
.article-cta-inner p { 
    font-size: 1rem; 
    margin-bottom: 24px; 
}

.related-section {
    background: var(--bg-light);
    padding: 80px 0 100px;
    border-top: 1px solid var(--border);
}
.related-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== RESPONSIVE FLOW BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-diagram { max-width: 600px; margin: 2rem auto 0; }
    .solution-layout { grid-template-columns: 1fr; gap: 3rem; }
    .ontology-layout { grid-template-columns: 1fr; gap: 3rem; }
    .process-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .process-steps::before { display: none; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 24px 32px 32px;
        gap: 1.5rem;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }
    .nav-links.open a::after { display: none; }
    .nav-toggle { display: flex; }
    .nav { position: relative; }
    
    .problem-grid { grid-template-columns: 1fr 1fr; }
    .usecase-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .insights-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    
    .insights-filter-bar { 
        top: 0; 
        padding: 10px 0;
    }
    .insights-filter-bar .container {
        padding: 0;
    }
    .insights-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 4px 24px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .insights-filters::-webkit-scrollbar {
        display: none;
    }
    .article-hero-img { height: 320px; }
}

@media (max-width: 640px) {
    section { padding: 80px 0; }
    .container { padding: 0 24px; }
    .nav { padding: 0 24px; }
    .nav-links.open { padding: 24px; }
    
    .problem-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .usecase-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .insights-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-direction: column; gap: 1rem; }
    
    .article-hero-img { height: 240px; }
    .article-cta-inner { padding: 32px 24px; }
    .related-grid .insight-card:nth-child(n+3) { display: none; }

    /* Mobile Card Transformation for Comparison Table */
    .comparison-table, 
    .comparison-table thead, 
    .comparison-table tbody, 
    .comparison-table tr, 
    .comparison-table td {
        display: block;
        width: 100%;
    }
    
    .comparison-table {
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 1rem;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow);
        background: var(--white);
        transition: transform var(--transition);
        padding: 20px;
    }
    
    .comparison-table tr:hover {
        transform: translateY(-2px);
    }
    
    .comparison-table tr:last-child {
        margin-bottom: 0;
    }
    
    .comparison-table tr:nth-child(even) {
        background: var(--white);
    }
    
    .comparison-table td {
        padding: 10px 0;
        border: none;
        text-align: left;
    }
    
    /* First cell is the parameter name (Attribute) */
    .comparison-table td:first-child {
        color: var(--blue);
        font-weight: 800;
        font-size: 1.1rem;
        padding-top: 0;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--border);
        margin-bottom: 12px;
    }
    
    .comparison-table td:nth-child(2)::before {
        content: "Generic Search: ";
        display: inline;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
        margin-right: 6px;
    }
    
    .comparison-table td:nth-child(3) {
        background: var(--teal-bg);
        border: 1px solid var(--teal-border);
        border-radius: 10px;
        padding: 12px 16px;
        margin-top: 10px;
    }
    
    .comparison-table td:nth-child(3)::before {
        content: "Ontology-Based Mining";
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--teal-dark);
        margin-bottom: 4px;
    }
    
    .comparison-table .cross-icon {
        display: none;
    }
}

/* ===== ENHANCED MICRO-ANIMATIONS ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes beacon {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fade-up { 
    opacity: 0; 
    transform: translateY(24px); 
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

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

/* ===== HOME INSIGHTS PREVIEW COMPONENT ===== */
#insights-preview {
    background: var(--white);
}

.home-insights-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.home-insights-header .section-title { margin-bottom: 0.5rem; }
.home-insights-header .section-intro { margin-bottom: 0; }

.home-insights-cta {
    white-space: nowrap;
    flex-shrink: 0;
}

.home-insights-footer {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
    .home-insights-header { flex-direction: column; align-items: flex-start; }
}
