/* ============================================
   PRODUCTS PAGE — Specific Styles
   ============================================ */

/* --- Active Nav Link --- */
.nav__link--active {
    color: var(--text-primary);
}

.nav__link--active::after {
    width: 100%;
}

/* ============================================
   PRODUCTS HERO
   ============================================ */
.products-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.products-hero__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.products-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.products-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.6) 0%,
            rgba(10, 10, 10, 0.2) 40%,
            rgba(10, 10, 10, 0.7) 70%,
            rgba(10, 10, 10, 1) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 10, 10, 0.8) 0%,
            transparent 60%
        );
}

.products-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.products-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    max-width: 700px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s var(--ease-smooth) 0.3s forwards;
}

.products-hero__desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-smooth) 0.5s forwards;
}

/* ============================================
   PRODUCT NAV STRIP
   ============================================ */
.product-nav-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-nav-strip__inner {
    display: flex;
    gap: 0;
}

.product-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-right: 1px solid var(--border);
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-secondary);
}

.product-nav-item:last-child {
    border-right: none;
}

.product-nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.product-nav-item__num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.product-nav-item__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   PRODUCT DETAIL SECTIONS
   ============================================ */
.product-section {
    background: var(--bg-primary);
}

.product-section--alt {
    background: var(--bg-secondary);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-detail--reverse {
    direction: rtl;
}

.product-detail--reverse > * {
    direction: ltr;
}

.product-detail__visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}

.product-detail__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.product-detail__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.product-detail__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
}

/* Product Features List */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.product-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.product-feature:hover {
    border-color: rgba(212, 163, 60, 0.15);
    background: var(--bg-card-hover);
}

.product-feature__icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-feature__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.product-feature__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   LARGE DASHBOARD MOCKUP
   ============================================ */
.mockup-large {
    width: 100%;
    background: #111;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-large__topbar {
    height: 36px;
    background: #1A1A1A;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mockup-large__dots {
    display: flex;
    gap: 6px;
}

.mockup-large__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-large__dots span:nth-child(1) { background: #FF5F57; }
.mockup-large__dots span:nth-child(2) { background: #FEBC2E; }
.mockup-large__dots span:nth-child(3) { background: #28C840; }

.mockup-large__url {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: #222;
    padding: 4px 12px;
    border-radius: 6px;
    flex: 1;
    max-width: 240px;
}

.mockup-large__body {
    display: flex;
    min-height: 340px;
}

.mockup-large__sidebar {
    width: 140px;
    background: #141414;
    border-right: 1px solid var(--border);
    padding: 16px 0;
    flex-shrink: 0;
}

.mockup-large__sidebar-item {
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 16px;
    cursor: default;
    transition: color 0.2s ease;
}

.mockup-large__sidebar-item.active {
    color: var(--accent);
    background: rgba(212, 163, 60, 0.08);
    border-left: 2px solid var(--accent);
}

.mockup-large__main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-large__stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mockup-large__stat {
    background: #1A1A1A;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
}

.mockup-large__stat-val {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}

.mockup-large__stat-lbl {
    font-size: 9px;
    color: var(--text-muted);
}

.mockup-large__chart-area {
    background: #1A1A1A;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    flex: 1;
}

.mockup-large__chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mockup-large__chart-badge {
    font-family: var(--font-mono);
    font-size: 8px;
    color: #28C840;
    background: rgba(40, 200, 64, 0.1);
    border: 1px solid rgba(40, 200, 64, 0.2);
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mockup-large__chart-visual {
    height: 80px;
}

.mockup-large__chart-visual svg {
    width: 100%;
    height: 100%;
}

.mockup-large__map-area {
    background: #1A1A1A;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.mockup-large__map-header {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mockup-large__map {
    height: 70px;
    background:
        radial-gradient(circle at 40% 45%, var(--accent-glow), transparent 45%),
        radial-gradient(circle at 65% 30%, rgba(212, 163, 60, 0.06), transparent 35%),
        radial-gradient(circle at 72% 60%, rgba(212, 163, 60, 0.04), transparent 30%),
        #161616;
    border-radius: 6px;
    position: relative;
}

.mockup-large__map-pin {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.mockup-large__map-pin--secondary {
    width: 5px;
    height: 5px;
    background: rgba(212, 163, 60, 0.6);
    box-shadow: 0 0 8px rgba(212, 163, 60, 0.4);
    animation-delay: 0.6s;
}

/* ============================================
   LARGE PHONE MOCKUP
   ============================================ */
.phone-showcase {
    padding: 40px 0;
}

.phone-mockup-large {
    width: 260px;
    background: #111;
    border-radius: 32px;
    border: 2px solid #333;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

.phone-mockup-large__notch {
    width: 80px;
    height: 6px;
    background: #222;
    border-radius: 10px;
    margin: 10px auto 0;
}

.phone-mockup-large__screen {
    padding: 8px 16px 20px;
}

.phone-mockup-large__status {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    padding: 4px 0 10px;
}

.phone-mockup-large__header {
    margin-bottom: 14px;
}

.phone-mockup-large__app-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.phone-mockup-large__app-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Phone Alert Cards */
.phone-alert {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
}

.phone-alert--critical {
    background: rgba(255, 80, 60, 0.06);
    border-color: rgba(255, 80, 60, 0.15);
}

.phone-alert--warning {
    background: rgba(212, 163, 60, 0.06);
    border-color: rgba(212, 163, 60, 0.15);
}

.phone-alert__badge {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FF5040;
    background: rgba(255, 80, 60, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 6px;
}

.phone-alert__badge--warning {
    color: var(--accent);
    background: rgba(212, 163, 60, 0.1);
}

.phone-alert__badge--info {
    color: #5B9BF5;
    background: rgba(91, 155, 245, 0.1);
}

.phone-alert__icon {
    font-size: 14px;
    margin-bottom: 4px;
}

.phone-alert__title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.phone-alert__text {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.phone-alert__time {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* App Weather Card */
.app-weather-card {
    background: linear-gradient(135deg, rgba(212, 163, 60, 0.12), rgba(212, 163, 60, 0.03));
    border: 1px solid rgba(212, 163, 60, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: center;
}

.app-weather-card__temp {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.app-weather-card__condition {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.app-weather-card__location {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.05em;
}

/* App Data Rows */
.app-data-rows {
    display: flex;
    flex-direction: column;
}

.app-data-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.app-data-row:last-child {
    border-bottom: none;
}

.app-data-row__icon {
    font-size: 12px;
    flex-shrink: 0;
}

.app-data-row__label {
    font-size: 10px;
    color: var(--text-muted);
    flex: 1;
}

.app-data-row__value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.app-data-row__value--good {
    color: #28C840;
}

.app-data-row__value--warning {
    color: var(--accent);
}

.app-data-row__value--accent {
    color: var(--accent);
}

/* ============================================
   INTEGRATION FLOW
   ============================================ */
.integration-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.integration-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.integration-step {
    flex: 1;
    max-width: 240px;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-smooth);
}

.integration-step:hover {
    border-color: rgba(212, 163, 60, 0.2);
    transform: translateY(-4px);
}

.integration-step__num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}

.integration-step__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.integration-step__desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.integration-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    padding: 0 12px;
    margin-top: 48px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE — PRODUCTS PAGE
   ============================================ */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-detail--reverse {
        direction: ltr;
    }

    .mockup-large__sidebar {
        display: none;
    }

    .mockup-large__stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-nav-strip__inner {
        flex-wrap: wrap;
    }

    .product-nav-item {
        flex: 1 1 45%;
    }

    .integration-flow {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .integration-arrow {
        display: none;
    }

    .integration-step {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 60vh;
        min-height: 400px;
    }

    .products-hero__content {
        padding: 0 20px;
    }

    .product-nav-strip {
        position: relative;
        top: 0;
    }

    .product-nav-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 20px;
    }

    .product-detail__visual {
        min-height: 280px;
    }

    .phone-mockup-large {
        width: 220px;
    }

    .integration-step {
        flex: 1 1 100%;
    }
}
