/* ========================================================
   ThingsX Modular Sensor Platform
   Integrated with Intellobots Dark / Cyber-Emerald Theme
   ======================================================== */

:root {
    --theme-accent: #00ff88;
    --theme-accent-glow: rgba(0, 255, 136, 0.25);
    --theme-accent-hover: #00cc6a;
    --theme-bg-dark: #020405;
    --theme-bg-section: #05090c;
    --theme-card-bg: #090e12;
    --theme-card-sub: #0d151a;
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-border-highlight: rgba(0, 255, 136, 0.35);
    --theme-text-white: #ffffff;
    --theme-text-muted: #9ca3af;
    --theme-text-dim: #64748b;
    --theme-cyan: #6FD3BC;
    --theme-font-heading: 'Outfit', sans-serif;
    --theme-font-body: 'Inter', sans-serif;
    --theme-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Page Scoping & Reset */
.prototype-page-root {
    background-color: var(--theme-bg-dark);
    color: var(--theme-text-white);
    font-family: var(--theme-font-body);
    min-height: 100vh;
    padding-top: 100px; /* Offset for fixed navigation header */
}

/* Layout Container */
.prototype-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.prototype-section {
    padding: 80px 0;
}

/* Header Text Blocks */
.stage-header-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 880px;
    margin-bottom: 40px;
}

.stage-step-tag {
    font-family: var(--theme-font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent);
    font-weight: 600;
}

.tag-cyan {
    color: var(--theme-accent) !important;
}

.stage-main-title {
    margin: 0;
    font-family: var(--theme-font-heading);
    font-size: clamp(34px, 4.4vw, 50px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--theme-text-white);
}

.stage-main-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--theme-text-muted);
}

/* ----------------------------------------------------
   STAGE 1: ARCHITECTURE / HERO SECTION
   ---------------------------------------------------- */
.hero-architecture-section {
    padding: 30px 0 70px;
    background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 255, 136, 0.08) 0%, rgba(2, 4, 5, 1) 75%);
    position: relative;
}

.hero-header-block {
    margin-bottom: 32px;
}

.hero-main-title {
    font-size: clamp(34px, 4.5vw, 52px);
    color: #ffffff;
}

.hero-main-desc {
    font-size: 18px;
    color: #9ca3af;
    max-width: 820px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-accent);
    box-shadow: 0 0 10px var(--theme-accent);
    animation: liveDotBlink 2s infinite ease-in-out;
}

.hero-badge-text {
    font-family: var(--theme-font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent);
    font-weight: 600;
}

.architecture-showcase-console {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: #060b0e;
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 255, 136, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.architecture-showcase-console:hover {
    border-color: rgba(0, 255, 136, 0.45);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 255, 136, 0.12);
}

.console-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-green { background: #00ff88; box-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
.dot-cyan { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.6); }
.dot-purple { background: #a78bfa; box-shadow: 0 0 6px rgba(167, 139, 250, 0.6); }

.console-title {
    font-family: var(--theme-font-mono);
    font-size: 13px;
    color: var(--theme-text-muted);
    font-weight: 500;
}

.console-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--theme-font-mono);
    font-size: 12px;
    color: var(--theme-accent);
    background: rgba(0, 255, 136, 0.06);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.18);
}

.status-live-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-accent);
    box-shadow: 0 0 8px var(--theme-accent);
    animation: liveDotBlink 1.5s infinite;
}

.console-viewport {
    width: 100%;
    background: #222424;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.architecture-diagram-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 0 35px rgba(0, 255, 136, 0.08));
}

.console-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.console-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.meta-pill {
    font-family: var(--theme-font-mono);
    font-size: 12px;
    color: var(--theme-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--theme-accent);
}

.console-cta-link {
    font-family: var(--theme-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.console-cta-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .console-top-bar,
    .console-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .console-meta-pills {
        gap: 8px 12px;
    }
}

/* ----------------------------------------------------
   STAGE 2: GATEWAY
   ---------------------------------------------------- */
.gateway-stage {
    background: var(--theme-bg-section);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

.gateway-header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.gateway-header-text {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gateway-title {
    margin: 0;
    font-family: var(--theme-font-heading);
    font-size: clamp(32px, 4.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #FFFFFF;
}

.gateway-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--theme-text-muted);
}

.gateway-hero-box {
    flex: 1 1 380px;
    min-width: 0;
    min-height: 290px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, rgba(6, 11, 14, 0.96) 75%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 255, 136, 0.05);
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gateway-hero-box:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.15);
}

.gateway-hero-box img {
    max-width: 95%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(0, 255, 136, 0.22));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gateway-hero-box:hover img {
    transform: scale(1.04) translateY(-2px);
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(0, 255, 136, 0.35));
}

.gateway-hero-caption {
    font-family: var(--theme-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent);
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.gateway-protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.proto-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.proto-card:hover {
    border-color: var(--theme-border-highlight);
    transform: translateY(-3px);
}

.proto-card-tag {
    font-family: var(--theme-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    margin-bottom: -6px;
}

.proto-card-title {
    font-family: var(--theme-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.proto-card-purpose {
    font-size: 15px;
    line-height: 1.5;
    color: var(--theme-text-muted);
}

.proto-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--theme-border);
    margin-top: auto;
}

.proto-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--theme-border);
    font-size: 14px;
}

.proto-k {
    color: var(--theme-text-muted);
}

.proto-v {
    font-family: var(--theme-font-mono);
    text-align: right;
    color: var(--theme-accent);
    font-weight: 600;
}

.gateway-cta-banner {
    margin-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
}

.gateway-cta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gateway-cta-heading {
    font-size: 14.5px;
    font-weight: 500;
    color: #EDEFEA;
    line-height: 1.45;
}

.gateway-cta-footnote {
    font-size: 12px;
    color: var(--theme-text-muted);
    line-height: 1.4;
}

.gateway-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 22px;
    background: #00E599;
    color: #060a0d;
    font-family: var(--theme-font-body);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(0, 229, 153, 0.2);
}

.gateway-cta-btn:hover {
    background: #00FFAC;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 153, 0.4);
    color: #000000;
}

@media (max-width: 768px) {
    .gateway-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gateway-cta-btn {
        width: 100%;
    }
}

/* ----------------------------------------------------
   STAGE 3: SENSORS SPECIFICATIONS
   ---------------------------------------------------- */
.sensors-stage {
    background: var(--theme-bg-dark);
}

/* Split Layout: Vertical Catalog Sidebar + Active Sensor Detail Card */
.sensors-layout-split {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Vertical Sensor Navigation Sidebar */
.sensor-vertical-nav {
    background: #070b0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 14px;
    position: sticky;
    top: 90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vertical-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.v-nav-tag {
    font-family: var(--theme-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00E599;
}

.v-nav-sub {
    font-size: 11px;
    color: #64748b;
    font-family: var(--theme-font-mono);
}

/* Vertical Category Tabs */
.sensor-pill-tabs.vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
}

.sensor-tab-pill {
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 8px;
    font-family: var(--theme-font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.sensor-tab-pill:hover {
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
}

.sensor-tab-pill.active {
    border-color: #00E599;
    background: rgba(0, 229, 153, 0.04);
    color: #ffffff;
}

.v-tab-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.v-tab-code {
    font-family: var(--theme-font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 5px;
    background: #0e1419;
    border: 1px solid #1c262e;
    color: #718096;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sensor-tab-pill.active .v-tab-code {
    background: #00E599;
    color: #060a0d;
    font-weight: 800;
    border-color: #00E599;
}

.v-tab-name {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #94a3b8;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sensor-tab-pill:hover .v-tab-name,
.sensor-tab-pill.active .v-tab-name {
    color: #ffffff;
    font-weight: 600;
}

.v-tab-arrow {
    font-size: 13px;
    color: #334155;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sensor-tab-pill:hover .v-tab-arrow {
    color: #64748b;
}

.sensor-tab-pill.active .v-tab-arrow {
    color: #00E599;
    font-weight: 700;
}

/* Sensor Specification Detail Card */
.sensor-spec-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 32px;
    background: #070b0e;
    border: 1px solid rgba(0, 229, 153, 0.22);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* Top Row: Visual Stage & Specs Table */
.sensor-spec-top-row {
    display: flex;
    gap: 28px;
    align-items: stretch;
    width: 100%;
}

.sensor-photo-col {
    flex: 0 0 325px;
    width: 325px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sensor-main-photo-placeholder {
    height: 255px;
    width: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 55%, rgba(0, 229, 153, 0.16) 0%, rgba(0, 229, 153, 0.03) 48%, #05080a 78%);
    border: 1px solid rgba(0, 229, 153, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 0 22px rgba(0, 229, 153, 0.05);
    overflow: hidden;
    position: relative;
}

.sensor-expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(14, 20, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.sensor-expand-btn:hover {
    color: #00E599;
    border-color: #00E599;
    background: #0e1419;
}

.sensor-main-photo-placeholder img {
    max-width: 92%;
    max-height: 215px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.sensor-main-photo-placeholder:hover img {
    transform: scale(1.03);
}

.sensor-thumbnails-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.thumb-box {
    height: 56px;
    border-radius: 7px;
    background: #05080a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.thumb-box:hover {
    border-color: rgba(0, 229, 153, 0.5);
    transform: translateY(-1px);
}

.thumb-box.active {
    border: 1.5px solid #00E599;
    box-shadow: 0 0 10px rgba(0, 229, 153, 0.25);
    background: rgba(0, 229, 153, 0.05);
}

.thumb-box img {
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.thumb-box:hover img {
    transform: scale(1.06);
}

/* Details Column: Header + Table */
.sensor-details-col {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.sensor-heading-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sensor-code-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--theme-font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #00E599;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sensor-code-label .tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00E599;
    display: inline-block;
}

.sensor-name-display {
    font-family: var(--theme-font-heading);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.sensor-tagline-display {
    font-size: 13.5px;
    color: #8A938C;
    line-height: 1.4;
    margin: 0;
}

/* Table Scroll Container */
.table-scroll-wrapper {
    overflow-x: auto;
    margin-top: 2px;
}

.specs-table-min-width {
    min-width: 420px;
}

.specs-table-header {
    display: grid;
    grid-template-columns: 1.35fr 1.05fr 1.15fr 0.95fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--theme-font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00E599;
    line-height: 1.2;
}

.specs-table-body {
    display: flex;
    flex-direction: column;
}

.measure-row {
    display: grid;
    grid-template-columns: 1.35fr 1.05fr 1.15fr 0.95fr;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    line-height: 1.3;
    align-items: center;
}

.measure-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.3;
}

.measure-range,
.measure-acc,
.measure-res {
    font-family: var(--theme-font-mono);
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1.3;
}

/* General Specs 2-Column Grid (Spans Full Width) */
.general-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.gen-spec-card {
    background: #080d11;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gen-spec-card:hover {
    border-color: rgba(0, 229, 153, 0.3);
    background: #0a1015;
    transform: translateY(-1px);
}

.gen-spec-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 229, 153, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 229, 153, 0.15);
}

.gen-spec-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gen-spec-k {
    font-size: 11.5px;
    color: #8A938C;
    line-height: 1.2;
}

.gen-spec-v {
    font-size: 13.5px;
    font-weight: 600;
    color: #00E599;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--theme-font-body);
}

/* Action Buttons Row (Spans Full Width) */
.sensor-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 4px;
}

.btn-primary-action {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: #00E599;
    color: #060a0d !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 229, 153, 0.25);
}

.btn-primary-action:hover {
    background: #00FFAC;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 153, 0.45);
    color: #000000 !important;
}

.btn-arrow {
    font-size: 16px;
    font-weight: 800;
}

.btn-outline-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0a0f14;
    color: #EDEFEA !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.btn-outline-action:hover {
    border-color: #00E599;
    color: #00E599 !important;
    transform: translateY(-2px);
    background: #0e1419;
}

/* Lightbox Modal */
.sensor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sensor-lightbox.open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 10, 0.88);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    background: #080d11;
    border: 1px solid rgba(0, 229, 153, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #00E599;
    color: #060a0d;
}

#lightbox-img {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

.lightbox-caption {
    margin-top: 16px;
    font-family: var(--theme-font-mono);
    font-size: 14px;
    color: #00E599;
    font-weight: 600;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .sensors-layout-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sensor-vertical-nav {
        position: static;
    }

    .sensor-pill-tabs.vertical {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .architecture-flow-row {
        flex-direction: column;
        gap: 20px;
    }
    .flow-connector-col {
        transform: rotate(90deg);
        padding: 8px 0;
        align-self: center;
    }
}

@media (max-width: 860px) {
    .sensor-spec-card {
        padding: 24px;
        gap: 20px;
    }

    .sensor-spec-top-row {
        flex-direction: column;
        gap: 20px;
    }

    .sensor-photo-col {
        width: 100%;
        flex: 1 1 auto;
    }

    .sensor-main-photo-placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .stage-main-title {
        font-size: 28px;
    }
    .gateway-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .sensor-pill-tabs.vertical {
        grid-template-columns: 1fr;
    }

    .general-specs-grid {
        grid-template-columns: 1fr;
    }

    .sensor-actions-row {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary-action,
    .btn-outline-action {
        width: 100%;
    }
}

