/* Homepage animated hero (replaces the old slick slideshow) */
.ez-hero {
    --ez-navy: #00234D;
    --ez-navy-deep: #00152e;
    --ez-coral: #F76B6A;
    --ez-amber: #FFB86B;
    --ez-sky: #5AA9FF;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: radial-gradient(120% 90% at 10% 0%, #0a3a73 0%, var(--ez-navy) 45%, var(--ez-navy-deep) 100%);
    padding: clamp(56px, 8vw, 110px) 0 0;
}

/* ---------- background ---------- */
.ez-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ez-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}
.ez-blob-1 { width: 480px; height: 480px; background: var(--ez-coral); top: -160px; right: -80px; animation: ez-drift-1 18s ease-in-out infinite alternate; }
.ez-blob-2 { width: 420px; height: 420px; background: var(--ez-sky); bottom: -200px; left: -120px; opacity: .35; animation: ez-drift-2 22s ease-in-out infinite alternate; }
.ez-blob-3 { width: 260px; height: 260px; background: var(--ez-amber); top: 40%; left: 45%; opacity: .22; animation: ez-drift-3 16s ease-in-out infinite alternate; }
.ez-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    animation: ez-grid-pan 30s linear infinite;
}

@keyframes ez-drift-1 { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes ez-drift-2 { to { transform: translate(140px, -80px) scale(1.1); } }
@keyframes ez-drift-3 { to { transform: translate(-90px, -60px) scale(.85); } }
@keyframes ez-grid-pan { to { background-position: 48px 48px; } }

/* ---------- layout ---------- */
.ez-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* ---------- entrance ---------- */
.ez-in {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    animation: ez-rise .9s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes ez-rise { to { opacity: 1; transform: none; } }

/* ---------- copy ---------- */
.ez-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: #dfe8f5;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 22px;
}
.ez-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3ee07f;
    box-shadow: 0 0 0 0 rgba(62,224,127,.6);
    animation: ez-pulse 2s infinite;
}
@keyframes ez-pulse {
    70% { box-shadow: 0 0 0 10px rgba(62,224,127,0); }
    100% { box-shadow: 0 0 0 0 rgba(62,224,127,0); }
}

.ez-hero-title {
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 20px;
}
.ez-line { display: block; overflow: hidden; padding-bottom: .08em; }
.ez-line > .ez-in { transform: translateY(105%); }
.ez-gradient-text {
    font-style: normal;
    background: linear-gradient(90deg, var(--ez-coral), var(--ez-amber), var(--ez-coral));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ez-shine 5s linear infinite;
}
@keyframes ez-shine { to { background-position: 200% center; } }

.ez-hero-sub {
    display: block;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.6;
    color: #c9d6e8;
    margin: 0 0 32px;
    max-width: 540px;
}
.ez-rotator {
    position: relative;
    display: inline-grid;
    vertical-align: bottom;
    height: 1.6em;
    overflow: hidden;
    font-weight: 600;
    color: #fff;
}
.ez-rotator > span {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    animation: ez-word 12.5s infinite;
    border-bottom: 2px solid var(--ez-coral);
    line-height: 1.4;
    height: 1.45em;
}
.ez-rotator > span:nth-child(2) { animation-delay: 2.5s; }
.ez-rotator > span:nth-child(3) { animation-delay: 5s; }
.ez-rotator > span:nth-child(4) { animation-delay: 7.5s; }
.ez-rotator > span:nth-child(5) { animation-delay: 10s; }
@keyframes ez-word {
    0%   { opacity: 0; transform: translateY(100%); }
    4%   { opacity: 1; transform: translateY(0); }
    18%  { opacity: 1; transform: translateY(0); }
    22%  { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

.ez-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.ez-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}
.ez-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ez-coral), #ff8a5c);
    box-shadow: 0 10px 30px -8px rgba(247,107,106,.7);
}
.ez-btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: ez-sweep 3.5s ease-in-out infinite 1.5s;
}
@keyframes ez-sweep { 0%, 60% { left: -75%; } 100% { left: 130%; } }
.ez-btn-primary svg { transition: transform .3s ease; }
.ez-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(247,107,106,.85); }
.ez-btn-primary:hover svg { transform: translateX(4px); }
.ez-btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.04);
}
.ez-btn-ghost:hover { color: var(--ez-navy); background: #fff; border-color: #fff; transform: translateY(-3px); }
.ez-btn:focus-visible { outline: 3px solid var(--ez-amber); outline-offset: 3px; }

.ez-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #b7c6db;
}
.ez-hero-points li { display: flex; align-items: center; gap: 8px; }
.ez-hero-points li::before {
    content: "✓";
    display: grid; place-items: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--ez-navy);
    background: #3ee07f;
}

/* ---------- visual ---------- */
.ez-hero-visual { position: relative; display: block; padding: 28px 18px; }
.ez-ring {
    position: absolute;
    inset: -4% -2% -4% 6%;
    border: 2px dashed rgba(255,255,255,.18);
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    animation: ez-spin 40s linear infinite;
}
@keyframes ez-spin { to { transform: rotate(360deg); } }

.ez-frame {
    position: relative;
    aspect-ratio: 1280 / 739;
    border-radius: 28px;
    overflow: hidden;
    background: #0b2c55;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s ease-out;
    animation: ez-float-y 7s ease-in-out infinite;
}
.ez-frame::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,21,46,.55));
    pointer-events: none;
}
.ez-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 6s ease-out;
}
.ez-slide.is-active { opacity: 1; transform: scale(1); }

.ez-progress {
    position: absolute;
    left: 20px; right: 20px; bottom: 18px;
    z-index: 2;
    display: flex; gap: 8px;
}
.ez-progress span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.3);
    overflow: hidden;
    position: relative;
}
.ez-progress span::after {
    content: "";
    position: absolute; inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}
.ez-progress span.is-done::after { transform: scaleX(1); }
.ez-progress span.is-active::after { animation: ez-fill var(--ez-interval, 4.5s) linear forwards; }
@keyframes ez-fill { to { transform: scaleX(1); } }

.ez-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    color: var(--ez-navy);
    text-decoration: none;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -18px rgba(0,0,0,.55);
    transition: transform .3s ease;
}
.ez-float:hover { color: var(--ez-navy); transform: translateY(-4px) scale(1.03); }
.ez-float strong { display: block; font-size: 14px; line-height: 1.2; }
.ez-float small { display: block; font-size: 12px; color: #5b6b80; }
.ez-float-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--ez-coral), var(--ez-amber));
}
.ez-float-1 { left: -10px; bottom: 8px; animation: ez-bob 6s ease-in-out infinite; }
.ez-float-2 { right: -6px; top: 0; animation: ez-bob 7s ease-in-out infinite -3s; }
.ez-float-2 .ez-float-icon { background: linear-gradient(135deg, #2f7de1, var(--ez-sky)); }

@keyframes ez-float-y { 50% { translate: 0 -10px; } }
@keyframes ez-bob { 50% { translate: 0 -12px; } }

/* ---------- client marquee ---------- */
.ez-marquee {
    margin-top: clamp(48px, 6vw, 80px);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.18);
    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);
}
.ez-marquee-track { display: flex; width: max-content; animation: ez-marquee 32s linear infinite; }
.ez-marquee:hover .ez-marquee-track { animation-play-state: paused; }
.ez-marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ez-marquee li {
    display: flex; align-items: center;
    padding: 0 28px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255,255,255,.55);
}
.ez-marquee li::after { content: "✦"; margin-left: 56px; font-size: 12px; color: var(--ez-coral); }
@keyframes ez-marquee { to { transform: translateX(-50%); } }

.ez-hero .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .ez-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .ez-hero-sub { margin-left: auto; margin-right: auto; }
    .ez-hero-cta, .ez-hero-points { justify-content: center; }
    .ez-hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
}
@media (max-width: 575px) {
    .ez-hero { padding-top: 44px; }
    .ez-badge { font-size: 12px; padding: 7px 14px; }
    .ez-badge-loc { display: none; }
    .ez-btn { flex: 1 1 100%; justify-content: center; }
    .ez-hero-visual { padding: 22px 0 30px; }
    .ez-frame { border-radius: 20px; }
    .ez-float { padding: 8px 12px 8px 8px; border-radius: 14px; }
    .ez-float-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
    .ez-float strong { font-size: 12px; }
    .ez-float small { font-size: 11px; }
    .ez-float-1 { left: 6px; bottom: 0; }
    .ez-float-2 { right: 6px; top: 0; }
    .ez-blob-1 { width: 300px; height: 300px; }
    .ez-blob-2 { width: 280px; height: 280px; }
    .ez-marquee li { font-size: 14px; padding: 0 18px; }
    .ez-marquee li::after { margin-left: 36px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ez-hero *, .ez-hero *::before, .ez-hero *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .ez-in, .ez-line > .ez-in { opacity: 1; transform: none; }
    .ez-rotator > span { animation: none; opacity: 0; }
    .ez-rotator > span:first-child { opacity: 1; transform: none; }
    .ez-marquee-track { animation: none; }
}
