/* ==========================================================================
   TERRESTRIAL PLATFORM - ENTERPRISE PRODUCT SUITE
   Clean, World-Class B2B Industrial Software Design
   ========================================================================== */

:root, [data-theme="dark"], html[data-theme="dark"] {
    --bg-base: #060913;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(13, 20, 36, 0.7);
    --bg-card-hover: rgba(18, 28, 51, 0.92);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(56, 189, 248, 0.35);
    --border-accent: #38bdf8;
    --accent-cyan: #38bdf8;
    --accent-blue: #0284c7;
    --accent-teal: #2dd4bf;
    --accent-emerald: #10b981;
    --accent-indigo: #6366f1;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #ffffff;
    --glow-primary: 0 0 35px rgba(56, 189, 248, 0.22);
    --glow-card: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08);
    --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    /* Semantic Component Backgrounds */
    --header-bg: rgba(6, 9, 19, 0.92);
    --dropdown-bg: #090e1c;
    --input-bg: rgba(13, 20, 36, 0.8);
    --pill-bg: rgba(8, 16, 32, 0.85);
    --chip-bg: rgba(255, 255, 255, 0.05);
    --footer-bg: #04060d;
    --showcase-bg: #040711;
    --showcase-header-bg: rgba(10, 15, 29, 0.95);
    --hero-card-bg: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.16) 0%, transparent 60%),
                    radial-gradient(circle at 85% 80%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
                    linear-gradient(145deg, #050a18 0%, #071126 50%, #030612 100%);
    --quote-card-bg: linear-gradient(135deg, rgba(8, 26, 52, 0.72) 0%, rgba(13, 38, 72, 0.52) 100%);
    --diagram-bg: rgba(10, 16, 30, 0.85);
    --diagram-node-bg: rgba(13, 20, 36, 0.92);
    --body-bg-gradient: radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.14) 0%, transparent 45%),
                        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.09) 0%, transparent 45%),
                        radial-gradient(circle at 50% 95%, rgba(45, 212, 191, 0.07) 0%, transparent 50%);
}

html[data-theme="light"], [data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-card-hover: #ffffff;
    --border-subtle: rgba(15, 23, 42, 0.10);
    --border-focus: rgba(2, 132, 199, 0.35);
    --border-accent: #0284c7;
    --accent-cyan: #0284c7;
    --accent-blue: #0369a1;
    --accent-teal: #0f766e;
    --accent-emerald: #059669;
    --accent-indigo: #4f46e5;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --glow-primary: 0 0 30px rgba(2, 132, 199, 0.15);
    --glow-card: 0 12px 28px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
    --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

    /* Semantic Component Backgrounds */
    --header-bg: rgba(255, 255, 255, 0.92);
    --dropdown-bg: #ffffff;
    --input-bg: #ffffff;
    --pill-bg: #ffffff;
    --chip-bg: rgba(15, 23, 42, 0.05);
    --footer-bg: #f1f5f9;
    --showcase-bg: #f8fafc;
    --showcase-header-bg: #ffffff;
    --hero-card-bg: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
                    linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 50%, #ffffff 100%);
    --quote-card-bg: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.85) 100%);
    --diagram-bg: #f8fafc;
    --diagram-node-bg: #ffffff;
    --body-bg-gradient: radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.07) 0%, transparent 45%),
                        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
                        radial-gradient(circle at 50% 95%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: var(--body-bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TOP ENTERPRISE NAVIGATION
   ========================================================================== */
.corp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.corp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.corp-logo-glyph {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #050811;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.brand-info h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-heading);
    line-height: 1.2;
}

.brand-info span {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.corp-nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Quick App Switcher Dropdown */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-focus);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-cyan);
}

.dropdown-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--dropdown-bg);
    border: 1px solid var(--border-focus);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.18);
    width: 320px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px;
    display: none;
    z-index: 1001;
    backdrop-filter: blur(20px);
}

.dropdown-list.open {
    display: block;
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.dropdown-link:hover, .dropdown-link.active {
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-cyan);
}

.dropdown-link .cat-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.nav-breadcrumbs {
    padding: 24px 0 10px;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.84rem;
}

.breadcrumb-trail a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb-trail a:hover {
    color: var(--accent-cyan);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-active {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ==========================================================================
   PORTAL INDEX HERO
   ========================================================================== */
.portal-hero {
    padding: 64px 0 36px;
    text-align: center;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-focus);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.portal-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   PORTAL CATALOG FILTER & SEARCH
   ========================================================================== */
.portal-search {
    position: relative;
    max-width: 640px;
    margin: 32px auto 24px;
}

.portal-search input {
    width: 100%;
    padding: 15px 20px 15px 48px;
    background: var(--input-bg);
    border: 1px solid var(--border-focus);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.portal-search input:focus {
    background: rgba(18, 28, 51, 0.95);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.portal-search .search-ico {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cat-btn {
    background: rgba(13, 20, 36, 0.7);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    color: #fff;
    border-color: var(--border-focus);
    background: rgba(30, 41, 59, 0.6);
}

.cat-btn.active {
    background: var(--accent-cyan);
    color: #050811;
    font-weight: 700;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   PRODUCT GRID (EXACT 1-2 LINES BRIEF ON CARDS)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.catalog-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
    transform: translateY(-3px);
    box-shadow: var(--glow-card);
}

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.catalog-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-protocol-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.catalog-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.catalog-brief {
    font-size: 0.90rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-focus);
    color: var(--accent-cyan);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.catalog-action-btn:hover {
    background: var(--accent-cyan);
    color: #050811;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   PRODUCT DEDICATED HERO: FULL-WIDTH ATMOSPHERIC BANNER CARD
   (Directly matching User Publication-Ready Design Specification)
   ========================================================================== */
.product-hero {
    padding: 24px 0 32px;
}

.hero-banner-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: var(--hero-card-bg);
    padding: 48px 40px 42px;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.12), 0 24px 48px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(4px);
}

.hero-banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
    box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.08);
    z-index: 2;
}

.hero-svg-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.95;
}

.hero-svg-backdrop svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 22px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.hero-full-title {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    max-width: 1060px;
    margin: 0 auto 20px;
    text-align: center;
}

.hero-title-name {
    color: var(--text-heading);
}

.hero-title-tagline {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    max-width: 1100px;
}

.hero-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(8, 16, 32, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.hero-metric-pill:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.hero-metric-pill .pill-key {
    color: #94a3b8;
    font-weight: 600;
}

.hero-metric-pill .pill-val {
    color: var(--accent-cyan);
    font-weight: 700;
}

.hero-outcome-card {
    max-width: 940px;
    width: 100%;
    margin: 0 auto 22px;
    background: var(--quote-card-bg);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(56, 189, 248, 0.08);
    backdrop-filter: blur(8px);
    text-align: center;
}

.outcome-quote-text {
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    font-style: italic;
    color: var(--text-heading);
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 500;
}

.outcome-quote-author {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.hero-card-description {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 920px;
    margin: 0 auto 26px;
    text-align: center;
}

.hero-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-secondary-btn:hover {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
    transform: translateY(-2px);
}


.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.hero-cta-btn:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-cert-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* OPERATIONAL INTERFACE FULL-WIDTH SHOWCASE (RESTORED BELOW HERO) */
.operational-showcase-section {
    padding: 12px 0 52px;
}

.app-visual-showcase {
    width: 100%;
    background: #040711;
    border: 1px solid var(--border-focus);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.18);
    transition: all 0.3s ease;
}

.app-visual-showcase:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.75), 0 0 45px rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(10, 15, 29, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.20);
}

.showcase-title {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.live-dot {
    color: var(--accent-emerald);
}

.showcase-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.30);
    letter-spacing: 0.5px;
}

.showcase-img-wrap {
    background: #02040a;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.showcase-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-img:hover {
    transform: scale(1.006);
}

/* ==========================================================================
   CORP SECTIONS (UNIFORM LAYOUT FOR ALL 19 APPS)
   ========================================================================== */
.corp-section {
    padding: 56px 0;
    border-top: 1px solid var(--border-subtle);
}

.corp-section-header {
    margin-bottom: 36px;
}

.corp-section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.corp-section-heading {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.corp-section-subheading {
    font-size: 1.00rem;
    color: var(--text-secondary);
    max-width: 760px;
}

/* ROW 2: CAPABILITIES (WHAT IT WILL DO) */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.capability-card:hover {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.capability-icon {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.capability-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.capability-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ROW 3: USE CASES (QA, REDUCED MANPOWER, EFFICIENCY, PRODUCTIVITY) */
.usecase-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.usecase-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.usecase-box:hover {
    border-color: var(--border-focus);
}

.usecase-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usecase-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.usecase-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ROW 4: COMPARISON MATRIX (WITH TRADITIONAL SCADA) */
.matrix-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.matrix-table th {
    padding: 18px 24px;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.th-legacy {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    width: 48%;
}

.th-platform {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    width: 52%;
}

.matrix-table td {
    padding: 18px 24px;
    font-size: 0.90rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.td-legacy {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.015);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.td-platform {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.03);
    font-weight: 500;
}

.matrix-table tr:last-child td {
    border-bottom: none;
}

/* ROW 5: BIRDEYE ARCHITECTURE DIAGRAM */
.birdeye-diagram-card {
    background: var(--diagram-bg);
    border: 1px solid var(--border-focus);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(56, 189, 248, 0.05);
}

.birdeye-diagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

@media (max-width: 1024px) {
    .birdeye-diagram-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.diagram-node {
    background: var(--diagram-node-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
}

.diagram-node:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

.diagram-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.diagram-layer-tag {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.diagram-node-icon {
    font-size: 1.3rem;
}

.diagram-node-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.diagram-node-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.diagram-node-protocols {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.diagram-proto-chip {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Connecting Flow Indicator */
.diagram-flow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0 0;
    margin-top: 24px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    gap: 12px;
}

.flow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   PRODUCT PAGER
   ========================================================================== */
.product-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 64px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.pager-tile {
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 240px;
    transition: all 0.2s ease;
}

.pager-tile:hover {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.pager-meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.pager-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* ==========================================================================
   CORPORATE FOOTER
   ========================================================================== */
.corp-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 32px;
    margin-top: 64px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-summary h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-summary p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section h5 {
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.15s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-legal-bar {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}


/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT MODE SYSTEM
   ========================================================================== */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-focus);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-family: var(--font-heading);
    user-select: none;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.22);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(15deg);
}

/* In Dark Theme (default): Show Moon, Hide Sun */
:root .theme-icon-light,
html[data-theme="dark"] .theme-icon-light {
    display: none !important;
}
:root .theme-icon-dark,
html[data-theme="dark"] .theme-icon-dark {
    display: flex !important;
    color: var(--accent-cyan);
}

/* In Light Theme: Show Sun, Hide Moon */
html[data-theme="light"] .theme-icon-dark {
    display: none !important;
}
html[data-theme="light"] .theme-icon-light {
    display: flex !important;
    color: #f59e0b; /* Golden amber sun */
}

/* Light Theme Component Overrides */
html[data-theme="light"] .corp-header {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .portal-hero h1,
html[data-theme="light"] .hero-title-tagline {
    background: linear-gradient(135deg, #0f172a 40%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .portal-search input {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .portal-search input:focus {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

html[data-theme="light"] .cat-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .catalog-card {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .catalog-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .catalog-action-btn {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .catalog-action-btn:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] .hero-banner-card {
    background: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 85% 100%, rgba(2, 132, 199, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 15% 100%, rgba(45, 212, 191, 0.08) 0%, transparent 45%),
        linear-gradient(160deg, #ffffff 0%, #f0f7ff 50%, #e6f2fd 100%);
    border: 1px solid rgba(2, 132, 199, 0.28);
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 30px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .hero-banner-card::before {
    box-shadow: inset 0 0 35px rgba(2, 132, 199, 0.06);
}

html[data-theme="light"] .hero-svg-backdrop {
    opacity: 0.60;
    mix-blend-mode: multiply;
}

html[data-theme="light"] .hero-svg-backdrop rect[fill*="vignetteGrad"] {
    display: none !important;
}

html[data-theme="light"] .hero-top-badge {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.35);
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

html[data-theme="light"] .hero-metric-pill {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .hero-metric-pill .pill-key {
    color: #64748b;
}

html[data-theme="light"] .hero-metric-pill .pill-val {
    color: #0284c7;
    font-weight: 700;
}

html[data-theme="light"] .hero-outcome-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(2, 132, 199, 0.25);
    box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(2, 132, 199, 0.05);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .outcome-quote-text {
    color: #0f172a;
    font-weight: 500;
}

html[data-theme="light"] .outcome-quote-author {
    color: #0284c7;
    font-weight: 800;
}

html[data-theme="light"] .hero-secondary-btn {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.28);
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

html[data-theme="light"] .hero-secondary-btn:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
    transform: translateY(-2px);
}

html[data-theme="light"] .app-visual-showcase {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .app-visual-showcase:hover {
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .matrix-container {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .matrix-table th {
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .th-legacy {
    background: #fef2f2;
    color: #991b1b;
    border-bottom: 2px solid #fecaca;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 800;
    letter-spacing: 0.8px;
}

html[data-theme="light"] .th-platform {
    background: #f0f9ff;
    color: #0369a1;
    border-bottom: 2px solid #bae6fd;
    font-weight: 800;
    letter-spacing: 0.8px;
}

html[data-theme="light"] .matrix-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .td-legacy {
    color: #475569;
    background: #fcfcfc;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .td-platform {
    color: #0f172a;
    background: #ffffff;
    font-weight: 600;
}

html[data-theme="light"] .birdeye-diagram-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .diagram-node {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .diagram-proto-chip {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .diagram-flow-bar {
    border-top: 1px dashed rgba(15, 23, 42, 0.15);
    color: var(--text-secondary);
}

html[data-theme="light"] .corp-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .footer-summary h3 {
    color: #0f172a;
}

html[data-theme="light"] .footer-section a:hover {
    color: var(--accent-cyan);
}

html[data-theme="light"] .footer-legal-bar {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
}
