/* ═══════════════════════════════════════════════════
   css/home.css — HTI Home Page
   Depends on global.css variables
═══════════════════════════════════════════════════ */

/* ── FLOW SVG (legacy, kept for compat) ─────────── */
.data-flow-bg { display:none; }
.data-line,.data-glow { display:none; }

/* ── HERO ─────────────────────────────────────────── */
.hx-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 60px;
}

/* animated background */
.hx-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse 60% 70% at 70% 50%, rgba(0,194,255,0.1), transparent);
}
.hx-flow-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: transparent !important;
    overflow: visible;
}
.hx-line {
    fill: none;
    stroke: rgba(0,194,255,0.15);
    stroke-width: 1.5;
}
.hx-glow {
    fill: none;
    stroke: var(--highlight);
    stroke-width: 2;
    stroke-dasharray: 60 2000;
    animation: hx-flow 5s linear infinite;
    filter: drop-shadow(0 0 6px var(--highlight));
}
@keyframes hx-flow { to { stroke-dashoffset: -2060; } }

/* orbit viz — right side */
.hx-viz {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hx-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,194,255,0.15);
}
.hx-ring-1 { width: 300px; height: 300px; animation: hx-spin 30s linear infinite; border-color: rgba(0,194,255,0.2); border-style: dashed; }
.hx-ring-2 { width: 200px; height: 200px; animation: hx-spin 20s linear infinite reverse; }
.hx-ring-3 { width: 110px; height: 110px; background: rgba(0,194,255,0.04); border-color: rgba(0,194,255,0.25); }
@keyframes hx-spin { to { transform: rotate(360deg); } }

.hx-core {
    width: 70px; height: 70px;
    border-radius: 20px;
    background: rgba(0,194,255,0.1);
    border: 1px solid rgba(0,194,255,0.4);
    display: grid;
    place-items: center;
    box-shadow: 0 0 30px rgba(0,194,255,0.2), 0 0 60px rgba(0,194,255,0.08);
    z-index: 1;
    animation: hx-pulse-core 3s ease-in-out infinite;
}
@keyframes hx-pulse-core {
    0%,100% { box-shadow: 0 0 30px rgba(0,194,255,0.2); }
    50%      { box-shadow: 0 0 50px rgba(0,194,255,0.4); }
}

/* orbit nodes */
.hx-node {
    position: absolute;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(8,28,46,0.9);
    border: 1px solid rgba(0,194,255,0.3);
    display: grid;
    place-items: center;
    color: var(--highlight);
}
.hx-node-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.hx-node-2 { right: 10px; top: 50%; transform: translateY(-50%); }
.hx-node-3 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.hx-node-4 { left: 10px; top: 50%; transform: translateY(-50%); }

/* hero content */
.hx-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}
.hx-hero-content {
    max-width: 620px;
}

/* eyebrow */
.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.hx-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 8px var(--highlight);
    animation: hx-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hx-dot-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(.7); }
}

/* H1 */
.hx-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    text-shadow: 0 0 40px rgba(0,194,255,0.2);
}
.hx-hero h1 em {
    font-style: normal;
    color: var(--highlight);
}
.hx-hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 560px;
}

/* trust badges */
.hx-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 32px;
}
.hx-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* hero buttons */
.hx-hero-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* scroll hint */
.hx-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.hx-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--highlight), transparent);
    margin: 0 auto;
    animation: hx-scroll-drop 2s ease-in-out infinite;
}
@keyframes hx-scroll-drop {
    0%  { opacity:0; transform:scaleY(0); transform-origin:top; }
    50% { opacity:1; transform:scaleY(1); }
    100%{ opacity:0; transform:scaleY(1); transform-origin:bottom; }
}

/* ── SHARED BUTTONS ──────────────────────────────── */
.hx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    color: #05121e;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    letter-spacing: 0.3px;
    transition: all .25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.hx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,194,255,0.35);
}
.hx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,194,255,0.25);
    color: var(--text);
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all .25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.hx-btn-ghost:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    background: rgba(0,194,255,0.06);
}
.hx-btn-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 50px;
    padding: 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 10px;
    transition: color .2s;
    white-space: nowrap;
}
.hx-btn-tel:hover { color: var(--highlight); }

/* ── STATS BAR ────────────────────────────────────── */
.hx-statsbar {
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(0,194,255,0.1);
    border-bottom: 1px solid rgba(0,194,255,0.1);
    padding: 20px 0;
}
.hx-statsbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.hx-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 36px;
}
.hx-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--highlight);
    letter-spacing: -1px;
    line-height: 1;
}
.hx-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}
.hx-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(0,194,255,0.15);
    flex-shrink: 0;
}

/* ── SECTION COMMON ──────────────────────────────── */
.hx-section { padding: 90px 0; }
.hx-section-head {
    text-align: center;
    margin-bottom: 56px;
}
.hx-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.hx-section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}
.hx-bar {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    margin: 0 auto 18px;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0,194,255,0.5);
}
.hx-section-head p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── SERVICES GRID ───────────────────────────────── */
.hx-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.hx-svc-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(0,194,255,0.1);
    border-radius: 14px;
    padding: 26px 24px 22px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.hx-svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.hx-svc-card:hover { transform: translateY(-5px); border-color: rgba(0,194,255,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.hx-svc-card:hover::before { transform: translateX(100%); }

.hx-svc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.hx-svc-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(0,194,255,0.08);
    border: 1px solid rgba(0,194,255,0.2);
    display: grid;
    place-items: center;
    color: var(--highlight);
    transition: background .3s, box-shadow .3s;
}
.hx-svc-card:hover .hx-svc-icon {
    background: rgba(0,194,255,0.14);
    box-shadow: 0 0 16px rgba(0,194,255,0.15) inset;
}
.hx-svc-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(0,194,255,0.35);
    letter-spacing: 1px;
}
.hx-svc-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}
.hx-svc-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.hx-svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight);
    transition: gap .2s;
}
.hx-svc-link:hover { gap: 10px; }

.hx-svc-cta {
    text-align: center;
    margin-top: 44px;
}

/* ── WHY HTI ──────────────────────────────────────── */
.hx-why-section {
    background: rgba(255,255,255,0.015);
    border-top: 1px solid rgba(0,194,255,0.08);
    border-bottom: 1px solid rgba(0,194,255,0.08);
}
.hx-why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}
.hx-why-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.3px;
}
.hx-why-text > p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}
.hx-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}
.hx-feat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.hx-feat-check {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(0,194,255,0.1);
    border: 1px solid rgba(0,194,255,0.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--highlight);
    margin-top: 2px;
}
.hx-feat strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 3px;
}
.hx-feat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* process steps */
.hx-process { display: flex; flex-direction: column; gap: 0; }
.hx-process > .hx-section-label { margin-bottom: 22px; }
.hx-proc-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,194,255,0.08);
    position: relative;
}
.hx-proc-step:last-child { border-bottom: none; }
.hx-proc-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0,194,255,0.07);
    border: 1px solid rgba(0,194,255,0.2);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--highlight);
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: all .3s;
}
.hx-proc-step:hover .hx-proc-num {
    background: rgba(0,194,255,0.15);
    border-color: var(--highlight);
    box-shadow: 0 0 16px rgba(0,194,255,0.2);
}
.hx-proc-body strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}
.hx-proc-body span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── PARTNERS TICKER ──────────────────────────────── */
.hx-partners {
    padding: 40px 0;
    border-top: 1px solid rgba(0,194,255,0.08);
    border-bottom: 1px solid rgba(0,194,255,0.08);
    background: rgba(255,255,255,0.01);
    overflow: hidden;
}
.hx-partners-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: .55;
    margin-bottom: 24px;
}
.hx-ticker { overflow: hidden; position: relative; }
.hx-ticker::before,
.hx-ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 1;
    pointer-events: none;
}
.hx-ticker::before { left: 0; background: linear-gradient(to right, var(--primary), transparent); }
.hx-ticker::after  { right: 0; background: linear-gradient(to left, var(--primary), transparent); }

.hx-track {
    display: flex;
    gap: 0;
    animation: hx-scroll 28s linear infinite;
    width: max-content;
}
.hx-track img {
    height: 46px;
    width: 140px;
    object-fit: contain;
    margin: 0 32px;
    filter: grayscale(100%) brightness(160%);
    opacity: .55;
    transition: all .3s;
    flex-shrink: 0;
}
.hx-track img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}
@keyframes hx-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── BLOG ─────────────────────────────────────────── */
.hx-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.hx-blog-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(0,194,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: all .35s ease;
    position: relative;
}
.hx-blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--highlight);
    transition: width .4s ease;
}
.hx-blog-card:hover { transform: translateY(-8px); border-color: rgba(0,194,255,0.3); box-shadow: 0 14px 40px rgba(0,194,255,0.12); }
.hx-blog-card:hover::before { width: 100%; }

.hx-blog-img {
    height: 200px;
    background: linear-gradient(135deg, #05121e, #0e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hx-blog-img svg { transition: transform .4s, filter .4s; }
.hx-blog-card:hover .hx-blog-img svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px var(--highlight));
}

.hx-blog-body { padding: 20px 22px 24px; }
.hx-blog-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.hx-blog-body h3 {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 16px;
}
.hx-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight);
    transition: gap .2s;
}
.hx-blog-link:hover { gap: 10px; }

/* ── CTA SECTION ──────────────────────────────────── */
.hx-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0,194,255,0.1);
}
.hx-cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(0,194,255,0.1), transparent 70%);
    pointer-events: none;
}
.hx-cta-inner { position: relative; z-index: 1; }
.hx-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.4px;
}
.hx-cta > .hx-cta-inner > p {
    max-width: 600px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}
.hx-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1100px) {
    .hx-viz { width: 240px; height: 240px; }
    .hx-ring-1 { width: 220px; height: 220px; }
    .hx-ring-2 { width: 160px; height: 160px; }
    .hx-ring-3 { width: 80px; height: 80px; }
}
@media (max-width: 900px) {
    .hx-viz { display: none; }
    .hx-hero { padding-top: 110px; }
    .hx-hero-inner { grid-template-columns: 1fr; }
    .hx-hero-content { max-width: 100%; text-align: center; }
    .hx-hero-desc { margin: 0 auto 24px; }
    .hx-trust { justify-content: center; }
    .hx-hero-btns { justify-content: center; }
    .hx-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-why-inner { grid-template-columns: 1fr; gap: 40px; }
    .hx-blog-grid { grid-template-columns: 1fr; }
    .hx-statsbar-inner { gap: 0; }
    .hx-stat { padding: 8px 20px; }
}
@media (max-width: 600px) {
    .hx-svc-grid { grid-template-columns: 1fr; }
    .hx-hero h1 { font-size: 2.2rem; }
    .hx-stat strong { font-size: 1.4rem; }
    .hx-stat-div { display: none; }
    .hx-cta-btns { flex-direction: column; align-items: center; }
    .hx-cta-btns .hx-btn-primary,
    .hx-cta-btns .hx-btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
}
