/* =====================================================================
   estatixX — Enhanced animations & advanced UI
   Scroll reveal, parallax, count-up, tilt, video hero, glass polish.
   Brand: Bay of Many #002E89 (blue) · Outrageous Orange #F26B37
   ===================================================================== */

/* ---- Reveal: PURE CSS, always ends visible (no JS dependency) ---- */
.header-orange{
    color: #F26B37 !important;
}
#searchForm input{
    background-color: rgba(0, 0, 0, 0);
    padding: 15px 20px;
}
#searchForm input:focus{
    border: none !important;
}
@keyframes estReveal {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
@keyframes estRevealScale {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: none; }
}
@keyframes estFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
[data-reveal] {
    animation: estReveal .8s cubic-bezier(.22, 1, .36, 1) both;
}
[data-reveal="scale"] { animation-name: estRevealScale; }
[data-reveal="fade"]  { animation-name: estFade; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { animation: none !important; }
}

/* ---- Parallax helper ---- */
[data-parallax] { will-change: transform; }

/* ---- Count-up numbers ---- */
.counter { font-variant-numeric: tabular-nums; }

/* ---- Tilt ---- */
[data-tilt] { transform-style: preserve-3d; transition: transform .2s ease; }

/* =====================================================================
   HERO — video background + central play button
   ===================================================================== */
.hero-video-section {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 90px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(242,107,55,.25), transparent 60%),
        linear-gradient(135deg, #002E89 0%, #04163f 55%, #0b1e48 100%);
}
@media (min-width: 1200px) { .hero-video-section { padding-top: 180px; padding-bottom: 120px; } }

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .42;
    filter: saturate(1.05);
}
.hero-video-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(242,107,55,.20), transparent 55%),
        linear-gradient(115deg, rgba(0,46,137,.92) 0%, rgba(4,22,63,.78) 45%, rgba(11,30,72,.55) 100%);
}
.hero-video-section .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 12.5px;
    letter-spacing: .4px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
}
.hero-eyebrow::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: #F26B37;
    box-shadow: 0 0 0 4px rgba(242,107,55,.25);
}
.hero-title {
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: -0.5px;
    max-width: 740px;
    margin-bottom: 18px;
    color: #fff;
}
.hero-title .grad {
    background: linear-gradient(90deg, #fff, #ffb38a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    max-width: 920px;
    margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn { padding: 14px 26px; border-radius: 12px; }

/* Small devices: keep the eyebrow on one line and stack CTA buttons full-width */
@media (max-width: 575.98px) {
    .hero-eyebrow {
        font-size: 10.5px;
        letter-spacing: .2px;
        padding: 6px 12px;
        max-width: 100%;
    }
    .hero-title { font-size: clamp(26px, 8vw, 34px); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
    .hero-watch { width: 100%; justify-content: center; }
}

/* Stats panel */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(4,22,63,.35);
}
.hero-stat { text-align: center; }
.hero-stat .counter {
    display: block;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat .counter::after { content: ""; }
.hero-stat small {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    letter-spacing: .3px;
}

/* Central play button */
.hero-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 0;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #F26B37, #ff8f66);
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(242,107,55,.45);
    transition: transform .25s ease;
}
.hero-play-btn i { font-size: 36px; margin-left: 4px; }
.hero-play-btn::before,
.hero-play-btn::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(242,107,55,.6);
    animation: heroPulse 2.4s ease-out infinite;
}
.hero-play-btn::after { animation-delay: 1.2s; }
.hero-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes heroPulse {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    left: 50%; bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,.8);
    font-size: 22px;
    animation: heroBob 1.8s ease-in-out infinite;
}
@keyframes heroBob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

@media (max-width: 991px) {
    .hero-play-btn { position: static; transform: none; margin: 26px auto 0; display: grid; }
    .hero-play-btn:hover { transform: scale(1.08); }
}

/* =====================================================================
   Custom video modal player
   ===================================================================== */
.video-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(4,10,26,.82);
    backdrop-filter: blur(6px);
}
.video-modal.open { display: flex; animation: fadeIn .25s ease; }
.video-modal-inner {
    width: min(960px, 100%);
    border-radius: 16px;
    overflow: hidden;
    background: #04163f;
    box-shadow: 0 40px 90px rgba(0,0,0,.5);
    transform: translateY(12px) scale(.98);
    animation: modalIn .3s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes modalIn { to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.video-modal-close {
    position: absolute; top: 18px; right: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 20px;
    display: grid; place-items: center; z-index: 5;
}
.video-modal-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Custom video player ---------- */
.custom-player { position: relative; background: #000; overflow: hidden; }
.cp-video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; cursor: pointer; }

.cp-bigplay {
    position: absolute; inset: 0; margin: auto;
    width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center;
    border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #F26B37, #ff8f66);
    box-shadow: 0 16px 36px rgba(242,107,55,.45);
    opacity: 1; transition: opacity .2s ease, transform .2s ease;
}
.cp-bigplay i { font-size: 34px; margin-left: 4px; }
.custom-player.playing .cp-bigplay { opacity: 0; transform: scale(.8); pointer-events: none; }

.cp-controls {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(transparent, rgba(4,10,26,.82));
    opacity: 0; transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.custom-player:hover .cp-controls,
.custom-player.playing .cp-controls,
.custom-player.paused .cp-controls { opacity: 1; transform: none; }

.cp-btn {
    background: transparent; border: 0; color: #fff; cursor: pointer;
    font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 2px;
}
.cp-btn:hover { color: #F26B37; }
.cp-time { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 84px; text-align: center; }

.cp-progress {
    position: relative; flex: 1; height: 6px;
    background: rgba(255,255,255,.22); border-radius: 999px; cursor: pointer;
}
.cp-progress-filled {
    position: absolute; left: 0; top: 0; height: 100%;
    width: 0%; background: linear-gradient(90deg, #F26B37, #ffb38a);
    border-radius: 999px;
}
.cp-progress-filled::after {
    content: ""; position: absolute; right: -6px; top: 50%;
    width: 12px; height: 12px; border-radius: 50%; background: #fff;
    transform: translateY(-50%); box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.cp-spinner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25); border-top-color: #F26B37;
    animation: cpSpin .8s linear infinite; display: none;
}
.custom-player.loading .cp-spinner { display: block; }
@keyframes cpSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* =====================================================================
   Advanced polish: glass cards, gradient text, glow, hover lift
   ===================================================================== */
.glass-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    border-radius: 18px;
}
.text-gradient {
    background: linear-gradient(90deg, var(--Primary, #F26B37), #ffb38a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.service-card, .featured-content, .about-img, .stat-card, .blog-card, .admin-card {
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.service-card:hover, .blog-card:hover, .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(4,22,63,.16);
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }

/* Floating decorative shapes (parallax) */
.float-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    z-index: 1;
    pointer-events: none;
}

/* =====================================================================
   Global polish — section subtitle pill (applies to all pages)
   ===================================================================== */
.section-heading .subtitle {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(242,107,55,.12);
    border: 1px solid rgba(242,107,55,.28);
    color: #F26B37;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.section-heading h2 { letter-spacing: -.5px; }

/* =====================================================================
   ADVANCED FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 72px 0 0;
    margin: 0 auto;
    max-width: 1280px;
    color: rgba(255,255,255,.82);
    background:
        radial-gradient(800px 380px at 85% -10%, rgba(242,107,55,.16), transparent 60%),
        linear-gradient(150deg, #002E89 0%, #04236b 60%, #002E89 100%);
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(4,22,63,.28);
}

.footer-wrap {
    position: relative;
    padding: clamp(26px, 4vw, 54px) clamp(14px, 3vw, 40px);
    background:
        radial-gradient(1100px 460px at 50% -10%, rgba(242,107,55,.16), transparent 62%),
        linear-gradient(180deg, rgba(242,107,55,.05), transparent 40%);
}
.site-footer-glow {
    position: absolute;
    width: 420px; height: 420px; border-radius: 50%;
    top: 40px; right: -80px;
    background: radial-gradient(circle, rgba(242,107,55,.14), transparent 70%);
    filter: blur(10px); z-index: 0; pointer-events: none;
}
.site-footer-glow-2 {
    top: auto; bottom: -160px; left: -120px; right: auto;
    background: radial-gradient(circle, rgba(59,130,246,.22), transparent 70%);
}
.site-footer .container { position: relative; z-index: 2; }

.site-footer-brand { display: inline-block; margin-bottom: 18px; }
.site-footer-brand img { filter: brightness(0) invert(1); }
.site-footer-about {
    font-size: 14.5px; line-height: 1.75;
    color: rgba(255,255,255,.70);
    max-width: 380px; margin-bottom: 18px;
}
.site-footer-social { display: flex; gap: 12px; }
.site-footer-social a {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; font-size: 18px; color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}
.site-footer-social a:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #F26B37, #ff8f66);
    border-color: transparent; color: #fff;
}

.site-footer-title {
    position: relative;
    color: #fff; font-weight: 700; font-size: 16px;
    padding-left: 16px; margin-bottom: 18px;
}
.site-footer-title::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px;
    background: linear-gradient(#F26B37, #ffb38a);
}
.site-footer-nav { list-style: none; padding: 0; margin: 0; }
.site-footer-nav li { margin-bottom: 11px; }
.site-footer-nav a {
    position: relative; color: rgba(255,255,255,.74); text-decoration: none;
    font-size: 14.5px; transition: color .2s ease, padding-left .2s ease;
}
.site-footer-nav a::before {
    content: ""; position: absolute; left: -14px; top: 50%;
    width: 0; height: 2px; border-radius: 2px; background: #F26B37;
    transition: width .25s ease; transform: translateY(-50%);
}
.site-footer-nav a:hover { color: #fff; padding-left: 4px; }
.site-footer-nav a:hover::before { width: 10px; }

.site-footer-news {
    display: flex; gap: 8px; margin: 14px 0 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px; padding: 6px;
}
.site-footer-news input {
    flex: 1; border: 0; background: transparent; color: #fff;
    padding: 10px 12px; font-size: 14px; outline: none;
}
.site-footer-news input::placeholder { color: rgba(255,255,255,.5); }
.site-footer-news button {
    flex: 0 0 auto; width: 46px; border: 0; border-radius: 9px; cursor: pointer;
    color: #fff; font-size: 18px;
    background: linear-gradient(135deg, #F26B37, #ff8f66);
    transition: transform .2s ease, filter .2s ease;
}
.site-footer-news button:hover { transform: translateY(-2px); filter: brightness(1.05); }

.site-footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer-contact a {
    color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease;
}
.site-footer-contact a:hover { color: #fff; }
.site-footer-contact i { color: #F26B37; }

.site-footer-bottom {
    margin-top: 56px; padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: center;
    font-size: 13.5px; color: rgba(255,255,255,.62);
}
.site-footer-legal a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer-legal a:hover { color: #F26B37; }

/* Newsletter toast */
.footer-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
    background: #fff; color: #16161d; padding: 12px 18px; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.2); font-size: 14px; font-weight: 600;
    border-left: 4px solid #22c55e; opacity: 0; z-index: 99999;
    transition: opacity .3s ease, transform .3s ease;
}
.footer-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 575px) {
    .site-footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Hero stats cards (standalone section) ===== */
.hero-stats-section {
    position: relative; z-index: 4;
    padding: clamp(64px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
    margin-top: 0;
}
.hero-stat-card {
    position: relative; text-align: left; padding: 30px 28px;
    border-radius: 18px; background: #fff;
    border: 1px solid rgba(0, 46, 137, .08);
    box-shadow: 0 18px 44px rgba(16, 24, 64, .08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.hero-stat-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #002E89, #F26B37);
}
.hero-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(16, 24, 64, .14);
    border-color: rgba(242, 107, 55, .35);
}
.hero-stat-num {
    font-size: clamp(42px, 5vw, 58px); font-weight: 800; line-height: 1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #002E89 0%, #1d4ed8 55%, #F26B37 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-label {
    margin-top: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: #6b7280;
}

/* ===== Hero watch (overview play) ===== */
.hero-watch {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 26px; text-decoration: none; color: #fff;
    font-size: 14px; font-weight: 600; letter-spacing: .2px;
    transition: opacity .2s ease;
}
.hero-watch:hover { opacity: .82; }
.hero-watch-ic {
    width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff; font-size: 18px;
    background: linear-gradient(135deg, #F26B37, #ff8f66);
    box-shadow: 0 10px 24px rgba(242, 107, 55, .45);
}

/* ===== How It Works — image ===== */
.how-works-section .section-heading.translateY10 img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(4, 22, 63, .18);
}
@media (max-width: 575px) {
    .how-works-section .section-heading.translateY10 img { height: 370px; }
}

/* ===== Stats — pure editorial (after How It Works, blogs-style dark bg) ===== */
.stats-advanced-section { position: relative; overflow: hidden; }
.stats-advanced-section .container { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 991px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-pure { position: relative; text-align: center; padding: 18px 24px; }
.stat-pure + .stat-pure { border-left: 0; }
.stat-ic {
  width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#F26B37,#ff8a5b); color: #fff; font-size: 26px; margin: 0 auto 14px;
}
.stat-index {
  display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.stat-num {
  font-size: clamp(56px, 6.4vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -2px; color: #fff;
}
.stat-num .counter { color: #fff; display: inline; }
.stat-label {
  margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}

/* ===== Who It's For — deck/tab switch ===== */
.features-section.who-section {
  position: relative; z-index: 2;
  margin-top: clamp(-32px, -2.5vw, -16px);
  margin-bottom: clamp(48px, 8vh, 96px);
  background: var(--bg, #fff);
}
.features-section.who-section > .container { padding-top: 0; padding-bottom: clamp(8px, 1.5vw, 16px); }
.who-tabs { position: relative; }
.who-tabs > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.who-tab-labels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.who-tab-label {
  cursor: pointer; user-select: none; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--Border, rgba(0,46,137,.25)); color: var(--text, #1c2540); font-weight: 600; font-size: 14px;
  background: rgba(127,127,127,.08); transition: all .2s ease;
}
.who-tab-label:hover { border-color: rgba(242,107,55,.7); color: var(--text, #1c2540); }
#whoTab0:checked ~ .who-tab-labels label[for="whoTab0"],
#whoTab1:checked ~ .who-tab-labels label[for="whoTab1"],
#whoTab2:checked ~ .who-tab-labels label[for="whoTab2"] {
  background: linear-gradient(135deg,#F26B37,#ff8a5b); border-color: transparent; color:#fff;
}
.who-panels { position: relative; }
.who-panel { display: none; }
#whoTab0:checked ~ .who-panels .who-panel:nth-child(1),
#whoTab1:checked ~ .who-panels .who-panel:nth-child(2),
#whoTab2:checked ~ .who-panels .who-panel:nth-child(3) { display: block; animation: whoSlide .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes whoSlide { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }

/* Make the card image match the height of its content column */
.who-section .pin-card .row { align-items: stretch; }
.who-section .featured-img { height: 100%; align-self: stretch; }
.who-section .featured-img img { height: 100%; min-height: 280px; }

/* Keep the Get Started cards vertically centred against the How It Works image */
.how-works-section > .container > .row { align-items: center; }
.how-works-section > .container > .row .section-heading.translateY10 { transform: none; }

/* Small screens: turn the Who It's For carousel into normal stacked cards
   (image before text) and stop the decorative shape from covering the image */
@media (max-width: 767.98px) {
  .who-tab-labels { display: none; }
  .who-panel { display: block !important; animation: none !important; }
  .who-panels { display: flex; flex-direction: column; gap: 1.5rem; }
  .who-section .pin-card .row { flex-direction: column; }

  .featured-img:after { display: none; }

  /* Solutions: always show image before text so two images never sit together */
  .features-section .row { flex-direction: column; }
  .features-section .feat-img-col { order: 1; }
  .features-section .feat-content-col { order: 2; }
}

.pin-card {
  background: #fff; border-radius: 26px; border: 1px solid rgba(0,46,137,.08); padding: 20px 24px; overflow: hidden;
}
.stack-tag {
  display: inline-block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, #002E89); font-weight: 700; margin-bottom: 10px;
}
.pin-card .featured-content h3 { font-size: clamp(20px, 2.6vw, 27px); margin-bottom: .6rem; }
.pin-card .featured-content p { margin-bottom: .9rem; }
.pin-card .featured-list { margin-bottom: .9rem; }
.pin-card .featured-list li { line-height: 1.45; }
.pin-card .featured-img img.stack-img { width: 100%; height: clamp(260px, 34vh, 380px); object-fit: cover; border-radius: 18px; }

@media (max-width: 767px) {
  .pin-card { padding: 28px 22px; }
  .pin-card .featured-img img.stack-img { height: 220px; }
  .how-works-section .how-works-section { padding-top: 8px; padding-bottom: 0; }
  .how-works-section .row { --bs-gutter-y: 1.25rem; }
  .get-started-btn { margin-bottom: 0; }
  section.cta-section { padding-bottom: 36px; margin-bottom: 22px; }
}

/* ===== CTA — Get Started Now (half-logo badge) ===== */
.cta-getstarted {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0b1020 0%, #111733 55%, #0b1020 100%);
  padding: clamp(72px, 9vw, 130px) 0 clamp(96px, 11vw, 150px);
}
.cta-get-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(28px); opacity: .5; }
.cta-get-glow-1 { width: 420px; height: 420px; top: -140px; right: -80px; background: radial-gradient(circle, rgba(27,63,160,.5), transparent 70%); }
.cta-get-glow-2 { width: 360px; height: 360px; bottom: -140px; left: -80px; background: radial-gradient(circle, rgba(242,107,55,.32), transparent 70%); }
.cta-getstarted .container { position: relative; z-index: 2; }
.cta-getstarted .subtitle { background: var(--accent-050, rgba(0,46,137,.1)); border-color: var(--accent-100, rgba(0,46,137,.22)); color: var(--accent, #002E89); }
.cta-getstarted .subtitle::before { content: none; }
.cta-get-title { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.cta-get-text { color: rgba(255,255,255,.72); font-size: 16px; margin-top: 14px; margin-bottom: 30px; }
.cta-logo {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 130px; height: 70px;
  border-radius: 130px 130px 0 0;
  background: #fff;
  border: 7px solid #0b1020; border-bottom: 0;
  overflow: hidden;
  display: grid; place-items: end center;
  z-index: 5;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
}
.cta-logo img { width: 64%; height: auto; display: block; margin-bottom: -6px; }

/* ===== Service card — bottom-right corner half-circle brand badge ===== */
.service-card { position: relative; overflow: hidden; }
.service-card .service-logo {
    position: absolute; right: -20px; bottom: -20px;
    width: 56px; height: 56px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1d4ed8, #002E89 70%);
    overflow: hidden; z-index: 2;
    box-shadow: 0 8px 18px rgba(0,46,137,.28);
}
.service-card .service-logo img {
    position: absolute; right: 13px; bottom: 13px;
    width: 26px; height: auto; display: block;
    filter: brightness(0) invert(1);
}

/* =====================================================================
   ABOUT PAGE — advanced restyle (homepage theme language)
   ===================================================================== */
.about-page { position: relative; }

.about-page .about-section { padding: clamp(56px, 8vw, 112px) 0 clamp(28px, 4vw, 56px); }
.about-page .about-img,
.about-section .about-img {
    position: relative; border-radius: 24px;
    box-shadow: 0 30px 70px rgba(4,22,63,.18);
    height: 100%;
}
.about-page .about-img img,
.about-section .about-img img {
    width: 100%; height: 100%; min-height: 320px; object-fit: cover;
    border-radius: 24px; display: block;
}

.about-page .about-img::after,
.about-section .about-img::after {
    content: ""; position: absolute; inset: 0; border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(0,46,137,.10); pointer-events: none;
}
@media (min-width: 768px) {
    .about-page .about-img,
    .about-section .about-img { height: 100%; }
    .about-page .about-img img,
    .about-section .about-img img {
        position: absolute; inset: 0;
        width: 100%; height: 100%; min-height: 0;
        object-fit: cover;
    }
}
.about-page .section-heading h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }

.about-page .about-list { margin: 0; }
.about-page .about-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 9px 0; font-weight: 600; color: var(--Heading, #0b1020);
}
.about-page .about-list svg {
    flex: 0 0 auto; width: 26px; height: 26px; padding: 5px; box-sizing: border-box;
    border-radius: 50%; background: rgba(242,107,55,.14);
}
.about-page .about-list li svg { margin-top: 2px; }

/* Architecture tiers — blog-section (insights-section) theme */
.about-page .integration-section {
    position: relative; overflow: hidden;
    padding: clamp(56px, 8vw, 112px) 0 clamp(24px, 4vw, 48px);
}
.about-page .integration-section .divider,
.about-page .integration-section .divider-sm { display: none; }
.about-page .integration-section .section-heading h2 { color: #fff; }
.about-page .integration-section .section-heading .subtitle {
    background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.20); color: #fff;
}
.about-page .integration-section .row { counter-reset: tier; }

/* glass tier cards */
.about-page .integration-section .tier-card {
    position: relative; height: 100%;
    counter-increment: tier;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px; overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 44px rgba(4,22,63,.22);
    transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .4s ease, box-shadow .4s ease;
}
.about-page .integration-section .tier-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #002E89, #F26B37); z-index: 2;
}
.about-page .integration-section .tier-card:hover {
    transform: translateY(-8px);
    border-color: rgba(242,107,55,.55);
    box-shadow: 0 32px 64px rgba(4,22,63,.34);
}
.about-page .integration-section .tier-img { overflow: hidden; aspect-ratio: 16 / 10; }
.about-page .integration-section .tier-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.about-page .integration-section .tier-card:hover .tier-img img { transform: scale(1.06); }
.about-page .integration-section .tier-body { padding: 22px 22px 26px; }
.about-page .integration-section .tier-body::before {
    content: "0" counter(tier);
    display: block; margin-bottom: 10px;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #F26B37;
}
.about-page .integration-section .tier-body h5 { font-size: 1.1rem; margin: 0 0 8px; color: #fff; }
.about-page .integration-section .tier-body p { color: rgba(255,255,255,.72); font-size: 14px; margin: 0; }

/* Story */
.about-page .story-section { padding: clamp(20px, 2.5vw, 36px) 0 clamp(20px, 2.5vw, 36px); }
.about-page .story-content .section-heading h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; }
.about-page .story-content .col-md-6 img,
.about-page .story-content .d-flex.flex-column img {
    width: 100%; border-radius: 18px; box-shadow: 0 20px 44px rgba(4,22,63,.14);
}
.about-page .story-content .about-list li { color: var(--Heading, #0b1020); }

/* Cool facts → dark editorial band (home "By the numbers" language) */
.about-page .cool-facts-wrap {
    position: relative; overflow: hidden; margin-top: 8px;
    padding: clamp(34px, 5vw, 56px) clamp(20px, 4vw, 48px);
    border-radius: 26px;
    background:
        radial-gradient(800px 380px at 85% -10%, rgba(242,107,55,.16), transparent 60%),
        linear-gradient(150deg, #002E89 0%, #04236b 60%, #002E89 100%);
    box-shadow: 0 30px 70px rgba(4,22,63,.22);
}
.about-page .cool-facts-wrap::before {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(242,107,55,.18), transparent 70%);
    filter: blur(10px); z-index: 0; pointer-events: none;
}
.about-page .cool-facts-wrap .row { position: relative; z-index: 2; }
.about-page .cool-facts { text-align: center; padding: 14px 10px; background: transparent; height: auto; border-radius: 0; }
.about-page .cool-facts-wrap [class*="col-"]:not(:first-child) .cool-facts {
    border-left: 1px solid rgba(255,255,255,.14);
}
.about-page .cool-facts h2 {
    font-size: clamp(40px, 5vw, 60px); font-weight: 300; letter-spacing: -2px;
    line-height: 1; margin: 0; color: #fff;
}
.about-page .cool-facts h2 .counter { color: #fff; }
.about-page .cool-facts p {
    color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 600;
    letter-spacing: .6px; text-transform: uppercase; margin: 12px 0 0;
}
@media (max-width: 767px) {
    .about-page .cool-facts-wrap [class*="col-"]:not(:first-child) .cool-facts {
        border-left: 0; border-top: 1px solid rgba(255,255,255,.14); margin-top: 18px; padding-top: 22px;
    }
}

