/* =====================================================================================================================
   home-modern.css  —  redesigned home page (index.php only: body.hm). Loaded after landing.css and layers on top of it:
   a dark navy top "stage" (full-page slider + hero + ticker) and clean, professional cards below.
   Palette: deep navy + brand blue, with the brand orange kept for the main call-to-action buttons only.
   The other public pages (about, services, contact, ...) keep landing.css as it is.
   ===================================================================================================================== */

body.hm {
  --hm-navy: #0B1B3F;
  --hm-navy-2: #12285C;
  --hm-blue: #006AFC;
  --hm-blue-2: #2563EB;
  --hm-sky: #60A5FA;
  --hm-grad: linear-gradient(135deg, #0B5BD3 0%, #006AFC 100%);
  --hm-line: #E3E8F1;
  --hm-shadow: 0 1px 2px rgba(11, 27, 63, .04), 0 14px 34px -18px rgba(11, 27, 63, .22);
  background: #F6F8FB;
}

/* ---------------------------------------------------------------------------------------------------------------------
   1. Dark stage (slider + hero + ticker)
   --------------------------------------------------------------------------------------------------------------------- */
.hm-stage {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(0, 106, 252, .30), transparent 62%),
    radial-gradient(800px 520px at 100% 30%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(170deg, #07142F 0%, #0B1B3F 50%, #0F2452 100%);
}
.hm-stage::before { /* faint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hm-stage-glow { position: absolute; inset: 0; pointer-events: none; filter: blur(80px); opacity: .35; }
.hm-stage-glow span { position: absolute; border-radius: 50%; animation: lp-drift 22s ease-in-out infinite alternate; }
.hm-stage-glow .g1 { width: 420px; height: 420px; left: -6%; top: 30%; background: #1D4ED8; }
.hm-stage-glow .g2 { width: 360px; height: 360px; right: -4%; top: 6%; background: #2563EB; animation-duration: 26s; animation-delay: -6s; }
.hm-stage-glow .g3 { width: 320px; height: 320px; left: 45%; bottom: 4%; background: #0EA5E9; animation-duration: 24s; animation-delay: -10s; opacity: .5; }
.hm-stage.is-off .hm-stage-glow span { animation-play-state: paused; }
.hm-stage > section { position: relative; z-index: 1; }

/* ---------- top slider: every picture full width at its own height (max 625px), no frame, no empty space ----------
   The showing slide sits in the page flow, so the slider is exactly as tall as its picture; the other slides are
   stacked on top of it, invisible. On desktop / tablet the caption lies over the picture; on phones (where the
   picture is short) it moves into a band right below the picture. */
.hm-slider { padding: 0; }
.hm-sl { position: relative; overflow: hidden; background: #07142F; isolation: isolate; }
.hm-sl-track { position: relative; }

.hm-slide { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hm-slide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.hm-slide-media { position: relative; overflow: hidden; line-height: 0; }
.hm-slide-img { display: block; width: 100%; height: auto; max-height: 625px; object-fit: cover; object-position: center; }
.hm-slide.is-active .hm-slide-img { animation: hm-kenburns 9s ease-out both; }
@keyframes hm-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
/* shading behind the caption so it is readable on any picture */
.hm-slide.with-cap .hm-slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 20, 47, .88) 0%, rgba(7, 20, 47, .62) 38%, rgba(7, 20, 47, .05) 72%), linear-gradient(0deg, rgba(7, 20, 47, .5) 0%, transparent 30%);
}

/* caption: over the picture */
.hm-slide-cap-wrap { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; right: 0; display: flex; align-items: center; }
.hm-slide-cap { width: 100%; max-width: 580px; padding-bottom: 44px; }
.hm-slide-cap > * { opacity: 0; }
.hm-slide.is-active .hm-slide-cap > * { animation: hm-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hm-slide.is-active .hm-slide-cap > :nth-child(1) { animation-delay: .2s; }
.hm-slide.is-active .hm-slide-cap > :nth-child(2) { animation-delay: .32s; }
.hm-slide.is-active .hm-slide-cap > :nth-child(3) { animation-delay: .44s; }
.hm-slide.is-active .hm-slide-cap > :nth-child(4) { animation-delay: .56s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hm-slide-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; margin-bottom: 14px; }
.hm-slide-tag i { color: #93C5FD; }
.hm-slide-cap h2 { color: #fff; font-size: clamp(24px, 3.3vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hm-slide-cap p { color: rgba(255, 255, 255, .86); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.55; margin: 0 0 22px; max-width: 500px; }
.hm-slide-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-slide-btns .lp-btn { min-height: 50px; padding: 0 24px; font-size: 15.5px; }
.hm-btn-glass { color: #fff !important; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.hm-btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }

/* controls along the bottom: slide counter, progress lines, arrows */
.hm-sl-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding-bottom: 16px; pointer-events: none; }
.hm-sl-ui-in { display: flex; align-items: center; gap: 18px; }
.hm-sl-ui-in > * { pointer-events: auto; }
.hm-sl-count { color: #fff; font-weight: 800; letter-spacing: .04em; display: flex; align-items: baseline; gap: 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hm-sl-count b { font-size: 20px; }
.hm-sl-count span { opacity: .7; font-size: 13px; }
.hm-sl-dots { display: flex; gap: 8px; flex: 0 1 300px; }
.hm-dot { flex: 1; min-width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.hm-dot span { display: block; width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hm-dot i { display: block; height: 100%; width: 0; border-radius: 99px; background: #fff; }
.hm-dot.is-active i { animation: hm-progress var(--hm-int, 6500ms) linear forwards; }
.hm-sl.is-paused .hm-dot.is-active i, .hm-slider.is-off .hm-dot.is-active i { animation-play-state: paused; }
@keyframes hm-progress { from { width: 0; } to { width: 100%; } }
.hm-dot:hover span { background: rgba(255, 255, 255, .55); }
.hm-sl-arrows { margin-left: auto; display: flex; gap: 10px; }
.hm-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 20, 47, .35); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; }
.hm-arrow:hover { background: rgba(7, 20, 47, .6); transform: scale(1.06); }
.hm-arrow:active { transform: scale(.96); }

/* tablets: smaller caption so it fits on the shorter picture */
@media (max-width: 991.98px) {
  .hm-slide-cap { max-width: 440px; padding-bottom: 40px; }
  .hm-slide-tag { display: none; }
  .hm-slide-cap h2 { font-size: clamp(20px, 3.4vw, 32px); margin-bottom: 8px; }
  .hm-slide-cap p { font-size: 14px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hm-slide-btns { gap: 8px; }
  .hm-slide-btns .lp-btn { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
  .hm-sl-ui { padding-bottom: 10px; }
  .hm-sl-count { display: none; }
  .hm-arrow { width: 36px; height: 36px; font-size: 13px; }
}
/* phones: the picture is short, so the caption moves into a navy band right below it; swipe instead of arrows */
@media (max-width: 767.98px) {
  .hm-slide.with-cap .hm-slide-media::after { display: none; }
  .hm-slide-cap-wrap { position: static; display: block; background: linear-gradient(180deg, #0B1B3F 0%, #07142F 100%); }
  .hm-slide-cap { max-width: none; padding: 18px 0 44px; }
  .hm-slide-tag { display: inline-flex; font-size: 10.5px; padding: 4px 10px; margin-bottom: 10px; }
  .hm-slide-cap h2 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; text-shadow: none; }
  .hm-slide-cap p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; -webkit-line-clamp: 3; }
  .hm-slide-btns .lp-btn { min-height: 44px; padding: 0 12px; font-size: 14px; flex: 1 1 0; gap: 7px; white-space: nowrap; }
  .hm-sl-ui-in { justify-content: center; }
  .hm-sl-arrows { display: none; }
  .hm-sl-dots { flex: 0 1 180px; }
  .hm-dot { height: 20px; }
  .hm-sl:not(.has-cap) .hm-sl-ui { padding-bottom: 4px; }
}
@media (max-width: 359.98px) {
  .hm-slide-btns .lp-btn { flex: 1 1 100%; }
}

/* ---------- hero: its own LIGHT section right under the dark slider, so the two read as separate blocks ---------- */
body.hm .lp-hero { padding: 80px 0 88px; background: #fff; border-top: 4px solid var(--hm-blue); }
body.hm .lp-hero.after-slider { padding-top: 72px; }
body.hm .lp-hero-bg { background: radial-gradient(900px 480px at 92% 0%, rgba(0, 106, 252, .10), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(11, 27, 63, .05), transparent 60%), linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 70%); }
body.hm .lp-aurora { opacity: .12; }
body.hm .lp-spark { display: none; }
body.hm .lp-hero h1 { color: var(--hm-navy); }
body.hm .lp-grad-text { background: linear-gradient(90deg, #006AFC 0%, #0B5BD3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
body.hm .lp-hero .lp-lead { color: #4B5875; }
body.hm .lp-pill { border-color: var(--hm-line); color: #33405E; }
body.hm .lp-pill b { background: var(--hm-blue); }
body.hm .lp-hero .lp-btn-ghost { border-color: #CBD5E1; }
body.hm .lp-stats { border-top-color: var(--hm-line); }
body.hm .lp-stat + .lp-stat { border-left-color: var(--hm-line); }
body.hm .lp-stat strong { color: var(--hm-navy); font-size: 32px; }
body.hm .lp-orbit, body.hm .lp-orbit.o2 { border-color: rgba(0, 106, 252, .18); }
body.hm .lp-device::before { background: linear-gradient(135deg, #006AFC 0%, #0B1B3F 100%); filter: none; opacity: .92; }
body.hm .lp-float { border-color: var(--hm-line); box-shadow: 0 20px 44px -20px rgba(11, 27, 63, .35); }

/* ---------- service ticker: a navy band that separates the hero from the sections below ---------- */
body.hm .lp-ticker { background: linear-gradient(90deg, #0B1B3F 0%, #12285C 50%, #0B1B3F 100%); padding: 18px 0; border: 0; }
body.hm .lp-ticker::before { background: linear-gradient(90deg, #0B1B3F, transparent); }
body.hm .lp-ticker::after { background: linear-gradient(270deg, #0B1B3F, transparent); }
body.hm .lp-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }
body.hm .lp-chip i { background: rgba(96, 165, 250, .18) !important; color: #93C5FD; }

/* ---------------------------------------------------------------------------------------------------------------------
   2. Sections below the stage
   --------------------------------------------------------------------------------------------------------------------- */
body.hm .lp-section { padding: 96px 0; background: #fff; }
body.hm .lp-soft { background: #EEF2F8; }
body.hm .lp-section.tight { background: #EEF2F8; } /* final banner area */
/* every section starts with a hairline so neighbouring sections never blur together */
body.hm .lp-section, body.hm .lp-high { border-top: 1px solid var(--hm-line); }
body.hm .lp-bbps { border-top: 0; }
body.hm .lp-eyebrow { color: var(--hm-blue); background: rgba(0, 106, 252, .07); border-color: rgba(0, 106, 252, .16); }
body.hm .lp-h2 { letter-spacing: -.03em; color: var(--hm-navy); }
body.hm .lp-h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 99px; margin-top: 14px; background: var(--hm-blue); }
body.hm .lp-head.center .lp-h2::after { margin-left: auto; margin-right: auto; }
body.hm .lp-head-row .lp-h2::after { margin-top: 12px; }
body.hm .lp-link { color: var(--hm-blue) !important; }
body.hm .lp-link i { transition: transform .2s ease; }
body.hm .lp-link:hover i { transform: translateX(4px); }
body.hm .lp-btn-blue { background: var(--hm-grad); box-shadow: 0 12px 24px -12px rgba(0, 106, 252, .6); }

/* ---------- highlight cards ---------- */
body.hm .lp-high { margin-top: 0; padding: 80px 0 88px; background: #EEF2F8; }
body.hm .lp-high-grid { gap: 20px; }
body.hm .lp-high-grid > * { background: #fff; }
body.hm .lp-high-card { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 24px 24px; border-color: var(--hm-line); box-shadow: var(--hm-shadow); }
body.hm .lp-high-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hm-blue); opacity: 0; transition: opacity .25s ease; }
body.hm .lp-high-card:hover::before { opacity: 1; }
body.hm .lp-high-card::after, body.hm .lp-svc::after { display: none; } /* no rainbow hover border */
body.hm .lp-high-card:hover { border-color: rgba(0, 106, 252, .3); }
body.hm .lp-high-card .lp-ico { width: 54px; height: 54px; border-radius: 15px; font-size: 21px; }
body.hm .lp-high-card h3 { font-size: 19px; color: var(--hm-navy); }

/* values strip: solid navy */
body.hm .lp-values { background: linear-gradient(120deg, #0B1B3F 0%, #12285C 100%); animation: none; border-radius: 22px; padding: 28px 30px; box-shadow: 0 24px 50px -30px rgba(11, 27, 63, .7); }
body.hm .lp-values::after { background: radial-gradient(circle, rgba(0, 106, 252, .35), transparent 65%); }
body.hm .lp-value .lp-ico { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #93C5FD !important; }

/* ---------- why us ---------- */
body.hm .lp-why-visual { border-radius: 26px; border: 1px solid var(--hm-line); background: linear-gradient(160deg, #F1F5FD 0%, #E8EFFB 100%); animation: none; box-shadow: var(--hm-shadow); }
body.hm .lp-why-badge { border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); }
body.hm .lp-checks li i { color: #fff; background: var(--hm-blue); }

/* steps: connected, numbered */
body.hm .lp-steps { position: relative; gap: 24px; }
body.hm .lp-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 54px; height: 2px; background: repeating-linear-gradient(90deg, rgba(0, 106, 252, .28) 0 8px, transparent 8px 16px); z-index: 0; }
body.hm .lp-step { z-index: 1; border-radius: 20px; padding: 30px 26px; border-color: var(--hm-line); box-shadow: var(--hm-shadow); }
body.hm .lp-step::before, body.hm .lp-step:nth-child(n)::before { content: counter(lpstep); counter-increment: lpstep; right: auto; left: 26px; top: -16px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; background: var(--hm-blue); box-shadow: 0 8px 16px -6px rgba(0, 106, 252, .6); letter-spacing: 0; }
body.hm .lp-step h4 { color: var(--hm-navy); }
@media (max-width: 991.98px) { body.hm .lp-steps::before { display: none; } }

/* ---------- services grid ---------- */
body.hm .lp-svc-grid { gap: 16px; }
body.hm .lp-svc { border-radius: 18px; border-color: var(--hm-line); padding: 24px 10px 20px; box-shadow: 0 1px 2px rgba(11, 27, 63, .04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body.hm .lp-svc:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow); border-color: rgba(0, 106, 252, .35); }
body.hm .lp-svc:hover span.lbl { color: var(--hm-blue); }

/* ---------- BBPS: navy band ---------- */
body.hm .lp-bbps { color: #fff; background: radial-gradient(800px 400px at 0% 0%, rgba(0, 106, 252, .22), transparent 60%), linear-gradient(160deg, #0B1B3F 0%, #102350 100%); }
body.hm .lp-bbps .lp-h2 { color: #fff; }
body.hm .lp-bbps .lp-h2::after { background: var(--hm-sky); }
body.hm .lp-bbps .lp-sub { color: rgba(255, 255, 255, .72); }
body.hm .lp-bbps .lp-eyebrow { color: #93C5FD; background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .28); }
body.hm .lp-bbps .lp-checks li { color: rgba(255, 255, 255, .86); }
body.hm .lp-bbps-item { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: #fff; }
body.hm .lp-bbps-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(147, 197, 253, .4); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); }
body.hm .lp-bbps-item .lp-ico { background: rgba(96, 165, 250, .14) !important; color: #93C5FD !important; }

/* ---------- catalog tabs ---------- */
body.hm .lp-tabs { border-radius: 999px; padding: 6px; border-color: var(--hm-line); box-shadow: var(--hm-shadow); }
body.hm .lp-tab { border-radius: 999px; padding: 11px 20px; }
body.hm .lp-tab.active { background: var(--hm-navy); box-shadow: 0 10px 20px -10px rgba(11, 27, 63, .6); }
body.hm .lp-tile { border-radius: 16px; border-color: var(--hm-line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body.hm .lp-tile:hover { transform: translateY(-3px); border-color: rgba(0, 106, 252, .3); box-shadow: var(--hm-shadow); }
@media (max-width: 575.98px) { body.hm .lp-tabs { border-radius: 22px; } }

/* ---------- pricing ---------- */
body.hm .lp-plan { border-radius: 22px; border-color: var(--hm-line); padding-top: 30px; box-shadow: var(--hm-shadow); overflow: hidden; }
body.hm .lp-plan::before { left: 0; right: 0; height: 4px; border-radius: 0; background: #CBD5E1; } /* one calm colour for every plan */
body.hm .lp-plan h3 { font-size: 17px; color: var(--hm-navy); }
body.hm .lp-price { font-size: 36px; color: var(--hm-navy); }
body.hm .lp-plan li i { color: var(--hm-blue); }
body.hm .lp-plan.is-popular { overflow: visible; background: linear-gradient(165deg, #0B1B3F 0%, #12285C 100%); box-shadow: 0 30px 60px -26px rgba(11, 27, 63, .65); }
body.hm .lp-plan.is-popular::before { left: 22px; right: 22px; border-radius: 0 0 6px 6px; background: var(--hm-blue); }
body.hm .lp-plan.is-popular::after { display: none; } /* no spinning rainbow border */
body.hm .lp-plan.is-popular h3, body.hm .lp-plan.is-popular .lp-price { color: #fff; }
body.hm .lp-plan.is-popular li i { color: #93C5FD; }
body.hm .lp-ribbon { background: var(--hm-blue); box-shadow: 0 8px 18px -8px rgba(0, 106, 252, .7); }

/* ---------- FAQ ---------- */
body.hm .lp-faq details { border-radius: 16px; border-color: var(--hm-line); }
body.hm .lp-faq details[open] { border-color: rgba(0, 106, 252, .35); box-shadow: var(--hm-shadow); }
body.hm .lp-faq summary i { border-radius: 50%; }

/* ---------- final call to action ---------- */
body.hm .lp-cta { border-radius: 26px; padding: 72px 48px; background: radial-gradient(600px 320px at 0% 0%, rgba(0, 106, 252, .45), transparent 60%), linear-gradient(120deg, #0B1B3F 0%, #12285C 100%); animation: none; box-shadow: 0 30px 60px -30px rgba(11, 27, 63, .7); }
body.hm .lp-cta::before { opacity: .25; }
body.hm .lp-cta h2 { font-size: clamp(28px, 3.6vw, 44px); }
body.hm .lp-cta p { color: rgba(255, 255, 255, .8); }
body.hm .lp-cta .lp-eyebrow.on-dark { color: #93C5FD; background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .3); }

/* ---------------------------------------------------------------------------------------------------------------------
   3. Tablets & phones
   --------------------------------------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  body.hm .lp-section { padding: 72px 0; }
}
@media (max-width: 767.98px) {
  body.hm .lp-hero, body.hm .lp-hero.after-slider { padding: 44px 0 56px; }
  body.hm .lp-high { padding: 56px 0 64px; }
  body.hm .lp-cta { padding: 48px 22px; border-radius: 24px; }
}

/* ---------------------------------------------------------------------------------------------------------------------
   4. Reduced motion: no zoom, no rising text, no auto-advance (the progress line is what moves the slider)
   --------------------------------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hm-slide.is-active .hm-slide-img, .hm-slide.is-active .hm-slide-cap > *, .hm-dot.is-active i, .hm-stage-glow span { animation: none !important; }
  .hm-slide-cap > * { opacity: 1; }
  .hm-dot.is-active i { width: 100%; }
}
