/*
 * ERPSync — public home page (Modules/Front/Resources/views/index.blade.php)
 * Loaded only on the home page. Plain CSS on top of Bootstrap 5 + app.min.css.
 * Motion rules: animate transform/opacity only; everything is disabled under
 * prefers-reduced-motion; scroll reveals only hide content once JS has run (.eh-js).
 */

.erp-home {
    --eh-blue: #1565d8;
    --eh-sky: #2ba8f7;
    --eh-violet: #6d5dfc;
    --eh-ink: #0b1b3a;
    --eh-muted: #5b6b86;
    --eh-line: rgba(15, 42, 92, 0.09);
    --eh-bg: #f6f9ff;
    --eh-card: #ffffff;
    --eh-grad: linear-gradient(120deg, var(--eh-blue) 0%, var(--eh-sky) 55%, var(--eh-violet) 100%);
    --eh-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --eh-shadow-sm: 0 1px 2px rgba(11, 27, 58, 0.04), 0 2px 6px -2px rgba(11, 27, 58, 0.08);
    --eh-shadow: 0 4px 10px rgba(11, 27, 58, 0.05), 0 12px 32px -8px rgba(11, 27, 58, 0.14);
    --eh-shadow-lg: 0 10px 24px rgba(11, 27, 58, 0.07), 0 30px 60px -16px rgba(21, 101, 216, 0.28);
    color: var(--eh-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    overflow-x: clip;
}

.erp-home h1, .erp-home h2, .erp-home h3, .eh-display {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.025em;
    color: var(--eh-ink);
}

.erp-home a { text-decoration: none; }

.erp-home :focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 168, 247, 0.35);
    border-radius: 12px;
}

/* ── Gradient text for DB-authored highlight spans ─────────────────────── */
.eh-title span,
.eh-h2 span,
.eh-grad-text {
    background: var(--eh-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-style: normal;
    text-decoration: none !important;
}
/* Legacy DB markup uses .highlight-title (serif italic in app.css) — keep one typeface here. */
.erp-home .highlight-title { font-family: inherit !important; font-style: normal !important; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.eh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: 1px solid transparent;
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms var(--eh-ease), box-shadow 200ms var(--eh-ease), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.eh-btn i { transition: transform 250ms var(--eh-ease); }
.eh-btn:hover i.ri-arrow-right-line { transform: translateX(4px); }
.eh-btn:active { transform: scale(0.97); }

.eh-btn-primary {
    color: #fff !important;
    background: var(--eh-grad);
    background-size: 160% 100%;
    box-shadow: 0 8px 22px -8px rgba(21, 101, 216, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.eh-btn-primary::after { /* shine sweep */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 700ms var(--eh-ease);
    z-index: -1;
}
.eh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(21, 101, 216, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.eh-btn-primary:hover::after { transform: translateX(120%); }

.eh-btn-ghost {
    color: var(--eh-ink) !important;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
}
.eh-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 101, 216, 0.35);
    box-shadow: var(--eh-shadow);
}

.eh-btn-white {
    color: var(--eh-blue) !important;
    background: #fff;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.35);
}
.eh-btn-white:hover { transform: translateY(-2px); }

.eh-btn-outline-light {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}
.eh-btn-outline-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }

.eh-link {
    color: var(--eh-muted) !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 200ms ease;
}
.eh-link:hover { color: var(--eh-blue) !important; }

/* ── Section scaffolding ────────────────────────────────────────────────── */
.eh-section { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; }
.eh-section-alt { background: var(--eh-bg); }

.eh-head { max-width: 720px; margin: 0 auto 3.25rem; text-align: center; }
.eh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--eh-blue);
    background: rgba(21, 101, 216, 0.08);
    border: 1px solid rgba(21, 101, 216, 0.14);
}
.eh-h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 1rem 0 0.9rem;
}
.eh-sub { color: var(--eh-muted); font-size: 1.075rem; line-height: 1.7; margin: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.eh-hero {
    position: relative;
    padding: clamp(8rem, 12vw, 10.5rem) 0 clamp(4rem, 7vw, 6rem);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(43, 168, 247, 0.16), transparent 60%), var(--eh-bg);
    overflow: hidden;
}
.eh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}
.eh-blob-1 { width: 520px; height: 520px; background: #9fd0ff; top: -140px; left: -160px; animation: eh-drift 22s ease-in-out infinite alternate; }
.eh-blob-2 { width: 460px; height: 460px; background: #c9c1ff; top: 25%; right: -140px; animation: eh-drift 26s ease-in-out -6s infinite alternate-reverse; }
.eh-blob-3 { width: 380px; height: 380px; background: #a8f0e6; bottom: -180px; left: 35%; opacity: 0.35; animation: eh-drift 30s ease-in-out -12s infinite alternate; }
.eh-gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 42, 92, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 42, 92, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
.eh-hero > .container { position: relative; z-index: 2; }

.eh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
    font-size: 0.875rem;
    color: var(--eh-muted);
    font-weight: 500;
}
.eh-badge b {
    color: #fff;
    background: var(--eh-grad);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.eh-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #16c784;
    box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.55);
    animation: eh-pulse 2s ease-out infinite;
}

.eh-title {
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 1.4rem 0 1.25rem;
}
.eh-lead {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    color: var(--eh-muted);
    max-width: 560px;
    margin: 0 0 2rem;
}
.eh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1rem; }
.eh-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--eh-muted);
    font-size: 0.925rem;
}
.eh-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.eh-trust i { color: #16a36f; font-size: 1.05rem; }

/* Product visual */
.eh-visual { position: relative; perspective: 1400px; margin-top: 3rem; }
@media (min-width: 992px) { .eh-visual { margin-top: 0; } }
.eh-tilt {
    --rx: 0deg; --ry: 0deg;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 500ms var(--eh-ease);
}
.eh-frame {
    position: relative;
    background: var(--eh-card);
    border: 1px solid var(--eh-line);
    border-radius: 20px;
    box-shadow: var(--eh-shadow-lg);
    overflow: hidden;
}
.eh-frame::before { /* gradient hairline border glow */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(43, 168, 247, 0.55), transparent 35%, transparent 65%, rgba(109, 93, 252, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.eh-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--eh-line);
    background: linear-gradient(#fbfcff, #f4f7fd);
}
.eh-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f2; }
.eh-frame-bar span:nth-child(1) { background: #ff6b6b; }
.eh-frame-bar span:nth-child(2) { background: #ffc24b; }
.eh-frame-bar span:nth-child(3) { background: #2fd07a; }
.eh-frame-url {
    margin-left: 0.75rem;
    flex: 1;
    max-width: 260px;
    font-size: 0.75rem;
    color: #8a97ad;
    background: #fff;
    border: 1px solid var(--eh-line);
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eh-frame-body { padding: 1rem 1rem 1.25rem; }

/* Swiper inside the frame: pagination becomes a segmented tab strip */
.eh-frame .swiper-container { position: relative; overflow: hidden; }
.eh-frame .swiper-pagination {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 1rem !important;
    transform: none !important;
}
.eh-frame .swiper-pagination-bullet {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #f1f5fc !important;
    color: var(--eh-muted) !important;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 1 !important;
    border: 1px solid transparent;
    transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 200ms var(--eh-ease);
}
.eh-frame .swiper-pagination-bullet:hover { transform: translateY(-1px); color: var(--eh-blue) !important; }
.eh-frame .swiper-pagination-bullet-active {
    background: var(--eh-grad) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px -6px rgba(21, 101, 216, 0.6);
}
.eh-frame .swiper-slide img { width: 100%; height: auto; display: block; margin: 0 auto; }
.eh-frame .swiper-button-prev,
.eh-frame .swiper-button-next {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
    color: var(--eh-blue);
    top: 58%;
    opacity: 0;
    transition: opacity 250ms ease, transform 250ms var(--eh-ease);
}
.eh-frame .swiper-button-prev::after,
.eh-frame .swiper-button-next::after { font-size: 14px; font-weight: 700; }
.eh-frame:hover .swiper-button-prev,
.eh-frame:hover .swiper-button-next { opacity: 1; }

/* Floating sync chips */
.eh-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow);
    font-size: 0.8rem;
    color: var(--eh-ink);
    white-space: nowrap;
    animation: eh-float 6s ease-in-out infinite;
    transform: translateZ(40px);
}
.eh-chip small { display: block; color: var(--eh-muted); font-size: 0.7rem; }
.eh-chip-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1rem;
}
.eh-chip-1 { top: 46%; left: -48px; }
.eh-chip-2 { bottom: 16%; right: -34px; animation-delay: -2s; }
.eh-chip-3 { bottom: -18px; left: 12%; animation-delay: -4s; }
@media (max-width: 1199.98px) { .eh-chip-1 { left: -12px; } .eh-chip-2 { right: -10px; } }
@media (max-width: 575.98px) { .eh-chip { display: none; } }

/* ── Marquee ────────────────────────────────────────────────────────────── */
.eh-marquee {
    position: relative;
    padding: 1.4rem 0;
    border-top: 1px solid var(--eh-line);
    border-bottom: 1px solid var(--eh-line);
    background: #fff;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.eh-marquee-track {
    display: flex;
    width: max-content;
    gap: 0.75rem;
    animation: eh-marquee 55s linear infinite;
}
.eh-marquee:hover .eh-marquee-track { animation-play-state: paused; }
.eh-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--eh-line);
    background: var(--eh-bg);
    color: var(--eh-ink) !important;
    font-weight: 500;
    font-size: 0.925rem;
    white-space: nowrap;
    transition: border-color 200ms ease, color 200ms ease, transform 200ms var(--eh-ease);
}
.eh-marquee-item:hover { border-color: rgba(21, 101, 216, 0.4); color: var(--eh-blue) !important; transform: translateY(-2px); }
.eh-marquee-item img { width: 20px; height: 20px; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.eh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 991.98px) { .eh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eh-stat {
    position: relative;
    padding: 1.6rem 1.5rem;
    border-radius: 20px;
    background: var(--eh-card);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 300ms var(--eh-ease), box-shadow 300ms var(--eh-ease);
}
.eh-stat:hover { transform: translateY(-4px); box-shadow: var(--eh-shadow); }
.eh-stat img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.eh-stat-num {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.eh-stat-label { color: var(--eh-muted); font-size: 0.925rem; margin-top: 0.35rem; }

/* ── Module cards (spotlight) ───────────────────────────────────────────── */
.eh-mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
@media (max-width: 575.98px) {
    .eh-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .eh-mod { padding: 1.15rem 0.6rem 1rem; font-size: 0.85rem; }
    .eh-mod-icon { width: 52px; height: 52px; border-radius: 15px; }
    .eh-mod-icon img { width: 32px; height: 32px; }
    .eh-stat { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
}
.eh-mod {
    --mx: 50%; --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.6rem 1rem 1.35rem;
    border-radius: 18px;
    background: var(--eh-card);
    border: 1px solid var(--eh-line);
    color: var(--eh-ink) !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow: hidden;
    isolation: isolate;
    transition: transform 300ms var(--eh-ease), box-shadow 300ms var(--eh-ease), border-color 300ms ease;
}
.eh-mod::before { /* cursor spotlight */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(43, 168, 247, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: -1;
}
.eh-mod:hover { transform: translateY(-5px); box-shadow: var(--eh-shadow); border-color: rgba(21, 101, 216, 0.28); }
.eh-mod:hover::before { opacity: 1; }
.eh-mod-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #f2f7ff, #eaf1fe);
    transition: transform 400ms var(--eh-ease);
}
.eh-mod-icon img { width: 40px; height: 40px; }
.eh-mod:hover .eh-mod-icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); }

/* ── Key features ───────────────────────────────────────────────────────── */
.eh-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.4rem;
    margin: 0 auto 2.5rem !important;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
}
.eh-tabs::-webkit-scrollbar { display: none; }
.eh-tabs .nav-link {
    white-space: nowrap;
    border-radius: 999px !important;
    padding: 0.55rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eh-muted) !important;
    background: transparent !important;
    border: 0;
    transition: color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.eh-tabs .nav-link:hover { color: var(--eh-blue) !important; }
.eh-tabs .nav-link.active {
    color: #fff !important;
    background: var(--eh-grad) !important;
    box-shadow: 0 8px 18px -8px rgba(21, 101, 216, 0.7);
}
.eh-feature-pane { max-width: 980px; margin: 0 auto; text-align: center; }
.eh-feature-pane p { color: var(--eh-muted); font-size: 1.05rem; line-height: 1.7; max-width: 720px; margin: 0 auto 2rem; }
.eh-feature-pane .eh-frame { max-width: 900px; margin: 0 auto; }
.eh-feature-pane .eh-frame img { width: 100%; height: auto; display: block; }
.tab-pane.active .eh-frame { animation: eh-scale-in 600ms var(--eh-ease) both; }
.eh-glow-under { position: relative; }
.eh-glow-under::after {
    content: "";
    position: absolute;
    left: 10%; right: 10%; bottom: -30px;
    height: 80px;
    background: var(--eh-grad);
    filter: blur(50px);
    opacity: 0.28;
    z-index: -1;
}

/* ── Product cards ──────────────────────────────────────────────────────── */
.eh-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.eh-prod {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.6rem 1.5rem;
    border-radius: 20px;
    background: var(--eh-card);
    border: 1px solid var(--eh-line);
    overflow: hidden;
    transition: transform 300ms var(--eh-ease), box-shadow 300ms var(--eh-ease), border-color 300ms ease;
}
.eh-prod::before { /* top accent bar */
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--eh-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 450ms var(--eh-ease);
}
.eh-prod:hover { transform: translateY(-6px); box-shadow: var(--eh-shadow-lg); border-color: transparent; }
.eh-prod:hover::before { transform: scaleX(1); }
.eh-prod-icon {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 10px 20px -10px rgba(11, 27, 58, 0.45);
    transition: transform 400ms var(--eh-ease);
}
.eh-prod:hover .eh-prod-icon { transform: rotate(-8deg) scale(1.08); }
.eh-prod h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.6rem; line-height: 1.3; }
.eh-prod h3 a { color: var(--eh-ink) !important; }
.eh-prod p { color: var(--eh-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.25rem; flex: 1; }
.eh-more { font-weight: 600; font-size: 0.925rem; color: var(--eh-blue) !important; display: inline-flex; align-items: center; gap: 0.3rem; }
.eh-more i { transition: transform 250ms var(--eh-ease); }
.eh-prod:hover .eh-more i { transform: translateX(4px); }

.eh-tone-1 { background: linear-gradient(135deg, #1565d8, #2ba8f7); }
.eh-tone-2 { background: linear-gradient(135deg, #6d5dfc, #9b8cff); }
.eh-tone-3 { background: linear-gradient(135deg, #0ea5a4, #34d3b8); }
.eh-tone-4 { background: linear-gradient(135deg, #f97316, #fbbf24); }
.eh-tone-5 { background: linear-gradient(135deg, #e11d74, #f472b6); }
.eh-tone-6 { background: linear-gradient(135deg, #0f766e, #22c55e); }

/* ── Why: orbit visual ──────────────────────────────────────────────────── */
.eh-orbit-wrap { --R: 215px; position: relative; width: calc(var(--R) * 2); aspect-ratio: 1; margin: 0 auto; }
@media (max-width: 575.98px) { .eh-orbit-wrap { --R: 145px; } }
.eh-ring .eh-node { --r: var(--R); }
.eh-ring-inner .eh-node { --r: calc(var(--R) * 0.56); }
.eh-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(21, 101, 216, 0.25);
    animation: eh-spin 60s linear infinite;
}
.eh-ring-inner { inset: 22%; border-style: solid; border-color: rgba(109, 93, 252, 0.18); animation-duration: 40s; animation-direction: reverse; }
.eh-node {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform: rotate(var(--a)) translateX(var(--r));
}
.eh-node > span {
    position: absolute;
    left: -26px; top: -26px;
    width: 52px; height: 52px;
    border-radius: 16px;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 10px 22px -10px rgba(11, 27, 58, 0.5);
    /* keep the tile upright: undo the node angle, then counter the ring spin */
    transform: rotate(calc(-1 * var(--a)));
    animation: eh-counter 60s linear infinite;
}
.eh-ring-inner .eh-node > span { animation-duration: 40s; animation-direction: reverse; width: 44px; height: 44px; left: -22px; top: -22px; font-size: 1.1rem; border-radius: 13px; }
.eh-hub {
    position: absolute;
    inset: 36%;
    border-radius: 28px;
    background: #fff;
    display: grid; place-items: center;
    box-shadow: var(--eh-shadow-lg);
    border: 1px solid var(--eh-line);
}
.eh-hub::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 36px;
    border: 2px solid rgba(43, 168, 247, 0.35);
    animation: eh-ping 2.8s var(--eh-ease) infinite;
}
.eh-hub img { width: 62%; height: auto; }
.eh-checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.8rem; }
.eh-checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--eh-ink); font-weight: 500; }
.eh-checks i {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(22, 163, 111, 0.12);
    color: #16a36f;
    font-size: 0.95rem;
}

/* ── CTA band ───────────────────────────────────────────────────────────── */
.eh-cta {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(125deg, #0f3fa8 0%, #1565d8 40%, #5b4ff0 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -24px rgba(21, 101, 216, 0.6);
}
.eh-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.eh-cta .eh-blob { opacity: 0.35; }
.eh-cta > * { position: relative; }
.eh-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin: 0 0 0.9rem; }
.eh-cta p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }

/* ── Restyled shared partials on the home page ──────────────────────────── */
.erp-home #buy-non-saas { padding: clamp(3rem, 6vw, 5rem) 0; }
.erp-home #buy-non-saas .label-tag span,
.erp-home #contact .label-tag span {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--eh-blue);
    background: rgba(21, 101, 216, 0.08);
    border: 1px solid rgba(21, 101, 216, 0.14);
}
.erp-home #buy-non-saas h2,
.erp-home #contact h2 { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.erp-home #buy-non-saas hr,
.erp-home #contact hr { display: none; }
.erp-home #contact { background: var(--eh-bg) !important; }
.erp-home #contact form { background: #fff; border: 1px solid var(--eh-line); border-radius: 24px; box-shadow: var(--eh-shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.erp-home #contact .p-3.p-lg-5.bg-light { background: transparent !important; padding: 0 !important; }
.erp-home #contact .form-control {
    border-radius: 14px;
    border: 1px solid #dfe6f2;
    background: #fbfcff;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.erp-home #contact .form-control:focus {
    border-color: var(--eh-sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43, 168, 247, 0.18);
}
.erp-home .btn-style {
    border-radius: 999px !important;
    overflow: hidden;
    transition: transform 200ms var(--eh-ease), box-shadow 200ms var(--eh-ease);
}
.erp-home .btn-style:hover { transform: translateY(-2px); box-shadow: var(--eh-shadow); }
.erp-home .btn-style:active { transform: scale(0.97); }

/* ── Scroll reveal (only once JS has flagged the page) ─────────────────── */
.eh-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 800ms var(--eh-ease), transform 800ms var(--eh-ease);
    transition-delay: var(--d, 0ms);
}
.eh-js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.eh-js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.eh-js [data-reveal="zoom"] { transform: scale(0.94); }
.eh-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero entrance (runs on load, staggered) */
.eh-enter { animation: eh-fade-up 900ms var(--eh-ease) both; animation-delay: var(--d, 0ms); }

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes eh-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(60px, 40px, 0) scale(1.08); }
    100% { transform: translate3d(-40px, 70px, 0) scale(0.96); }
}
@keyframes eh-float { 0%, 100% { transform: translate3d(0, 0, 40px); } 50% { transform: translate3d(0, -12px, 40px); } }
@keyframes eh-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(22, 199, 132, 0); } }
@keyframes eh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes eh-spin { to { transform: rotate(360deg); } }
@keyframes eh-counter { from { rotate: 0deg; } to { rotate: -360deg; } }
@keyframes eh-ping { 0% { transform: scale(0.92); opacity: 0.9; } 80%, 100% { transform: scale(1.18); opacity: 0; } }
@keyframes eh-fade-up { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes eh-scale-in { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Reduced motion: no animation, everything visible ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .erp-home *, .erp-home *::before, .erp-home *::after,
    .erp-nav.header-landing {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .eh-js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .eh-tilt { transform: none !important; }
    .eh-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
    .eh-marquee-track [aria-hidden="true"] { display: none; }
}
