/* ============================================================
   UBoost — Home Page Styles
   ============================================================ */

/* ============================================================
   Shared — buttons and section headings
   ============================================================ */
.ub-section-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #f1f5fc;
    margin: 0 0 .5rem 0;
    line-height: 1.2;
}
.ub-section-accent { color: #70e0c1; }
.ub-section-sub {
    font-size: .95rem;
    color: #b8c4d9;
    margin: 0 0 2rem 0;
    max-width: 620px;
}
.ub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.ub-section-link {
    color: #83e5cd;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}
.ub-section-link:hover { color: var(--ub-text); }

/* Buttons — reuse for the whole site */
.ub-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: .6rem;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, background .12s ease;
    border: none;
    line-height: 1;
}
.ub-btn:hover { transform: translateY(-1px); }
.ub-btn-primary {
    background: var(--ub-purple);
    color: #fff;
}
.ub-btn-primary:hover { filter: brightness(1.1); color: #fff; }
.ub-btn-ghost {
    background: transparent;
    color: var(--ub-text);
    border: 1px solid var(--ub-border);
}
.ub-btn-ghost:hover { background: var(--ub-surface); color: var(--ub-text); }
.ub-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.ub-arrow { transition: transform .15s ease; }
.ub-btn:hover .ub-arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.ub-hero {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(112deg, #202a39 0%, #1d2432 52%, #202637 100%);
    border-bottom: 1px solid rgba(157, 181, 220, .14);
}
/* Radial glow behind hero — subtle depth */
.ub-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(88,58,223,.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.ub-hero .container {
    position: relative;
    z-index: 1;
}

.ub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #2a3548;
    border: 1px solid rgba(157, 181, 220, .28);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .82rem;
    color: #d0d8e7;
    margin-bottom: 1.5rem;
}
.ub-hero-badge strong { color: #70e0c1; }
.ub-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ub-success);
    box-shadow: 0 0 0 4px rgba(95,211,154,.2);
    animation: ubPulse 2s ease-in-out infinite;
}
@keyframes ubPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.ub-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1.25rem 0;
    color: #f4f7fc;
    letter-spacing: -.02em;
}
.ub-hero-accent {
    background: linear-gradient(110deg, #9a8aff 0%, #78dff0 55%, #70e0c1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.ub-hero-sub {
    font-size: 1.1rem;
    color: #c2ccdd;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    max-width: 540px;
}

.ub-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.25rem;
}

.ub-hero-stats {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}
.ub-hero-stat { display: flex; flex-direction: column; }
.ub-hero-stat strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f1f5fc;
}
.ub-hero-stat span {
    font-size: .78rem;
    color: #aebbd0;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    margin-top: .15rem;
}

/* -------- Hero browser mockup -------- */
.ub-hero-shot { position: relative; }
.ub-hero-shot-window {
    background: #283448;
    border: 1px solid rgba(157, 181, 220, .3);
    border-radius: .85rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.38), 0 0 0 5px rgba(124,156,255,.06);
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform .3s ease;
}
.ub-hero-shot-window:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.ub-hero-shot-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: var(--ub-sidebar);
    border-bottom: 1px solid var(--ub-border);
}
.ub-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.ub-dot-red    { background: #ff5f57; }
.ub-dot-yellow { background: #febc2e; }
.ub-dot-green  { background: #28c840; }
.ub-hero-shot-url {
    margin-left: 1rem;
    font-size: .75rem;
    color: var(--ub-text-mute);
    background: rgba(255,255,255,.04);
    padding: .2rem .75rem;
    border-radius: 999px;
    font-family: ui-monospace, "SFMono-Regular", monospace;
}
.ub-hero-shot-body {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 30%, rgba(88,58,223,.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(124,156,255,.1), transparent 50%),
        #202a39;
}
.ub-hero-shot-body #heroCarousel,
.ub-hero-shot-body .carousel-inner,
.ub-hero-shot-body .carousel-item {
    height: 100%;
}
.ub-hero-shot-body .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.ub-hero-shot-body .carousel-indicators {
    margin-bottom: .75rem;
    gap: .25rem;
}
.ub-hero-shot-body .carousel-indicators [data-bs-target] {
    width: 20px;
    height: 4px;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, .45);
    transition: all .25s ease;
}
.ub-hero-shot-body .carousel-indicators .active {
    background-color: #ffffff;
    width: 32px;
}
.ub-hero-shot-body .carousel-control-prev,
.ub-hero-shot-body .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity .2s ease;
}
.ub-hero-shot-window:hover .carousel-control-prev,
.ub-hero-shot-window:hover .carousel-control-next {
    opacity: .75;
}
.ub-hero-shot-body .carousel-control-prev:hover,
.ub-hero-shot-body .carousel-control-next:hover {
    opacity: 1;
}
.ub-hero-shot-placeholder { text-align: center; }
.ub-hero-shot-icon {
    font-size: 3rem;
    margin-bottom: .75rem;
    opacity: .8;
}
.ub-hero-shot-title {
    color: var(--ub-text);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 .35rem 0;
}
.ub-hero-shot-sub {
    color: #aebbd0;
    font-size: .85rem;
    margin: 0;
}

/* ============================================================
   PLATFORMS
   ============================================================ */
.ub-platforms {
    padding: 3rem 0 4rem;
    text-align: center;
}
.ub-platforms .ub-section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}
.ub-platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .ub-platforms-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .ub-platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
.ub-platform {
    background: linear-gradient(155deg, #293449 0%, #232c3d 100%);
    border: 1px solid rgba(157, 181, 220, .2);
    border-radius: .85rem;
    padding: 1.15rem .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    transition: transform .15s ease, border-color .15s ease;
    position: relative;
    overflow: hidden;
}
.ub-platform::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand);
    opacity: .06;
    transition: opacity .2s ease;
    z-index: 0;
}
.ub-platform:hover {
    transform: translateY(-3px);
    border-color: rgba(112, 224, 193, .72);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.ub-platform:hover::before { opacity: .12; }
.ub-platform-icon {
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}
.ub-platform-name {
    font-size: .82rem;
    font-weight: 700;
    color: #d0d8e7;
    position: relative;
    z-index: 1;
}

/* ============================================================
   POPULAR PACKAGES
   ============================================================ */
.ub-popular {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(42, 52, 72, .42), rgba(27, 31, 42, 0) 85%);
}
.ub-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 991px) {
    .ub-popular-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ub-popular-grid { grid-template-columns: 1fr; }
}

.ub-pkg-card {
    background: linear-gradient(150deg, #2a3549 0%, #232c3d 100%);
    border: 1px solid rgba(157, 181, 220, .24);
    border-radius: .85rem;
    padding: 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: transform .15s ease, border-color .15s ease;
    position: relative;
    overflow: hidden;
}
.ub-pkg-card:hover {
    transform: translateY(-3px);
    border-color: #70e0c1;
    box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.ub-pkg-card-badge {
    position: absolute;
    top: .65rem;
    right: .8rem;
    z-index: 1;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .18rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: var(--ub-purple);
}
.ub-pkg-card-badge.success { background: #16a34a; }
.ub-pkg-card-badge.warning { background: #ea580c; }
.ub-pkg-card-badge.info    { background: #0891b2; }

.ub-pkg-card-icon { font-size: 1.6rem; margin-bottom: .25rem; }
.ub-pkg-card-title {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ub-text);
    margin: 0;
    line-height: 1.3;
}
.ub-pkg-card-qty {
    font-size: 1.65rem;
    font-weight: 800;
    color: #93b2ff;
    line-height: 1.1;
}
.ub-pkg-card-qty small {
    font-size: .68rem;
    font-weight: 500;
    color: #b8c4d9;
    margin-left: .15rem;
}
.ub-pkg-card-price {
    margin-top: auto;
    padding-top: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.ub-pkg-card-price-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ub-success);
    line-height: 1;
}
.ub-pkg-card-price-local {
    font-size: .78rem;
    color: #b8c4d9;
    font-weight: 500;
}
.ub-pkg-card-cta {
    margin-top: .85rem;
    background: var(--ub-purple);
    color: #fff;
    border: none;
    border-radius: .5rem;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .85rem;
    width: 100%;
    cursor: pointer;
    transition: filter .15s ease;
}
.ub-pkg-card-cta:hover { filter: brightness(1.1); }

/* Skeleton */
.ub-skel {
    min-height: 200px;
    background: linear-gradient(90deg, var(--ub-surface) 25%, var(--ub-surface-2) 50%, var(--ub-surface) 75%);
    background-size: 200% 100%;
    animation: ubShimmer 1.5s infinite;
    border-radius: .85rem;
    border: 1px solid var(--ub-border);
}
@keyframes ubShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   WHY UBOOST
   ============================================================ */
.ub-why {
    padding: 4rem 0;
    background: linear-gradient(115deg, #202b38 0%, #202736 52%, #25263a 100%);
    border-top: 1px solid rgba(112, 224, 193, .16);
    border-bottom: 1px solid rgba(157, 181, 220, .14);
}
.ub-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
@media (max-width: 768px) {
    .ub-why-grid { grid-template-columns: 1fr; }
}
.ub-why-card {
    background: rgba(43, 54, 72, .9);
    border: 1px solid rgba(157, 181, 220, .24);
    border-radius: .85rem;
    padding: 1.75rem 1.5rem;
    transition: transform .15s ease, border-color .15s ease;
}
.ub-why-card:hover {
    transform: translateY(-3px);
    border-color: #70e0c1;
    box-shadow: 0 14px 30px rgba(0,0,0,.2);
}
.ub-why-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.ub-why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ub-text);
    margin: 0 0 .5rem 0;
}
.ub-why-card p {
    color: #c0cbdc;
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.ub-how {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(37, 46, 64, .35), transparent 75%);
}
.ub-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    position: relative;
}
@media (max-width: 768px) {
    .ub-how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ub-how-step {
    text-align: center;
    position: relative;
}
.ub-how-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6951e8 0%, #8374f2 54%, #55cdb2 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(88,58,223,.28), 0 0 0 5px rgba(112,224,193,.08);
}
.ub-how-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ub-text);
    margin: 0 0 .5rem 0;
}
.ub-how-step p {
    color: #c0cbdc;
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Connecting line between steps */
@media (min-width: 769px) {
    .ub-how-grid::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 16.6%;
        right: 16.6%;
        height: 2px;
        background: linear-gradient(to right,
            transparent 0%,
            var(--ub-border) 15%,
            var(--ub-border) 85%,
            transparent 100%);
        z-index: 0;
    }
    .ub-how-step { z-index: 1; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.ub-cta-final {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #263545 0%, #293044 50%, #302b47 100%);
    border-top: 1px solid rgba(157, 181, 220, .18);
}
.ub-cta-final::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(88,58,223,.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.ub-cta-final .container { position: relative; z-index: 1; }
.ub-cta-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f4f7fc;
    margin: 0 0 .75rem 0;
}
.ub-cta-sub {
    font-size: 1.05rem;
    color: #c5cede;
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
