/* ===== SESHA DIGITAL - HOMEPAGE (animated SaaS-style layout) =====
   Loaded only on the homepage. Reuses tokens from base.css. */

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.glass {
    background: rgba(22,22,58,0.55);
    border: 1px solid rgba(139,92,246,0.18);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Extra reveal directions (base .reveal handles fade-up) */
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(0.92); }
.reveal.from-left.visible, .reveal.from-right.visible, .reveal.zoom.visible { transform: none; }

/* ===== HERO ===== */
.h-hero {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; align-items: center;
    padding: 130px 0 110px; background: var(--dark);
}
.h-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.h-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { to { background-position: 56px 56px; } }
.h-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.h-blob.b1 { width: 520px; height: 520px; background: #6C3CE1; top: -160px; left: -120px; animation: blob1 16s ease-in-out infinite; }
.h-blob.b2 { width: 420px; height: 420px; background: #00D4AA; bottom: -180px; right: -80px; opacity: 0.3; animation: blob2 18s ease-in-out infinite; }
.h-blob.b3 { width: 300px; height: 300px; background: #3B82F6; top: 30%; right: 30%; opacity: 0.2; animation: blob1 22s ease-in-out infinite reverse; }
@keyframes blob1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.15); } }
@keyframes blob2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,-50px) scale(1.1); } }

.h-hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.h-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px 7px 10px; border-radius: var(--radius-full);
    background: rgba(108,60,225,0.12); border: 1px solid rgba(139,92,246,0.25);
    font-size: 0.8rem; font-weight: 500; color: #C4B5FD; margin-bottom: 24px;
    animation: fadeUp 0.7s ease both;
}
.h-badge .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h-badge .dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
    animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2.6); opacity: 0; } }

.h-title {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.08; letter-spacing: -0.02em;
    color: var(--white); margin-bottom: 24px;
}
.h-title .w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(3deg); filter: blur(6px);
    animation: wordIn 0.8s cubic-bezier(0.2,0.7,0.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.h-title .grad .w {
    background: linear-gradient(120deg, #A78BFA 0%, #6C3CE1 35%, #00D4AA 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: wordIn 0.8s cubic-bezier(0.2,0.7,0.2,1) forwards, shimmer 6s ease-in-out 1.5s infinite;
    animation-delay: calc(var(--i) * 70ms + 150ms), 1.5s;
}
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.h-lead { font-size: 1.12rem; color: var(--text-muted); line-height: 1.8; max-width: 540px; margin-bottom: 34px;
    animation: fadeUp 0.8s ease 0.7s both; }
.h-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.8s ease 0.85s both; }
.h-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; animation: fadeUp 0.8s ease 1s both; }
.h-checks span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--text-muted); }
.h-checks i { color: var(--accent); font-size: 1rem; }

/* Button shine sweep */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg); animation: shine 4s ease-in-out 2s infinite;
}
@keyframes shine { 0%, 60% { left: -120%; } 100% { left: 160%; } }

/* Hero visual */
.h-visual { position: relative; padding: 72px 0; animation: fadeUp 1s ease 0.4s both; }
.h-ring {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px dashed rgba(139,92,246,0.25); transform: translate(-50%,-50%);
}
.h-ring.r1 { width: 460px; height: 460px; animation: spin 60s linear infinite; }
.h-ring.r2 { width: 600px; height: 600px; border-style: solid; border-color: rgba(0,212,170,0.08); }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.h-layer { position: absolute; inset: 0; transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1); will-change: transform; }
.h-layer.base { position: relative; inset: auto; }

.h-dash { position: relative; width: 390px; max-width: 100%; margin: 0 auto; border-radius: 20px; padding: 20px; }
.h-dash-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.h-dash-top .dots { display: flex; gap: 5px; }
.h-dash-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.h-dash-top .dots i:first-child { background: #F87171; }
.h-dash-top .dots i:nth-child(2) { background: #FBBF24; }
.h-dash-top .dots i:nth-child(3) { background: #34D399; }
.h-dash-top strong { font-family: var(--font-display); font-size: 0.85rem; color: var(--white); margin-left: 6px; }
.h-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 600; color: var(--accent);
    padding: 3px 10px; border-radius: 20px; background: rgba(0,212,170,0.1);
}
.h-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.h-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.h-kpi { padding: 12px 14px; border-radius: 12px; background: rgba(108,60,225,0.08); border: 1px solid rgba(139,92,246,0.12); }
.h-kpi small { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.h-kpi b { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.h-kpi em { font-style: normal; font-size: 0.72rem; color: var(--accent); margin-left: 6px; }

.h-bars { display: flex; align-items: flex-end; gap: 7px; height: 70px; padding: 0 2px 4px; margin-bottom: 16px;
    border-bottom: 1px solid rgba(139,92,246,0.12); }
.h-bars span {
    flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #8B5CF6, rgba(108,60,225,0.25));
    transform-origin: bottom; transform: scaleY(0);
    animation: barGrow 0.9s cubic-bezier(0.2,0.7,0.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 900ms);
}
.h-bars span:last-child { background: linear-gradient(180deg, #00D4AA, rgba(0,212,170,0.25)); }
@keyframes barGrow { to { transform: scaleY(1); } }

.h-leads { display: flex; flex-direction: column; gap: 8px; min-height: 162px; }
.h-lead-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    animation: rowIn 0.6s cubic-bezier(0.2,0.7,0.2,1) both;
}
.h-lead-row.out { animation: rowOut 0.4s ease forwards; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-12px) scale(0.97); } }
@keyframes rowOut { to { opacity: 0; transform: translateY(10px); } }
.h-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--white); background: var(--gradient-1);
}
.h-lead-row > div:not(.h-avatar) { flex: 1; min-width: 0; line-height: 1.3; }
.h-lead-row strong { display: block; font-size: 0.78rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-lead-row span { font-size: 0.68rem; color: var(--text-muted); }
.h-tag { font-size: 0.64rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.h-tag.new { color: #C4B5FD; background: rgba(139,92,246,0.15); }
.h-tag.booked { color: var(--accent); background: rgba(0,212,170,0.12); }
.h-tag.replied { color: #60A5FA; background: rgba(59,130,246,0.12); }

/* Floating notification chips */
.h-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 14px; white-space: nowrap;
    font-size: 0.78rem; color: var(--text);
    animation: bob 6s ease-in-out infinite;
}
.h-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.h-chip strong { display: block; color: var(--white); font-size: 0.8rem; }
.h-chip small { color: var(--text-muted); font-size: 0.7rem; }
.h-chip.c1 { top: 8px; left: 0; animation-delay: 0s; }
.h-chip.c2 { top: 33%; right: -5%; animation-delay: -1.5s; }
.h-chip.c3 { top: 45%; left: -6%; animation-delay: -3s; }
.h-chip.c4 { bottom: 8px; right: 0; animation-delay: -4.5s; }
.ic.green { background: rgba(37,211,102,0.15); color: #25D366; }
.ic.teal { background: rgba(0,212,170,0.15); color: var(--accent); }
.ic.blue { background: rgba(59,130,246,0.15); color: #60A5FA; }
.ic.orange { background: rgba(251,146,60,0.15); color: #FB923C; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.h-scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
}
.h-scroll .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 12px; position: relative; }
.h-scroll .mouse::after {
    content: ''; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px; background: var(--accent); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ===== INDUSTRY MARQUEE ===== */
.h-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--dark-2); }
.h-strip p { text-align: center; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.h-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.h-marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 35s linear infinite; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-marquee-track span {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: rgba(232,232,240,0.55);
    transition: color 0.3s;
}
.h-marquee-track span:hover { color: var(--white); }
.h-marquee-track i { color: var(--primary-light); font-size: 1.35rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== STATS BAND ===== */
.h-stats { padding: 80px 0; }
.h-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-stat {
    position: relative; text-align: center; padding: 34px 20px; border-radius: var(--radius-lg);
    background: var(--dark-card); border: 1px solid var(--border); overflow: hidden;
}
.h-stat .stat-num, .h-stat .stat-static {
    font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1;
    background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.h-stat p { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* ===== SPOTLIGHT CARDS (cursor-following glow) ===== */
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,0.18), transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }

/* ===== ABOUT + ORBIT ===== */
#about, #process { overflow-x: clip; }  /* slide-in reveals must not cause sideways scroll */
.h-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h-about-text p { color: var(--text-muted); font-size: 1.03rem; line-height: 1.85; margin-bottom: 18px; }

.h-orbit-wrap { --size: 440px; position: relative; width: var(--size); height: var(--size); max-width: 100%; margin: 0 auto; }
.h-orbit-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 128px; height: 128px; border-radius: 50%; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: radial-gradient(circle at 30% 30%, #8B5CF6, #3B1F9E);
    box-shadow: 0 0 0 10px rgba(108,60,225,0.12), 0 0 80px rgba(108,60,225,0.6);
    animation: corePulse 3s ease-in-out infinite;
}
.h-orbit-core img { width: 54px; height: 54px; border-radius: 50%; }
.h-orbit-core span { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--white); letter-spacing: 1px; }
@keyframes corePulse { 50% { box-shadow: 0 0 0 20px rgba(108,60,225,0.05), 0 0 110px rgba(108,60,225,0.75); } }
.h-orbit {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px dashed rgba(139,92,246,0.3);
    width: calc(var(--r) * 2); height: calc(var(--r) * 2);
    margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
    animation: orbitSpin var(--dur) linear infinite;
}
.h-orbit.o1 { --r: calc(var(--size) * 0.3); --dur: 26s; }
.h-orbit.o2 { --r: calc(var(--size) * 0.47); --dur: 40s; animation-direction: reverse; border-color: rgba(0,212,170,0.2); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.h-node {
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.h-node > span {
    position: absolute; transform: translate(-50%,-50%);
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 8px 13px; border-radius: 30px; font-size: 0.78rem; font-weight: 500; color: var(--white);
    /* counter-rotate so labels stay upright while the ring spins */
    animation: chipCounter var(--dur) linear infinite;
}
.h-orbit.o2 .h-node > span { animation-direction: reverse; }
@keyframes chipCounter { to { transform: translate(-50%,-50%) rotate(-360deg); } }
.h-node i { font-size: 1.05rem; color: var(--accent); }

.h-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.h-feature {
    padding: 28px 24px; border-radius: var(--radius-lg);
    background: var(--dark-card); border: 1px solid var(--border);
    transition: transform 0.35s, border-color 0.35s;
}
.h-feature:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); }
.h-feature .fi {
    width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    color: var(--primary-light); background: rgba(108,60,225,0.12);
    transition: transform 0.4s cubic-bezier(0.3,1.6,0.5,1), background 0.3s, color 0.3s;
}
.h-feature:hover .fi { transform: rotate(-8deg) scale(1.12); background: var(--primary); color: var(--white); }
.h-feature h4 { font-size: 1.02rem; color: var(--white); margin-bottom: 8px; }
.h-feature p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ===== PROCESS (scroll-filled timeline) ===== */
.h-process { position: relative; max-width: 860px; margin: 64px auto 0; --p: 0; }
.h-proc-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(108,60,225,0.15); border-radius: 2px; }
.h-proc-fill {
    position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%);
    background: linear-gradient(180deg, #8B5CF6, #00D4AA); border-radius: 2px;
    box-shadow: 0 0 14px rgba(0,212,170,0.6);
}
.h-step { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; margin-bottom: 40px; }
.h-step:last-child { margin-bottom: 0; }
.h-step-num {
    grid-column: 2; justify-self: center; z-index: 2;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; color: var(--text-muted);
    background: var(--dark); border: 2px solid rgba(139,92,246,0.3);
    transition: all 0.5s cubic-bezier(0.3,1.5,0.5,1);
}
.h-step.active .h-step-num {
    color: var(--white); border-color: transparent; background: var(--gradient-1);
    transform: scale(1.12); box-shadow: 0 0 0 6px rgba(108,60,225,0.15), 0 0 30px rgba(108,60,225,0.6);
}
.h-step-card {
    grid-row: 1; padding: 24px 26px; border-radius: var(--radius-lg);
    background: var(--dark-card); border: 1px solid var(--border);
}
.h-step:not(.active) .h-step-card.visible { opacity: 0.55; }
.h-step.active .h-step-card { border-color: rgba(139,92,246,0.35); box-shadow: 0 16px 50px rgba(0,0,0,0.3); }
.h-step:nth-child(odd) .h-step-card { grid-column: 1; text-align: right; }
.h-step:nth-child(even) .h-step-card { grid-column: 3; }
.h-step-card i { font-size: 1.6rem; color: var(--accent); display: inline-block; margin-bottom: 8px; }
.h-step-card h3 { font-size: 1.12rem; color: var(--white); margin-bottom: 8px; }
.h-step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== SERVICES BENTO ===== */
.h-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; perspective: 1200px; }
.h-svc {
    padding: 30px 28px; border-radius: var(--radius-lg);
    background: var(--dark-card); border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.25s ease-out, border-color 0.35s, box-shadow 0.35s;
    transform-style: preserve-3d;
}
.h-svc:hover { border-color: rgba(139,92,246,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.h-svc.wide { grid-column: span 2; display: flex; gap: 28px; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(108,60,225,0.22), rgba(22,22,58,0.9) 60%); }
.h-svc.full { grid-column: 1 / -1; display: flex; gap: 28px; align-items: center;
    background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(22,22,58,0.9) 55%); }
.h-svc .si {
    width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--primary-light); background: rgba(108,60,225,0.12); border: 1px solid rgba(139,92,246,0.2);
}
.h-svc.full .si, .h-svc.wide .si { margin-bottom: 0; }
.h-svc h3 { font-size: 1.12rem; color: var(--white); margin-bottom: 10px; }
.h-svc p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.h-svc .tag {
    display: inline-block; margin-top: 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: var(--accent); padding: 4px 12px; border-radius: 20px; background: rgba(0,212,170,0.1);
}
.h-price { text-align: right; flex-shrink: 0; }
.h-price small { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.h-price b {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1;
    background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.h-price span { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* ===== REVIEWS (two-way marquee) ===== */
.h-reviews { display: flex; flex-direction: column; gap: 20px; margin-top: 52px; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-rev-track { display: flex; gap: 20px; width: max-content; animation: marquee 50s linear infinite; }
.h-rev-track.rev { animation-direction: reverse; animation-duration: 58s; }
.h-reviews:hover .h-rev-track { animation-play-state: paused; }
.h-rev {
    width: 370px; flex-shrink: 0; padding: 26px; border-radius: var(--radius-lg);
    background: var(--dark-card); border: 1px solid var(--border); transition: border-color 0.3s, transform 0.3s;
}
.h-rev:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-4px); }
.h-rev .stars { color: #FBBF24; display: flex; gap: 2px; margin-bottom: 14px; }
.h-rev blockquote { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 18px; }

/* ===== CTA with animated gradient border ===== */
.h-cta { padding: 100px 0; }
.h-cta-card {
    position: relative; max-width: 960px; margin: 0 auto; text-align: center;
    padding: 72px 40px; border-radius: 28px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(108,60,225,0.35), transparent 65%), var(--dark-card);
}
.h-cta-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--ang), transparent 0deg, #8B5CF6 70deg, #00D4AA 140deg, transparent 200deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: angSpin 5s linear infinite;
}
@keyframes angSpin { to { --ang: 360deg; } }
.h-cta-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; position: relative; }
.h-cta-card p { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 34px; position: relative; }
.h-cta-card .btn { position: relative; }

/* ===== HERO: rotating industry word ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.h-rot-line { display: block; }
.h-rot {
    display: inline-grid; vertical-align: bottom; position: relative;
    overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em;
    transition: width 0.55s cubic-bezier(0.2,0.7,0.2,1);
    opacity: 0; animation: fadeUp 0.8s ease 1.1s forwards;
}
.h-rot > span {
    grid-area: 1 / 1; justify-self: start; white-space: nowrap; color: var(--white);
    opacity: 0; transform: translateY(80%); filter: blur(4px);
    transition: opacity 0.5s, transform 0.55s cubic-bezier(0.2,0.7,0.2,1), filter 0.5s;
}
.h-rot > span.is-active { opacity: 1; transform: none; filter: none; }
.h-rot > span.is-leaving { opacity: 0; transform: translateY(-80%); filter: blur(4px); }
.h-rot::after { /* gradient underline under the word */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.09em; border-radius: 4px;
    background: linear-gradient(90deg, #00D4AA, #8B5CF6);
    transform-origin: left; animation: underlineIn 0.8s cubic-bezier(0.2,0.7,0.2,1) 1.5s both;
}
@keyframes underlineIn { from { transform: scaleX(0); } }

/* ===== CLIENT WALL (tilted 3D marquee of client sites) ===== */
.h-wall-section { padding: 100px 0 90px; overflow: hidden; background: var(--dark); }
.h-wall {
    position: relative; height: 560px; margin: 50px 0 40px; perspective: 1400px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.h-wall::before, .h-wall::after { content: ''; position: absolute; left: 0; right: 0; height: 90px; z-index: 3; pointer-events: none; }
.h-wall::before { top: 0; background: linear-gradient(var(--dark), transparent); }
.h-wall::after { bottom: 0; background: linear-gradient(transparent, var(--dark)); }
.h-wall-tilt {
    position: absolute; top: 30px; left: 50%; width: 140%;
    display: flex; flex-direction: column; gap: 22px;
    transform: translateX(-50%) rotateX(24deg) rotateZ(-8deg); transform-style: preserve-3d;
}
.h-wall-row { display: flex; gap: 22px; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.h-wall-row.rev { animation-direction: reverse; }
.h-wall:hover .h-wall-row { animation-play-state: paused; }
.h-wall-card {
    position: relative; flex: 0 0 auto; width: 300px; aspect-ratio: 16 / 10;
    border-radius: 14px; overflow: hidden; background: var(--dark-card);
    border: 1px solid rgba(139,92,246,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.45s, border-color 0.45s;
}
.h-wall-card img { width: 100%; height: 100%; object-fit: cover; }
.h-wall-card span {
    position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--white);
    background: rgba(10,10,26,0.8); backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.h-wall-card:hover { transform: translateY(-10px) scale(1.06); border-color: rgba(0,212,170,0.6); box-shadow: 0 30px 70px rgba(108,60,225,0.45); z-index: 2; }
.h-wall-card:hover span { opacity: 1; transform: none; }

/* ===== MAGNETIC BUTTONS + CLICK RIPPLE ===== */
.magnetic {
    position: relative; overflow: hidden; will-change: transform;
    transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.3s, background 0.3s, border-color 0.3s, opacity 0.8s;
}
.ripple {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255,255,255,0.45); transform: scale(0);
    animation: rippleOut 0.65s ease-out forwards;
}
@keyframes rippleOut { to { transform: scale(1); opacity: 0; } }

/* Cards that also scroll-reveal: keep the reveal fade/slide alongside the hover transitions */
.h-feature.reveal, .h-svc.reveal, .h-step-card.reveal {
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s, box-shadow 0.4s;
}
.h-feature.visible:hover, .h-svc.visible:hover { transition-delay: 0s; }
.h-feature.visible:hover { transition-duration: 0.8s, 0.35s, 0.35s, 0.35s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .h-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .h-lead { margin-left: auto; margin-right: auto; }
    .h-actions, .h-checks { justify-content: center; }
    .h-visual { max-width: 560px; width: 100%; margin: 0 auto; }
    .h-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .h-features { grid-template-columns: repeat(2, 1fr); }
    .h-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .h-bento { grid-template-columns: repeat(2, 1fr); }
    .h-svc.wide { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .h-hero { padding: 110px 0 90px; min-height: auto; }
    .h-visual { padding: 58px 0; }
    .h-ring.r1 { width: 340px; height: 340px; }
    .h-ring.r2 { width: 440px; height: 440px; }
    .h-dash { width: 330px; padding: 16px; }
    .h-chip { padding: 8px 11px; font-size: 0.72rem; }
    .h-chip .ic { width: 28px; height: 28px; font-size: 0.95rem; }
    .h-chip.c2, .h-chip.c3 { display: none; }
    .h-scroll { display: none; }
    .h-wall { height: 400px; margin: 36px 0 30px; }
    .h-wall-tilt { width: 190%; gap: 14px; }
    .h-wall-row { gap: 14px; }
    .h-wall-card { width: 200px; border-radius: 10px; }
    .h-wall-section { padding: 70px 0 60px; }
    .h-orbit-wrap { --size: 340px; }
    .h-node > span { font-size: 0.7rem; padding: 6px 10px; }
    .h-features { grid-template-columns: 1fr; }
    .h-bento { grid-template-columns: 1fr; }
    .h-svc.wide, .h-svc.full { flex-direction: column; align-items: flex-start; }
    .h-price { text-align: left; }
    .h-proc-line { left: 26px; }
    .h-step { grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
    .h-step-num { grid-column: 1; }
    .h-step:nth-child(odd) .h-step-card, .h-step:nth-child(even) .h-step-card { grid-column: 2; text-align: left; }
    .h-rev { width: 300px; }
    .h-cta-card { padding: 56px 24px; }
}
@media (max-width: 480px) {
    .h-dash { padding: 14px; }
    .h-kpi b { font-size: 1.15rem; }
    .h-orbit-wrap { --size: 290px; }
    .h-orbit.o2 .h-node > span b { display: none; }  /* icon-only on the outer ring so it fits */
    .h-stats-grid { gap: 12px; }
    .h-stat { padding: 26px 12px; }
    .h-actions { flex-direction: column; align-items: stretch; }
    .h-actions .btn { justify-content: center; }
}

/* ===== Respect reduced-motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
    .h-hero *, .h-strip *, .h-orbit, .h-orbit *, .h-reviews *, .h-cta-card::before, .h-grid, .h-blob {
        animation: none !important;
    }
    .h-title .w { opacity: 1; transform: none; filter: none; }
    .h-bars span { transform: none; }
    .h-step:not(.active) .h-step-card.visible { opacity: 1; }
    .h-wall-row { animation: none !important; }
    .h-rot { opacity: 1; animation: none; }
    .h-hero [class*="h-"], .h-badge, .h-lead, .h-actions, .h-checks, .h-visual { opacity: 1; }
}
