/* ============================================================
   QUAN International — Solution Page Stylesheet
   Covers: hero, problem-strip, arch-section, scenario-section,
           products-section, dashboard-section, benefits-section,
           cta-section and all shared solution components
   ============================================================ */

/* ── CSS 變數 ─────────────────────────────────────────────── */
:root {
    --bg:        #0f1117;
    --bg-card:   #181c26;
    --primary:   #2997ff;
    --green:     #30d158;
    --red:       #ff453a;
    --orange:    #ff9f0a;
    --yellow:    #ffd60a;
    --purple:    #bf5af2;
    --teal:      #5ac8fa;
    --blue:      #2997ff;
    --muted:     #9a9aa8;
    --text:      #f5f5f7;
    --nav-h:     80px;
}

/* ── 基礎 ──────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ══ 1. HERO ══════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0d0e12;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg,
        rgba(0,0,0,.90) 0%,
        rgba(0,0,0,.72) 38%,
        rgba(0,0,0,.28) 62%,
        rgba(0,0,0,.04) 82%,
        transparent 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(41,151,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41,151,255,.05) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 600px;
    padding: 0 4rem 6rem;
    text-align: left;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 30px;
    border: 1px solid rgba(41,151,255,.45);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(41,151,255,.12);
    backdrop-filter: blur(8px);
    margin-bottom: 1.6rem;
    animation: fadeUp .8s ease-out both;
}
.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    animation: fadeUp .8s ease-out .15s both;
}
.hero-title span { color: var(--primary); }
.hero-sub {
    font-size: clamp(.9rem, 1.6vw, 1.1rem);
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 2.2rem;
    animation: fadeUp .8s ease-out .3s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp .8s ease-out .45s both;
}
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.4);
    font-size: .72rem;
    letter-spacing: 2px;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%,100% { opacity:.3; transform: scaleY(1); }
    50% { opacity:1; transform: scaleY(1.2); }
}
@keyframes fadeUp {
    from { opacity:0; transform: translateY(30px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    font-size: .95rem;
    transition: .3s;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    font-size: .95rem;
    transition: .3s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ── Section Commons ── */
.section-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.section-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .8rem;
}
.section-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 680px;
}

/* ══ 2. PROBLEM STRIP ══════════════════════════════════════════ */
.problem-strip {
    background: #181c26;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 5rem 2rem;
}
.problem-header {
    text-align: center;
    margin-bottom: 3rem;
}
.problem-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.prob-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.prob-card {
    background: #1e2230;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: .3s;
}
.prob-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.prob-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(41,151,255,.1);
    border: 1px solid rgba(41,151,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--primary);
}
.prob-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: .3rem;
}
.prob-label {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ══ 3. ARCHITECTURE ══════════════════════════════════════════ */
.arch-section { padding: 7rem 2rem; background: var(--bg); }
.arch-inner { max-width: 1300px; margin: 0 auto; }
.arch-header { text-align: center; margin-bottom: 4rem; }
.arch-diagram {
    background: #181c26;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.arch-diagram::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(41,151,255,.04) 0%, transparent 65%);
}
.arch-nodes {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
}
.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    transition: .35s;
    flex: 0 0 auto;
    width: 100px;
}
.arch-node:hover { transform: translateY(-6px); }
.node-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #22262e;
    border: 1.5px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.6);
    transition: .35s;
    flex-shrink: 0;
}
.arch-node:hover .node-img { border-color: var(--primary); box-shadow: 0 0 20px rgba(41,151,255,.25); }
.node-img img { width: 48px; height: 48px; object-fit: contain; }
.node-label {
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}
.node-role {
    font-size: .65rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
    max-width: 96px;
}
.node-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28px;
    color: rgba(255,255,255,.25);
    font-size: 1rem;
    flex: 0 0 auto;
}
.arch-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--muted);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.arch-divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 2rem 0;
}
.arch-path-label {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-align: center;
    margin-top: 1.5rem;
}

/* Node badge colors */
.badge-gw   { background: rgba(41,151,255,.12); color: var(--blue);   border: 1px solid rgba(41,151,255,.25); }
.badge-aq   { background: rgba(48,209,88,.12);  color: var(--green);  border: 1px solid rgba(48,209,88,.25); }
.badge-lora { background: rgba(168,85,247,.12); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.badge-vib  { background: rgba(255,159,10,.12); color: var(--orange); border: 1px solid rgba(255,159,10,.25); }
.badge-cloud{ background: rgba(191,90,242,.12); color: var(--purple); border: 1px solid rgba(191,90,242,.25); }
.badge-ble  { background: rgba(0,122,255,.12);  color: #007aff;       border: 1px solid rgba(0,122,255,.25); }
.badge-relay{ background: rgba(255,69,58,.12);  color: var(--red);    border: 1px solid rgba(255,69,58,.25); }
.badge-as   { background: rgba(255,69,58,.12);  color: var(--red);    border: 1px solid rgba(255,69,58,.25); }
.badge-optical{ background: rgba(90,200,250,.12);color:var(--teal);   border: 1px solid rgba(90,200,250,.25); }
.badge-485  { background: rgba(255,214,10,.12); color: var(--yellow); border: 1px solid rgba(255,214,10,.25); }
.badge-rs485{ background: rgba(255,214,10,.12); color: var(--yellow); border: 1px solid rgba(255,214,10,.25); }
.badge-ok   { background: rgba(48,209,88,.12);  color: var(--green);  border: 1px solid rgba(48,209,88,.25); }
.badge-em   { background: rgba(41,151,255,.12); color: var(--blue);   border: 1px solid rgba(41,151,255,.25); }
.badge-do   { background: rgba(255,159,10,.12); color: var(--orange); border: 1px solid rgba(255,159,10,.25); }
.badge-cam  { background: rgba(90,200,250,.12); color: var(--teal);   border: 1px solid rgba(90,200,250,.25); }
.badge-emg  { background: rgba(255,69,58,.12);  color: var(--red);    border: 1px solid rgba(255,69,58,.25); }
.badge-env  { background: rgba(48,209,88,.12);  color: var(--green);  border: 1px solid rgba(48,209,88,.25); }
.badge-irr  { background: rgba(90,200,250,.12); color: var(--teal);   border: 1px solid rgba(90,200,250,.25); }
.badge-dry  { background: rgba(255,159,10,.12); color: var(--orange); border: 1px solid rgba(255,159,10,.25); }
.badge-meter{ background: rgba(191,90,242,.12); color: var(--purple); border: 1px solid rgba(191,90,242,.25); }
.badge-bbq  { background: rgba(255,159,10,.12); color: var(--orange); border: 1px solid rgba(255,159,10,.25); }
.badge-pc   { background: rgba(41,151,255,.12); color: var(--blue);   border: 1px solid rgba(41,151,255,.25); }
.badge-tv   { background: rgba(90,200,250,.12); color: var(--teal);   border: 1px solid rgba(90,200,250,.25); }
.badge-ext  { background: rgba(168,85,247,.12); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.badge-btn  { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; font-size: .78rem; font-weight: 600; }
.badge-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ══ 4. SCENARIO SECTION ═══════════════════════════════════════ */
.scenario-section { padding: 7rem 2rem; background: #181c26; }
.scenario-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
/*
  sc-card layout — CSS Grid, Pattern A DOM: sc-proof → sc-anim-wrap → sc-text
  Normal:  col1=sc-text (45%), col2=sc-proof+sc-anim-wrap stacked (55%)
  Reverse: col1=sc-proof+sc-anim-wrap stacked (55%), col2=sc-text (45%)
*/
.sc-card {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: auto auto;
    column-gap: 3rem;
    align-items: start;
}
/* sc-text spans both rows in col 1, vertically centred */
.sc-card > .sc-text {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}
/* sc-proof sits top of col 2 */
.sc-card > .sc-proof {
    grid-column: 2;
    grid-row: 1;
}
/* sc-anim-wrap sits below sc-proof in col 2 */
.sc-card > .sc-anim-wrap {
    grid-column: 2;
    grid-row: 2;
    margin-top: 1.2rem;
}
/* .reverse: swap columns */
.sc-card.reverse > .sc-text {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}
.sc-card.reverse > .sc-proof {
    grid-column: 1;
    grid-row: 1;
}
.sc-card.reverse > .sc-anim-wrap {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1.2rem;
}
.sc-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: .8rem;
}
.sc-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}
.sc-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: .15;
    line-height: 1;
    margin-bottom: .5rem;
}
.sc-sensors {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.sensor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem;
    background: #1e2230;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
}
.sensor-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(41,151,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}
.sensor-name {
    font-weight: 700;
    font-size: .88rem;
    color: #fff;
}
.sensor-role {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4;
}
.sensor-stat {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
}
.sensor-stat-name {
    font-size: .72rem;
    color: var(--muted);
}
.sensor-stat-val {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
}
.sensor-stat-badge {
    padding: 1px 7px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 700;
}

/* Right column panels */
.sc-proof {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.sc-anim-wrap {
    background: #1e2230;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.sc-anim { display: flex; flex-direction: column; gap: .5rem; }
.sc-anim-label {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: .5rem;
    text-transform: uppercase;
}
.sc-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

/* proof-img and proof stats */
.proof-img {
    border-radius: 12px;
    overflow: hidden;
    background: #22262e;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.proof-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.proof-caption {
    font-size: .72rem;
    color: var(--muted);
    text-align: center;
    margin-top: .5rem;
}
.proof-stat {
    text-align: center;
    padding: .8rem;
    background: #22262e;
    border-radius: 10px;
}
.proof-stat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}
.proof-stat-label { font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ══ 5. PRODUCTS SECTION ═══════════════════════════════════════ */
.products-section {
    padding: 6rem 2rem;
    background: var(--bg);
    border-top: 1px solid rgba(255,255,255,.04);
}
.products-inner { max-width: 1200px; margin: 0 auto; }
.products-header { margin-bottom: 2.5rem; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.product-card {
    --card-accent: var(--primary);
    background: #181c26;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 2rem;
    transition: .35s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
/* Align cards: desc grows to fill gap, specs + link stay at bottom */
.product-card .prod-desc { flex: 1; }
.product-card .prod-specs { flex: 0 0 auto; }
.product-card .pc-features { flex: 1; }
.pc-img {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}
.pc-img img {
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}
.prod-img-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.prod-img-wrap img {
    max-height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}
.prod-img-wrap i { font-size: 2.8rem; }
.pc-name, .prod-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .25rem;
}
.pc-type { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.prod-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.prod-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.prod-specs { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.prod-spec-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .82rem;
    color: var(--muted);
}
.prod-spec-item .fas { color: var(--primary); margin-top: 2px; font-size: .75rem; }
.pc-features { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; flex: 1; }
.pc-feat {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .82rem;
    color: var(--muted);
}
.pc-feat .fas { color: var(--primary); margin-top: 2px; font-size: .75rem; flex-shrink: 0; }
.pc-link, .prod-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: .2s;
}
.pc-link:hover, .prod-link:hover { gap: 10px; }

/* ══ 6. DASHBOARD SECTION ═══════════════════════════════════════ */
.dashboard-section { padding: 7rem 2rem; background: #181c26; }
.dashboard-inner { max-width: 1300px; margin: 0 auto; }
.dashboard-header { text-align: center; margin-bottom: 3rem; }
.dash-main {
    background: #1e2230;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 24px;
    padding: 2rem;
}

/* KPI row */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    text-align: center;
    padding: 1.2rem .8rem;
    background: #22262e;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.05);
    transition: .25s;
}
.kpi-card:hover { border-color: var(--primary); }
.kpi-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .3rem;
}
.kpi-unit { font-size: .65rem; color: var(--muted); }
.kpi-label { font-size: .72rem; color: var(--muted); margin-top: .3rem; }

/* Dash panels */
.dash-panel {
    background: #22262e;
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,.05);
}
.dash-panel-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sub-panel {
    background: #1a1e28;
    border-radius: 10px;
    padding: .8rem 1rem;
    border: 1px solid rgba(255,255,255,.04);
    margin-bottom: .5rem;
}
.sub-label { font-size: .72rem; color: var(--muted); margin-bottom: .3rem; }

/* Mini KPI */
.mini-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); gap: .6rem; margin-top: .8rem; }
.mini-kpi { text-align: center; padding: .6rem; background: #1a1e28; border-radius: 8px; }
.mk-val { font-family: 'Orbitron',sans-serif; font-size: 1rem; font-weight: 800; color: var(--primary); }
.mk-label { font-size: .65rem; color: var(--muted); margin-top: .2rem; }

/* Bar tracks */
.ward-row, .env-row, .ev-row, .farm-zone-row, .vib-row, .power-row, .relay-row, .sched-row, .irr-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .5rem 0;
    font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ward-row:last-child, .env-row:last-child, .ev-row:last-child,
.farm-zone-row:last-child, .vib-row:last-child, .power-row:last-child { border-bottom: none; }
.ward-row-head, .env-row-head, .ev-row-head, .vib-row-head { display: flex; align-items: center; gap: .5rem; }
.ward-name, .env-row-title, .ev-row-title, .farm-zone-name, .vib-name, .power-label, .relay-trigger, .sched-info, .irr-trigger {
    min-width: 90px;
    font-size: .82rem;
    color: var(--muted);
    flex-shrink: 0;
}
.ward-bar-track, .env-bar-track, .ev-bar-track, .farm-zone-bar-track,
.vib-bar-track, .demand-bar-track, .co2-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.ward-bar-fill, .env-bar-fill, .ev-bar-fill, .farm-zone-bar-fill,
.vib-bar-fill, .demand-bar-fill, .co2-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    transition: width 1s ease;
}
.ward-val, .env-row-val, .ev-row-val, .farm-zone-pct, .vib-val, .power-val {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    min-width: 48px;
    text-align: right;
    flex-shrink: 0;
}
.ward-status, .ev-status-badge, .vib-status, .sched-status, .irr-status, .relay-status, .audio-status-badge, .emg-status-text, .fence-status-text {
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
}
.ward-badge, .farm-zone-badge, .vib-badge, .sched-tag, .irr-label, .relay-label {
    font-size: .65rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

/* Status colors */
.ok, .good     { color: var(--green); }
.warning, .warn{ color: var(--orange); }
.critical      { color: var(--red); }
.normal        { color: var(--blue); }
.idle          { color: var(--muted); }
.info          { color: var(--teal); }
.on            { color: var(--green); }
.off           { color: var(--muted); }
.tok           { color: var(--green); }

/* LED indicators */
.vib-led, .irr-led, .relay-led, .sched-led, .emg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Alert list */
.alert-list { display: flex; flex-direction: column; gap: .5rem; max-height: 200px; overflow-y: auto; }
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .6rem .8rem;
    border-radius: 8px;
    font-size: .82rem;
    background: #1a1e28;
    border: 1px solid rgba(255,255,255,.04);
}
.alert-ico { font-size: .9rem; flex-shrink: 0; }
.alert-msg { color: var(--text); line-height: 1.4; }
.alert-time { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.alert-item.critical { border-color: rgba(255,69,58,.2); background: rgba(255,69,58,.06); }
.alert-item.warning  { border-color: rgba(255,159,10,.2); background: rgba(255,159,10,.06); }
.alert-item.info     { border-color: rgba(90,200,250,.15); background: rgba(90,200,250,.04); }

/* Signal */
.signal-row { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.signal-label { font-size: .8rem; color: var(--muted); min-width: 60px; }
.signal-quality { display: flex; gap: 3px; }
.signal-val { font-size: .8rem; font-weight: 600; }

/* ══ 7. BENEFITS SECTION ════════════════════════════════════════ */
.benefits-section { padding: 7rem 2rem; background: var(--bg); }
.benefits-inner { max-width: 1200px; margin: 0 auto; }
.benefits-header { text-align: center; margin-bottom: 3rem; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.benefit-card {
    background: #181c26;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: .35s;
}
.benefit-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(41,151,255,.1);
    border: 1px solid rgba(41,151,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}
.benefit-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: .2rem;
}
.benefit-num { font-size: .72rem; color: var(--muted); }
.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}
.benefit-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ══ 8. CTA SECTION ════════════════════════════════════════════ */
.cta-section {
    padding: 7rem 2rem;
    background: #181c26;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.04);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
}
.cta-desc { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══ SPECIALISED ANIMATED PANELS ════════════════════════════════ */

/* Audio / spectrum */
.audio-panel, .audio-result-row { display: flex; flex-direction: column; gap: .5rem; }
.spectrum-wrap { display: flex; gap: 3px; align-items: flex-end; height: 60px; }
.wave-svg { overflow: visible; }
.audio-freq-labels { display: flex; justify-content: space-between; font-size: .65rem; color: var(--muted); }
.audio-result-row { flex-direction: row; justify-content: space-between; }

/* Animated panels */
.anim-hud { display: flex; flex-direction: column; gap: .5rem; }
.anim-status-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.status-ok { background: rgba(48,209,88,.12); color: var(--green); border: 1px solid rgba(48,209,88,.25); }
.anim-val { font-family: 'Orbitron',sans-serif; font-weight: 800; }
.anim-body { display: flex; flex-direction: column; gap: .6rem; }

/* Mini bars */
.mini-bars { display: flex; gap: 3px; align-items: flex-end; }

/* Various animated panels */
.env-panel, .irr-panel, .farm-panel, .loc-panel, .vib-panel,
.vib-status-row, .vib-info, .fence-panel, .sched-panel, .relay-panel,
.ev-panel, .emg-panel, .co2-panel, .audio-panel { display: flex; flex-direction: column; gap: .6rem; }
.irr-alert-banner { padding: .6rem 1rem; border-radius: 8px; font-size: .82rem; }
.irr-threshold, .relay-threshold, .sched-status, .irr-status,
.relay-status, .sched-led, .irr-led, .relay-led { flex-shrink: 0; }

/* Vision / camera */
.vision-panel { display: flex; flex-direction: column; gap: .8rem; }
.vision-camera-frame { position: relative; background: #111; border-radius: 12px; overflow: hidden; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.vision-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 20px 20px; }
.vision-scan-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--green); opacity: .6; animation: scanLine 2s linear infinite; }
@keyframes scanLine { from { top:0; } to { top:100%; } }
.vision-leaf-icon { font-size: 3rem; z-index: 2; }
.vision-bbox { position: absolute; border: 1.5px solid var(--green); border-radius: 4px; z-index: 3; }
.vision-bbox-label { position: absolute; top: -18px; left: 0; font-size: .6rem; background: var(--green); color: #000; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.vision-result-list { display: flex; flex-direction: column; gap: .3rem; }
.vision-result-item { display: flex; justify-content: space-between; align-items: center; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.vision-result-label { font-size: .78rem; color: var(--muted); }
.vision-result-val { font-size: .78rem; font-weight: 700; }

/* Location / BLE */
.loc-anchor { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.loc-tag { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.loc-tag-label { font-size: .6rem; color: var(--muted); position: absolute; top: 12px; white-space: nowrap; }
.loc-map { position: relative; min-height: 120px; background: #111; border-radius: 12px; overflow: hidden; }
.loc-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: 15px 15px; }
.loc-scan-ring { position: absolute; border: 1px solid rgba(41,151,255,.3); border-radius: 50%; animation: scanRing 3s ease-out infinite; }
@keyframes scanRing { from { transform: scale(0); opacity: .8; } to { transform: scale(2); opacity: 0; } }
.loc-result-list { display: flex; flex-direction: column; gap: .3rem; }
.loc-result-item { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.loc-result-label { font-size: .78rem; color: var(--muted); }
.loc-result-val { font-size: .78rem; font-weight: 700; }

/* CO2 gauge */
.co2-panel { align-items: center; }
.co2-gauge-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.co2-gauge-label, .co2-gauge-unit { font-size: .72rem; color: var(--muted); }
.co2-gauge-val { font-family: 'Orbitron',sans-serif; font-size: 2rem; font-weight: 800; }
.co2-scale { display: flex; gap: .5rem; font-size: .65rem; color: var(--muted); margin-top: .5rem; }
.co2-status { font-size: .78rem; font-weight: 700; margin-top: .3rem; }
.co2-info-row { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.co2-info-label { font-size: .78rem; color: var(--muted); }
.co2-info-val { font-size: .78rem; font-weight: 600; }

/* Emergency bed grid */
.emg-panel { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.emg-bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px,1fr)); gap: .5rem; }
.emg-bed { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem; background: #1a1e28; border-radius: 8px; border: 1px solid rgba(255,255,255,.04); }
.emg-bed-num { font-size: .65rem; color: var(--muted); }
.emg-bed-ico { font-size: 1.2rem; }
.emg-bed-status { font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.emg-log { display: flex; flex-direction: column; gap: .4rem; }
.emg-log-title { font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: .3rem; text-transform: uppercase; }
.emg-log-item { display: flex; align-items: flex-start; gap: .6rem; padding: .4rem .6rem; background: #1a1e28; border-radius: 6px; font-size: .78rem; }
.emg-log-ico { font-size: .8rem; flex-shrink: 0; }
.emg-log-msg { color: var(--text); flex: 1; line-height: 1.4; }
.emg-log-time { font-size: .68rem; color: var(--muted); flex-shrink: 0; }
.emg-status-bar { display: flex; align-items: center; gap: .8rem; }
.emg-led-ring { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.emg-status-text { font-size: .82rem; font-weight: 700; }
.emg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Fence log */
.fence-panel { display: flex; flex-direction: column; gap: .5rem; }
.fence-status-bar { display: flex; align-items: center; gap: .8rem; }
.fence-led-ring { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.fence-status-text { font-size: .82rem; font-weight: 700; }
.fence-log { display: flex; flex-direction: column; gap: .4rem; }
.fence-log-item { display: flex; align-items: flex-start; gap: .6rem; padding: .4rem .6rem; background: #1a1e28; border-radius: 6px; font-size: .78rem; }
.fence-log-ico { font-size: .8rem; flex-shrink: 0; }
.fence-log-msg { color: var(--text); flex: 1; }
.fence-log-time { font-size: .68rem; color: var(--muted); flex-shrink: 0; }

/* Route stops */
.route-panel { display: flex; flex-direction: column; gap: .5rem; }
.route-stop { display: flex; align-items: flex-start; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.route-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.route-stop-name { font-size: .82rem; font-weight: 600; color: #fff; }
.route-stop-time { font-size: .72rem; color: var(--muted); }
.route-stop-temp { font-size: .72rem; color: var(--blue); }

/* Flame node (BRAQMS) */
.flame-node-wrap { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 0 0 auto; width: 100px; }
.flame-anim { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,159,10,.1); border: 1.5px solid rgba(255,159,10,.25); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.flame-inner { font-size: 1.8rem; animation: flicker .5s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.1) rotate(3deg); } }

/* vib-banner */
.vib-banner { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; border-radius: 8px; margin-bottom: .5rem; }
.vib-panel { display: flex; flex-direction: column; gap: .5rem; }
.vib-info { display: flex; flex-wrap: wrap; gap: .5rem; }
.vib-tag { padding: 2px 8px; border-radius: 5px; font-size: .72rem; font-weight: 700; }
.vib-meter { display: flex; flex-direction: column; gap: .3rem; }
.vib-meter-title { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: .2rem; }
.vib-bar-wrap { display: flex; align-items: center; gap: .5rem; }
.vib-status-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-content { padding: 0 2rem 5rem; }
    /* Stack sc-card to single column on mobile */
    .sc-card,
    .sc-card.reverse {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 1.2rem;
        column-gap: 0;
    }
    /* Text first, then proof, then anim — all full width */
    .sc-card > .sc-text,
    .sc-card.reverse > .sc-text {
        grid-column: 1; grid-row: 1;
        align-self: auto;
    }
    .sc-card > .sc-proof,
    .sc-card.reverse > .sc-proof {
        grid-column: 1; grid-row: 2;
    }
    .sc-card > .sc-anim-wrap,
    .sc-card.reverse > .sc-anim-wrap {
        grid-column: 1; grid-row: 3;
        margin-top: 0;
    }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hero-content { padding: 0 1.5rem 4rem; }
    .problem-strip, .arch-section, .scenario-section,
    .products-section, .dashboard-section, .benefits-section, .cta-section {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
    .arch-diagram { padding: 1.5rem 1rem; }
    .hero-scroll { display: none; }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .problem-inner { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
}
