/* =========================================================
   YAFE DESIGN SYSTEM — CORE THEME TOKENS & BASE STYLES
   Master Reference: index.html (Bright Industrial AI Theme)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-blue-tint: #f0f7ff;
    --bg-card: linear-gradient(165deg, #ffffff 0%, #fbfdff 60%, #f2f7fe 100%);
    --bg-card-hover: linear-gradient(165deg, #ffffff 0%, #f6faff 50%, #eaf3ff 100%);

    /* Blues Palette */
    --blue-600: #2563eb;       /* Vibrant Core Royal Blue */
    --blue-700: #1d4ed8;       /* Deep Enterprise Cobalt */
    --blue-800: #1e40af;       /* Navy Hover */
    --blue-900: #1e3a8a;       /* Dark Corporate Blue */
    --blue-500: #3b82f6;       /* Bright Accent */
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;       /* Soft Pill Accent */
    --blue-50:  #eff6ff;       /* Very Light Ice Blue */
    --sky-500:  #0284c7;       /* Ocean Accent */
    --cyan-accent: #0ea5e9;

    /* YAFE Brand Colors */
    --yafe-green: #2563eb;
    --yafe-green-glow: rgba(37, 99, 235, 0.38);
    --yafe-cyan: #3b82f6;
    --yafe-cyan-glow: rgba(59, 130, 246, 0.3);
    --hero-navy: #040c1a;
    --hero-navy-mid: #0a1628;

    /* Status Colors */
    --green-600: #16a34a;
    --green-50:  #f0fdf4;
    --amber-500: #d97706;

    /* Typography & Contrast */
    --text-primary: #0f172a;    /* High-contrast deep slate */
    --text-secondary: #334155;  /* Slate-700 body text */
    --text-muted: #64748b;      /* Slate-500 secondary notes */
    --text-light: #94a3b8;

    /* Borders & Dividers */
    --border-subtle: #e2e8f0;   /* Clean Slate-200 */
    --border-blue: #bfdbfe;     /* Soft Blue Border */
    --border-glow: rgba(37, 99, 235, 0.35);

    /* Multi-layer 3D Shadows & Elevations */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 22px -4px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -8px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(37, 99, 235, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --shadow-card-hover: 0 22px 45px -10px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
    --shadow-button: 0 4px 16px rgba(37, 99, 235, 0.32);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.18);
}

/* =========================================================
   GLOBAL RESET & BASE STYLES
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-secondary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Technical Grid Pattern */
.tech-dot-bg {
    background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================================================
   TYPOGRAPHY & SECTION HEADINGS
========================================================= */
.section {
    padding: 110px 5.5%;
    background-color: var(--bg-white);
    position: relative;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    color: var(--blue-700);
    background: linear-gradient(135deg, var(--blue-50), #dbeafe);
    border: 1px solid var(--border-blue);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-weight: 900;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.8;
}

/* Eyebrow badge */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: linear-gradient(135deg, var(--blue-50), #dbeafe);
    border: 1px solid var(--border-blue);
    border-radius: 30px;
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.eyebrow-dark {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-600);
    box-shadow: 0 0 8px var(--blue-600);
    animation: pulseDot 2s infinite;
}

.eyebrow-dark .eyebrow-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* =========================================================
   BUTTONS WITH LIGHT SWEEP EFFECTS
========================================================= */
.btn-primary {
    position: relative;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-button);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary-yafe {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary-yafe:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
    padding: 14px 26px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--border-blue);
    color: var(--blue-700);
    background: var(--blue-50);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   3D ELEVATED PRODUCT, FEATURE & PILLAR CARDS
========================================================= */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.pillars-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pillar, .card-3d {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 34px 28px 26px;
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform-style: preserve-3d;
}

/* Top Shimmering Gradient Accent Bar */
.pillar::before, .card-3d::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #2563eb);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

/* Ambient Inner Highlight on Hover */
.pillar::after, .card-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pillar:hover, .card-3d:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.pillar:hover::before, .card-3d:hover::before {
    transform: scaleX(1);
    opacity: 1;
    animation: shimmerBar 2.5s linear infinite;
}

.pillar:hover::after, .card-3d:hover::after {
    opacity: 1;
}

@keyframes shimmerBar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.pillar-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-700);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(191, 219, 254, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
    transition: transform 0.25s ease;
}

.pillar:hover .pillar-number, .card-3d:hover .pillar-number {
    transform: scale(1.04);
    border-color: var(--blue-500);
}

.pillar-chip {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--border-blue);
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pillar h3, .card-3d h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.pillar p, .card-3d p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pillar-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-600);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}

.pillar:hover .pillar-action, .card-3d:hover .pillar-action {
    color: var(--blue-700);
    gap: 12px;
}

.pillar-action .arrow {
    transition: transform 0.2s ease;
}

.pillar:hover .pillar-action .arrow, .card-3d:hover .pillar-action .arrow {
    transform: translateX(4px);
}

/* Secondary product grid cards */
.secondary-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.secondary-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.secondary-product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.secondary-product-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
}

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

.secondary-product-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.secondary-product-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 18px;
}

.secondary-product-card .card-link {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    text-transform: uppercase;
}

.secondary-product-card:hover .card-link {
    color: var(--blue-700);
}

/* =========================================================
   ENTERPRISE 3D VISUAL EFFECTS & COMPUTER VISION HUD
========================================================= */

/* Universal 3D Elevation for all Cards across pages */
.feature-card, .workflow-card, .deployment-card, .yafe-card, .catalog-card, .stat-card, .article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.feature-card::before, .workflow-card::before, .deployment-card::before, .yafe-card::before, .catalog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #60a5fa);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover, .workflow-card:hover, .deployment-card:hover, .yafe-card:hover, .catalog-card:hover, .stat-card:hover, .article-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before, .workflow-card:hover::before, .deployment-card:hover::before, .yafe-card:hover::before, .catalog-card:hover::before {
    transform: scaleX(1);
}

/* AI Laser Scanning Line Effect for Hero Visuals */
.hero-video-card, .hero-media-card, .hero-visual-card, .hero-image-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hero-video-card:hover, .hero-media-card:hover, .hero-visual-card:hover, .hero-image-card:hover {
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.4), 0 0 30px rgba(37, 99, 235, 0.2);
}

.hero-video-card::after, .hero-media-card::after, .hero-visual-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.85) 50%, transparent 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7), 0 0 20px rgba(37, 99, 235, 0.35);
    animation: yafeScanLine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}

@keyframes yafeScanLine {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 0.9; }
    85% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}

/* Subtle Floating Animation for Telemetry & Badges */
.hud-telemetry-card, .hud-overlay-top, .floating-badge {
    animation: yafeFloat 6s ease-in-out infinite;
}

@keyframes yafeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Computer Vision Corner Markers */
.hero-video-card::before, .hero-media-card::before, .hero-visual-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

/* Interactive Specular Lighting Overlay */
.card-specular {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.12), transparent 70%);
}

.pillar:hover .card-specular, .card-3d:hover .card-specular, .feature-card:hover .card-specular, .secondary-product-card:hover .card-specular {
    opacity: 1;
}

/* =========================================================
   TRUST METRICS BAR
========================================================= */
.trust-bar {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    padding: 42px 5.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.25s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-number {
    font-size: 34px;
    font-weight: 900;
    color: var(--blue-700);
    letter-spacing: -1px;
    line-height: 1;
}

.trust-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   CTA BANNER SECTION (MASTER EXECUTIVE 3D CARD)
========================================================= */
.cta-banner-section,
.yafe-cta {
    padding: 80px 5.5%;
    background: var(--bg-white);
    position: relative;
    box-sizing: border-box;
}

.cta-banner,
.yafe-cta-inner {
    max-width: 1360px;
    margin: 0 auto;
    background: linear-gradient(135deg, #07101e 0%, #0c1a30 50%, #0f274a 100%);
    border-radius: 24px;
    padding: 60px 52px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 25px 60px -15px rgba(7, 16, 30, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.yafe-cta-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 56px 36px;
}

.cta-banner::before,
.yafe-cta-inner::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
    right: -60px;
    top: -90px;
    pointer-events: none;
}

.cta-banner-content {
    flex: 1;
}

.cta-banner-content h2,
.yafe-cta-title {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-banner-content p,
.yafe-cta-desc {
    color: #94a3b8;
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 24px;
}

.yafe-cta-inner .yafe-cta-desc {
    margin-left: auto;
    margin-right: auto;
}

.yafe-badge,
.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #3b82f6;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.yafe-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    display: inline-block;
    box-shadow: 0 0 8px #3b82f6;
}

.cta-banner-buttons,
.yafe-hero-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary,
.btn-primary-yafe,
.btn-cta-enterprise,
.yafe-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary-yafe:hover,
.btn-cta-enterprise:hover,
.yafe-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}

.btn-secondary,
.yafe-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-secondary:hover,
.yafe-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* =========================================================
   STANDARDIZED ENTERPRISE FOOTER
========================================================= */
footer.yafe-footer,
.yafe-footer {
    background: #060e1b !important;
    color: #e2e8f0 !important;
    padding: 70px 5.5% 36px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
    box-sizing: border-box;
}

.footer-top,
.yafe-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-top,
.yafe-footer-grid {
    display: grid !important;
    grid-template-columns: 1.4fr repeat(3, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 50px !important;
}

.footer-brand,
.yafe-footer-brand {
    padding-right: 20px;
}

.footer-brand .logo,
.yafe-footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-brand .logo,
.yafe-footer-brand .footer-logo {
    color: #3b82f6 !important;
}

.footer-brand .logo span,
.yafe-footer-brand .footer-logo span {
    color: #3b82f6 !important;
}

.footer-brand p,
.yafe-footer-brand .footer-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-column h4,
.yafe-footer-col .footer-col-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.footer-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-column a,
.footer-links a {
    display: inline-block;
    color: #94a3b8 !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.footer-column a {
    display: block;
    margin-bottom: 11px;
}

.footer-column a:hover,
.footer-links a:hover {
    color: #3b82f6 !important;
    transform: translateX(4px);
}

/* =========================================================
   GLOBAL OFFICES & LOCATIONS FOOTER STRIP
========================================================= */
.footer-locations {
    max-width: 1360px;
    margin: 0 auto 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    box-sizing: border-box;
}

.footer-loc-card {
    background: rgba(13, 27, 49, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 22px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-loc-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(13, 27, 49, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(37, 99, 235, 0.15);
}

.footer-loc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-loc-header .loc-flag,
.contact-icon-box .loc-flag-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loc-flag-svg {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    overflow: hidden;
    vertical-align: middle;
}

.footer-loc-country {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: #38bdf8;
    display: block;
}

.footer-loc-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 2px 0 0 0;
}

.footer-loc-address {
    font-style: normal;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.footer-loc-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-loc-phone:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-loc-phone svg {
    color: #38bdf8;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-locations {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.footer-bottom,
.yafe-footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy,
.footer-cert {
    color: #64748b;
    font-size: 12.5px;
}

/* =========================================================
   RESPONSIVE LAYOUTS
========================================================= */
@media (max-width: 1100px) {
    .pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    .secondary-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-top,
    .yafe-footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 960px) {
    .cta-banner,
    .yafe-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }
    .cta-banner-buttons,
    .yafe-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-top,
    .yafe-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .footer-bottom,
    .yafe-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* =========================================================
   GLOBAL VIDEO PROTECTION & ANTI-DOWNLOAD SHIELD
   Applies across all pages to protect industrial AI video feeds
========================================================= */
video {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

/* Hide native download buttons across all WebKit / Chromium browsers */
video::-internal-media-controls-download-button,
video::-webkit-media-controls-download-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide overflow menu download options */
video::-webkit-media-controls-overflow-button,
video::-webkit-media-controls-overflow-menu-list {
    display: none !important;
}

/* Prevent image and video dragging to desktop or new tabs */
.hero-video-card,
.hero-video-card video,
.hero-video-card img,
.hero-visual-card,
.hero-visual-card video,
.hero-visual-card img,
.article-figure,
.article-figure video,
.article-figure img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    user-select: none !important;
}



/* =========================================================
   ENTERPRISE VENDOR & TRUSTED COMPANIES SHOWCASE (PURE WHITE BACKGROUND)
========================================================= */
        .vendors-section {
            background: #ffffff !important;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
            padding: 56px 0 64px;
            overflow: hidden;
            position: relative;
            width: 100%;
        }

        .vendors-inner {
            width: 100%;
            margin: 0 auto;
        }

        .vendors-header {
            text-align: center;
            margin-bottom: 32px;
            padding: 0 20px;
        }

        .vendors-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11.5px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #059669;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            padding: 5px 16px;
            border-radius: 999px;
            margin-bottom: 12px;
        }

        .vendors-header h2 {
            font-size: clamp(26px, 3.2vw, 36px);
            font-weight: 900;
            color: #0f172a;
            letter-spacing: -0.8px;
            margin: 0 0 6px 0;
            line-height: 1.2;
        }

        .vendors-header p {
            font-size: 16px;
            font-weight: 600;
            color: #64748b;
            margin: 0;
            letter-spacing: -0.2px;
        }

        .vendors-marquee-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            padding: 14px 0;
            mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
            -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
        }

        .vendors-marquee-track {
            display: flex;
            gap: 24px;
            width: max-content;
            animation: vendorMarqueeScroll 38s linear infinite;
            will-change: transform;
            align-items: center;
        }

        .vendors-marquee-container:hover .vendors-marquee-track {
            animation-play-state: paused;
        }

        @keyframes vendorMarqueeScroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .vendor-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 26px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 70px;
            min-width: 185px;
            flex-shrink: 0;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
            user-select: none;
            box-sizing: border-box;
        }

        .vendor-card:hover {
            background: #ffffff;
            border-color: #cbd5e1;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
        }

        .vendor-logo-svg {
            height: 38px;
            width: auto;
            max-width: 165px;
            display: block;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .vendors-section {
                padding: 40px 0 48px;
            }
            .vendors-header {
                margin-bottom: 24px;
            }
            .vendor-card {
                height: 58px;
                padding: 10px 18px;
                min-width: 145px;
                border-radius: 10px;
            }
            .vendor-logo-svg {
                height: 30px;
                max-width: 135px;
            }
            .vendors-marquee-track {
                gap: 16px;
                animation-duration: 30s;
            }
        }

/* =========================================================
   UNIVERSAL RESPONSIVE MOBILE MEDIA QUERY (SITE-WIDE)
   Ensures video/media plays on TOP and content sits BELOW on mobile
========================================================= */
@media (max-width: 900px) {
    /* 1. All Product Hero Grids: Video on top, text down below */
    .product-hero-grid,
    .hero-grid,
    .about-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 36px !important;
    }

    .hero-video-card,
    .hero-visual-card,
    .hero-bento-grid,
    .hero-media-wrap {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-hero-content,
    .hero-left-content,
    .hero-content {
        order: 2 !important;
        width: 100% !important;
    }

    /* 2. All Product Showcase & Feature Rows: Video on top, text down below */
    .product-feature-row,
    .feature-row,
    .showcase-grid,
    .product-feature-row.reversed,
    .product-feature-row:nth-child(odd),
    .product-feature-row:nth-child(even) {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        grid-template-columns: 1fr !important;
    }

    .row-media,
    .feature-media-box,
    .showcase-media,
    .safety-card-media {
        order: 1 !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .row-content,
    .feature-text-box,
    .showcase-content {
        order: 2 !important;
        width: 100% !important;
    }

    /* Container Spacing for mobile */
    .product-rows-container {
        gap: 52px !important;
    }

    /* 3. Product Page Videos Fully Visible: Hide blocking popup cards & camera badges on mobile */
    .hud-telemetry-card,
    .zone-alert-card,
    .crane-alert-card,
    .ergo-telemetry-card,
    .hud-badge-cam,
    .hud-badge {
        display: none !important;
    }

    .hud-overlay-top {
        justify-content: flex-end !important;
        pointer-events: none !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }

    .hud-controls {
        pointer-events: auto !important;
    }

    .hud-live-tag {
        font-size: 9.5px !important;
        padding: 3px 8px !important;
    }

    /* 4. Universal Mobile Layout: All Content & Cards Stacked 1-by-1 Vertically */
    .pillars,
    .pillars-4,
    .pillars-3,
    .pillars-2,
    .pillar-grid,
    .workflow-grid,
    .deploy-grid,
    .deployment-grid,
    .flow-grid,
    .scenario-display,
    .metric-cards-row,
    .metrics-grid,
    .stats-strip-inner,
    .stats-grid,
    .stand-grid,
    .approach-grid,
    .values-grid,
    .team-grid,
    .features-grid,
    .capabilities-grid,
    .specs-grid,
    .benefits-grid,
    .secondary-product-grid,
    .products-grid,
    .solutions-grid,
    .showcase-grid,
    .blog-articles-list,
    .articles-grid,
    .cards-grid,
    .card-grid,
    .product-cards-grid,
    .core-grid,
    .steps-grid,
    .bento-bottom-row,
    .two-col,
    .col-2,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .form-grid,
    .contact-grid,
    .trust-bar {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .field.full {
        grid-column: span 1 !important;
    }

    .pillar-card-3d,
    .workflow-card,
    .deploy-card,
    .metric-card,
    .stand-card,
    .stat-card,
    .feature-card,
    .benefit-card,
    .product-card,
    .trust-item,
    .step-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .trust-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 24px 6% !important;
    }

    .trust-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-subtle) !important;
        padding: 12px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .trust-item:last-child {
        border-bottom: none !important;
    }
}

/* =========================================================
   FOOTER COMPANY SOCIAL LINKS (LINKEDIN & YOUTUBE)
========================================================= */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0 !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.footer-social-btn.linkedin:hover {
    background: #0a66c2 !important;
    border-color: #0a66c2 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.footer-social-btn.youtube:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.footer-social-btn:hover svg {
    transform: scale(1.15);
}

/* =========================================================
   HIDE POPUP TEXT & TELEMETRY OVERLAYS ON ALL VIDEOS (DESKTOP & MOBILE)
========================================================= */
.hud-telemetry-card,
.zone-alert-card,
.crane-alert-card,
.ergo-telemetry-card,
.hud-badge-cam,
.hud-badge,
.hud-live-tag,
.floating-badge,
.row-badge-pill {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hud-overlay-top {
    justify-content: flex-end !important;
    pointer-events: none !important;
}

.hud-controls {
    pointer-events: auto !important;
}

/* =========================================================
   UNIVERSAL DIRECT LINK COPY SHARE WIDGET & TOAST NOTIFICATION
========================================================= */
.yafe-share-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.yafe-share-direct-btn,
.yafe-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 20, 38, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 999px;
    padding: 9px 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-decoration: none;
}

.yafe-share-direct-btn svg,
.yafe-share-btn svg {
    width: 15px;
    height: 15px;
    fill: #38bdf8;
    pointer-events: none;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.yafe-share-direct-btn:hover,
.yafe-share-btn:hover {
    background: #1d4ed8;
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(29, 78, 216, 0.45);
}

.yafe-share-direct-btn:hover svg,
.yafe-share-btn:hover svg {
    transform: scale(1.12);
    fill: #ffffff;
}

.yafe-share-direct-btn.copied,
.yafe-share-btn.copied {
    background: #059669 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.45) !important;
}

.yafe-share-direct-btn.copied svg,
.yafe-share-btn.copied svg {
    fill: #ffffff !important;
}

/* Toast alert when copy link clicked */
.yafe-share-toast {
    position: fixed;
    bottom: 84px;
    right: 24px;
    background: #0f172a;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yafe-share-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .yafe-share-widget {
        bottom: 16px;
        right: 16px;
    }
    .yafe-share-direct-btn,
    .yafe-share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* =========================================================
   CONTEXTUAL IN-TEXT INTERNAL LINKS (SEO & UX)
========================================================= */
.row-desc a,
.product-hero-desc a,
.hero-description a,
.hero-seo-support a,
.section p a,
.pillar p a,
.solution-content p a,
.prose a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.row-desc a:hover,
.product-hero-desc a:hover,
.hero-description a:hover,
.hero-seo-support a:hover,
.section p a:hover,
.pillar p a:hover,
.solution-content p a:hover,
.prose a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

/* Ensure link pillars in catalog display properly */
a.pillar {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Related Solutions Section for Product Pages */
.related-solutions-section {
    padding: 64px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.related-solutions-container {
    max-width: 1200px;
    margin: 0 auto;
}
.related-solutions-header {
    text-align: center;
    margin-bottom: 36px;
}
.related-solutions-header h2 {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.related-solutions-header p {
    font-size: 15px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
}
.related-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}
.related-card-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.related-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}
.related-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    flex: 1;
    margin-bottom: 16px;
}
.related-card-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.related-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.related-card:hover .related-card-link svg {
    transform: translateX(4px);
}
