/* ============================================================
   ALPHIENT - Light Theme (matching alphient.ai)
   Color Palette:
     Primary Orange:  #C8512B
     Background:      #FFFFFF
     Text Dark:       #1A1A1A
     Text Body:       #555555
     Text Muted:      #999999
     Accent Coral:    #D4734A
     Section Alt:     #F7F7F7
     Border:          #E5E5E5
     Success:         #2EAD6C
   ============================================================ */

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

:root {
    --primary: #C8512B;
    --primary-light: #D4734A;
    --primary-dark: #A8421F;
    --primary-bg: rgba(200,81,43,0.06);
    --bg-white: #FFFFFF;
    --bg-light: #F7F7F7;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-body: #555555;
    --text-muted: #999999;
    --success: #2EAD6C;
    --border: #E5E5E5;
    --border-light: #EEEEEE;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
}

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

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 5%; }
.container-wide { width: 100%; padding: 0; }

.highlight { color: var(--primary); -webkit-text-fill-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-white {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}
.btn-outline-white:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 16px 40px; font-size: 1.02rem; }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

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

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-img {
    height: 38px;
    width: auto;
    display: block;
}
.logo-img-footer {
    height: 32px;
    filter: brightness(0) invert(1); /* white version for dark footer */
}
.logo-text {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; min-width: 0; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 13px;
    color: var(--text-dark);
    font-size: 0.9rem; font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); }
.nav-link i { font-size: 0.6rem; transition: transform var(--transition); }

.nav-cta {
    margin-left: 10px;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--text-dark) !important;
    border: 1.5px solid var(--text-dark) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}
.nav-cta:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .nav-link i { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    list-style: none;
    box-shadow: var(--shadow-md);
}
.dropdown-menu li a {
    display: block; padding: 10px 16px;
    color: var(--text-body); font-size: 0.88rem;
    border-radius: 6px; transition: all var(--transition);
}
.dropdown-menu li a:hover { background: var(--primary-bg); color: var(--primary); }

/* ── Mega Panel Dropdowns ── */
.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 8px;
    min-width: 320px;
    z-index: 100;
}
.mega-wide {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 740px;
    max-width: 920px;
}
/* Platform mega menu: stacked layout */
.mega-platform {
    flex-direction: column;
    min-width: 820px;
    max-width: 960px;
}
.mega-platform-top {
    display: flex;
    gap: 8px;
}
.mega-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0 12px;
}
.mega-features-section .mega-heading {
    margin-bottom: 12px;
}
.mega-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 12px;
}
/* Full-width industry dropdown */
.mega-full {
    position: fixed;
    left: 1%;
    right: 1%;
    transform: translateY(8px);
    max-width: none;
    min-width: 0;
    padding: 28px 28px 32px;
    gap: 0;
    overflow: hidden;
}

.nav-dropdown:hover .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown:hover .mega-wide {
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .mega-full {
    transform: translateY(0);
}

.mega-col {
    flex: 1;
    min-width: 0;
}

.mega-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    padding: 0 8px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-light);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition);
}
.mega-item:hover { background: var(--primary-bg); }
.mega-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.mega-item span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.mega-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
/* Small variant for industry items */
.mega-item-sm {
    padding: 6px 8px;
    gap: 8px;
    align-items: center;
}
.mega-item-sm span {
    font-size: 0.82rem;
    color: var(--text-body);
}
.mega-icon-sm {
    width: 20px;
    font-size: 0.7rem;
    color: var(--primary);
    text-align: center;
    flex-shrink: 0;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   HERO - Split layout with image on right
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: 70px;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: calc(100vh - 70px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 6%;
    position: relative;
}

/* Remove decorative dashed accents so hero images render cleanly on every page */
.hero-content::before,
.hero-content::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
}

.hero-brand {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}
.hero-brand .brand-a { color: var(--primary); }

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary-light);
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }

.hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 20%, transparent 50%);
    z-index: 1;
}
/* Per-page hero images */
/* Hero images - local files for fast loading */
.hero-image-home { background-image: url('../pic/home_main.png'); background-color: #d4734a; opacity: 0.7; }
.hero-image-platform { background-image: url('../pic/hero-platform.jpg'); background-color: #2d3748; }
.hero-image-industry { background-image: url('../pic/hero-industry.jpg'); background-color: #c4926a; }
.hero-image-partnerships { background-image: url('../pic/hero-partnerships.jpg'); background-color: #5a8a8a; }
.hero-image-pricing { background-image: url('../pic/hero-pricing.jpg'); background-color: #2d3748; }
.hero-image-about { background-image: url('../pic/hero-about.jpg'); background-color: #c0b0a0; }
.hero-image-blogs { background-image: url('../pic/hero-blogs.jpg'); background-color: #1a1a2e; }
.hero-image-demo { background-image: url('../pic/hero-demo.jpg'); background-color: #2d3748; }
.hero-image-careers { background-image: url('../pic/hero-careers.jpg'); background-color: #b0a090; }
.hero-image-contact { background-image: url('../pic/hero-contact.jpg'); background-color: #c0a890; }
.hero-image-operations { background-image: url('../pic/hero-operations.jpg'); background-color: #1a2332; }
.hero-image-prime { background-image: url('../pic/hero-home.jpg'); background-color: #2d3748; }
.hero-image-security { background-image: url('../pic/hero-security.jpg'); background-color: #1e3a5f; background-position: center center; }
.hero-image-tools { background-image: url('../pic/hero-tools.jpg'); background-color: #1a2332; }
.hero-image-skills { background-image: url('../pic/hero-skills.jpg'); background-color: #2d3436; }
.hero-image-chat { background-image: url('../pic/hero-chat.jpg'); background-color: #2d3748; }
.hero-image-why { background-image: url('../pic/hero-why-alphient.jpg'); background-color: #0a1628; }
.hero-image-assetquality { background-image: url('../pic/hero-assetquality.jpg'); background-color: #2d3748; }
.hero-image-workspace { background-image: url('../pic/hero-workspace.jpg'); background-color: #2d3748; background-position: center center; }
.hero-image-knowledge { background-image: url('../pic/hero-industry.jpg'); background-color: #0a1628; }
.hero-image-workflows { background-image: url('../pic/hero-operations.jpg'); background-color: #1a1a2e; }
.hero-image-agents { background-image: url('../pic/hero-home.jpg'); background-color: #e0d8d0; }
.hero-image-case-studies { background-image: url('../pic/hero-case-studies.jpg'); background-color: #2d3748; }

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat h3 {
    font-size: 2rem; font-weight: 800;
    color: var(--primary);
}
.hero-stat p { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   PAGE HERO (interior pages) - same split layout
   ============================================================ */
.page-hero {
    position: relative;
    width: 100%;
    padding-top: 70px;
    background: var(--bg-white);
    overflow: hidden;
}

.page-hero .hero-split { min-height: calc(100vh - 70px); }

.page-hero .hero-content {
    padding: 60px 60px 60px 6%;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.page-hero .hero-description {
    font-size: 1rem;
    color: var(--text-body);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ---------- Section Styles ---------- */
.section { padding: 100px 0; position: relative; }
.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }

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

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: var(--primary-bg);
    border: 1px solid rgba(200,81,43,0.12);
    border-radius: 50px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--primary);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-icon {
    width: 56px; height: 56px;
    background: var(--primary-bg);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary);
    margin-bottom: 20px;
}

.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-dark); }
.card p { color: var(--text-body); font-size: 0.92rem; line-height: 1.7; }

/* ---------- Unified Platform Feature List ---------- */
.platform-features {
    width: 100%; display: flex; flex-direction: column; gap: 0;
    background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.platform-feature {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.platform-feature:last-child { border-bottom: none; }
.platform-feature:hover { background: var(--primary-bg); }
.platform-feature .pf-text {
    font-size: 0.92rem; color: var(--text-body); font-weight: 500; flex: 1;
}
.platform-feature .pf-badges { display: flex; gap: 6px; flex-shrink: 0; margin-left: 16px; }
.pf-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 4px; white-space: nowrap;
}
.pf-badge.prime { background: #FEF0EB; color: #B8441A; border: 1px solid #F0CFC0; }

/* ---------- Industry Mega Grid ---------- */
.industry-mega-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1.05fr) repeat(7, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: start;
}
.industry-mega-grid > div { min-width: 0; }
.industry-mega-grid > div > div[style*="text-transform:uppercase"] {
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    min-height: 34px;
}
.industry-mega-grid a[style*="display:flex;align-items:center;gap:8px"] {
    font-size: 0.78rem !important;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Process Steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-card { text-align: center; padding: 48px 32px; }
.process-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 800; color: #fff;
    margin-bottom: 24px;
}
.process-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.process-card p { color: var(--text-body); font-size: 0.92rem; }

/* ---------- Platform Cards (large) ---------- */
.platform-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px;
    margin-bottom: 40px;
    transition: all var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-md); }
.platform-card.reverse { direction: rtl; }
.platform-card.reverse > * { direction: ltr; }

.platform-card-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--primary-bg);
    border-radius: 8px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.platform-card h3 { font-size: 1.7rem; margin-bottom: 16px; }
.platform-card p { color: var(--text-body); margin-bottom: 24px; line-height: 1.8; }

.platform-card .platform-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.platform-card .platform-feature { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-body); }
.platform-card .platform-feature i { color: var(--success); font-size: 0.75rem; }

.platform-visual {
    aspect-ratio: 4/3;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.platform-visual-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--text-muted);
}
.platform-visual-placeholder i { font-size: 3rem; color: var(--primary); opacity: 0.3; }

/* ---------- Stats Bar ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 60px 0; }
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Industry Grid ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.industry-item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: default;
}
.industry-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.industry-item i { font-size: 1.1rem; color: var(--primary); width: 24px; text-align: center; }
.industry-item span { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); }

/* ---------- Platform Cards + Carousel ---------- */
.media-agents-row {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 40px;
    align-items: stretch;
}
.media-agent-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.media-agent-col .card {
    flex: 1;
}
.media-carousel-col {
    display: flex;
    align-items: center;
}
.media-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a2e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.media-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}
.media-carousel-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}
.media-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.media-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #333;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.media-carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.media-carousel-nav.prev { left: 12px; }
.media-carousel-nav.next { right: 12px; }
.media-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
}
.media-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.media-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}
.media-carousel-dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ---------- Feature Showcase ---------- */
.feature-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-showcase.reverse { direction: rtl; }
.feature-showcase.reverse > * { direction: ltr; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px; border-radius: var(--radius);
    transition: background var(--transition);
}
.feature-list li:hover { background: var(--primary-bg); }
.feature-list .feature-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    background: var(--primary-bg); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1rem;
}
.feature-list h4 { font-size: 1rem; margin-bottom: 4px; color: var(--text-dark); }
.feature-list p { font-size: 0.85rem; color: var(--text-body); }

/* ---------- Video Section ---------- */
.video-section { padding: 80px 0; }
.video-wrapper {
    position: relative; aspect-ratio: 16/9;
    max-width: 1000px; margin: 0 auto;
    border-radius: var(--radius-xl); overflow: hidden;
    background: var(--bg-light); border: 1px solid var(--border);
}
.video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    background: linear-gradient(135deg, #f8f8f8, #eee);
}
.video-play-btn {
    width: 80px; height: 80px;
    background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff; cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(200,81,43,0.3);
}
.video-play-btn:hover { transform: scale(1.1); }
.video-play-btn i { margin-left: 4px; }

/* ---------- CTA Section ---------- */
.cta-section { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.cta-section p { font-size: 1.05rem; color: var(--text-body); max-width: 600px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* ---------- Quote ---------- */
.quote-card {
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 48px 56px;
    position: relative;
}
.quote-card::before {
    content: '\201C'; position: absolute; top: 20px; left: 32px;
    font-size: 4rem; color: var(--primary); opacity: 0.2; font-family: serif; line-height: 1;
}
.quote-card p { font-size: 1.12rem; line-height: 1.9; color: var(--text-body); font-style: italic; }

/* ---------- Contact Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
textarea.form-control { resize: vertical; min-height: 120px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; background: var(--bg-light);
    border: 1px solid var(--border-light); border-radius: var(--radius);
}
.contact-info-card .icon {
    width: 44px; height: 44px;
    background: var(--primary-bg); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--text-dark); }
.contact-info-card p { font-size: 0.85rem; color: var(--text-body); }
.contact-info-card a { color: var(--primary); font-size: 0.85rem; }

/* ---------- Architecture Diagram ---------- */
.arch-diagram { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; margin: 40px 0; }
.arch-layers { display: flex; flex-direction: column; gap: 12px; }
.arch-layer {
    display: flex; align-items: center; gap: 20px;
    padding: 18px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.arch-layer:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.arch-layer-label { min-width: 160px; font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.arch-layer-items { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.arch-tag {
    padding: 5px 12px; background: var(--primary-bg);
    border: 1px solid var(--border-light); border-radius: 6px;
    font-size: 0.78rem; color: var(--text-body); white-space: nowrap;
}

/* ---------- Comparison Table ---------- */
.comparison-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.comparison-table th { background: var(--bg-light); font-weight: 700; color: var(--primary); }
.comparison-table td { color: var(--text-body); }
.comparison-table tr:hover td { background: var(--primary-bg); }
.comparison-table .check { color: var(--success); font-weight: 700; }

/* ---------- Ops Dashboard ---------- */
.ops-dashboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ops-metric {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; text-align: center;
}
.ops-metric-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--success); margin-bottom: 8px; }
.ops-metric-label { font-size: 0.85rem; color: var(--text-muted); }
.ops-gauge {
    width: 80px; height: 80px; border-radius: 50%;
    border: 4px solid var(--border); border-top-color: var(--success);
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; color: var(--success);
}

/* ---------- Career Cards ---------- */
.career-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: all var(--transition);
}
.career-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.career-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.career-meta { display: flex; gap: 16px; margin-bottom: 14px; font-size: 0.82rem; color: var(--text-muted); }
.career-meta span { display: flex; align-items: center; gap: 6px; }
.career-meta i { color: var(--primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; font-size: 0.85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--primary); }

/* ---------- Alerts ---------- */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; display: none; }
.alert-success { background: rgba(46,173,108,0.08); border: 1px solid rgba(46,173,108,0.2); color: var(--success); }
.alert-error { background: rgba(220,60,60,0.08); border: 1px solid rgba(220,60,60,0.2); color: #dc3c3c; }

/* ---------- Particle Canvas ---------- */
#particleCanvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 9999; transition: width 0.1s linear;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 46px; height: 46px;
    background: var(--primary); border: none; border-radius: 50%;
    color: #fff; font-size: 1rem; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all var(--transition); z-index: 999;
    box-shadow: 0 4px 16px rgba(200,81,43,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { background: var(--text-dark); border-top: none; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }

.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 16px; }
.footer-logo .logo-text { font-size: 1.2rem; color: #fff; }

.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 24px; max-width: 300px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Social icons on light backgrounds (outside footer) */
.section-white .footer-social a,
.section-light .footer-social a {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--text-body);
}
.section-white .footer-social a:hover,
.section-light .footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer-links i { margin-right: 6px; font-size: 0.7rem; color: var(--primary-light); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem; color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: var(--primary-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .hero-split { grid-template-columns: 1fr; min-height: auto; }
    .hero { min-height: auto; }
    /* Show hero image on mobile, constrained to 1/3 of screen height */
    .hero-image {
        height: 33vh;
        min-height: 180px;
        max-height: 33vh;
        order: -1; /* Image appears above content */
    }
    .hero-image::before {
        background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.8) 85%, rgba(255,255,255,1) 100%);
    }
    .hero-content { padding: 60px 40px; }
    .page-hero .hero-split { min-height: auto; }
    /* Carousel images constrained to 1/3 screen height on tablet/mobile */
    .media-carousel-slide img {
        max-height: 33vh;
        min-height: 180px;
        object-fit: cover;
        object-position: top center;
    }
    .platform-card { grid-template-columns: 1fr; padding: 36px; }
    .platform-card.reverse { direction: ltr; }
    .feature-showcase { grid-template-columns: 1fr; gap: 32px; }
    .feature-showcase.reverse { direction: ltr; }
    .media-agents-row { grid-template-columns: 1fr; gap: 24px; }
    .media-agent-col { flex-direction: row; gap: 24px; }
    .media-agent-col .card { flex: 1; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 28px; }
    .section { padding: 80px 0; }
    /* About page mission 3-col → 1-col */
    .about-mission-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    /* About page team */
    .about-team-flex { gap: 60px !important; }
    .about-team-img { width: 260px !important; height: 260px !important; }
    /* Partner logos */
    .partner-logos { gap: 50px !important; }
    .partner-logo-img { height: 36px !important; }
    .partner-logo-text { font-size: 1.6rem !important; }
    /* Mega menu fix */
    .mega-wide { min-width: auto; }
}

/* Switch to the slide-in mobile nav well before the desktop menu can crowd
   the logo. The navbar uses .container's 5% side padding, so the 10-item bar
   only fits comfortably above ~1280px; collapse to the hamburger below that. */
@media (max-width: 1280px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 300px; height: 100vh;
        flex-direction: column;
        background: var(--bg-white);
        padding: 80px 20px 32px 20px;
        border-left: 1px solid var(--border);
        transition: right var(--transition);
        gap: 4px; overflow-y: auto; overflow-x: hidden;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        align-items: stretch;
    }
    .nav-menu.open { right: 0; }
    .nav-menu > li { width: 100%; }
    .nav-link { padding: 12px 16px; text-align: left; justify-content: flex-start; }
    .nav-cta { margin-left: 0 !important; margin-top: 16px; text-align: center; justify-content: center; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; background: transparent;
        border: none; padding: 0 0 0 16px; box-shadow: none;
    }
    /* Mobile dropdown: fully contained inside the 300px side modal */
    .nav-dropdown { position: static; width: 100%; }
    .mega-panel {
        position: static !important; opacity: 1; visibility: visible;
        transform: none !important; background: transparent;
        border: none; padding: 4px 0 4px 12px; box-shadow: none;
        display: none; flex-direction: column; gap: 0;
        min-width: 0 !important; max-width: 100% !important;
        width: 100% !important; left: auto !important; right: auto !important;
        overflow: hidden;
    }
    .mega-wide, .mega-full {
        position: static !important; transform: none !important; width: 100% !important;
        min-width: 0 !important; left: auto !important; right: auto !important;
    }
    .mega-panel .mega-col { padding: 0; min-width: 0; }
    .mega-panel .mega-heading { font-size: 0.68rem; margin: 10px 0 4px 0; padding: 0 0 6px; }
    .mega-panel .mega-item {
        padding: 7px 4px; font-size: 0.84rem;
        gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    }
    .mega-panel .mega-item div span { display: none; }
    .mega-panel .mega-icon {
        width: 24px; height: 24px; font-size: 0.7rem;
        border-radius: 6px; flex-shrink: 0;
    }
    .mega-panel .mega-item div { min-width: 0; overflow: hidden; }
    .mega-panel .mega-item div strong {
        display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-size: 0.84rem;
    }
    .nav-dropdown.open > .mega-panel { display: flex; }
    /* Platform mega menu mobile resets */
    .mega-platform { min-width: 0 !important; max-width: 100% !important; }
    .mega-platform-top { flex-direction: column; gap: 0; }
    .mega-divider { display: none; }
    .mega-features-grid { display: flex; flex-direction: column; gap: 0; }
    /* Industry mega menu mobile resets */
    .industry-mega-grid {
        grid-template-columns: 1fr !important; gap: 8px !important;
    }
    .industry-mega-grid > div[style*="border-right"] {
        border-right: none !important; padding-right: 0 !important;
        border-bottom: 1px solid var(--border); padding-bottom: 12px;
    }
    .industry-mega-grid > div[style*="padding-right"] {
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 32px; }
    .grid-2, .grid-3, .process-grid { grid-template-columns: 1fr; }
    .media-agents-row { grid-template-columns: 1fr; gap: 20px; }
    .media-agent-col { flex-direction: column; gap: 16px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hero-content { padding: 40px 24px; }
    .hero-content::before, .hero-content::after { display: none; }
    .hero-brand { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-description { font-size: 0.92rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-social a { width: 34px; height: 34px; font-size: 0.85rem; }
    .ops-dashboard { grid-template-columns: 1fr; }
    .arch-layer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .arch-layer-label { min-width: auto; width: 100%; }
    .card { padding: 24px; }
    .comparison-table th, .comparison-table td { padding: 12px 14px; font-size: 0.82rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
    .section-title { font-size: 1.6rem; }
    /* About page team */
    .about-team-flex { gap: 40px !important; }
    .about-team-img { width: 220px !important; height: 220px !important; }
    /* Partner logos */
    .partner-logos { gap: 30px !important; }
    .partner-logo-img { height: 30px !important; }
    .partner-logo-text { font-size: 1.4rem !important; }
    /* Platform visual placeholder — constrain to 1/3 screen height */
    .platform-visual {
        max-height: 33vh;
        min-height: 160px;
        overflow: hidden;
    }
    /* CTA section */
    .cta-content h2 { font-size: 1.5rem; }
    .cta-content p { font-size: 0.92rem; }
    /* Contact info */
    .contact-info-cards { gap: 12px; }
    /* Form */
    .form-control { padding: 12px 14px; font-size: 0.92rem; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .grid-4 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; gap: 20px; }
    .about-team-flex { flex-direction: column !important; gap: 40px !important; align-items: center !important; }
    .about-team-img { width: 200px !important; height: 200px !important; }
    .partner-logos { flex-direction: column !important; gap: 24px !important; }
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.88rem; }
    .hero-brand { font-size: 2rem; }
    .hero-content { padding: 32px 16px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }
    .industry-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .card { padding: 20px; }
    .section-title { font-size: 1.25rem; }
    .hero-brand { font-size: 1.8rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .btn-lg { padding: 14px 24px; font-size: 0.85rem; }
    .stat-number { font-size: 2rem; }
    .footer-grid { gap: 20px; }
}

/* ---------- Slide Deck Viewer (4-up grid) ---------- */
.slide-viewer {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-light, #f8f9fa);
    user-select: none;
}
.slide-viewer-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}
.slide-viewer-slide {
    flex: 0 0 25%;
    padding: 6px;
}
.slide-viewer-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slide-viewer-slide img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}
.slide-viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    z-index: 3;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slide-viewer-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.slide-viewer-nav-btn.prev { left: 12px; }
.slide-viewer-nav-btn.next { right: 12px; }
.slide-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0 18px;
}
.slide-viewer-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.slide-viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.slide-viewer-dot:hover { background: var(--text-muted); }
.slide-viewer-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}
.slide-viewer-page {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-mono);
    min-width: 48px;
    text-align: center;
}
.slide-viewer-playpause {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.slide-viewer-playpause:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Fullscreen overlay */
.slide-fs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.slide-fs-overlay.open { display: flex; }
.slide-fs-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}
.slide-fs-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.slide-fs-close:hover { background: rgba(255,255,255,0.25); }
.slide-fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.slide-fs-nav:hover { background: rgba(255,255,255,0.2); }
.slide-fs-nav.prev { left: 24px; }
.slide-fs-nav.next { right: 24px; }
.slide-fs-counter {
    position: absolute;
    bottom: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .slide-viewer-slide { flex: 0 0 100%; }
    .slide-viewer-nav-btn { width: 34px; height: 34px; font-size: 0.75rem; }
    .slide-viewer-nav-btn.prev { left: 6px; }
    .slide-viewer-nav-btn.next { right: 6px; }
    .slide-viewer-slide img { cursor: default; }
    .slide-fs-overlay { display: none !important; }
}

/* ============================================================
   DEMO PAGE — Alphient Prime showcase
   ============================================================ */
.demo-hero {
    padding: 120px 0 60px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(200,81,43,0.08), transparent 60%),
        radial-gradient(ellipse at 80% 40%, rgba(212,115,74,0.06), transparent 60%),
        var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.demo-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.demo-hero-inner .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    padding: 6px 14px;
    background: var(--primary-bg);
    border-radius: 100px;
    margin-bottom: 18px;
}
.demo-hero-inner h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    margin-bottom: 18px;
}
.demo-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto 28px;
}
.demo-hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    padding: 14px 28px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.88rem;
    color: var(--text-body);
}
.demo-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.demo-hero-meta i { color: var(--primary); font-size: 0.95rem; }

.demo-split-section { padding-top: 72px; padding-bottom: 90px; }

/* Prime-only build: collapse the former Prime/Dialog two-column grid into a
   single full-width column so the demo content spans the entire container. */
.demo-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

.demo-column { min-width: 0; }

.demo-column-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border-light);
}
.demo-column-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 10px 0 8px;
}
.demo-column-header p {
    font-size: 0.98rem;
    color: var(--text-body);
    max-width: 640px;
}
.demo-column-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 100px;
}
.demo-column-badge-alt {
    background: var(--text-dark);
}

/* ----- Groups (Core / Enablers / Operations) ----- */
.demo-group { margin-bottom: 56px; }
.demo-group:last-child { margin-bottom: 0; }

.demo-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(200,81,43,0.06), rgba(212,115,74,0.03));
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
}
.demo-group-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(200,81,43,0.25);
}
.demo-group-header h3 {
    font-size: 1.25rem;
    margin: 0 0 2px;
    color: var(--text-dark);
}
.demo-group-header p {
    font-size: 0.85rem;
    color: var(--text-body);
    margin: 0;
}

/* ----- Video grid + cards ----- */
.demo-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.demo-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.demo-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200,81,43,0.25);
}

.demo-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    overflow: hidden;
}
.demo-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-video-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.demo-video-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-video-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.85rem;
}
.demo-video-body h4 {
    font-size: 0.98rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}
.demo-video-headline {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.45;
}
.demo-video-summary {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* ----- Empty-state placeholder ----- */
.demo-empty {
    padding: 48px 32px;
    text-align: center;
    background: var(--bg-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.demo-empty-visual {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.demo-empty-visual i {
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
}
.demo-empty-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
    animation: demoPulse 2.4s ease-out infinite;
}
@keyframes demoPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.5); opacity: 0; }
}
.demo-empty h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.demo-empty p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .demo-split { grid-template-columns: 1fr; gap: 56px; }
    .demo-empty { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 900px) {
    .demo-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .demo-hero { padding: 100px 0 48px; }
    .demo-hero-meta { gap: 16px; padding: 12px 20px; font-size: 0.82rem; }
    .demo-split-section { padding-top: 48px; padding-bottom: 64px; }
    .demo-split { gap: 48px; }
    .demo-group-header { padding: 14px 16px; gap: 12px; }
    .demo-group-icon { width: 42px; height: 42px; font-size: 1.05rem; }
    .demo-group-header h3 { font-size: 1.08rem; }
    .demo-group-header p { font-size: 0.8rem; }
}
@media (max-width: 560px) {
    .demo-video-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
    .demo-hero-meta { flex-direction: column; border-radius: 16px; }
    .demo-empty { padding: 36px 20px; }
}

/* ============================================================
   BLOGS PAGE — Card grid + pagination
   ============================================================ */
.blog-hero {
    padding: 120px 0 50px;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(200,81,43,0.08), transparent 60%),
        radial-gradient(ellipse at 85% 30%, rgba(14,165,233,0.05), transparent 60%),
        var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.blog-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.blog-hero-inner h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    margin-bottom: 18px;
}
.blog-hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-body);
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto 32px;
}

.blog-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 100px;
}
.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all var(--transition);
}
.blog-filter:hover { color: var(--primary); background: var(--bg-white); }
.blog-filter.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(200,81,43,0.25);
}
.blog-filter-count {
    display: inline-block;
    min-width: 22px;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0,0,0,0.06);
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
}
.blog-filter.is-active .blog-filter-count {
    background: rgba(255,255,255,0.25);
}

.blog-grid-section { padding-top: 64px; padding-bottom: 88px; }

.blog-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-body);
}
.blog-meta-line i { color: var(--primary); margin-right: 6px; }

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200,81,43,0.25);
}

.blog-card-visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.blog-card-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    /* scale embedded full-viewport visuals down so they fit the card */
    transform: scale(0.55);
    transform-origin: top left;
    width: 182%;
    height: 182%;
}
.blog-card-frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    z-index: 2;
}
.blog-card-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 3rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(200,81,43,0.45), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(14,165,233,0.35), transparent 60%),
        #1a1a1a;
}
.blog-card-kind {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.92);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.blog-card-kind-platform { color: var(--primary); }
.blog-card-kind-industry { color: #0ea5e9; }
.blog-card-kind-blog { color: #8B5CF6; }
.blog-card-fallback-blog { background: linear-gradient(135deg, rgba(139,92,246,0.16) 0%, rgba(139,92,246,0.04) 100%); }
.blog-card-fallback-blog i { color: #8B5CF6; }

.blog-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}
.blog-card-cat { display: inline-flex; align-items: center; gap: 6px; }
.blog-card-title {
    font-size: 1.12rem;
    line-height: 1.35;
    margin: 0;
    color: var(--text-dark);
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.blog-card-tag {
    font-size: 0.7rem;
    color: var(--text-body);
    padding: 3px 9px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 100px;
}

.blog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-right: auto;
}
.blog-card-cta i { transition: transform var(--transition); }
.blog-card-cta:hover i { transform: translateX(3px); }
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-body);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all var(--transition);
}
.blog-card-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ----- Pagination ----- */
.blog-pagination {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.blog-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition);
}
.blog-page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.blog-page-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.blog-page-list {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-page-num {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition);
}
.blog-page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.blog-page-num.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(200,81,43,0.3);
}

.blog-empty {
    padding: 80px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
}
.blog-empty i { font-size: 2.2rem; color: var(--primary); margin-bottom: 16px; }
.blog-empty h3 { margin-bottom: 8px; color: var(--text-dark); }
.blog-empty p { color: var(--text-body); }

/* ----- Individual blog post ----- */
.blog-post-hero {
    padding: 120px 0 48px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(200,81,43,0.08), transparent 60%),
        var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.blog-post-hero-inner { max-width: 820px; margin: 0 auto; }
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-body);
    text-decoration: none;
    margin-bottom: 22px;
    transition: color var(--transition);
}
.blog-back-link:hover { color: var(--primary); }
.blog-back-link i { transition: transform var(--transition); }
.blog-back-link:hover i { transform: translateX(-3px); }

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.blog-post-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-post-cat {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-post-cat i { margin-right: 6px; }
.blog-post-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-post-lead {
    font-size: 1.12rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

.blog-post-visual-section { padding: 40px 0 0; }
.blog-post-visual-wrap {
    max-width: 1040px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}
.blog-post-visual {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.blog-post-body-section { padding: 48px 0 88px; }
.blog-post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-body);
}
.blog-post-body p { margin: 0 0 18px; }
.blog-post-h {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}
.blog-post-list {
    margin: 0 0 22px;
    padding-left: 22px;
}
.blog-post-list li {
    margin-bottom: 8px;
}
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.blog-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
    .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .blog-hero { padding: 100px 0 40px; }
    .blog-filter { padding: 8px 14px; font-size: 0.8rem; }
    .blog-grid-section { padding-top: 48px; padding-bottom: 64px; }
    .blog-card-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-pagination { gap: 10px; margin-top: 40px; }
    .blog-page-btn { padding: 8px 14px; font-size: 0.82rem; }
    .blog-page-num { min-width: 34px; height: 34px; font-size: 0.82rem; }
    .blog-post-hero { padding: 100px 0 36px; }
    .blog-post-visual-section { padding: 28px 0 0; }
    .blog-post-body-section { padding: 36px 0 64px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
[data-aos] { transition-property: transform, opacity; }
