/* ==========================================================================
   MonsterMQ - Modern Industrial Design System
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Color Palette */
    --bg-base: #080C14;
    --bg-surface-1: #0F172A;
    --bg-surface-2: #1E293B;
    --bg-surface-3: #273549;
    --bg-surface-card: rgba(15, 23, 42, 0.75);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(124, 58, 237, 0.6);

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;

    --brand-purple: #8B5CF6;
    --brand-purple-dark: #6D28D9;
    --brand-emerald: #10B981;
    --brand-emerald-dark: #059669;
    --brand-teal: #14B8A6;
    --brand-cyan: #06B6D4;
    --brand-amber: #F59E0B;
    --brand-rose: #F43F5E;

    --gradient-brand: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
    --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    --gradient-hero: radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.18) 0%, rgba(16, 185, 129, 0.08) 45%, transparent 75%);

    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.2);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.2);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    scrollbar-color: var(--border-medium) var(--bg-base);
    scrollbar-width: thin;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    line-height: 1.68;
}

a {
    color: var(--brand-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-emerald);
}

code, pre {
    font-family: var(--font-mono);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.brand-name {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.dropdown-caret {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(10, 16, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
    padding: 0.65rem;
    min-width: 270px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text-primary);
    transform: translateX(2px);
}

.dropdown-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-item span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-btn-github:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple);
    transform: translateY(-1px);
}

.nav-btn-github svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--brand-purple);
    font-size: clamp(0.72rem, 2.5vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    max-width: 100%;
}

.hero-pill-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-emerald);
    box-shadow: 0 0 10px var(--brand-emerald);
    animation: live-pulse 2s infinite;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.85rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
}

.hero-title .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
    background: var(--bg-surface-2);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-surface-3);
    border-color: var(--brand-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--brand-emerald);
    color: var(--brand-emerald);
    background: rgba(16, 185, 129, 0.06);
}

/* Hero Badges Marquee / Cluster */
.hero-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    max-width: 980px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.hero-badge:hover {
    border-color: var(--brand-purple);
    background: rgba(30, 41, 59, 0.85);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.hero-badge.badge-highlight {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--brand-purple);
    font-weight: 600;
}

.hero-badge.badge-highlight-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--brand-emerald);
    font-weight: 600;
}

.hero-badge.badge-highlight-cyan {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--brand-cyan);
    font-weight: 600;
}

.hero-badge.badge-new-pill {
    background: var(--gradient-brand);
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}

/* Core and Edge broker overview */
.brokers-section {
    padding: 90px 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
}

.broker-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
}

.broker-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(139, 92, 246, 0.16), var(--bg-surface-1) 58%);
    box-shadow: var(--shadow-md);
}

.broker-card-edge {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(150deg, rgba(16, 185, 129, 0.15), var(--bg-surface-1) 58%);
}

.broker-card-label {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    font: 700 0.75rem var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.broker-card-edge .broker-card-label {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.broker-card h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 1.25rem 0 0.5rem;
}

.broker-card-lead {
    font-size: 1.05rem;
}

.broker-card-features {
    list-style: none;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.broker-card-features li {
    display: flex;
    gap: 0.7rem;
}

.broker-card-features li::before {
    content: '✓';
    color: var(--brand-purple);
    font-weight: 700;
}

.broker-card-edge .broker-card-features li::before {
    color: var(--brand-emerald);
}

.broker-connectivity {
    margin: 0 0 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-medium);
}

.broker-connectivity h4 {
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.broker-protocols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.broker-protocols span {
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.13);
    color: #ddd6fe;
    font-size: 0.8rem;
    font-weight: 700;
}

.broker-card-edge .broker-protocols span {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

.broker-connectivity p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.broker-connectivity p + p {
    margin-top: 0.45rem;
}

.broker-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: auto;
}

.broker-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: auto;
    color: #c4b5fd;
    font-weight: 700;
}

.broker-card-edge .broker-card-link,
.broker-peerlink .broker-card-link {
    color: #6ee7b7;
}

.broker-card-link:hover,
.broker-card-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.broker-peerlink {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: var(--radius-lg);
    background: rgba(6, 182, 212, 0.08);
}

.broker-peerlink-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font: 700 0.78rem var(--font-mono);
    color: var(--text-primary);
}

.broker-peerlink-line {
    color: var(--brand-cyan);
}

.broker-peerlink h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.broker-peerlink p {
    font-size: 0.9rem;
}

/* Unified Architecture Hub Section */
.architecture-section {
    padding: 85px 0;
    background: var(--bg-surface-1);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.section-kicker {
    display: inline-block;
    color: var(--brand-emerald);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Architecture Flow Canvas */
.arch-grid {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.arch-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arch-card {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all var(--transition-fast);
}

.arch-card:hover {
    border-color: var(--brand-purple);
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.arch-card.arch-card-target:hover {
    border-color: var(--brand-emerald);
    transform: translateX(-3px);
}

.arch-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arch-card-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.arch-card-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.arch-arrow {
    color: var(--brand-emerald);
    font-size: 1.75rem;
    font-weight: 700;
    opacity: 0.8;
}

.arch-core {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid var(--brand-purple);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.arch-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.arch-core-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.2);
    color: var(--brand-purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.arch-core h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.arch-core p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.arch-protocols-tag-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.arch-protocol-tag {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--brand-emerald);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

/* Interactive Factory State Digital Twin Section */
.factory-state-section {
    padding: 90px 0;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.state-visualizer-container {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
    position: relative;
}

.state-grid-layout {
    display: grid;
    grid-template-columns: 1fr auto 1.35fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.state-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.state-panel-header {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.5rem;
}

.state-device-card {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.state-device-name {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.state-device-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--brand-cyan);
}

.state-store-screen {
    background: #060911;
    border: 2px solid var(--brand-emerald);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-glow-green);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.state-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-emerald);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    margin-bottom: 0.35rem;
}

.state-record {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.state-topic-name {
    color: var(--text-muted);
}

.state-live-val {
    color: var(--brand-emerald);
    font-weight: 700;
}

.state-consumer-card {
    background: var(--bg-base);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--brand-purple);
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.state-consumer-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--brand-purple);
    transform: translateY(-2px);
}

.state-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.state-feature-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
}

.state-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-emerald);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.state-card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.85rem;
}

.state-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.state-feature-card p {
    font-size: 0.92rem;
}

/* Web Apps & Developer CLI Section */
.webapps-cli-section {
    padding: 95px 0;
    background: linear-gradient(180deg, var(--bg-surface-1) 0%, var(--bg-base) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.tools-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.tool-box-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tool-box-card:hover {
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.tool-box-top {
    margin-bottom: 1.5rem;
}

.tool-box-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-box-icon-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-box-icon {
    font-size: 2rem;
}

.tool-box-icon-title h3 {
    font-size: 1.5rem;
}

.pill-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pill-badge-purple {
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--brand-purple);
}

.pill-badge-green {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--brand-emerald);
}

.tool-box-desc {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
}

.tool-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.tool-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.tool-checklist li strong {
    color: var(--text-primary);
}

.tool-check-mark {
    color: var(--brand-emerald);
    font-weight: bold;
    flex-shrink: 0;
}

/* Runtime Visual Flow */
.runtime-flow-box {
    background: #060911;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.runtime-step {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.runtime-step.step-highlight {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.runtime-step.step-highlight span:last-child {
    color: var(--brand-emerald);
    font-weight: 700;
}

/* Terminal Component */
.terminal-card {
    background: #050811;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.terminal-top-bar {
    background: #111726;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.terminal-dots-group {
    display: flex;
    gap: 6px;
}

.terminal-dot-circ {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.circ-red { background: #EF4444; }
.circ-yellow { background: #F59E0B; }
.circ-green { background: #10B981; }

.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-inner-body {
    padding: 1.15rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #E2E8F0;
    overflow-x: auto;
}

.t-prompt { color: var(--brand-purple); font-weight: 700; }
.t-cmd { color: #FFFFFF; font-weight: 600; }
.t-res { color: var(--brand-emerald); margin: 0.25rem 0 0.85rem 1rem; white-space: pre-wrap; word-break: break-all; }

/* Real-World WinCC Showcase Component */
.wincc-showcase-panel {
    background: var(--bg-surface-1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.wincc-header {
    margin-bottom: 1.75rem;
}

.wincc-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.wincc-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--brand-emerald);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wincc-badge.purple-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--brand-purple);
}

.wincc-header h3 {
    font-size: 1.65rem;
    margin-bottom: 0.65rem;
}

.wincc-browser-window {
    background: #060911;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.wincc-browser-bar {
    background: #111726;
    padding: 0.65rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.wincc-url-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #060911;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    max-width: 620px;
    width: 100%;
}

.wincc-live-tag {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--brand-emerald);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.wincc-image-frame {
    background: #000000;
    overflow: hidden;
}

.wincc-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.wincc-screenshot:hover {
    transform: scale(1.008);
}

/* Feature Categories & Filter Grid */
.features-section {
    padding: 95px 0;
    background: var(--bg-surface-1);
    position: relative;
}

.feature-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 3rem;
}

.feature-tab-btn {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.feature-tab-btn:hover {
    border-color: var(--brand-purple);
    color: var(--text-primary);
}

.feature-tab-btn.active {
    background: var(--gradient-brand);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.features-master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.75rem;
}

.f-card {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all var(--transition-normal);
    position: relative;
}

.f-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-md);
}

.f-card.f-card-featured {
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(8, 12, 20, 0.9) 100%);
}

.f-card.f-card-featured:hover {
    box-shadow: var(--shadow-glow);
}

.f-card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--gradient-brand);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.f-card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.f-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.f-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.f-card a {
    color: var(--brand-purple);
    font-weight: 600;
}

.f-card a:hover {
    color: var(--brand-emerald);
}

/* AI Agents Section */
.ai-section {
    padding: 95px 0;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.ai-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.ai-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    transition: all var(--transition-normal);
}

.ai-card:hover {
    border-color: var(--brand-purple);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.ai-card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.85rem;
}

.ai-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.ai-card p {
    font-size: 0.9rem;
}

/* Databases & Storage Matrix Section */
.database-section {
    padding: 95px 0;
    background: var(--bg-surface-1);
    position: relative;
}

.db-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.db-box {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.db-box:hover {
    border-color: var(--brand-purple);
    transform: translateY(-3px);
}

.db-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.db-logo-img {
    height: 36px;
    width: auto;
}

.db-logo-badge {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-medium);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brand-purple);
}

.db-features-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.db-usecase-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
}

/* Capability Table */
.matrix-container {
    background: var(--bg-base);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow-x: auto;
}

.matrix-container h3 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    text-align: center;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.matrix-table th, .matrix-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th:first-child, .matrix-table td:first-child {
    text-align: left;
}

.matrix-table th {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    font-weight: 700;
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.check-yes {
    color: var(--brand-emerald);
    font-weight: 800;
    font-size: 1.1rem;
}

.check-no {
    color: var(--text-subtle);
    font-weight: 700;
}

/* Quickstart Section */
.quickstart-section {
    padding: 95px 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
}

.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 2rem;
}

.qs-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qs-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.qs-card p {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.qs-code-box {
    position: relative;
    background: #060911;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qs-code-box pre {
    padding: 1.25rem 4rem 1.25rem 1.25rem;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--brand-emerald);
    overflow-x: auto;
}

.copy-code-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-code-btn:hover {
    background: var(--brand-purple);
    color: #FFFFFF;
    border-color: var(--brand-purple);
}

/* Footer */
.footer {
    background: #04070D;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-purple);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Edge Vision & RTSP Camera Bridge Section
   ========================================================================== */
.edge-vision-section {
    padding: 90px 0;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.vision-visualizer-container {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
    position: relative;
}

.vision-grid-layout {
    display: grid;
    grid-template-columns: 1fr auto 1.35fr auto 1.15fr;
    align-items: center;
    gap: 1.5rem;
}

.vision-panel-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-emerald);
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.vision-camera-source {
    background: #060911;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.vision-camera-frame {
    background: #0c1220;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vision-cam-header {
    background: #131b2e;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.vision-cam-preview {
    padding: 2rem 1rem 1rem;
    text-align: center;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 9, 17, 0.95) 75%);
}

.vision-lens-graphic {
    width: 84px;
    height: 84px;
    border: 2px dashed var(--brand-emerald);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-reticle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--brand-teal);
    border-radius: 50%;
    animation: live-pulse 2s infinite;
}

.vision-lens-text {
    display: none;
}

.vision-cam-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.vision-flow-arrow {
    color: var(--brand-emerald);
    font-size: 1.75rem;
    font-weight: 700;
    opacity: 0.8;
}

.vision-core-hub {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid var(--brand-purple);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.vision-hub-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.2);
    color: var(--brand-purple);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.vision-core-hub h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.vision-hub-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.vision-features-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.vision-features-pill-row span {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--brand-emerald);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.vision-trigger-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.vision-trigger-item {
    background: rgba(8, 12, 20, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.vision-trigger-item strong {
    color: var(--text-primary);
    font-size: 0.82rem;
    display: block;
}

.vision-trigger-item p {
    color: var(--text-muted);
    font-size: 0.74rem;
    margin: 0;
    line-height: 1.35;
}

.v-trig-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.vision-slots-panel {
    background: #060911;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vision-slot-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.vision-latest-item {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    margin-bottom: 0.25rem;
}

.v-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-slot-tag {
    color: var(--text-muted);
    font-weight: 600;
}

.v-slot-tag-latest {
    color: var(--brand-emerald);
    font-weight: 700;
    font-size: 0.74rem;
}

.active-slot {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.active-tag {
    color: var(--brand-purple);
    font-weight: 700;
}

.v-slot-ts {
    color: var(--brand-cyan);
    font-size: 0.72rem;
}

.v-slot-body code {
    color: var(--text-secondary);
    font-size: 0.72rem;
    display: block;
    margin-top: 0.25rem;
}

.v-slot-path {
    color: var(--text-subtle);
    font-size: 0.72rem;
}

.vision-stream-bar {
    margin-top: 0.4rem;
    padding: 0.6rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--brand-cyan);
    font-weight: 600;
}

.vision-ws-url {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vision-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.vision-detail-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
}

.vision-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

/* ==========================================================================
   Broker Scripting Section (Python, Starlark, JS)
   ========================================================================== */
.scripting-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.scripting-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
}

.script-engine-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pill-badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--brand-cyan);
}

.scripting-info-col h3 {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.scripting-info-col p {
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.script-code-container {
    background: #060911;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.script-code-header {
    background: #0F172A;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.script-lang-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.script-status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-emerald);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.script-code-body {
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}

.script-code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #E2E8F0;
}

.c-comment { color: #64748B; font-style: italic; }
.c-kw { color: #F43F5E; font-weight: 600; }
.c-fn { color: #38BDF8; }
.c-str { color: #34D399; }

/* ==========================================================================
   Broker Federation & Peer Links Section
   ========================================================================== */
.federation-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--bg-surface-1) 0%, var(--bg-base) 100%);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.federation-visualizer-container {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
    position: relative;
}

.fed-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    gap: 1.5rem;
}

.fed-node-box {
    background: #060911;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fed-node-box.fed-node-central {
    border-color: rgba(139, 92, 246, 0.4);
}

.fed-node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fed-node-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-emerald);
}

.fed-node-central .fed-node-status {
    color: var(--brand-purple);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--brand-emerald);
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

.live-dot-purple {
    width: 7px;
    height: 7px;
    background: var(--brand-purple);
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

.fed-role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--brand-emerald);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fed-role-badge.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--brand-purple);
}

.fed-node-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fed-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.fed-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.fed-m-label {
    color: var(--text-muted);
}

.fed-m-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
}

.fed-m-val.highlight-green {
    color: var(--brand-emerald);
}

.fed-m-val.highlight-purple {
    color: var(--brand-purple);
}

.fed-topics-preview {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
}

.fed-topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.fed-topic-item.matched {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
}

.fed-topic-item.matched .fed-topic-status {
    color: var(--brand-emerald);
    font-weight: 700;
}

.fed-topic-item.filtered {
    background: rgba(100, 116, 139, 0.08);
    border: 1px dashed rgba(100, 116, 139, 0.3);
    color: var(--text-muted);
}

.fed-topic-item.filtered .fed-topic-status {
    color: var(--brand-amber);
    font-weight: 600;
}

.fed-link-bridge {
    background: #090D18;
    border: 2px solid var(--brand-cyan);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
    position: relative;
}

.fed-link-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.fed-proto-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--brand-cyan);
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.fed-wire-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 0.75rem 0;
}

.fed-wire-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fed-wire-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.fed-flow-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.fed-flow-stream {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-family: var(--font-mono);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.6);
}

.fed-arrow-left {
    color: var(--brand-purple);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.fed-arrow-right {
    color: var(--brand-emerald);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.fed-savings-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--brand-emerald);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: auto;
}

.fed-central-consumers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.fed-consumer-pill {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: all var(--transition-fast);
}

.fed-consumer-pill:hover {
    border-color: var(--brand-purple);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
}

/* Micro Animations */
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .arch-grid, .state-grid-layout, .vision-grid-layout, .fed-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .broker-peerlink {
        grid-template-columns: 1fr;
    }

    .arch-arrow, .state-flow-arrow, .vision-flow-arrow {
        transform: rotate(90deg);
        text-align: center;
        margin: 0.25rem auto;
    }

    .scripting-layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 60px;
    }

    .broker-grid, .tools-two-col, .quickstart-grid, .features-master-grid, .vision-cards-grid {
        grid-template-columns: 1fr;
    }

    .vision-visualizer-container {
        padding: 1.5rem;
    }

    .vision-stream-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .wincc-browser-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .nav-btn-github {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Mobile Drawer Nav (JS Toggle) */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer .nav-link {
    font-size: 1.15rem;
    padding: 0.5rem 0;
}
