/* ========================================
   NEXUS HUB PAGE — Styles
   ======================================== */

/* ---- Hero ---- */
.hub-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hub-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(0, 108, 53, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 25% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0A0A0F 0%, #111118 100%);
    z-index: 0;
}

.hub-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 108, 53, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hub-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hub-hero__badge {
    display: inline-block;
    background: rgba(0, 108, 53, 0.1);
    border: 1px solid rgba(0, 108, 53, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #14B8A6;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease both;
}

.hub-hero__title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hub-hero__title-en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.5em;
    font-weight: 500;
    color: var(--color-text-gray);
    opacity: 0.6;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.hub-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #14B8A6;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hub-hero__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Stats Row */
.hub-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hub-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 32px;
}

.hub-hero__stat-number {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.hub-hero__stat-label {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.hub-hero__stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* ---- Formula Section ---- */
.formula {
    background: var(--color-bg-dark);
    padding: 100px 0 60px;
}

.formula__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.formula__subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-gray);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.formula__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* Formula Card */
.formula__card {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: all var(--transition-base);
}

.formula__card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.formula__card--body {
    border-top: 3px solid #14B8A6;
}

.formula__card--mind {
    border-top: 3px solid #006C35;
}

.formula__card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.formula__card-emoji {
    font-size: 2rem;
}

.formula__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.formula__card-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-gray);
}

.formula__card-body {
    padding: 28px 32px;
}

.formula__card-body p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.formula__card-body p strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* Weapon Box */
.formula__weapon {
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.formula__weapon--nexus {
    background: rgba(0, 108, 53, 0.06);
    border-color: rgba(0, 108, 53, 0.15);
}

.formula__weapon-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.formula__weapon p {
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
}

/* Features List */
.formula__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formula__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-gray);
}

.formula__feature svg {
    flex-shrink: 0;
}

/* Fusion Banner */
.formula__fusion {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 108, 53, 0.06) 0%, rgba(20, 184, 166, 0.06) 50%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(0, 108, 53, 0.15);
    border-radius: 20px;
    padding: 48px 40px;
}

.formula__fusion-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.formula__fusion-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.formula__fusion-desc {
    font-size: 1rem;
    color: var(--color-text-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.formula__fusion-desc strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* ---- Selling Points Section ---- */
.selling-points {
    background: var(--color-bg-section);
    padding: 100px 0 120px;
}

.selling-points__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 56px;
}

/* SP Card */
.sp-card {
    display: flex;
    gap: 32px;
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px;
    margin-bottom: 28px;
    transition: all var(--transition-base);
}

.sp-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.sp-card:last-child {
    margin-bottom: 0;
}

.sp-card__icon-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.sp-card__icon-wrap--shield {
    background: rgba(0, 108, 53, 0.10);
}

.sp-card__icon-wrap--arabic {
    background: rgba(212, 175, 55, 0.10);
}

.sp-card__icon-wrap--unlock {
    background: rgba(20, 184, 166, 0.10);
}

.sp-card__content {
    flex: 1;
}

.sp-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sp-card__number {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    margin-left: 4px;
}

.sp-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.sp-card__tag {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    color: #14B8A6;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.sp-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.sp-card__desc strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* VS Comparison */
.sp-card__comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.sp-card__vs {
    border-radius: 12px;
    padding: 16px 20px;
}

.sp-card__vs--problem {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.sp-card__vs--solution {
    background: rgba(0, 108, 53, 0.06);
    border: 1px solid rgba(0, 108, 53, 0.15);
}

.sp-card__vs-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.sp-card__vs p {
    font-size: 0.88rem;
    color: var(--color-text-gray);
    line-height: 1.6;
}

.sp-card__vs p strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* Quote */
.sp-card__quote {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 108, 53, 0.05);
    border-right: 3px solid #006C35;
    border-radius: 0 10px 10px 0;
    padding: 14px 20px;
    margin-bottom: 12px;
}

.sp-card__quote-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sp-card__quote p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-white);
    font-style: italic;
}

.sp-card__note {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    opacity: 0.8;
}

/* Commands Grid */
.sp-card__commands {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-card__cmd {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    transition: all var(--transition-fast);
}

.sp-card__cmd:hover {
    background: rgba(212, 175, 55, 0.10);
    border-color: rgba(212, 175, 55, 0.25);
}

.sp-card__cmd-icon {
    font-size: 1.3rem;
}

.sp-card__cmd-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-white);
}

/* Targets */
.sp-card__targets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.sp-card__target {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--color-text-gray);
    transition: all var(--transition-fast);
}

.sp-card__target:hover {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.15);
    color: var(--color-text-white);
}

/* ---- Comparison Table Section ---- */
.comparison {
    background: var(--color-bg-dark);
    padding: 100px 0 120px;
}

.comparison__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.comparison__subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-gray);
    margin-bottom: 48px;
}

.comparison__table-wrap {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.comparison__table {
    width: 100%;
    border-collapse: collapse;
}

.comparison__table thead {
    background: rgba(255, 255, 255, 0.02);
}

.comparison__table th,
.comparison__table td {
    padding: 16px 24px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--color-text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison__table th {
    font-weight: 700;
    color: var(--color-text-white);
    font-size: 0.88rem;
}

.comparison__th-feature {
    text-align: right !important;
    width: 25%;
}

.comparison__th-nexus {
    background: rgba(0, 108, 53, 0.06) !important;
}

.comparison__brand {
    font-weight: 700;
    font-size: 0.95rem;
}

.comparison__brand--competitor {
    opacity: 0.6;
    font-family: var(--font-en);
}

.comparison__table td:first-child {
    text-align: right;
    font-weight: 500;
    color: var(--color-text-white);
}

.comparison__table td:nth-child(2) {
    background: rgba(0, 108, 53, 0.03);
}

.comparison__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison__table tbody tr:last-child td {
    border-bottom: none;
}

.comparison__yes {
    color: #14B8A6 !important;
    font-weight: 600 !important;
}

.comparison__no {
    color: #EF4444 !important;
    opacity: 0.7;
}

.comparison__partial {
    color: #F59E0B !important;
    opacity: 0.8;
}

/* ---- CTA ---- */
.hub-cta {
    background: linear-gradient(135deg, #0B3D20 0%, #0A2A18 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hub-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hub-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hub-cta__text {
    max-width: 640px;
}

.hub-cta__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.hub-cta__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.hub-cta__desc strong {
    color: var(--color-text-white);
    font-weight: 600;
}

.hub-cta__btn {
    background: var(--color-text-white);
    color: #0B3D20;
    border-color: var(--color-text-white);
    border-radius: var(--border-radius-pill);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hub-cta__btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .formula__grid {
        grid-template-columns: 1fr;
    }

    .sp-card__comparison {
        grid-template-columns: 1fr;
    }

    .hub-cta__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hub-hero {
        padding: 120px 0 60px;
        min-height: 40vh;
    }

    .hub-hero__stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .hub-hero__stat {
        padding: 0;
    }

    .hub-hero__stat-sep {
        width: 60px;
        height: 1px;
    }

    .formula {
        padding: 70px 0 50px;
    }

    .formula__card-header {
        padding: 20px 24px;
    }

    .formula__card-body {
        padding: 20px 24px;
    }

    .formula__fusion {
        padding: 32px 24px;
    }

    .selling-points {
        padding: 70px 0 80px;
    }

    .sp-card {
        flex-direction: column;
        padding: 28px;
        gap: 20px;
    }

    .sp-card__icon-wrap {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .sp-card__commands {
        flex-direction: column;
    }

    .comparison {
        padding: 70px 0 80px;
    }

    .comparison__table-wrap {
        overflow-x: auto;
    }

    .comparison__table th,
    .comparison__table td {
        padding: 12px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hub-cta {
        padding: 60px 0;
    }
}