/* style.css - maps Platform Corporate Website */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors */
    --primary-900: #1e3a8a;
    --primary-800: #1e40af;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --primary-300: #93c5fd;
    --primary-200: #bfdbfe;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;

    /* Secondary - Sky Blue */
    --secondary-900: #0c4a6e;
    --secondary-800: #075985;
    --secondary-700: #0369a1;
    --secondary-600: #0284c7;
    --secondary-500: #0ea5e9;
    --secondary-400: #38bdf8;

    /* Accent Colors */
    --accent-orange: #f97316;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;

    /* Slate Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Semantic Colors */
    --bg-primary: var(--white);
    --bg-secondary: var(--slate-50);
    --bg-dark: var(--slate-900);
    --bg-darker: var(--slate-950);
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-500);
    --text-light: var(--slate-400);
    --text-inverse: var(--white);
    --border-color: var(--slate-200);
    --border-light: var(--slate-100);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-teal: 0 10px 40px -10px rgba(37, 99, 235, 0.35);
    --shadow-cyan: 0 10px 40px -10px rgba(14, 165, 233, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}


/* ========================================
   Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--slate-700); background-color: var(--white); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--slate-900); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { color: var(--slate-600); margin-bottom: 1rem; }


/* ========================================
   Container
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-2xl); }
}


/* ========================================
   Section
   ======================================== */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-full);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
}


/* ========================================
   Buttons
   ======================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600; border-radius: 0.5rem; transition: all 0.2s; border: none; }
.btn-primary { background: var(--primary-600); color: var(--white); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--slate-700); border: 2px solid var(--slate-200); }
.btn-secondary:hover { border-color: var(--primary-500); color: var(--primary-700); }
.btn-outline { background: transparent; color: var(--primary-600); border: 2px solid var(--primary-500); }
.btn-glass { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }


/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link { color: var(--slate-700); }
.navbar.scrolled .logo-text { color: var(--slate-900); }
.navbar.scrolled .nav-toggle span { background-color: var(--slate-900); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--primary-600); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .nav-container { padding: 0 2rem; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 102;
}

.nav-logo .logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-cta {
    background: var(--primary-600);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--primary-500); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 102;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-900) 100%);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        padding: 1.5rem 2rem;
        color: var(--white) !important;
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 2rem;
        color: var(--white) !important;
    }
}


/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Backgrounds */
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-900) 100%); z-index: -1; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.2), transparent 70%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5; }
.floating-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 20s infinite linear; }
.shape-1 { width: 500px; height: 500px; background: var(--primary-600); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary-500); bottom: -100px; left: -100px; animation-direction: reverse; }

/* Hero Container - Desktop Grid */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container { padding: 0 2rem; }
}

/* Hero Content (Left column, row 1) */
.hero-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: left;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Hero Typography */
.hero-title { color: var(--white); margin-bottom: 1rem; line-height: 1.1; letter-spacing: -0.02em; }
.hero-title-md { font-size: clamp(2.0rem, 3.9vw, 2.9rem); }
.title-line { display: inline; }
.text-white { color: var(--white); }
.text-blue { color: var(--primary-300); }

.hero-description {
    color: var(--slate-300);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 500px;
}

/* Hero Buttons (Left column, row 2) */
.hero-buttons {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: 0;
}

/* Hero Visual (Right column, spans both rows) */
.hero-visual {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Diagram */
.platform-illustration {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    overflow: visible !important;
    transform-origin: center center;
}

.illustration-base { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px 0; }
.vis-layer { display: flex; justify-content: center; align-items: center; width: 100%; position: relative; z-index: 2; }
.vis-layer.mid-layer { justify-content: space-between; width: 80%; max-width: 450px; }
.vis-node { position: relative; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; cursor: pointer; margin-bottom: 30px; }
.vis-node:hover { transform: translateY(-5px) scale(1.05); }

/* Nodes */
.circle-node {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.node-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.node-content svg { width: 48px; height: 48px; color: var(--white); opacity: 0.9; }
.vis-node::after { content: attr(data-label); position: absolute; bottom: -35px; left: 50%; transform: translateX(-50%); width: 140px; text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--white); background: rgba(0,0,0,0.6); padding: 3px 6px; border-radius: 4px; pointer-events: none; opacity: 1; line-height: 1.2; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); }

/* Node Glows */
.primary-glow { background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(37, 99, 235, 0.1)); border-color: var(--primary-400); box-shadow: 0 0 40px rgba(37, 99, 235, 0.3); }
.cloud-glow { background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(37, 99, 235, 0.2)); border-color: var(--slate-400); box-shadow: 0 0 40px rgba(148, 163, 184, 0.2); }

/* Connection Lines */
.connection-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lines-svg { width: 100%; height: 100%; }
.conn-line { stroke: white; stroke-width: 1.5; opacity: 0.8; stroke-dasharray: 4 4; animation: dash 30s linear infinite; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4)); }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--slate-400); font-size: 0.7rem; animation: scrollBounce 2s ease-in-out infinite; z-index: 10; }
.mouse { width: 20px; height: 32px; border: 2px solid var(--slate-500); border-radius: 9999px; position: relative; }
.wheel { width: 3px; height: 6px; background: var(--primary-400); border-radius: 9999px; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); animation: wheelScroll 2s ease-in-out infinite; }

/* Hero Animations */
@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes wheelScroll { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; } 50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; } }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } }

/* Hero - Mobile Responsive */
@media (max-width: 1023px) {
    .hero {
        padding-bottom: 3rem;
        min-height: auto;
        align-items: flex-start;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        padding-top: 6rem;
        height: auto;
        gap: 0;
        align-items: center;
    }

    .hero-content {
        order: 1;
        text-align: center;
        margin-bottom: 1.25rem;
        width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }

    .hero-buttons {
        order: 2;
        justify-content: center;
        align-items: center;
        margin-top: 0;
        margin-bottom: 2rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-visual {
        display: flex !important;
        order: 3;
        width: 100%;
        margin-bottom: 0;
    }

    .platform-illustration {
        height: 300px !important;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        transform: scale(1) !important;
    }

    .circle-node { width: 65px !important; height: 65px !important; }
    .node-content svg { width: 28px !important; height: 28px !important; }
    .vis-node::after { font-size: 0.6rem; width: 70px; bottom: -22px; }
    .conn-line { stroke-width: 1; opacity: 0.4; }

    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   Features Grid
   ======================================== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--white); border: 2px solid var(--slate-200); border-radius: 1rem; padding: 1.5rem; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-500), var(--secondary-500)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary-400); box-shadow: var(--shadow-xl); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--primary-100); border-radius: 1rem; color: var(--primary-700); transition: all 0.25s ease; }
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--primary-500), var(--secondary-500)); border-color: transparent; color: var(--white); transform: scale(1.1); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--slate-500); margin: 0; }


/* ========================================
   What is maps Section
   ======================================== */
.what-is-maps { background: var(--slate-50); position: relative; overflow: hidden; }
.what-is-maps::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-200), transparent); }
.what-is-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .what-is-grid { grid-template-columns: 1fr auto 1fr; gap: 3rem; } }

.needs-column, .solution-column { background: var(--white); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-100); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; }
.needs-column:hover, .solution-column:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.column-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.header-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); border-radius: 0.75rem; color: var(--primary-700); flex-shrink: 0; }
.header-icon svg { width: 24px; height: 24px; }
.header-icon.solution { background: linear-gradient(135deg, var(--secondary-100), var(--secondary-50)); color: var(--secondary-700); }
.column-header h3 { font-size: 1.25rem; line-height: 1.4; margin: 0; }

.needs-list, .solution-list { display: flex; flex-direction: column; gap: 1rem; flex-grow: 1; }
.need-item, .solution-item { display: flex; gap: 1rem; padding: 1rem; background: var(--slate-50); border-radius: 0.75rem; transition: all 0.25s ease; align-items: flex-start; }
.need-item:hover, .solution-item:hover { background: var(--primary-50); transform: translateX(4px); }
.need-icon, .solution-check { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.need-icon { border-radius: 0.5rem; color: var(--white); }
.need-icon svg { width: 16px; height: 16px; }
.need-icon.flexibility { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); }
.need-icon.quickness { background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange)); }
.need-icon.safety { background: linear-gradient(135deg, var(--accent-emerald), var(--secondary-600)); }
.solution-check { background: var(--primary-600); border-radius: 9999px; color: var(--white); }
.solution-check svg { width: 14px; height: 14px; }
.need-content h4, .solution-text h4 { font-size: 1rem; margin: 0 0 0.25rem 0; color: var(--slate-900); }
.need-content p, .solution-text p { font-size: 0.875rem; color: var(--slate-600); margin: 0; line-height: 1.6; }
.solution-cta { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--slate-100); }

.arrow-column { display: none; justify-content: center; align-items: center; }
@media (min-width: 1024px) { .arrow-column { display: flex; } }
.arrow-container { width: 80px; height: 200px; display: flex; align-items: center; justify-content: center; }
.transform-arrow { width: 60px; height: auto; color: var(--primary-600); animation: arrowPulse 2s ease-in-out infinite; }
@keyframes arrowPulse { 0%, 100% { opacity: 0.7; transform: translateX(0); } 50% { opacity: 1; transform: translateX(5px); } }


/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-900) 100%);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header .section-badge {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--primary-300);
}

.page-header .section-title { color: var(--white); }
.page-header .section-subtitle { color: var(--slate-300); }


/* ========================================
   Visual Layout
   ======================================== */
.visual-layout {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 1rem 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #EFF6FF 100%);
    overflow: hidden;
}

.visual-layout .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 1100px;
    width: 100%;
    gap: 1.25rem;
}

/* Unified Blue Card Style */
.side-app-box,
.platform-core-container,
.team-core-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 1rem;
    box-shadow: 0 4px 20px -5px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.side-app-box:hover,
.platform-core-container:hover,
.team-core-container:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-400);
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* Unified Blue Headers */
.side-box-header,
.core-header,
.team-header {
    background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.side-box-header h3,
.core-header h3,
.team-header h3 {
    font-size: 0.85rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.core-header span,
.team-header span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: auto;
    display: none;
}

.side-box-header svg {
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

/* Content Body */
.side-box-content {
    padding: 0.75rem 1rem;
    flex: 1;
}

.side-box-content p {
    font-size: 0.7rem;
    color: var(--primary-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.clean-list { list-style: none; padding: 0; margin: 0; }

.clean-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    color: var(--primary-800);
    line-height: 1.4;
}
.clean-list li:last-child { margin-bottom: 0; }

.clean-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-300);
    transition: background 0.3s;
}

/* Platform Grid */
.layout-row-top { display: flex; justify-content: space-between; gap: 1.5rem; width: 100%; flex: 0 0 auto; }
.side-app-box { flex: 1; }
.layout-row-middle { width: 100%; flex: 1; display: flex; justify-content: center; }
.platform-core-container { width: 100%; }

.core-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(191, 219, 254, 0.5);
    flex: 1;
}

.core-box {
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.core-box:hover { background: var(--white); }

.core-icon-wrap {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    color: var(--primary-600);
    transition: all 0.3s ease;
}

.core-box:hover .core-icon-wrap { background: var(--primary-600); color: var(--white); transform: scale(1.1); }
.core-icon-wrap svg { width: 18px; height: 18px; }
.core-box h4 { color: var(--primary-800); font-size: 0.8rem; margin: 0; transition: color 0.3s; }
.core-box:hover h4 { color: var(--primary-600); }

/* Team Section */
.layout-row-bottom { width: 100%; flex: 1; display: flex; justify-content: center; }
.team-core-container { width: 100%; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(191, 219, 254, 0.5);
    flex: 1;
}

.team-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.team-box:hover { background: var(--white); }

.team-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: none;
}

.team-box:hover .team-icon-wrap { background: var(--primary-600); color: var(--white); }
.team-icon-wrap svg { width: 18px; height: 18px; }
.team-info h4 { margin: 0 0 0.1rem 0; font-size: 0.85rem; color: var(--primary-800); transition: color 0.3s; }
.team-box:hover .team-info h4 { color: var(--primary-600); }
.team-info p { margin: 0; font-size: 0.7rem; color: var(--primary-500); }

/* Visual Layout Mobile */
@media (max-width: 768px) {
    .visual-layout {
        display: flex;
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding: 6rem 0 2rem;
        overflow: visible;
    }

    .visual-layout .container {
        height: auto;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .layout-row-top { flex-direction: column; gap: 1rem; }
    .core-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .diagram-section { overflow: visible; }
}


/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--slate-900), var(--primary-900));
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content { text-align: center; position: relative; z-index: 2; }

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-300);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.cta-title { color: var(--white); margin-bottom: var(--space-md); }
.cta-description { color: var(--slate-300); font-size: 1.125rem; max-width: 600px; margin: 0 auto var(--space-xl); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }


/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--slate-900);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand { max-width: 300px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo .logo-icon { width: 36px; height: 36px; }
.footer-logo span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.footer-description { color: var(--slate-400); font-size: 0.9375rem; line-height: 1.7; }

.footer-links h4 { color: var(--white); font-size: 0.9375rem; font-weight: 600; margin-bottom: var(--space-lg); }
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { color: var(--slate-400); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-400); }

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--slate-800);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-bottom p { color: var(--slate-500); font-size: 0.875rem; margin: 0; }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { color: var(--slate-500); font-size: 0.875rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--primary-400); }


/* ========================================
   Animations & Reveals
   ======================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }


/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }


/* ========================================
   Platform Components Section
   ======================================== */
.overview-section { padding: var(--space-4xl) 0; }

.platform-component {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-2xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-component:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

.component-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(to right, var(--slate-50), var(--white));
    border-bottom: 1px solid var(--border-light);
}

.component-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.component-title h3 { margin: 0 0 var(--space-xs) 0; font-size: 1.25rem; }
.component-title p { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }

.component-content {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.sub-component {
    background: var(--slate-50);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid var(--slate-100);
}

.sub-component-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.sub-component-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-md);
    color: var(--primary-600);
}

.sub-component-header h4 { margin: 0; font-size: 1rem; color: var(--slate-800); }

.sub-component ul { list-style: none; padding: 0; margin: 0; }

.sub-component ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--slate-600);
}

.sub-component ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
}

/* ========================================
   Benefits Page
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.benefit-card.flexibility::before { background: linear-gradient(90deg, var(--primary-500), var(--primary-400)); }
.benefit-card.quickness::before { background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange)); }
.benefit-card.safety::before { background: linear-gradient(90deg, var(--accent-emerald), var(--secondary-600)); }
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2xl); }

.benefit-icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xl); margin-bottom: var(--space-lg); }
.benefit-card.flexibility .benefit-icon { background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); color: var(--primary-700); }
.benefit-card.quickness .benefit-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1)); color: var(--accent-orange); }
.benefit-card.safety .benefit-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.1)); color: var(--accent-emerald); }

.benefit-card h3 { font-size: 1.5rem; margin-bottom: var(--space-md); }
.benefit-card > p { font-size: 1rem; color: var(--text-secondary); margin-bottom: var(--space-lg); }

.benefit-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.benefit-list li { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.9375rem; color: var(--text-secondary); }
.benefit-list li::before { content: ''; width: 8px; height: 8px; background: var(--primary-500); border-radius: var(--radius-full); flex-shrink: 0; }

@media (min-width: 1024px) {
    .additional-benefits .features-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ========================================
   Comparison Section (Renamed Classes)
   ======================================== */
.comparison-section {
    padding: var(--space-4xl) 0;
}

.comparison-section:nth-child(even) {
    background: var(--bg-secondary);
}

.architecture-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

@media (min-width: 1024px) {
    .architecture-comparison {
        grid-template-columns: 1fr 1fr; /* Side-by-side on desktop */
        align-items: stretch;
    }
}

/* --- Comparison Blocks (The Columns) --- */
.comp-block {
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comp-block.maps {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
    color: var(--white);
}

.comp-block.in-house {
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
    color: var(--white);
}

/* Block Header */
.comp-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.comp-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
}

.comp-header h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
}

.comp-block > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Diagram Structure --- */
.comp-diagram {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1; /* Fills remaining vertical space */
}

.comp-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

/* --- Boxes --- */
.comp-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    flex: 1; /* Grows to fill row */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-width: 80px; /* Minimum width for readability */
}

.comp-box.highlight {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--primary-400);
}

/* Long Block Logic (Spans full width) */
.comp-box.long-block {
    flex: 1 1 100%;
    width: 100%;
}

.comp-box h4 {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
}

.comp-box p {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.3;
}

.comp-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

/* --- Metrics / Efficiency Section --- */
.comp-metric {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: var(--space-md);
    gap: var(--space-md);
}

.comp-metric-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comp-metric h4 {
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.comp-metric p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .comp-box {
        min-width: 70px;
    }
    
    .comp-metric {
        padding: var(--space-sm);
    }
}

/* ========================================
   Architecture Diagram - Bank Guarantee Loan (COMPACT)
   ======================================== */
.arch-diagram {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: var(--space-lg);
}

/* SVG Layer — sits on top of grid, pointer-events off */
.arch-svg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* 5-column grid: [left-cards] [gap] [center] [gap] [right-cards]
   Gap columns are corridors where horizontal arrow badges sit.    */
.arch-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 160px 55px 1fr 55px 160px;
    gap: 0;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* Left column — large gap so arrows 1 & 7 have clear space between the two cards */
.arch-col.left-col  { grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; }
/* Center column spans grid col 3 */
.arch-col.center-col { grid-column: 3; }
/* Right column spans grid col 5 */
.arch-col.right-col { grid-column: 5; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }

/* --- Actor Blocks --- */
.actor-block {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 5;
    flex-shrink: 0;
}
.actor-block:hover { transform: translateY(-2px); border-color: #3b82f6; }

.block-header { font-size: 0.85rem; font-weight: 700; color: #1e40af; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.block-body { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: #475569; }
.block-body.col { flex-direction: column; gap: 0.4rem; }
.icon-row { display: flex; gap: 0.4rem; justify-content: center; }
.ops-label { font-size: 0.7rem; color: #1e40af; font-weight: 600; text-align: center; margin-top: 0.25rem; }

/* --- Center System Container --- */
.system-container {
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    overflow: hidden;
}
.system-header { background: linear-gradient(90deg, #1d4ed8, #2563eb); color: white; padding: 0.75rem 1rem; text-align: center; flex-shrink: 0; }
.system-header h3 { font-size: 0.95rem; margin: 0; line-height: 1.2; }
.system-header span { font-size: 0.75rem; opacity: 0.9; font-weight: 400; }

.system-body { flex: 1; display: flex; padding: 0.75rem; gap: 0.75rem; }

.app-site { flex: 1; background: #eff6ff; border-radius: 10px; padding: 0.75rem; display: flex; flex-direction: column; border: 1px solid #bfdbfe; }
.app-site h4 { font-size: 0.7rem; color: #1e40af; margin: 0 0 0.5rem 0; text-transform: uppercase; font-weight: 700; }
.screen-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.screen-list li { background: white; border: 1px solid #e2e8f0; border-radius: 4px; padding: 0.35rem; font-size: 0.65rem; color: #334155; text-align: left; }

.admin-area { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.admin-site { background: #f8fafc; border-radius: 10px; padding: 0.75rem; border: 1px solid #e2e8f0; flex: 1; }
.admin-site h4 { font-size: 0.7rem; color: #475569; margin: 0 0 0.5rem 0; font-weight: 700; text-transform: uppercase; }
.admin-modules { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-module { display: flex; align-items: center; gap: 0.35rem; background: white; padding: 0.5rem; border-radius: 6px; border: 1px solid #e2e8f0; font-size: 0.7rem; font-weight: 500; color: #334155; }

.db-connector { height: 10px; display: flex; justify-content: center; align-items: center; }
.database-box { background: white; border: 1px solid #bfdbfe; border-radius: 8px; padding: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.db-text { display: flex; flex-direction: column; }
.db-text span { display: block; font-weight: 700; font-size: 0.75rem; color: #334155; }
.db-text small { font-size: 0.65rem; color: #64748b; }

/* --- Legend Box --- */
.legend-box {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #bfdbfe;
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.legend-title { text-align: center; font-size: 0.75rem; font-weight: 700; color: #1e40af; text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.legend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem 1rem; max-width: 900px; margin: 0 auto; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: #334155; }
.legend-num { background: #2563eb; color: white; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.65rem; flex-shrink: 0; }

/* Mobile */
@media (max-width: 1024px) {
    .arch-svg-layer { display: none; }
    .arch-diagram { height: auto; overflow: visible; padding: 1rem; background: white; border: none; box-shadow: none; }
    .arch-grid { display: flex; flex-direction: column; gap: 1rem; }
    .arch-col { width: 100%; }
    .system-body { flex-direction: column; }
}

/* ========================================
   Example 2: Mansion Portal Diagram
   ======================================== */
.mansion-diagram {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: var(--space-lg);
}

.mansion-svg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* 5-column grid with gap corridors */
.mansion-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 160px 60px 1fr 60px 160px;
    gap: 0;
    padding: 1.5rem;
    box-sizing: border-box;
}

.mansion-col { display: flex; flex-direction: column; justify-content: space-around; gap: 1rem; }
/* Left col = col 1, center = col 3, right = col 5 */
.mansion-col:nth-child(1) { grid-column: 1; }
.mansion-col:nth-child(2) { grid-column: 3; }
.mansion-col:nth-child(3) { grid-column: 5; }

/* --- Actors --- */
.mansion-actor { background: #ffffff; border: 2px solid #bfdbfe; border-radius: 12px; padding: 0.75rem; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.mansion-actor-header { font-size: 0.85rem; font-weight: 700; color: #1e40af; margin-bottom: 0.25rem; }
.mansion-actor-icons { display: flex; justify-content: center; gap: 0.35rem; color: #64748b; }
.mansion-actor-modules { font-size: 0.65rem; color: #64748b; margin-top: 0.35rem; background: #f8fafc; padding: 0.35rem; border-radius: 6px; width: 100%; box-sizing: border-box; }
.mansion-actor-modules div { padding: 0.15rem 0; border-bottom: 1px solid #e2e8f0; }
.mansion-actor-modules div:last-child { border-bottom: none; }

/* --- Center System --- */
.mansion-system { background: #ffffff; border: 2px solid #3b82f6; border-radius: 16px; height: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1); overflow: hidden; }
.mansion-system-header { background: linear-gradient(90deg, #1d4ed8, #2563eb); color: white; padding: 0.75rem; text-align: center; }
.mansion-system-header h3 { margin: 0; font-size: 0.95rem; }
.mansion-system-header span { font-size: 0.75rem; opacity: 0.9; font-weight: 400; display: block; margin-top: 0.15rem; }
.mansion-system-body { flex: 1; display: flex; flex-direction: column; padding: 0.75rem; gap: 0.75rem; }
.mansion-section { flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.75rem; display: flex; flex-direction: column; }
.mansion-section-title { font-size: 0.75rem; font-weight: 700; color: #1e40af; text-transform: uppercase; margin-bottom: 0.5rem; text-align: center; }
.mansion-components { display: flex; justify-content: space-around; align-items: center; flex: 1; }
.mansion-comp-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; }
.mansion-comp-item svg { color: #3b82f6; width: 28px; height: 28px; }
.mansion-comp-label { font-size: 0.7rem; font-weight: 600; color: #334155; }
.mansion-comp-sub { font-size: 0.6rem; color: #64748b; }

/* Mobile */
@media (max-width: 1024px) {
    .mansion-svg-layer { display: none; }
    .mansion-diagram { height: auto; overflow: visible; background: white; border: none; }
    .mansion-grid { display: flex; flex-direction: column; gap: 1rem; }
    .mansion-col { gap: 1rem; }
    .mansion-system-body { flex-direction: column; }
}

/* ========================================
   Conclusion Banner
   ======================================== */
.conclusion-banner {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.conclusion-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 30px 30px; }
.conclusion-banner h2 { color: var(--white); margin-bottom: var(--space-lg); position: relative; z-index: 2; }
.conclusion-banner > p { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 700px; margin: 0 auto var(--space-xl); position: relative; z-index: 2; }

.benefit-tags { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; position: relative; z-index: 2; }
.benefit-tag { display: inline-flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-lg); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); font-size: 0.9375rem; color: var(--white); backdrop-filter: blur(4px); }


/* ========================================
   Results Page
   ======================================== */
.results-intro { background: linear-gradient(135deg, var(--primary-800), var(--primary-700)); border-radius: var(--radius-2xl); padding: var(--space-2xl); color: var(--white); text-align: center; margin-bottom: var(--space-3xl); }
.results-intro p { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 700px; margin: 0 auto; }

.results-table-container { background: var(--white); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); }
.results-table { width: 100%; border-collapse: collapse; }
.results-table thead { background: linear-gradient(135deg, var(--slate-800), var(--slate-700)); }
.results-table th { padding: var(--space-lg) var(--space-xl); text-align: left; color: var(--white); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.results-table td { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--border-light); font-size: 0.9375rem; color: var(--text-secondary); }
.results-table tbody tr { transition: background-color 0.2s ease; }
.results-table tbody tr:hover { background-color: var(--primary-50); }
.results-table tbody tr:last-child td { border-bottom: none; }
.results-table .service-name { font-weight: 600; color: var(--text-primary); }
.results-table .service-number { width: 60px; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--primary-600); }
.results-table .feature-tag { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--primary-100); color: var(--primary-700); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 500; margin-right: var(--space-xs); margin-bottom: var(--space-xs); }


/* ========================================
   Examples / Case Studies
   ======================================== */
.example-section {
    padding: var(--space-4xl) 0;
}

.example-section:nth-child(even) {
    background: var(--bg-secondary);
}

.example-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-2xl);
}

.example-header {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
    padding: var(--space-2xl);
    color: var(--white);
}

.example-number {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.example-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.example-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.example-content {
    padding: var(--space-2xl);
}

.example-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .example-modules { grid-template-columns: repeat(4, 1fr); }
}

.module-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.module-item svg { color: var(--primary-600); flex-shrink: 0; }
.module-item span { font-size: 0.875rem; font-weight: 500; }


/* ========================================
   Diagram Style 1: Custom Flow (Bank Loan)
   ======================================== */
.custom-diagram {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    margin-bottom: var(--space-xl);
}

.diagram-node.ext-node {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.diagram-node.ext-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-node .node-icon { background: #ecfdf5; color: #059669; }
.bank-node .node-icon { background: #f5f3ff; color: #7c3aed; }
.ops-node .node-icon { background: #fff1f2; color: #e11d48; }

.node-text h4 { font-size: 1rem; color: var(--slate-800); margin-bottom: 0.125rem; }
.node-text p { font-size: 0.75rem; color: var(--slate-500); margin: 0; }

.platform-container {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--primary-300);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    position: relative;
}

.container-header {
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.container-icon { width: 24px; height: 24px; opacity: 0.9; }
.container-header h3 { font-size: 1.125rem; font-weight: 600; margin: 0; }

.container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(191, 219, 254, 0.5);
    padding: 1px;
}

.module-card {
    background: white;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.module-card:hover { background: #eff6ff; }
.module-card svg { color: var(--primary-500); opacity: 0.8; }
.module-card span { font-size: 0.75rem; font-weight: 600; color: var(--slate-700); display: block; }

.arrow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
}

.arrow-wrapper.vertical { height: 60px; margin: 0.5rem 0; }
.arrow-wrapper svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }

.arrow-label {
    position: absolute;
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-600);
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary-200);
}

.arrow-wrapper.vertical .arrow-label { left: 120%; }

.diagram-row-split {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin-top: -10px;
    margin-bottom: -10px;
    z-index: 1;
}

.diagram-row-nodes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    gap: 1rem;
}

@media (max-width: 640px) {
    .container-grid { grid-template-columns: repeat(2, 1fr); }
    .diagram-row-nodes { flex-direction: column; align-items: center; gap: 1.5rem; }
    .arrow-wrapper.vertical .arrow-label { left: auto; right: 110%; }
}


/* ========================================
   Diagram Style 2: Creative / Hub (Resident Portal)
   ======================================== */
.creative-diagram {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.diagram-node.glass-node {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.diagram-node.glass-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-300);
}

.diagram-node.glass-node h4 { font-size: 0.9375rem; color: var(--slate-800); margin-bottom: 0.25rem; }
.diagram-node.glass-node p { font-size: 0.75rem; color: var(--slate-500); margin: 0; line-height: 1.3; }

.diagram-node.core-node {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border: none;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}
.diagram-node.core-node .node-icon { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.diagram-node.core-node h4 { color: var(--white); }
.diagram-node.core-node p { color: rgba(255, 255, 255, 0.8); }

.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--primary-300);
    opacity: 0;
    animation: pulse-animation 2.5s ease-out infinite;
}

/* Flow Diagram (Vertical) */
.flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.diagram-tier { width: 100%; display: flex; justify-content: center; gap: 1rem; }
.diagram-arrow-vertical { color: var(--primary-300); animation: bounce-down 2s ease-in-out infinite; }
.split-tier { gap: 1.5rem; margin-top: 0.5rem; }

/* Hub Diagram (Cross) */
.hub-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    place-items: center;
    min-height: 400px;
    position: relative;
}

.hub-center { grid-column: 2; grid-row: 2; z-index: 2; }
.hub-top    { grid-column: 2; grid-row: 1; z-index: 2; }
.hub-bottom { grid-column: 2; grid-row: 3; z-index: 2; }
.hub-left   { grid-column: 1; grid-row: 2; z-index: 2; justify-self: end; margin-right: 1rem; }
.hub-right  { grid-column: 3; grid-row: 2; z-index: 2; justify-self: start; margin-left: 1rem; }
.large-hub  { transform: scale(1.05); }

.hub-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    color: var(--primary-300);
    opacity: 0.6;
}

.conn-line { stroke-dasharray: 5; animation: dash-flow 20s linear infinite; }

@media (max-width: 768px) {
    .hub-diagram { display: flex; flex-direction: column; min-height: auto; gap: 2rem; padding: 2rem 1rem; }
    .hub-lines { display: none; }
    .hub-left, .hub-right, .hub-top, .hub-bottom, .hub-center { margin: 0; justify-self: center; }
}


/* ========================================
   Animations
   ======================================== */
@keyframes pulse-animation {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -100; }
}


/* ========================================
   Features Preview Section
   ======================================== */
.features-preview { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }

.features-preview .features-grid { gap: 3rem; width: 100%; max-width: 1200px; margin: 0 auto; }

.features-preview .feature-card { border-radius: var(--radius-2xl); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); border: none; background: var(--white); display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; transition: all 0.3s ease; }
.features-preview .feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2xl); }

.features-preview .feature-icon { width: 72px; height: 72px; margin-bottom: 1.5rem; border-radius: 1.25rem; background: linear-gradient(135deg, var(--primary-50), var(--white)); border: 1px solid var(--primary-100); color: var(--primary-600); transition: all 0.3s ease; }
.features-preview .feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); border-color: transparent; color: var(--white); transform: scale(1.1); }
.features-preview .feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--slate-800); }
.features-preview .feature-card p { color: var(--slate-500); font-size: 0.95rem; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .features-preview .features-grid { gap: 2rem; padding: 0 1rem; }
}

/* ============================================================
   overview.css — maps Platform Overview Page Styles
   All classes use ov- prefix to avoid conflicts with style.css
   ============================================================ */

/* ============================================================
   NAVBAR — always white on overview page
   ============================================================ */
.ov-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
}

.ov-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ov-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.ov-nav-logo svg { color: #2563eb; }

.ov-nav-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.ov-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ov-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.ov-nav-links a:hover { color: #2563eb; background: #eff6ff; }
.ov-nav-links a.ov-active { color: #2563eb; background: #dbeafe; }

.ov-nav-cta {
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
}

.ov-nav-cta:hover { background: #1d4ed8 !important; }

/* Mobile nav toggle */
.ov-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.ov-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1023px) {
    .ov-nav-toggle { display: flex; }

    .ov-nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .ov-nav-links.ov-open { display: flex; }
    .ov-nav-links a { width: 100%; padding: 0.875rem 1rem; }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.ov-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.ov-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
}

.ov-hero-glow {
    position: absolute;
    top: -200px; right: -100px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    pointer-events: none;
}

.ov-hero-inner {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .ov-hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .ov-hero-img { display: none; }
}

/* Hero Text */
.ov-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50px;
    padding: 0.375rem 1rem;
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.ov-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.ov-hero-title span { color: #60a5fa; }

.ov-hero-sub {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.ov-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transition: all 0.2s;
}
.ov-hero-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* Hero Image - MADE SMALLER */
.ov-hero-img {
    display: flex;
    justify-content: center; /* Center the image container */
    align-items: center;
}

.ov-hero-img-wrap {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* SIZE ADJUSTMENT: Reduced max-width */
    max-width: 500px; 
    width: 100%;
}

.ov-hero-img-wrap img { width: 100%; display: block; }

.ov-hero-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(29, 78, 216, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.ov-hero-img-placeholder svg { color: rgba(255, 255, 255, 0.4); }
.ov-hero-img-placeholder p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin: 0; }


/* ============================================================
   SECTION BASE
   ============================================================ */
.ov-section { padding: 60px 0; } /* Reduced padding */
.ov-section-alt { background: #f8fafc; }
.ov-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.ov-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50px;
    padding: 0.35rem 1rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.ov-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ov-section-sub {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 640px;
}

.ov-text-center { text-align: center; }
.ov-text-center .ov-section-sub { margin-left: auto; margin-right: auto; }


/* ============================================================
   PLATFORM INTRODUCTION
   ============================================================ */
.ov-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .ov-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.ov-intro-video-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 1px solid #bfdbfe;
    background: #0f172a;
    position: relative;
}

.ov-intro-video-wrap video { width: 100%; display: block; border-radius: 1.25rem; }

.ov-video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
}

.ov-video-play {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}
.ov-video-play:hover { background: #2563eb; transform: scale(1.1); }
.ov-video-placeholder p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin: 0; text-align: center; }

/* INTRO POINTS - 2x2 GRID LAYOUT */
.ov-intro-points { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 1rem; 
    margin-top: 1.5rem; 
}

/* Stack 1 column on mobile */
@media (max-width: 768px) {
    .ov-intro-points {
        grid-template-columns: 1fr;
    }
}

.ov-intro-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s;
}

.ov-intro-point:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.ov-point-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
}

.ov-point-icon svg { width: 20px; height: 20px; }

.ov-point-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.ov-point-text p { font-size: 0.875rem; color: #64748b; margin: 0; line-height: 1.55; }


/* ============================================================
   PLATFORM CAPABILITIES
   ============================================================ */
.ov-caps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 900px) { .ov-caps-layout { grid-template-columns: 1fr; } }

.ov-caps-img-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}
.ov-caps-img-wrap img { width: 100%; display: block; }

.ov-caps-img-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #bfdbfe;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.ov-caps-img-placeholder svg { color: #93c5fd; }
.ov-caps-img-placeholder p { color: #64748b; font-size: 0.85rem; margin: 0; }

.ov-caps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ov-cap-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ov-cap-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.ov-cap-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12); border-color: #bfdbfe; }
.ov-cap-card:hover::before { transform: scaleX(1); }

.ov-cap-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
    transition: all 0.3s;
}

.ov-cap-card:hover .ov-cap-icon { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; }
.ov-cap-icon svg { width: 22px; height: 22px; }
.ov-cap-card h4 { font-size: 0.95rem; font-weight: 600; color: #0f172a; margin: 0 0 0.35rem; }
.ov-cap-card p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.55; }


/* ============================================================
   DEVOPS PIPELINE
   ============================================================ */
.ov-devops-embed {
    margin-top: 2.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 1px solid #bfdbfe;
    /* No fixed height - let content define it */
}

/* Style the image tag to be responsive and fill space */
.ov-devops-embed .ov-devops-img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f8fafc; /* Fallback bg if SVG has transparency */
}

.ov-devops-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 900px) { .ov-devops-stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ov-devops-stages { grid-template-columns: 1fr; } }

.ov-stage-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ov-stage-card::after {
    content: attr(data-num);
    position: absolute; top: 0.5rem; right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #cbd5e1;
}

.ov-stage-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1); border-color: #93c5fd; }

/* DEVOPS ICONS - SIZE ADJUSTMENT */
.ov-stage-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
}

/* Fix SVG size inside the icon container */
.ov-stage-icon svg { 
    width: 24px; 
    height: 24px; 
}

.ov-stage-card h4 { font-size: 0.95rem; font-weight: 600; color: #0f172a; margin: 0 0 0.4rem; }
.ov-stage-card p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.5; }


/* ============================================================
   PLATFORM COMPONENTS (Visual Layout) - SPACING ADJUSTMENTS
   ============================================================ */
.visual-layout {
    min-height: auto; /* Allow height to adjust */
    display: flex;
    align-items: center;
    padding: 0; /* Remove padding here, handled by container */
    background: transparent;
    overflow: visible;
}

.visual-layout .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 1100px;
    width: 100%;
    gap: 2rem; /* Spacing between rows */
}

/* Unified Blue Card Style */
.side-app-box,
.platform-core-container,
.team-core-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 1rem;
    box-shadow: 0 4px 20px -5px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.side-app-box:hover,
.platform-core-container:hover,
.team-core-container:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-400);
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* Platform Grid */
.layout-row-top { display: flex; justify-content: space-between; gap: 1.5rem; width: 100%; flex: 0 0 auto; margin-bottom: 0; }
.side-app-box { flex: 1; }
.layout-row-middle { width: 100%; flex: 1; display: flex; justify-content: center; margin-bottom: 0; }
.platform-core-container { width: 100%; }

.core-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(191, 219, 254, 0.5);
    flex: 1;
}

.core-box {
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.core-box:hover { background: var(--white); }

.core-icon-wrap {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    color: var(--primary-600);
    transition: all 0.3s ease;
}

.core-box:hover .core-icon-wrap { background: var(--primary-600); color: var(--white); transform: scale(1.1); }
.core-icon-wrap svg { width: 18px; height: 18px; }
.core-box h4 { color: var(--primary-800); font-size: 0.8rem; margin: 0; transition: color 0.3s; }
.core-box:hover h4 { color: var(--primary-600); }

/* Team Section */
.layout-row-bottom { width: 100%; flex: 1; display: flex; justify-content: center; }
.team-core-container { width: 100%; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(191, 219, 254, 0.5);
    flex: 1;
}

.team-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.team-box:hover { background: var(--white); }

.team-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: none;
}

.team-box:hover .team-icon-wrap { background: var(--primary-600); color: var(--white); }
.team-icon-wrap svg { width: 18px; height: 18px; }
.team-info h4 { margin: 0 0 0.1rem 0; font-size: 0.85rem; color: var(--primary-800); transition: color 0.3s; }
.team-box:hover .team-info h4 { color: var(--primary-600); }
.team-info p { margin: 0; font-size: 0.7rem; color: var(--primary-500); }

/* Visual Layout Mobile */
@media (max-width: 768px) {
    .visual-layout {
        display: flex;
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding: 0;
        overflow: visible;
    }

    .visual-layout .container {
        height: auto;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .layout-row-top { flex-direction: column; gap: 1rem; }
    .core-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.ov-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.ov-reveal.visible { opacity: 1; transform: translateY(0); }
.ov-delay-1 { transition-delay: 0.1s; }
.ov-delay-2 { transition-delay: 0.2s; }
.ov-delay-3 { transition-delay: 0.3s; }
.ov-delay-4 { transition-delay: 0.4s; }
.ov-delay-5 { transition-delay: 0.5s; }


/* ============================================================
   DIVIDER
   ============================================================ */
.ov-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #bfdbfe, transparent);
    margin: 0;
}

/* ============================================================
   SUMMARY CARDS
   ============================================================ */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.summary-card::before {
    content: '';
    position: absolute;
    top: 0,
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.summary-card-number {
    width: 36px;
    height: 36px;
    background: var(--slate-100);
    color: var(--primary-700);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

.summary-card h4 { margin: 0 0 var(--space-sm) 0; font-size: 1.05rem; }
.summary-card p { margin: 0; font-size: 0.9rem; color: var(--slate-500); }


/* ============================================================
   DOCUMENTATION
   ============================================================ */
.ov-docs-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    transition: all 0.3s;
}

@media (max-width: 768px) { .ov-docs-card { flex-direction: column; text-align: center; gap: 1.5rem; } }

.ov-docs-card:hover { box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12); transform: translateY(-4px); }

.ov-docs-icon-wrap {
    width: 80px; height: 80px;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.ov-docs-icon-wrap svg { width: 40px; height: 40px; }

.ov-docs-content { flex: 1; }
.ov-docs-content h3 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.ov-docs-content p { color: #475569; font-size: 0.95rem; margin: 0 0 1.5rem; line-height: 1.65; }

.ov-docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.ov-docs-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4); }


/* ============================================================
   CTA SECTION
   ============================================================ */
.ov-cta {
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #1d4ed8);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ov-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
}

.ov-cta-inner {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ov-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 50px;
    padding: 0.4rem 1.125rem;
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.ov-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.ov-cta p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.7; }

.ov-cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.ov-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.ov-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }

.ov-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.ov-cta-secondary:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.ov-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.ov-reveal.ov-visible { opacity: 1; transform: translateY(0); }
.ov-delay-1 { transition-delay: 0.1s; }
.ov-delay-2 { transition-delay: 0.2s; }
.ov-delay-3 { transition-delay: 0.3s; }
.ov-delay-4 { transition-delay: 0.4s; }
.ov-delay-5 { transition-delay: 0.5s; }


/* ============================================================
   STATS STRIP
   ============================================================ */
.ov-stats {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2.5rem 0;
}

.ov-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) { .ov-stats-inner { grid-template-columns: repeat(2, 1fr); } }

.ov-stat { text-align: center; }

.ov-stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.ov-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 500; }

/* ========================================
   IMAGE POP-UP MODAL (Lightbox)
   ======================================== */
.img-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95); /* Dark overlay */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out; /* Cursor indicates clicking closes */
}

.img-modal.active {
    opacity: 1;
    visibility: visible;
}

.img-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.img-modal.active img {
    transform: scale(1);
}

.img-modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.img-modal-close:hover {
    transform: rotate(90deg);
}

/* Cursor for clickable images */
.ov-hero-img-wrap img,
.ov-caps-img-wrap img,
.ov-devops-embed img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.ov-hero-img-wrap:hover img,
.ov-caps-img-wrap:hover img,
.ov-devops-embed:hover img {
    transform: scale(1.02);
}

/* ==========================================
   SECTION 1: JPEG STYLE (UPDATED)
   ========================================== */

.maps-arch-container {
    background-color: #ffffff;
    padding: 60px 20px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

.maps-arch-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Updated Header Size */
.maps-arch-header {
    text-align: center;
    margin-bottom: 40px;
}

.maps-arch-title {
    /* Smaller size to match other headers */
    font-size: clamp(1.8rem, 3vw, 2.25rem); 
    color: #1e293b;
    margin-bottom: 5px;
    font-weight: 700;
}

.maps-arch-subtitle {
    font-size: 1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- NEW: Smaller Visual Container --- */
.maps-arch-visual-wrapper {
    position: relative;
    max-width: 800px; /* Constraint width */
    margin: 0 auto 50px; /* Center it */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    cursor: zoom-in;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.maps-arch-visual-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.maps-arch-visual-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover Overlay */
.maps-arch-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.maps-arch-visual-wrapper:hover .maps-arch-visual-overlay {
    opacity: 1;
}

.maps-arch-visual-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Section Layout */
.maps-arch-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.maps-arch-left {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    position: relative;
}

.maps-arch-step {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

/* Vertical Line Connector */
.maps-arch-section:not(:last-child) .maps-arch-left::after {
    content: '';
    position: absolute;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: #e2e8f0;
    left: 50%;
    transform: translateX(-50%);
}

.maps-arch-right {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.maps-arch-right:hover {
    transform: translateY(-3px);
    border-color: #e2e8f0;
}

.maps-arch-section-title {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.maps-arch-desc {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Cards Grid */
.maps-arch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.maps-arch-card {
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    position: relative;
    transition: all 0.3s ease;
    border-top: 3px solid #2563eb;
}

.maps-arch-card:hover {
    background: #eff6ff;
    color: #2563eb;
}

.maps-arch-process .maps-arch-card {
    border-top: none;
    border-left: 3px solid #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .maps-arch-section {
        flex-direction: column;
        gap: 20px;
    }
    .maps-arch-left {
        justify-content: flex-start;
    }
    .maps-arch-section:not(:last-child) .maps-arch-left::after {
        display: none;
    }
    .maps-arch-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   MODAL POPUP (Isolated Classes)
   ========================================== */

.maps-arch-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.maps-arch-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.maps-arch-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.maps-arch-modal-overlay.active .maps-arch-modal-content {
    transform: scale(1);
}

.maps-arch-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.maps-arch-modal-close:hover {
    transform: rotate(90deg);
}

/* ==========================================
   SECTION 2: SOFT BLUE GRID LAYOUT
   Prefix: maps-anim-
   ========================================== */

.maps-anim-section {
    background-color: #EFF6FF; /* Soft Blue Background */
    padding: 80px 20px;
    font-family: 'Outfit', sans-serif;
}

.maps-anim-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.maps-anim-header {
    text-align: center;
    margin-bottom: 50px;
}

.maps-anim-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.maps-anim-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* Main 2-Col Grid */
.maps-anim-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    gap: 60px;
    align-items: flex-start;
}

/* Left Column: Stacked Layers */
.maps-anim-content-layers {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.maps-anim-layer-group {
    /* Container for a group of cards */
}

.maps-anim-group-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 20px;
    border-bottom: 2px solid #bfdbfe;
    padding-bottom: 10px;
    display: inline-block;
}

/* Individual Cards */
.maps-anim-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.maps-anim-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.maps-anim-card h5 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.maps-anim-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pillars Grid (2x2) */
.maps-anim-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.maps-anim-pillar {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.maps-anim-pillar:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.maps-anim-pillar-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.maps-anim-pillar span:last-child {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

/* Right Column: Visual */
.maps-anim-visual {
    position: sticky;
    top: 100px; /* Sticky scroll effect */
}

.maps-anim-gif-wrapper {
    background: #ffffff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    line-height: 0;
}

.maps-anim-gif-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.maps-anim-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .maps-anim-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .maps-anim-visual {
        position: static; /* Disable sticky on mobile */
        order: -1; /* Show image first on mobile */
        margin-bottom: 20px;
    }
}