/* ITRadmin — Trust-Driven Light Design
   Palette based on color psychology research:
   - Navy (#1e3a5f) = trust, authority, reliability
   - Teal (#0891b2) = innovation, technology
   - Coral (#f97316) = energy, action (CTA — +34% trust with navy)
   - Warm white (#fafaf8) = approachability
   - Warm gray (#f5f3f0) = sophistication
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --navy: #1e3a5f;
    --navy-deep: #132842;
    --navy-light: #2b4f7e;
    --teal: #0891b2;
    --teal-light: #e0f7fa;
    --coral: #f97316;
    --coral-hover: #ea580c;
    --coral-glow: rgba(249, 115, 22, 0.2);
    --green: #16a34a;
    --bg: #fafaf8;
    --bg-white: #ffffff;
    --bg-warm: #f5f3f0;
    --bg-section: #f0eeeb;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e8e5e0;
    --border-hover: #d4d0ca;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.04);
    --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.06);
    --shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.08);
    --shadow-coral: 0 4px 20px rgba(249, 115, 22, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--navy); color: white; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ===== LCD SCREEN ===== */
.lcd-screen {
    position: relative;
}

/* Outer bezel — dark plastic housing */
.lcd-bezel {
    background: linear-gradient(170deg, #1c1c1c 0%, #111 60%, #0a0a0a 100%);
    border-radius: 3px;
    padding: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.6),
        0 2px 0 #000,
        0 3px 8px rgba(0,0,0,0.7);
    outline: 1px solid rgba(0,0,0,0.8);
    outline-offset: -1px;
}

/* The screen itself */
.lcd-inner {
    background: linear-gradient(160deg, #d4f0ff 0%, #b8e8ff 40%, #cceeff 100%);
    border-radius: 2px;
    padding: 12px 10px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 18px rgba(120,210,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 0 10px rgba(100,200,255,0.25);
}

/* Scanlines overlay */
.lcd-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 3px
    );
    pointer-events: none;
    z-index: 2;
}

.lcd-row {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-decoration: none;
    line-height: 1;
}

/* Status line */
.lcd-label {
    font-size: 7px;
    letter-spacing: 0.12em;
    color: rgba(0,0,0,0.45);
}

/* Phone number */
.lcd-phone {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000;
    text-shadow: none;
    transition: color 0.2s;
}

.lcd-phone:hover {
    color: #1a1a1a;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Soft-touch matte coating: light from above, darker bottom */
    background: linear-gradient(
        175deg,
        #fb923c 0%,
        #f97316 35%,
        #ea580c 65%,
        #c2410c 100%
    );
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /* Screen-printed ink */
    text-shadow:
        0 1px 1px rgba(80,10,0,0.55),
        0 0 8px rgba(0,0,0,0.18);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.08s ease, transform 0.08s ease;
    text-decoration: none;
    /*
     * Front-view panel button:
     * — мягкая поверхность поглощает свет по краям (inset vignette)
     * — тёмный пластиковый ободок-кольцо снаружи (spread shadow)
     * — тонкая светлая полоска над кольцом: верхний скос ловит свет сверху
     * — тёмная линия под кольцом: нижний скос в тени
     * — мягкая тень вниз: кнопка выступает из панели
     */
    box-shadow:
        /* Мягкая поверхность */
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -3px 5px rgba(0,0,0,0.2),
        inset 1px 0 3px rgba(0,0,0,0.09),
        inset -1px 0 3px rgba(0,0,0,0.09),
        /* Внешний ободок — тёмный пластиковый безель */
        0 0 0 1.5px rgba(12,2,0,0.8),
        /* Верхний скос ободка ловит свет */
        0 -1px 0 0 rgba(255,255,255,0.22),
        /* Нижний скос в тени + контакт с панелью */
        0 2px 0 rgba(0,0,0,0.45),
        /* Мягкая падающая тень */
        0 4px 8px rgba(0,0,0,0.38),
        0 8px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: linear-gradient(
        175deg,
        #fdba74 0%,
        #fb923c 35%,
        #f97316 65%,
        #ea580c 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -3px 5px rgba(0,0,0,0.18),
        inset 1px 0 3px rgba(0,0,0,0.08),
        inset -1px 0 3px rgba(0,0,0,0.08),
        0 0 0 1.5px rgba(12,2,0,0.8),
        0 -1px 0 0 rgba(255,255,255,0.28),
        0 2px 0 rgba(0,0,0,0.45),
        0 5px 10px rgba(0,0,0,0.42),
        0 10px 24px rgba(0,0,0,0.22);
}

.btn-primary:active {
    transform: translateY(2px);
    background: linear-gradient(
        175deg,
        #ea580c 0%,
        #c2410c 45%,
        #9a3412 100%
    );
    box-shadow:
        inset 0 3px 7px rgba(0,0,0,0.42),
        inset 0 1px 3px rgba(0,0,0,0.24),
        inset 1px 0 4px rgba(0,0,0,0.15),
        inset -1px 0 4px rgba(0,0,0,0.12),
        0 0 0 1.5px rgba(12,2,0,0.85),
        0 -1px 0 0 rgba(255,255,255,0.14),
        0 1px 0 rgba(0,0,0,0.35),
        0 2px 5px rgba(0,0,0,0.32),
        0 4px 12px rgba(0,0,0,0.18);
}

/* Round icon-only variant */
.btn-primary.btn-round {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--navy);
    font-weight: 600;
    font-family: inherit;
    font-size: 15px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

/* ===== CARD ===== */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
#header {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

#header.header-hidden {
    transform: translateY(-100%);
}

/* Router doesn't change on scroll — it's always a device */

/* Hamburger animation */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    cursor: pointer;
}

.ham-line {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.header-scrolled .ham-line { background: var(--navy); }

.hamburger-open .ham-line-1 {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-open .ham-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-open .ham-line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu stagger */
.mobile-link {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(var(--delay) * 0.05s);
}

/* Mega menu open state */
#megaMenu.mega-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

#megaChevron.mega-chevron-open {
    transform: rotate(180deg);
}

/* Mega menu items stagger */
.mega-item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}

.mega-open .mega-item {
    opacity: 1;
    transform: translateY(0);
}

.mega-open .mega-item:nth-child(1) { transition-delay: 0.03s; }
.mega-open .mega-item:nth-child(2) { transition-delay: 0.06s; }
.mega-open .mega-item:nth-child(3) { transition-delay: 0.09s; }
.mega-open .mega-item:nth-child(4) { transition-delay: 0.12s; }
.mega-open .mega-item:nth-child(5) { transition-delay: 0.15s; }
.mega-open .mega-item:nth-child(6) { transition-delay: 0.18s; }

/* =============================================
   ROUTER HEADER — Full switch/router device
   ============================================= */

/* Router body */
.router-body {
    background: linear-gradient(180deg, #1a1f2e 0%, #151924 50%, #111520 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Subtle brushed metal texture */
.router-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(255,255,255,0.008) 1px,
        rgba(255,255,255,0.008) 2px
    );
    pointer-events: none;
}

/* Bottom metallic edge */
.router-edge {
    height: 3px;
    background: linear-gradient(180deg, #2a3040 0%, #1a1f2e 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

/* Ventilation holes */
.router-vents {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 4px;
}

.router-vents-right {
    left: auto;
    right: 16px;
}

.router-vents span {
    width: 24px;
    height: 1.5px;
    background: rgba(255,255,255,0.03);
    border-radius: 1px;
}

/* Brand label plate */
.router-label {
    text-decoration: none;
    position: relative;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
}

/* Power LED */
.router-power-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80, 0 0 12px rgba(74,222,128,0.3);
    animation: powerPulse 3s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== RJ45 PORT COMPONENT ===== */

.rj45-port-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 6px;
    position: relative;
    cursor: pointer;
    width: 72px;
}

/* Port label area */
.port-label-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3px;
}

.port-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: 2px;
}

.port-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* port-name and port-slot activation handled via .hovered / .connected class (set by JS) */

/* LEDs */
.port-leds {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
}

.led {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

/* LED active states — only when cable is physically plugged in (.lit) */

/* (port-housing defined below with RJ45 port sizing) */

/* ===== RJ45 PORT SIZING ===== */

.rj45-port-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 4px 0;
    position: relative;
    cursor: pointer;
    width: 80px;
    overflow: visible;
}

.port-label-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
}

.port-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.18);
    line-height: 1;
    margin-bottom: 2px;
}

.port-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.rj45-port-wrap:hover .port-name,
.rj45-port-wrap.connected .port-name {
    color: rgba(255,255,255,1);
}

/* LEDs */
.port-leds {
    display: flex;
    gap: 5px;
    margin-bottom: 4px;
}

.led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.rj45-port-wrap.lit .led-link {
    background: #4ade80;
    box-shadow: 0 0 4px #4ade80, 0 0 10px rgba(74,222,128,0.4);
    animation: ledSteady 3.2s linear infinite;
}

.rj45-port-wrap.lit .led-act {
    background: #fbbf24;
    box-shadow: 0 0 4px #fbbf24, 0 0 10px rgba(251,191,36,0.4);
    animation: ledSteady2 2.4s linear infinite;
}

.rj45-port-wrap.hovered .port-name,
.rj45-port-wrap.connected .port-name { color: rgba(255,255,255,1); }

.rj45-port-wrap.hovered .port-slot,
.rj45-port-wrap.connected .port-slot {
    border-color: rgba(74,222,128,0.35);
    box-shadow: 0 0 10px rgba(74,222,128,0.12), inset 0 0 6px rgba(74,222,128,0.05);
}

@keyframes ledFlicker { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes ledFlicker2 { 0%,100%{opacity:1} 40%{opacity:0.1} 60%{opacity:0.8} }
@keyframes ledSteady { 0%,58%,61%,78%,81%,100%{opacity:1} 59%,79%{opacity:0.08} }
@keyframes ledSteady2 { 0%,18%,30%{opacity:0.05} 4%,10%,16%{opacity:1} 7%,13%{opacity:0.05} 34%,38%{opacity:1} 36%,40%,100%{opacity:0.05} }

/* Port housing — the socket on the router face */
.port-housing {
    width: 38px;
    height: 22px;
    position: relative;
    z-index: 3;
}

.port-slot {
    width: 100%;
    height: 100%;
    background: #080b12;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.port-notch {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 6px;
    background: #050710;
    border-radius: 2px 2px 0 0;
}

/* ===== FLOATING CABLE (single cable follows cursor between ports) ===== */

.floating-cable {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.35s ease;
    transform: translateX(-50%); /* center on left position */
    color: var(--coral);
    perspective: none;
    /* left, top set by JS */
}

.floating-cable.visible {
    opacity: 1;
}

/* ── Connector front-view (pulled out / in transit) ── */
.fc-connector {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    align-items: center;
    position: relative;
    /* pivot from top-centre so the connector tilts into the port */
    transform-origin: 50% 0%;
}

/* Plugged: hide front-view, show back-view */
.floating-cable.plugged .fc-connector { display: none; }
.floating-cable.plugged .fc-wire { transform: translateY(-4px); }

/* ── Phase 1 (0–0.3s): front face tilts from 0° → 90°, holds there ── */
.floating-cable.plug-animate .fc-connector {
    animation: fcTiltIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Phase 2 (0.3–0.6s): back face appears from –90° → 0° ── */
/* Shown during animation only; absolutely overlays front face */
.floating-cable.plug-animate .fc-inserted {
    display: flex;
    position: absolute;
    top: 0;
    left: calc(50% - 17px); /* centre 34px body in 26px container */
    transform-origin: 50% 100%;
    animation: fcTiltInBack 0.6s -0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Cable rises while connector is inserted */
.floating-cable.plug-animate .fc-wire {
    animation: fcWireRise 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Unplug: connector tilts back out of port */
.floating-cable.unplug-animate .fc-connector {
    animation: fcTiltOut 0.35s cubic-bezier(0.2, 0, 0.6, 1) both;
}
/* Cable drops slightly as connector is pulled */
.floating-cable.unplug-animate .fc-wire {
    animation: fcWireDrop 0.35s cubic-bezier(0.2, 0, 0.6, 1) both;
}

/* Front face: rotates 0°→90° then holds (invisible) for phase 2 */
@keyframes fcTiltIn {
    0%   { transform: perspective(220px) rotateX(0deg); }
    50%  { transform: perspective(220px) rotateX(90deg); }
    100% { transform: perspective(220px) rotateX(90deg); }
}

/* Back face: held at –90° during phase 1, then rotates –90°→0° */
@keyframes fcTiltInBack {
    0%   { transform: perspective(220px) rotateX(-90deg); }
    100% { transform: perspective(220px) rotateX(0deg); }
}

/* Unplug: emerge from port tilted, straighten out */
@keyframes fcTiltOut {
    0%   { transform: perspective(220px) rotateX(90deg); opacity: 0; }
    30%  { transform: perspective(220px) rotateX(40deg); opacity: 1; }
    100% { transform: perspective(220px) rotateX(0deg);  opacity: 1; }
}

/* Cable follows connector into port */
@keyframes fcWireRise {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-17px); }
}

/* Cable sags back as connector is pulled out */
@keyframes fcWireDrop {
    0%   { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ── Connector back-view (inserted into port) ── */
.fc-inserted {
    display: none;
    flex-direction: column;
    align-items: center;
}

.floating-cable.plugged .fc-inserted {
    display: flex;
    opacity: 1;
}

@keyframes fcInsertAppear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Back face of RJ45 body — what you see looking down into the port */
.fc-inserted-body {
    width: 34px;
    height: 16px;
    background: linear-gradient(180deg, #dedad5 0%, #c5c0b8 60%, #b0aba2 100%);
    border-radius: 2px 2px 1px 1px;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(0,0,0,0.22);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.55),
        0 0 0 1px rgba(74,222,128,0.18),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Cable exit groove on back face */
.fc-inserted-body::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 1px;
}

/* Locking clip — protrudes below body into the port notch */
.fc-inserted-clip {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 5px;
    background: linear-gradient(180deg, #b8b3aa, #9e9990);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fc-inserted-boot { display: none; }

.fc-body {
    width: 26px;
    height: 30px;
    background: linear-gradient(160deg, #eae7e2, #d5d0c8 40%, #c8c3ba);
    border-radius: 2px 2px 1px 1px;
    position: relative;
    box-shadow:
        1px 0 0 rgba(255,255,255,0.3) inset,
        -1px 0 0 rgba(0,0,0,0.06) inset,
        0 -1px 0 rgba(255,255,255,0.4) inset,
        0 2px 5px rgba(0,0,0,0.3);
}

.fc-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(180deg, #f2efea, #e0dcd5);
    border-radius: 2px 2px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fc-window {
    position: absolute;
    top: 6px; left: 3px; right: 3px;
    height: 14px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1px;
}

.fc-pins {
    display: flex;
    justify-content: space-between;
    padding: 2px 1px 0;
    height: 100%;
}

.fc-pins i {
    display: block;
    width: 1.5px;
    height: 9px;
    background: linear-gradient(180deg, #daa520, #b8860b);
    border-radius: 0 0 0.5px 0.5px;
}

.fc-tab {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 9px;
    background: linear-gradient(180deg, #ddd8d0, #c5c0b8);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.fc-boot { display: none; }

/* Wire (SVG) — positioned below connector, auto-sized by JS */
.fc-wire {
    position: absolute;
    top: 100%; /* starts from bottom of connector */
    overflow: visible;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    z-index: 1;
}

#fcPath {
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
}

/* ===== SECTION LABEL ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
}

/* ===== TAG ===== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    background: var(--teal-light);
    color: var(--teal);
    border: none;
}

/* ===== STAT ===== */
.stat-number {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--navy);
}

/* ===== TRUST BADGE ===== */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #ecfdf5, #e0f7fa);
    color: var(--green);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fadeIn {
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== FAQ ===== */
.faq-icon.rotated { transform: rotate(180deg); }

/* ===== FORM INPUTS ===== */
.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder { color: var(--text-muted); }

.input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== PROSE ===== */
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--navy); }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--navy); }
.prose p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-secondary); }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-secondary); }
.prose li { margin-bottom: 0.5rem; line-height: 1.8; }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ===== RANGE ===== */
input[type="range"] { -webkit-appearance: none; height: 6px; background: var(--border); border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--teal); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(8,145,178,0.3); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--teal); border-radius: 50%; cursor: pointer; border: none; }

input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== HERO WAVE ===== */
.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    width: 100%;
    height: 80px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card { padding: 20px; }
    .stat-number { font-size: 2rem; }
}

/* =============================================
   NETWORK EQUIPMENT DESIGN SYSTEM
   Rack panels, terminal blocks, LED nodes
   ============================================= */

:root {
    --rack-dark:   #0c1118;
    --rack-panel:  #131a27;
    --rack-mid:    #1a2235;
    --rack-border: rgba(255,255,255,0.07);
    --led-green:   #4ade80;
    --led-amber:   #fbbf24;
    --led-teal:    #22d3ee;
    --mono: 'JetBrains Mono', monospace;
}

/* ── Rack Section ── */
.rack-section {
    background: linear-gradient(180deg, var(--rack-dark) 0%, var(--rack-panel) 100%);
    position: relative;
}

.rack-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg, transparent, transparent 1px,
        rgba(255,255,255,0.004) 1px, rgba(255,255,255,0.004) 2px
    );
    pointer-events: none;
}

.rack-edge {
    height: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%);
}

/* Override section-label colors inside dark panels */
.rack-section .section-label {
    color: var(--led-green);
}
.rack-section .section-label::before {
    background: var(--led-green);
}
.rack-section h2 { color: #e2e8f0; }
.rack-section p  { color: rgba(255,255,255,0.45); }

/* ── Rack Card ── */
.rack-card {
    background: linear-gradient(145deg, #1a2235 0%, #131924 100%);
    border: 1px solid var(--rack-border);
    border-radius: 4px;
    padding: 22px 20px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.rack-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}

.rack-card:hover {
    border-color: rgba(74,222,128,0.3);
    box-shadow: 0 0 24px rgba(74,222,128,0.05);
}

.rack-card-slot {
    font-family: var(--mono);
    font-size: 9px;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.rack-card-led {
    position: absolute;
    top: 14px; right: 14px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: 0 0 5px var(--led-green);
    animation: powerPulse 3s ease-in-out infinite;
}

.rack-card h3 {
    color: #d1d9e6;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rack-card p {
    color: rgba(255,255,255,0.38);
    font-size: 12px;
    line-height: 1.7;
}

/* ── Stat Panel (dark terminal stats) ── */
.stat-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(145deg, #1a2235 0%, #131924 100%);
    border: 1px solid var(--rack-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.stat-cell {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.stat-cell:last-child { border-right: none; }

.stat-cell-value {
    font-family: var(--mono);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--led-green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-cell-label {
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
    letter-spacing: 0.06em;
}

@media (max-width: 640px) {
    .stat-panel { grid-template-columns: repeat(3, 1fr); }
}

/* ── Net Node (why-us cards, left-border style) ── */
.net-node {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: 0 4px 4px 0;
    padding: 20px 22px;
    transition: all 0.25s ease;
}

.net-node:hover {
    border-left-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.net-node-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.net-node-title::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: 0 0 6px var(--led-green);
    flex-shrink: 0;
}

.net-node p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ── CLI Panel (process steps) ── */
.cli-panel {
    background: var(--rack-dark);
    border: 1px solid var(--rack-border);
    border-radius: 6px;
    overflow: hidden;
}

.cli-titlebar {
    background: linear-gradient(180deg, #1e2535 0%, #18212e 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cli-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.cli-dot-r { background: #f87171; }
.cli-dot-y { background: #fbbf24; }
.cli-dot-g { background: #4ade80; }

.cli-title {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-left: 6px;
}

.cli-body { padding: 8px 0; }

.cli-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s ease;
}

.cli-step:last-child { border-bottom: none; }
.cli-step:hover { background: rgba(255,255,255,0.02); }

.cli-prompt {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--led-green);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.cli-cmd {
    font-family: var(--mono);
    font-size: 13px;
    color: #c8d6e8;
    font-weight: 600;
    margin-bottom: 3px;
}

.cli-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
}

/* ── Tariff Rack ── */
.tariff-rack {
    background: linear-gradient(180deg, #1a2235 0%, #131924 100%);
    border: 1px solid var(--rack-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tariff-rack.popular {
    border-color: var(--led-teal);
    box-shadow: 0 0 30px rgba(34,211,238,0.07);
}

.tariff-rack-header {
    padding: 12px 18px;
    background: linear-gradient(180deg, #202840 0%, #1a2030 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tariff-rack-slot {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.25);
}

.tariff-rack-badge {
    background: var(--led-teal);
    color: #000;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 2px 7px;
    border-radius: 2px;
}

.tariff-rack-body { padding: 18px; }

.tariff-rack-name {
    font-size: 15px;
    font-weight: 700;
    color: #d1d9e6;
    margin-bottom: 10px;
}

.tariff-rack-price {
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 800;
    color: var(--led-teal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.tariff-rack-unit {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-left: 3px;
}

.tariff-rack-hr {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 14px 0;
}

.tariff-rack-spec {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tariff-rack-spec:last-of-type { border-bottom: none; }

.tariff-rack-key {
    font-family: var(--mono);
    color: rgba(255,255,255,0.3);
}

.tariff-rack-val {
    color: #c8d6e8;
    font-weight: 600;
}

.tariff-rack-features {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 14px;
}

.tariff-rack-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}

.tariff-rack-feature::before {
    content: '▸';
    color: var(--led-green);
    flex-shrink: 0;
}

/* ── Footer Rack ── */
.footer-rack {
    background: linear-gradient(180deg, #090d15 0%, #07090f 100%);
    position: relative;
    border-top: 2px solid rgba(255,255,255,0.06);
}

.footer-rack::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.footer-rack-heading {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-bottom: 16px;
}

.footer-rack-link {
    font-size: 13px;
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 3px 0;
}

.footer-rack-link:hover { color: var(--led-green); }

/* ── Terminal CTA form ── */
.terminal-form-wrap {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.terminal-form-bar {
    background: linear-gradient(180deg, #1e2535 0%, #18212e 100%);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-form-bar span {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-left: 6px;
}

.terminal-form-body { padding: 20px; }

.terminal-input {
    flex: 1;
    padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    color: #e2e8f0;
    font-family: var(--mono);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.terminal-input::placeholder { color: rgba(255,255,255,0.2); }

.terminal-input:focus {
    border-color: var(--led-teal);
    box-shadow: 0 0 0 2px rgba(34,211,238,0.1);
}

/* ── Review card dark variant ── */
.review-rack {
    background: linear-gradient(145deg, #1a2235 0%, #131924 100%);
    border: 1px solid var(--rack-border);
    border-radius: 4px;
    padding: 22px;
    position: relative;
}

.review-rack::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.review-rack-stars { display: flex; gap: 3px; margin-bottom: 12px; }

.review-rack-text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 16px;
}

.review-rack-author { display: flex; align-items: center; gap: 10px; }

.review-rack-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #0891b2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; color: white;
    flex-shrink: 0;
}

.review-rack-name {
    font-size: 13px;
    font-weight: 600;
    color: #c8d6e8;
}

.review-rack-pos {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    font-family: var(--mono);
}

/* ── Blog card ── */
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    border-top: 2px solid var(--teal);
    padding: 22px;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
}

.blog-card:hover {
    border-top-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--teal);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-meta::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.blog-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.45;
}

.blog-card:hover h3 { color: var(--teal); }

.blog-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Case card ── */
.case-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--teal);
    border-radius: 4px 0 0 4px;
    transition: background 0.2s ease;
}

.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-card:hover::before { background: var(--coral); }

.case-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: var(--navy);
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.case-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.case-card:hover h3 { color: var(--teal); }

.case-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.case-more {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 0.05em;
}

/* ── Hero terminal ── */
.hero-terminal {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    display: inline-block;
}

.ht-prompt-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}

.ht-ps1  { color: var(--led-green); }
.ht-cmd  { color: rgba(255,255,255,0.88); }
.ht-flag { color: rgba(74,222,128,0.45); }

.ht-output {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 14px;
    border-left: 1px solid rgba(74,222,128,0.18);
    margin-left: 5px;
}

.ht-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ht-ok     { color: var(--led-green); flex-shrink: 0; }
.ht-label  { color: rgba(255,255,255,0.82); }
.ht-detail { color: rgba(255,255,255,0.3); font-size: 11px; }

.hero-cursor {
    display: inline-block;
    width: 7px; height: 12px;
    background: var(--led-green);
    border-radius: 1px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
