/* ==========================================================================
   ALTA iHUB — Homepage (2026 redesign). Requires theme.css.
   ========================================================================== */

.home-container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.home-section { padding: 5.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.25rem; }
.section-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    min-height: calc(100vh - var(--topbar-h) - var(--header-h));
    min-height: calc(100svh - var(--topbar-h) - var(--header-h));
    display: flex; align-items: center;
    padding: 4rem 0 5rem;
    overflow: hidden;
    isolation: isolate;
}
.home-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center 35%;
    transform: scale(1.04);
    animation: heroZoom 18s ease-out forwards;
}
.home-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(4, 13, 43, 0.96) 0%, rgba(6, 18, 61, 0.88) 42%, rgba(9, 39, 74, 0.55) 75%, rgba(120, 22, 22, 0.45) 100%),
        linear-gradient(0deg, var(--t-bg) 0%, transparent 28%);
}
body.light-theme .home-hero-bg::after {
    background:
        linear-gradient(100deg, rgba(6, 18, 61, 0.94) 0%, rgba(9, 39, 74, 0.85) 45%, rgba(9, 39, 74, 0.5) 80%, rgba(120, 22, 22, 0.4) 100%),
        linear-gradient(0deg, var(--t-bg) 0%, transparent 22%);
}
.home-hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.home-hero-inner {
    width: 100%;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.home-hero-copy { color: #fff; animation: riseIn .9s var(--ease) both; }
.home-hero-copy h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 1.25rem 0 1.25rem;
    color: #fff;
}
.home-hero-copy h1 .text-gradient { display: block; }
.home-welcome { margin-top: 1rem; color: #dbe5f8; font-size: 1rem; }
.home-welcome strong { color: var(--brand-gold-400); }
.home-lead { font-size: 1.15rem; line-height: 1.75; color: #c7d3ea; max-width: 580px; }
.home-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.home-hero .btn-outline { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.28) !important; }
.home-hero .btn-outline:hover { color: var(--brand-gold-400) !important; }
.home-hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; color: #b5c3de; font-size: .9rem; }
.home-hero-trust span { color: var(--brand-gold-400); font-weight: 700; margin-right: .25rem; }
.home-hero .eyebrow { color: #f5c542; background: rgba(224, 165, 20, 0.12); }

.home-hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; animation: riseIn 1.1s .15s var(--ease) both; }
.hero-orb {
    position: relative;
    width: min(380px, 80vw); aspect-ratio: 1;
    border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 60%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(224, 165, 20, 0.12);
    backdrop-filter: blur(10px);
}
.hero-orb-ring {
    position: absolute; inset: -18px; border-radius: 50%;
    border: 1px dashed rgba(224, 165, 20, 0.5);
    animation: spin 40s linear infinite;
}
.hero-orb-ring--2 { inset: -46px; border: 1px solid rgba(255, 255, 255, 0.08); animation-duration: 70s; animation-direction: reverse; }
.hero-orb-ring::before {
    content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--grad-gold); box-shadow: 0 0 18px rgba(245, 197, 66, 0.9);
}
.hero-orb-logo { width: 64%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }

.hero-chip {
    position: absolute;
    display: flex; flex-direction: column;
    padding: .9rem 1.2rem;
    border-radius: 16px;
    background: rgba(6, 18, 61, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    color: #fff;
    animation: float 7s ease-in-out infinite;
}
.hero-chip strong { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-chip span { font-size: .78rem; color: #b5c3de; margin-top: .3rem; }
.hero-chip--a { top: 8%; left: -2%; }
.hero-chip--b { bottom: 6%; right: -2%; animation-delay: -3s; }

.home-scroll-cue {
    position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.35);
}
.home-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--brand-gold-400); animation: cue 1.8s ease-in-out infinite; }

@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.home-stats { position: relative; z-index: 2; margin-top: -3.5rem; }
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-radius: var(--radius-lg);
    background: var(--t-surface-solid);
    border: 1px solid var(--t-border);
    box-shadow: var(--t-shadow);
    overflow: hidden;
}
.stat { padding: 1.8rem 1rem; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--t-border-strong); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: .5rem; font-size: .85rem; color: var(--t-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill-live { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.pill-maroon { background: rgba(155, 29, 29, 0.2); color: #fca5a5; border: 1px solid rgba(155, 29, 29, 0.5); }
.pill-gold { background: rgba(224, 165, 20, 0.14); color: var(--t-gold-text); border: 1px solid rgba(224, 165, 20, 0.4); }
body.light-theme .pill-maroon { color: #9b1d1d; }
body.light-theme .pill-live { color: #047857; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- Featured announcement ---------- */
.home-featured { padding-top: 4.5rem; padding-bottom: 1rem; }
.featured-card {
    display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    box-shadow: var(--t-shadow);
}
.featured-card:not(:has(.featured-media)) { grid-template-columns: 1fr; }
.featured-media { position: relative; background: #0a1b3d; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.featured-body { padding: clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.featured-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--t-text-strong); line-height: 1.15; }
.featured-subtitle { color: var(--t-gold-text); font-weight: 600; margin-top: .5rem; }
.featured-desc { color: var(--t-muted); margin-top: 1rem; line-height: 1.75; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.meta-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 14px; background: var(--t-surface-strong); border: 1px solid var(--t-border); }
.meta-item svg { width: 22px; height: 22px; color: var(--brand-gold-400); flex-shrink: 0; }
.meta-item span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--t-muted); }
.meta-item strong { display: block; font-size: .95rem; color: var(--t-text-strong); }
.featured-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-card {
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    box-shadow: var(--t-shadow-sm);
    transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, opacity .7s var(--ease) !important;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(224, 165, 20, 0.5); box-shadow: 0 24px 50px -24px rgba(224, 165, 20, 0.35), var(--t-shadow); }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 18, 61, 0.75)); }
.svc-card:hover .svc-media img { transform: scale(1.08); }
.svc-body { position: relative; padding: 0 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.svc-icon {
    width: 48px; height: 48px; margin-top: -24px; margin-bottom: .9rem;
    position: relative; z-index: 1;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--grad-gold);
    color: #1d1300;
    box-shadow: 0 10px 24px -8px rgba(224, 165, 20, 0.7);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-body h3 { font-size: 1.08rem; font-weight: 700; color: var(--t-text-strong); margin-bottom: .4rem; }
.svc-body p { font-size: .9rem; color: var(--t-muted); line-height: 1.6; flex: 1; }
.svc-link { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--t-gold-text); }
.svc-link span { display: inline-block; transition: transform .2s; }
.svc-card:hover .svc-link span { transform: translateX(4px); }

/* ---------- Why choose ---------- */
.home-why { background: linear-gradient(180deg, transparent, rgba(9, 39, 74, 0.35) 30%, rgba(9, 39, 74, 0.35) 70%, transparent); }
body.light-theme .home-why { background: linear-gradient(180deg, transparent, rgba(9, 39, 74, 0.05) 30%, rgba(9, 39, 74, 0.05) 70%, transparent); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-collage { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; min-height: 480px; }
.why-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--t-border); box-shadow: var(--t-shadow); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.why-photo:hover img { transform: scale(1.06); }
.why-photo--main { grid-row: 1 / span 2; }
.why-badge {
    position: absolute; left: 50%; bottom: -1.5rem; transform: translateX(-50%);
    display: flex; align-items: center; gap: .8rem;
    padding: .9rem 1.4rem;
    border-radius: 18px;
    background: var(--grad-brand);
    border: 1px solid rgba(224, 165, 20, 0.5);
    box-shadow: var(--t-shadow);
    color: #fff; white-space: nowrap;
}
.why-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--brand-gold-400); }
.why-badge span { font-size: .78rem; line-height: 1.25; color: #dbe5f8; text-transform: uppercase; letter-spacing: .08em; }
.why-text { color: var(--t-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.why-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; }
.why-list li { display: flex; align-items: center; gap: .6rem; color: var(--t-text); font-weight: 500; font-size: .95rem; }
.why-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; flex-shrink: 0; color: #1d1300; background: var(--grad-gold); }
.why-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.pillar { padding: 1rem .75rem; border-radius: 16px; text-align: center; background: var(--t-surface); border: 1px solid var(--t-border); transition: transform .3s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: rgba(224, 165, 20, 0.45); }
.pillar span { font-size: 1.4rem; display: block; }
.pillar strong { display: block; margin-top: .35rem; font-size: .9rem; color: var(--t-text-strong); }
.pillar small { display: block; color: var(--t-muted); font-size: .75rem; margin-top: .15rem; }

/* ---------- Partners marquee ---------- */
.home-partners { padding: 3rem 0 1rem; }
.partners-label { text-align: center; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; font-weight: 700; color: var(--t-muted); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 1.25rem; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    flex: 0 0 auto; width: 150px; height: 84px;
    display: grid; place-items: center;
    padding: .9rem 1.1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--t-border);
    box-shadow: var(--t-shadow-sm);
}
.marquee-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(35%); transition: filter .3s, transform .3s; }
.marquee-item:hover img { filter: none; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - .625rem)); } }

/* ---------- CTA ---------- */
.home-cta-wrap { padding-top: 4rem; padding-bottom: 0; }
.home-cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 28px;
    background: var(--grad-brand);
    border: 1px solid rgba(224, 165, 20, 0.35);
    box-shadow: var(--t-shadow);
    color: #fff;
}
.home-cta-glow { position: absolute; width: 480px; height: 480px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(245, 197, 66, 0.35), transparent 65%); pointer-events: none; }
.home-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin: .8rem 0 .5rem; color: #fff; }
.home-cta p { color: #d3ddf0; max-width: 520px; }
.home-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; }
.home-cta .btn-outline { background: rgba(255, 255, 255, 0.08) !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.35) !important; }
.eyebrow--light { color: #f5c542; background: rgba(255, 255, 255, 0.08); border-color: rgba(245, 197, 66, 0.45); }
.home-body .footer-premium { margin-top: 6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { gap: 2.5rem; }
}
@media (max-width: 900px) {
    .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .home-lead { margin: 0 auto; }
    .home-hero-actions, .home-hero-trust { justify-content: center; }
    .home-hero { padding-top: 3rem; }
    .home-hero-visual { min-height: 320px; margin-top: 1rem; }
    .hero-orb { width: min(260px, 64vw); }
    .hero-chip { padding: .7rem .95rem; }
    .hero-chip strong { font-size: 1.25rem; }
    .home-scroll-cue { display: none; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .why-collage { min-height: 380px; margin-bottom: 1.5rem; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-media img { max-height: 360px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--t-border); }
    .home-cta { text-align: center; justify-content: center; }
    .home-cta p { margin: 0 auto; }
    .home-cta-actions { justify-content: center; }
}
@media (max-width: 560px) {
    .home-section { padding: 4rem 0; }
    .svc-grid { grid-template-columns: 1fr; }
    .why-list { grid-template-columns: 1fr; }
    .why-pillars { grid-template-columns: repeat(2, 1fr); }
    .why-collage { min-height: 300px; }
    .home-hero-actions .btn { width: 100%; }
    .hero-chip--a { left: 0; }
    .hero-chip--b { right: 0; }
}
