/* ============================================================
   MODULES PAGE — WinTap Pro  (v4 — fixed)
   modules.css
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #071E2B;
    --navy-2: #0B3954;
    --navy-3: #0d2f47;
    --red: #C81D25;
    --red-2: #9B1219;
    --ghost: #F6F9FC;
    --border: rgba(11,57,84,.10);
    --white: #ffffff;
    --slider-bg: #1a3a52;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,.08);
    --card-text: #1a2e3b;
    --card-sub: #5a7080;
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-smooth: cubic-bezier(.22,1,.36,1);
    --r: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: var(--navy);
    color: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* ── Shared buttons ── */
.pp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}

    .pp-btn-primary:hover {
        color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(200,29,37,.4);
    }

.pp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all .3s ease;
}

    .pp-btn-ghost:hover {
        color: #fff;
        border-color: rgba(255,255,255,.35);
        background: rgba(255,255,255,.12);
        transform: translateY(-2px);
    }

/* ── Eyebrow label ── */
.mod-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(200,29,37,.08);
    border: 1px solid rgba(200,29,37,.18);
    margin-bottom: 20px;
}

/* ============================================================
   HERO — v4 redesign: centered banner, no laptop/two-column
============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-hero {
    position: relative;
    background: linear-gradient(160deg, #122a3d 0%, #0d1f2d 55%, #08141d 100%);
    overflow: hidden;
}

/* Nav */
.mod-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 60px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.mod-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

    .mod-nav__logo svg {
        width: 28px;
        height: 28px;
        fill: var(--red);
    }

.mod-nav__cta {
    padding: 9px 22px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
}

    .mod-nav__cta:hover {
        background: rgba(255,255,255,.13);
        color: #fff;
    }

/* Centered hero content */
.mod-hero__center {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 40px 56px;
    text-align: center;
    animation: fadeUp .7s var(--ease-smooth) both;
}

.mod-hero__glow-a, .mod-hero__glow-b {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 1;
}

.mod-hero__glow-a {
    width: 460px;
    height: 460px;
    background: rgba(200,29,37,.20);
    top: -200px;
    right: -140px;
}

.mod-hero__glow-b {
    width: 380px;
    height: 380px;
    background: rgba(8,126,139,.14);
    bottom: -220px;
    left: -120px;
}

.mod-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff7378;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(200,29,37,.12);
    border: 1px solid rgba(200,29,37,.28);
    margin-bottom: 24px;
}

.mod-hero__title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    line-height: 1.65;
    letter-spacing: -.6px;
    margin-bottom: 16px;
}

    .mod-hero__title span {
        color: var(--red);
    }

.mod-hero__subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    line-height: 1.95;
    max-width: 620px;
    margin: 0 auto 30px;
}

.mod-hero__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 52px;
    transition: all .3s var(--ease-spring);
}

    .mod-hero__cta-btn:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(200,29,37,.4);
    }

    .mod-hero__cta-btn svg {
        width: 15px;
        height: 15px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Feature row (4 icons) */
.mod-hero__features-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.mod-hero__feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 150px;
    transition: transform .3s ease;
}

    .mod-hero__feat:hover {
        transform: translateY(-4px);
    }

.mod-hero__feat-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    transition: all .3s ease;
}

.mod-hero__feat:nth-child(1) .mod-hero__feat-icon {
    background: rgba(8,126,139,.16);
    border-color: rgba(8,126,139,.32);
}

    .mod-hero__feat:nth-child(1) .mod-hero__feat-icon svg {
        stroke: #5fc4d1;
    }

.mod-hero__feat:nth-child(2) .mod-hero__feat-icon {
    background: rgba(212,134,10,.16);
    border-color: rgba(212,134,10,.32);
}

    .mod-hero__feat:nth-child(2) .mod-hero__feat-icon svg {
        stroke: #e7a23f;
    }

.mod-hero__feat:nth-child(3) .mod-hero__feat-icon {
    background: rgba(200,29,37,.16);
    border-color: rgba(200,29,37,.32);
}

    .mod-hero__feat:nth-child(3) .mod-hero__feat-icon svg {
        stroke: #e8636a;
    }

.mod-hero__feat:nth-child(4) .mod-hero__feat-icon {
    background: rgba(123,82,171,.16);
    border-color: rgba(123,82,171,.32);
}

    .mod-hero__feat:nth-child(4) .mod-hero__feat-icon svg {
        stroke: #a98bd0;
    }

.mod-hero__feat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mod-hero__feat span {
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-align: center;
    line-height: 1.6;
}

/* ============================================================
   CATEGORIES SECTION — light background
============================================================ */
.mod-categories {
    /* extra bottom padding => more breathing room before the smart banner */
    padding: 60px 0 120px;
    background: linear-gradient(180deg, #e8eff5 0%, #d8e8f2 100%);
}

/* ── Category section title ── */
.mod-section-title {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.mod-section-title__label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 900;
    color: #1a2e3b;
    letter-spacing: -.3px;
}

    .mod-section-title__label::before,
    .mod-section-title__label::after {
        content: '';
        display: block;
        width: 36px;
        height: 3px;
        background: var(--red);
        border-radius: 2px;
    }

.mod-section-title__sub {
    font-size: 13px;
    color: #5a7080;
    margin-top: 8px;
}

/* ── Category Block ── */
.mod-category {
    padding: 0 0 56px;
    position: relative;
}

.mod-category__header {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.mod-category__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cat-accent, var(--red));
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(var(--cat-accent-rgb, 200,29,37),.10);
    border: 1px solid rgba(var(--cat-accent-rgb, 200,29,37),.25);
    margin-bottom: 10px;
}

.mod-category__h2 {
    font-size: 26px;
    font-weight: 900;
    color: #1a2e3b;
    letter-spacing: -.5px;
}

    .mod-category__h2 span {
        color: var(--cat-accent, var(--red));
    }

.mod-category__desc {
    font-size: 13px;
    color: #5a7080;
    max-width: 420px;
    line-height: 1.8;
    text-align: left;
}

/* ── Slider Shell ── */
.mod-slider-shell {
    position: relative;
    overflow: hidden;
}

    /* fade edges using the light bg color */
    .mod-slider-shell::before,
    .mod-slider-shell::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100px;
        z-index: 10;
        pointer-events: none;
    }

    .mod-slider-shell::before {
        right: 0;
        background: linear-gradient(to left, #d8e8f2 0%, transparent 100%);
    }

    .mod-slider-shell::after {
        left: 0;
        background: linear-gradient(to right, #d8e8f2 0%, transparent 100%);
    }

.mod-slider-track-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 12px 60px 20px;
}

/* ── Infinite scroll, fixed: loops by exactly one "set" width
   (computed at runtime by JS into --set-width), so no empty gaps
   ever appear regardless of viewport size or card count. Direction
   alternates per category via the --rev modifier. ── */
@keyframes sliderLoop {

    from {
        transform: translateX(calc(-0.5 * var(--set-width)));
    }

    to {
        transform: translateX(calc(-1.5 * var(--set-width)));
    }
}

.mod-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    justify-content: center;
    align-items: stretch;
    will-change: transform;
    animation: sliderLoop var(--loop-dur,60s) linear infinite;
    transform: translateX(calc(-0.5 * var(--set-width)));
}

    .mod-slider-track:hover {
        animation-play-state: paused;
    }

/* Reverse direction modifier — used on alternating categories */
.mod-slider-track--rev {
    animation-direction: reverse;
}

/* ── MODULE CARD — white/light style ── */
.mod-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    padding: 22px 20px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 260px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .4s var(--ease-spring), box-shadow .3s ease, border-color .3s ease;
}

.mod-card--wide {
    width: 340px;
}

.mod-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(var(--accent-rgb),.08) 0%, transparent 65%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.mod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12), 0 0 0 1.5px rgba(var(--accent-rgb),.25);
    border-color: rgba(var(--accent-rgb),.3);
}

    .mod-card:hover::before {
        opacity: 1;
    }

/* Card Top */
.mod-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.mod-card__icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.mod-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--accent-rgb), .10);
    border: 1px solid rgba(var(--accent-rgb), .18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s var(--ease-spring), background .3s ease;
    position: relative;
    z-index: 1;
}

    .mod-card__icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke .3s ease;
    }

.mod-card:hover .mod-card__icon {
    transform: scale(1.1) rotate(-6deg);
    background: var(--accent);
}

    .mod-card:hover .mod-card__icon svg {
        stroke: #fff;
    }

.mod-card__icon-ring {
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    border: 1px dashed rgba(var(--accent-rgb), .3);
    opacity: 0;
    transition: opacity .4s ease;
}

.mod-card:hover .mod-card__icon-ring {
    opacity: 1;
    animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mod-card__badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(200,29,37,.10);
    border: 1px solid rgba(200,29,37,.20);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--red);
    text-transform: uppercase;
}

.mod-card__badge--teal {
    background: rgba(8,126,139,.10);
    border-color: rgba(8,126,139,.22);
    color: #087E8B;
}

.mod-card__badge--purple {
    background: rgba(123,82,171,.10);
    border-color: rgba(123,82,171,.22);
    color: #7B52AB;
}

.mod-card__badge--gold {
    background: rgba(212,134,10,.10);
    border-color: rgba(212,134,10,.22);
    color: #b8720a;
}

/* Card Body */
.mod-card__body {
    flex: 1;
}

.mod-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #1a2e3b;
    margin-bottom: 6px;
    letter-spacing: -.2px;
}

.mod-card__short {
    font-size: 11px;
    color: #6080a0;
    line-height: 1.7;
}

/* sub-modules tags */
.mod-card--core .mod-card__title {
    font-size: 17px;
}

.mod-card--core .mod-card__sub-modules {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mod-card__sub-tag {
    font-size: 10px;
    font-weight: 600;
    color: #5a7088;
    padding: 3px 10px;
    border-radius: 7px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.07);
    transition: all .3s ease;
}

.mod-card:hover .mod-card__sub-tag {
    background: rgba(var(--accent-rgb),.08);
    border-color: rgba(var(--accent-rgb),.18);
    color: var(--accent);
}

/* Card Footer */
.mod-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,.05);
    padding-top: 12px;
    margin-top: 4px;
}

.mod-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    transition: gap .3s ease;
}

    .mod-card__cta svg {
        width: 13px;
        height: 13px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .3s ease;
    }

.mod-card:hover .mod-card__cta {
    gap: 10px;
}

    .mod-card:hover .mod-card__cta svg {
        transform: translateX(-4px);
    }

.mod-card__arrow {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(var(--accent-rgb), .08);
    border: 1px solid rgba(var(--accent-rgb), .15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s var(--ease-spring);
}

    .mod-card__arrow svg {
        width: 13px;
        height: 13px;
        stroke: var(--accent);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .3s ease;
    }

.mod-card:hover .mod-card__arrow {
    background: var(--accent);
    border-color: var(--accent);
}

    .mod-card:hover .mod-card__arrow svg {
        stroke: #fff;
        transform: translateX(-4px);
    }

/* Progress bar */
.mod-card__progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(var(--accent-rgb), .08);
    overflow: hidden;
}

.mod-card__progress-bar {
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease-smooth);
}

.mod-card:hover .mod-card__progress-bar {
    transform: scaleX(1);
}

/* Divider */
.mod-category-divider {
    max-width: 1360px;
    margin: 0 auto 48px;
    padding: 0 60px;
}

.mod-category-divider__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.10) 30%, rgba(0,0,0,.10) 70%, transparent);
}

/* ── Core card in light mode ── */
.mod-card--core {
    width: 380px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb),.06) 0%, #fff 60%);
    border-color: rgba(var(--accent-rgb),.20);
}

/* ============================================================
   DETAIL PANEL
============================================================ */
.mod-detail {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

    .mod-detail.is-open {
        display: block;
    }

.mod-detail__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7,30,43,.75);
    backdrop-filter: blur(6px);
    animation: overlayIn .3s ease both;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mod-detail__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(540px, 100vw);
    height: 100%;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,.08);
    box-shadow: 32px 0 80px rgba(0,0,0,.2);
    padding: 48px 40px;
    overflow-y: auto;
    animation: panelIn .4s var(--ease-spring) both;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@keyframes panelIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mod-detail__close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

    .mod-detail__close:hover {
        background: rgba(0,0,0,.10);
    }

    .mod-detail__close svg {
        width: 15px;
        height: 15px;
        stroke: #5a7080;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
    }

.mod-detail__head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 20px;
}

.mod-detail__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .mod-detail__icon svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.mod-detail__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8aa0b0;
    margin-bottom: 5px;
}

.mod-detail__title {
    font-size: 26px;
    font-weight: 900;
    color: #1a2e3b;
    letter-spacing: -.5px;
}

.mod-detail__desc {
    font-size: 14px;
    color: #5a7080;
    line-height: 2;
    border-right: 3px solid var(--detail-accent, var(--red));
    padding-right: 16px;
}

.mod-detail__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mod-detail__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f9fb;
    border: 1px solid rgba(0,0,0,.06);
    transition: all .3s ease;
}

    .mod-detail__feature:hover {
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
        border-color: rgba(var(--detail-accent-rgb, 200,29,37),.2);
    }

.mod-detail__feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(var(--detail-accent-rgb, 200,29,37),.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .mod-detail__feature-icon svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.mod-detail__feature-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a2e3b;
    margin-bottom: 2px;
}

.mod-detail__feature-text span {
    font-size: 11px;
    color: #7090a0;
    line-height: 1.5;
}

.mod-detail__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mod-detail__metric {
    text-align: center;
    padding: 16px 10px;
    border-radius: 12px;
    background: #f7f9fb;
    border: 1px solid rgba(0,0,0,.06);
}

.mod-detail__metric-val {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--detail-accent, var(--red));
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.mod-detail__metric-label {
    font-size: 11px;
    color: #8aa0b0;
    font-weight: 600;
}

.mod-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.mod-detail__btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: var(--detail-accent, var(--red));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: all .3s var(--ease-spring);
}

    .mod-detail__btn-primary:hover {
        color: #fff;
        opacity: .9;
        transform: translateY(-2px);
    }

.mod-detail__btn-ghost {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.03);
    color: #5a7080;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
}

    .mod-detail__btn-ghost:hover {
        background: rgba(0,0,0,.06);
        color: #1a2e3b;
    }

/* ============================================================
   SMART SYSTEM BANNER
============================================================ */
.mod-smart-banner {
    max-width: 1360px;
    margin: 0 auto 60px;
    padding: 0 60px;
}

.mod-smart-banner__inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(130deg, #1a2f42 0%, #0d1f2d 55%, #142233 100%);
    border: 1px solid rgba(200,29,37,.20);
    min-height: 180px;
}

    .mod-smart-banner__inner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 30% 50%, rgba(200,29,37,.18) 0%, transparent 60%);
        pointer-events: none;
    }

.mod-smart-banner__visual {
    flex: 0 0 300px;
    position: relative;
    height: 180px;
    overflow: hidden;
}

.mod-smart-banner__laptop {
    position: absolute;
    bottom: -15px;
    left: 10px;
    width: 290px;
}

    .mod-smart-banner__laptop svg {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
    }

.mod-smart-banner__content {
    flex: 1;
    padding: 36px 40px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.mod-smart-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(200,29,37,.12);
    border: 1px solid rgba(200,29,37,.25);
    margin-bottom: 12px;
}

.mod-smart-banner__h3 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.4px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.mod-smart-banner__p {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
}

.mod-smart-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 40px;
    margin-right: 0;
    transition: all .3s var(--ease-spring);
    position: relative;
    z-index: 1;
}

    .mod-smart-banner__cta:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(200,29,37,.4);
    }

    .mod-smart-banner__cta svg {
        width: 14px;
        height: 14px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ============================================================
   FEATURES STRIP
============================================================ */
.mod-features-strip {
    background: #f0f6fa;
    padding: 50px 0;
}

.mod-features-strip__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mod-feature-badge {
    padding: 24px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .mod-feature-badge:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.10);
        transform: translateY(-4px);
    }

.mod-feature-badge__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

    .mod-feature-badge__icon svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.mod-feature-badge h4 {
    font-size: 14px;
    font-weight: 800;
    color: #1a2e3b;
    margin-bottom: 5px;
}

.mod-feature-badge p {
    font-size: 11px;
    color: #7090a0;
    line-height: 1.6;
}

/* ============================================================
   INTEGRATION STRIP
============================================================ */
.mod-integrate {
    padding: 80px 0;
    background: linear-gradient(180deg, #0d1f2d 0%, #071018 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .mod-integrate::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 50% 100%, rgba(200,29,37,.08) 0%, transparent 70%);
        pointer-events: none;
    }

.mod-integrate__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.mod-integrate__h2 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin: 14px 0 12px;
}

    .mod-integrate__h2 span {
        color: var(--red);
    }

.mod-integrate p {
    font-size: 14px;
    color: rgba(255,255,255,.38);
    line-height: 2;
    margin-bottom: 48px;
}

.mod-flow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-flow__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mod-flow__dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

.mod-flow__node:nth-child(1) .mod-flow__dot {
    border: 2px solid #C81D25;
    background: rgba(200,29,37,.12);
}

.mod-flow__node:nth-child(3) .mod-flow__dot {
    border: 2px solid #087E8B;
    background: rgba(8,126,139,.12);
}

.mod-flow__node:nth-child(5) .mod-flow__dot {
    border: 2px solid #D4860A;
    background: rgba(212,134,10,.12);
}

.mod-flow__node:nth-child(7) .mod-flow__dot {
    border: 2px solid #7B52AB;
    background: rgba(123,82,171,.12);
}

.mod-flow__dot::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    opacity: .9;
    animation: dotPulse 2s ease-in-out infinite;
}

.mod-flow__node:nth-child(1) .mod-flow__dot::after {
    background: #C81D25;
}

.mod-flow__node:nth-child(3) .mod-flow__dot::after {
    background: #087E8B;
}

.mod-flow__node:nth-child(5) .mod-flow__dot::after {
    background: #D4860A;
}

.mod-flow__node:nth-child(7) .mod-flow__dot::after {
    background: #7B52AB;
}

@keyframes dotPulse {
    0%,100% {
        transform: scale(.85);
        opacity: .7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.mod-flow__node span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.55);
}

.mod-flow__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.18), rgba(255,255,255,.06));
    position: relative;
    max-width: 80px;
    margin-bottom: 22px;
}

    .mod-flow__line::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1px;
        transform: translateY(-50%);
        border: 5px solid transparent;
        border-left-color: rgba(255,255,255,.18);
    }

/* ============================================================
   CTA
============================================================ */
.mod-cta {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: #071018;
    text-align: center;
}

.mod-cta__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(200,29,37,.14) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(8,126,139,.09) 0%, transparent 60%);
    pointer-events: none;
}

.mod-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 60px;
}

.mod-cta__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(200,29,37,.10);
    border: 1px solid rgba(200,29,37,.20);
    margin-bottom: 22px;
}

.mod-cta h2 {
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.25;
    margin-bottom: 14px;
}

    .mod-cta h2 em {
        font-style: normal;
        color: var(--red);
    }

.mod-cta p {
    font-size: 15px;
    color: rgba(255,255,255,.38);
    line-height: 1.9;
    margin-bottom: 36px;
}

.mod-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .mod-features-strip__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .mod-hero__center {
        padding: 50px 24px 40px;
    }

    .mod-hero__title {
        font-size: 24px;
    }

    .mod-hero__features-row {
        gap: 22px;
    }

    .mod-hero__feat {
        width: 130px;
    }

    .mod-nav {
        padding: 18px 32px;
    }

    .mod-category__header {
        padding: 0 32px;
    }

    .mod-slider-track-wrap {
        padding: 10px 32px 16px;
    }

    .mod-category-divider {
        padding: 0 32px;
    }

    .mod-integrate__inner, .mod-cta__inner {
        padding: 0 32px;
    }

    .mod-smart-banner {
        padding: 0 32px;
    }

    .mod-smart-banner__inner {
        flex-direction: column;
        padding: 28px 28px 28px 28px;
        text-align: center;
    }

    .mod-smart-banner__visual {
        display: none;
    }

    .mod-smart-banner__cta {
        margin: 0 auto;
    }

    .mod-features-strip__inner {
        padding: 0 32px;
    }

    .mod-integrate__h2 {
        font-size: 28px;
    }

    .mod-cta h2 {
        font-size: 32px;
    }

    .mod-category__h2 {
        font-size: 22px;
    }

    .mod-categories {
        padding-bottom: 90px;
    }
}

@media (max-width: 640px) {
    .mod-hero__title {
        font-size: 21px;
    }

    .mod-hero__features-row {
        gap: 16px 14px;
    }

    .mod-hero__feat {
        width: 45%;
    }

    .mod-flow {
        gap: 4px;
    }

    .mod-flow__line {
        max-width: 28px;
    }

    .mod-flow__node span {
        font-size: 10px;
    }

    .mod-cta h2 {
        font-size: 26px;
    }

    .mod-cta__btns {
        flex-direction: column;
        align-items: stretch;
    }

    .mod-detail__panel {
        padding: 28px 20px;
    }

    .mod-detail__metrics {
        grid-template-columns: 1fr 1fr;
    }

    .mod-features-strip__inner {
        grid-template-columns: 1fr 1fr;
    }

    .mod-card {
        width: 230px;
    }

    .mod-card--wide {
        width: 290px;
    }

    .mod-card--core {
        width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
