/*
 * Modern UI layer for the marketing site.
 * Loaded after style.css on every page of home.layouts.structure EXCEPT hosting / hosting-info / payment.
 * Design and motion only: no content or layout-flow changes.
 */

@property --spin-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    --grad-brand: linear-gradient(135deg, #0d5bd8 0%, #3b82f6 48%, #13c4d9 100%);
    --grad-glow: linear-gradient(90deg, #13c4d9, #0d5bd8, #ffbe5c, #13c4d9);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ring: 0 0 0 1px rgba(13, 91, 216, 0.16);
    --shadow-glow: 0 0 0 1px rgba(13, 91, 216, 0.14), 0 30px 60px -28px rgba(13, 91, 216, 0.42);
}

/* ---------- Base ---------- */
html {
    scrollbar-color: #3b82f6 #e8f0fb;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e8f0fb;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #e8f0fb;
    border-radius: 10px;
    background: linear-gradient(180deg, #0d5bd8, #13c4d9);
}

.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(13, 91, 216, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.site-body h2 {
    line-height: 1.16;
}

.site-body a:focus-visible,
.site-body .btn:focus-visible,
.site-body button:focus-visible,
.site-body .accordion-button:focus-visible {
    outline: 3px solid rgba(19, 196, 217, 0.65);
    outline-offset: 3px;
}

/* Scroll progress bar (element injected by modern.js) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    height: 3px;
    pointer-events: none;
    background: var(--grad-glow);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(19, 196, 217, 0.55);
    transform: scaleX(var(--progress, 0));
    transform-origin: 0 50%;
    animation: line-flow 5s linear infinite;
}

/* ---------- Buttons ---------- */
/* .back-to-top is also .btn-primary but must stay position: fixed */
.btn-primary:not(.back-to-top),
.btn-hero-cta,
.btn-newsletter-cta,
.nav-link-cta,
.dp-btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary:not(.back-to-top)::after,
.btn-hero-cta::after,
.btn-newsletter-cta::after,
.navbar .navbar-nav .nav-link-cta::after,
.dp-btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s var(--ease-out);
}

.btn-primary:not(.back-to-top):hover::after,
.btn-hero-cta:hover::after,
.btn-newsletter-cta:hover::after,
.navbar .navbar-nav .nav-link-cta:hover::after,
.dp-btn-primary:hover::after {
    left: 130%;
}

.btn-primary:hover {
    box-shadow: 0 22px 42px -20px rgba(13, 91, 216, 0.8);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn i {
    transition: transform 0.35s var(--ease-spring);
}

.btn:hover i {
    transform: scale(1.15) rotate(-6deg);
}

/* ---------- Header ---------- */
.site-navbar {
    position: relative;
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(8, 22, 52, 0.55), rgba(8, 22, 52, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 48px -30px rgba(4, 18, 45, 0.6);
}

.site-navbar::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(19, 196, 217, 0.85), rgba(255, 190, 92, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-header.is-sticky .site-navbar::before {
    opacity: 1;
}

.site-header.is-sticky .site-navbar {
    background: linear-gradient(180deg, rgba(5, 14, 32, 0.92), rgba(10, 30, 68, 0.84));
}

.site-brand-logo {
    transition: transform 0.45s var(--ease-spring), filter 0.3s ease;
}

.site-brand:hover .site-brand-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(19, 196, 217, 0.45));
}

.navbar .navbar-nav .nav-link:not(.dropdown-toggle):not(.nav-link-cta)::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.5rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #13c4d9, #ffbe5c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.navbar .navbar-nav .nav-link:not(.dropdown-toggle):not(.nav-link-cta):hover::after,
.navbar .navbar-nav .nav-link.active:not(.dropdown-toggle):not(.nav-link-cta)::after {
    transform: scaleX(1);
}

/* Critical CSS sizes/rotates this box for a border caret; style.css swaps in an icon glyph, so reset the box */
.navbar .dropdown-toggle::after {
    display: inline-block;
    width: auto;
    height: auto;
    transform: none;
    transition: transform 0.35s var(--ease-out);
}

.navbar .dropdown-toggle[aria-expanded="true"]::after,
.navbar .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.nav-dropdown.show {
    animation: dropdown-in 0.38s var(--ease-out) both;
}

.nav-dropdown .dropdown-item {
    position: relative;
    transition: background 0.25s ease, color 0.25s ease, padding 0.3s var(--ease-out);
}

.nav-dropdown .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--grad-brand);
    transform: translateY(-50%);
    transition: height 0.3s var(--ease-out);
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item.active {
    padding-left: 1.25rem;
}

.nav-dropdown .dropdown-item:hover::before,
.nav-dropdown .dropdown-item.active::before {
    height: 60%;
}

.nav-link-cta {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 30px -18px rgba(19, 196, 217, 0.9);
}

.nav-link-cta:hover {
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    /* The opened menu pushes the hero down, so translucent glass would sit over the light page */
    .site-navbar,
    .site-header.is-sticky .site-navbar {
        background: linear-gradient(180deg, rgba(6, 18, 44, 0.96), rgba(10, 32, 74, 0.94));
    }

    .navbar-collapse.show .site-nav-links > *,
    .navbar-collapse.collapsing .site-nav-links > * {
        animation: nav-item-in 0.45s var(--ease-out) backwards;
    }

    .site-nav-links > *:nth-child(2) { animation-delay: 0.04s !important; }
    .site-nav-links > *:nth-child(3) { animation-delay: 0.08s !important; }
    .site-nav-links > *:nth-child(4) { animation-delay: 0.12s !important; }
    .site-nav-links > *:nth-child(5) { animation-delay: 0.16s !important; }
    .site-nav-links > *:nth-child(6) { animation-delay: 0.2s !important; }
    .site-nav-links > *:nth-child(7) { animation-delay: 0.24s !important; }
    .site-nav-links > *:nth-child(8) { animation-delay: 0.28s !important; }
}

/* ---------- Hero ---------- */
.hero-shell {
    isolation: isolate;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(37, 99, 235, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(14, 116, 144, 0.55) 0%, transparent 50%),
        linear-gradient(160deg, #061637 0%, #0a2f7f 52%, #0d4ab5 100%);
    border-bottom: 0;
    border-bottom-left-radius: clamp(24px, 4vw, 48px);
    border-bottom-right-radius: clamp(24px, 4vw, 48px);
    box-shadow: 0 30px 60px -40px rgba(6, 22, 55, 0.7);
}

.hero-shell::before {
    animation: grid-drift 40s linear infinite;
}

.hero-shell::after {
    content: "";
    position: absolute;
    top: -18rem;
    right: -12rem;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(19, 196, 217, 0.32), transparent 62%);
    animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero-container::before {
    content: "";
    position: absolute;
    left: -12rem;
    bottom: -16rem;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 190, 92, 0.18), transparent 65%);
    animation: orb-drift-alt 18s ease-in-out infinite alternate;
}

/* backwards fill so the CTA's hover lift still works after the entrance */
.hero-copy > :not(.hero-slogan) {
    animation: hero-rise 0.9s var(--ease-out) backwards;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }

.hero-title .text-warning {
    background: linear-gradient(90deg, #ffd27a, #ff9f5a, #ffe7a3, #ffd27a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    animation: text-shimmer 6s linear infinite;
}

.btn-hero-cta {
    padding: 0.85rem 1.7rem !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 40px -18px rgba(255, 255, 255, 0.55);
}

.btn-hero-cta:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 18px 40px -18px rgba(19, 196, 217, 0.8);
}

.hero-breadcrumb-wrap .breadcrumb {
    padding: 0.45rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-media-frame {
    position: relative;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 34px 80px -30px rgba(2, 10, 28, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform 0.5s var(--ease-out);
    transform-style: preserve-3d;
    /* backwards fill: lets modern.js tilt the frame once the entrance ends */
    animation: hero-media-in 1.1s var(--ease-out) 0.15s backwards;
}

.hero-media-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: conic-gradient(from var(--spin-angle), transparent 0deg, rgba(19, 196, 217, 0.9) 60deg, transparent 120deg, rgba(255, 190, 92, 0.7) 220deg, transparent 300deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-angle 7s linear infinite;
}

.hero-image {
    animation: float-y 6s ease-in-out infinite;
}

/* ---------- Section badges & panels ---------- */
.section-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #13c4d9;
    animation: badge-ping 2.4s ease-out infinite;
}

.section-badge-light::before {
    background: #67f0a9;
}

.about-copy-panel,
.service-intro-panel,
.testimonial-intro-panel,
.faq-shell,
.trust-shell,
.legal-shell {
    border: 1px solid rgba(13, 91, 216, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.about-visual-card,
.feature-visual-card,
.testimonial-carousel-shell {
    position: relative;
}

.about-visual-card::before,
.feature-visual-card::before,
.testimonial-carousel-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: conic-gradient(from var(--spin-angle), #0d5bd8, #13c4d9, #ffbe5c, #3b82f6, #0d5bd8);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    animation: spin-angle 8s linear infinite;
}

.about-img img {
    transition: transform 0.8s var(--ease-out);
}

.about-visual-card:hover .about-img img,
.about-visual-card:hover img {
    transform: scale(1.025);
}

.about-check-item {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}

.about-check-item:hover {
    box-shadow: var(--shadow-glow);
}

.about-check-icon,
.trust-check-icon,
.trust-pillar-icon,
.feature-check-circle,
.testimonial-avatar {
    transition: transform 0.45s var(--ease-spring);
}

.about-check-item:hover .about-check-icon,
.trust-check:hover .trust-check-icon,
.trust-pillar:hover .trust-pillar-icon,
.feature-check-row:hover .feature-check-circle {
    transform: rotate(-10deg) scale(1.12);
}

/* ---------- Interactive cards ---------- */
.trust-check,
.trust-pillar,
.trust-proof-stat,
.svc-card,
.svc-step,
.svc-deliverable,
.contact-proof-card,
.legal-card,
.legal-summary-card,
.dp-why-item {
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.3s ease;
}

.trust-check:hover,
.trust-pillar:hover,
.svc-card:hover,
.svc-step:hover,
.svc-deliverable:hover,
.contact-proof-card:hover,
.legal-card:hover,
.legal-summary-card:hover,
.dp-why-item:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 91, 216, 0.2);
    box-shadow: var(--shadow-glow);
}

.trust-proof-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
}

/* .site-body prefix: trust styles are inlined later in <body> and would reset background-size */
.site-body .trust-proof-panel {
    position: relative;
    overflow: hidden;
    background-size: 180% 180%;
    animation: gradient-pan 16s ease-in-out infinite alternate;
}

/* Cursor spotlight (class + --mx/--my set by modern.js on fine pointers) */
.has-spotlight {
    position: relative;
}

.has-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(19, 196, 217, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.has-spotlight:hover::after {
    opacity: 1;
}

/* Service cards */
.service-card {
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.3s ease;
}

.service-card::before {
    background-size: 180% 180%;
    animation: gradient-pan 10s ease-in-out infinite alternate;
}

.service-card .service-icon {
    transition: transform 0.5s var(--ease-spring), background 0.35s ease, color 0.35s ease;
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.1);
}

.service-card a.btn::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.45rem;
    transition: transform 0.35s var(--ease-out);
}

.service-card:hover a.btn::after {
    transform: translateX(5px);
}

/* Digital product cards (home section + /digital-products) */
.site-body .dp-card {
    border-radius: 18px;
    border-color: rgba(13, 91, 216, 0.1);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

.site-body .dp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 60px -30px rgba(15, 23, 42, 0.45);
}

.site-body .dp-card-banner {
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
}

.site-body .dp-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.9s var(--ease-out);
}

.site-body .dp-card:hover .dp-card-banner::after {
    transform: translateX(100%);
}

.site-body .dp-card-icon {
    border-radius: 14px;
    transition: transform 0.5s var(--ease-spring);
}

.site-body .dp-card:hover .dp-card-icon {
    transform: rotate(-10deg) scale(1.1);
}

.site-body .dp-btn-primary {
    border-radius: 12px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, opacity 0.3s ease;
}

.site-body .dp-btn-primary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -16px rgba(15, 23, 42, 0.6);
}

.site-body .dp-chip {
    transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.site-body .dp-card:hover .dp-chip {
    background: #eef4ff;
}

.site-body .digital-product-section {
    background:
        radial-gradient(circle at 0% 0%, rgba(19, 196, 217, 0.1), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(13, 91, 216, 0.08), transparent 30%),
        linear-gradient(180deg, #f6f9fe 0%, #eef4fc 100%) !important;
}

/* ---------- Feature (Why choose us) ---------- */
.feature-section {
    background-size: 180% 180%;
    animation: gradient-pan 18s ease-in-out infinite alternate;
}

.feature-section::before {
    animation: orb-drift 16s ease-in-out infinite alternate;
}

.feature-check-row {
    transition: transform 0.4s var(--ease-out), background 0.3s ease;
}

.feature-stat-box {
    transition: transform 0.45s var(--ease-out), background 0.3s ease;
}

.feature-stat-box > i {
    animation: float-y 5s ease-in-out infinite;
}

.feature-image {
    animation: float-y 7s ease-in-out infinite;
}

/* ---------- FAQ ---------- */
.accordion .accordion-item {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.accordion .accordion-button {
    transition: background 0.35s ease, color 0.35s ease;
}

.accordion .accordion-button.collapsed:hover {
    background: #f4f8ff;
    color: var(--primary);
}

.accordion .accordion-button::after {
    transition: transform 0.4s var(--ease-spring), filter 0.3s ease;
}

.accordion .accordion-button:not(.collapsed) {
    background-size: 180% 180%;
    animation: gradient-pan 8s ease-in-out infinite alternate;
}

.accordion-collapse.collapsing .accordion-body,
.accordion-collapse.show .accordion-body {
    animation: fade-down 0.45s var(--ease-out) both;
}

/* ---------- Testimonials ---------- */
.testimonial-item.enhanced {
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.testimonial-quote-mark {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
}

.testimonial-avatar {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(19, 196, 217, 0.35);
}

.testimonial-item.enhanced:hover .testimonial-avatar {
    transform: rotate(-6deg) scale(1.06);
}

.testimonial-stars i {
    animation: star-twinkle 3s ease-in-out infinite;
}

.testimonial-stars i:nth-child(2) { animation-delay: 0.15s; }
.testimonial-stars i:nth-child(3) { animation-delay: 0.3s; }
.testimonial-stars i:nth-child(4) { animation-delay: 0.45s; }
.testimonial-stars i:nth-child(5) { animation-delay: 0.6s; }

/* ---------- Newsletter / Quick inquiry ---------- */
.newsletter-panel {
    background-size: 180% 180%;
    animation: gradient-pan 14s ease-in-out infinite alternate;
}

.newsletter-panel::before {
    animation: orb-drift 12s ease-in-out infinite alternate;
}

.newsletter-panel::after {
    animation: orb-drift-alt 15s ease-in-out infinite alternate;
}

.btn-newsletter-cta {
    padding: 0.85rem 1.7rem !important;
    border-radius: 999px !important;
}

/* ---------- Forms & modal ---------- */
.form-control,
.form-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-control:hover {
    border-color: rgba(13, 91, 216, 0.28);
}

.form-control:focus {
    background: #ffffff;
    border-color: rgba(13, 91, 216, 0.55);
    box-shadow: 0 0 0 4px rgba(19, 196, 217, 0.14), 0 12px 24px -18px rgba(13, 91, 216, 0.6);
}

.form-floating > .form-control {
    border-radius: 16px;
}

.form-floating > label {
    color: var(--muted);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out), color 0.2s ease;
}

.form-floating > .form-control:focus ~ label {
    color: var(--primary);
}

.modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal-backdrop.show {
    opacity: 0.6;
}

.modal-header {
    background-size: 180% 180%;
    animation: gradient-pan 10s ease-in-out infinite alternate;
}

/* ---------- Footer ---------- */
.footer {
    border-top-left-radius: clamp(24px, 4vw, 48px);
    border-top-right-radius: clamp(24px, 4vw, 48px);
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    pointer-events: none;
    background: var(--grad-glow);
    background-size: 200% 100%;
    animation: line-flow 6s linear infinite;
}

.footer-panel {
    transition: transform 0.45s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.footer-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 196, 217, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.footer .btn.btn-social {
    transition: transform 0.4s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.footer .btn.btn-social:hover {
    transform: translateY(-3px) rotate(-6deg);
    color: #ffffff !important;
    border-color: transparent;
    background: var(--grad-brand);
}

.footer .footer-menu a {
    position: relative;
}

.footer .footer-menu a:hover,
.footer .copyright a:hover {
    color: #ffffff !important;
}

/* ---------- Floating buttons ---------- */
.whatsapp-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, 0.6);
    pointer-events: none;
    animation: ring-pulse 2.4s ease-out infinite;
}

.whatsapp-button,
.back-to-top.is-visible {
    transition: transform 0.35s var(--ease-spring), opacity 0.2s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover,
.back-to-top.is-visible:hover {
    transform: translateY(-4px) scale(1.05);
}

/* ---------- Scroll reveal (classes set by modern.js on below-the-fold elements only) ---------- */
.site-body .reveal-init {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
        transform 0.9s var(--ease-out) var(--reveal-delay, 0s),
        filter 0.8s var(--ease-out) var(--reveal-delay, 0s);
}

.site-body .reveal-init.fadeInUp {
    transform: translate3d(0, 40px, 0);
}

.site-body .reveal-init.slideInRight {
    transform: translate3d(40px, 0, 0);
}

.site-body .reveal-init.reveal-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ---------- Keyframes ---------- */
@keyframes hero-rise {
    from {
        opacity: 0.2;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-media-in {
    from {
        transform: perspective(900px) translateY(30px) rotateX(10deg) scale(0.94);
    }

    to {
        transform: none;
    }
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes orb-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-4rem, 3rem, 0) scale(1.12);
    }
}

@keyframes orb-drift-alt {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(5rem, -3rem, 0) scale(1.15);
    }
}

@keyframes grid-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 240px 240px;
    }
}

@keyframes gradient-pan {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@keyframes text-shimmer {
    to {
        background-position: 300% 0;
    }
}

@keyframes line-flow {
    to {
        background-position: 200% 0;
    }
}

@keyframes spin-angle {
    to {
        --spin-angle: 360deg;
    }
}

@keyframes badge-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(19, 196, 217, 0.55);
    }

    70%,
    100% {
        box-shadow: 0 0 0 7px rgba(19, 196, 217, 0);
    }
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes nav-item-in {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes star-twinkle {
    0%,
    100% {
        transform: scale(1);
        filter: none;
    }

    50% {
        transform: scale(1.18);
        filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero-media-frame {
        border-radius: 18px;
    }

    .hero-shell::after {
        width: 26rem;
        height: 26rem;
        top: -12rem;
        right: -10rem;
    }

    .site-body .reveal-init.slideInRight {
        transform: translate3d(0, 26px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-body .reveal-init {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* =====================================================================
 * Page refinements: home, about, services, contact, digital products
 * ===================================================================== */

/* Justified text leaves rivers of space in narrow columns */
.site-body .main-content p {
    text-align: left;
}

/* style.css forces every <p> to the muted colour with !important, which made this dark-panel copy unreadable */
.site-body .trust-proof-copy {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Home hero: decorative floating icon tiles around the hero image (markup only on type=home) */
.home-page .hero-shell {
    padding-bottom: 84px;
}

.hero-chip {
    position: absolute;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 18px 36px -16px rgba(2, 10, 28, 0.75);
    pointer-events: none;
    animation: chip-float 5s ease-in-out infinite;
}

.hero-chip--1 {
    top: -18px;
    left: -22px;
    color: #ffd27a;
}

.hero-chip--2 {
    top: 40%;
    right: -24px;
    color: #5eead4;
    animation-delay: -1.7s;
}

.hero-chip--3 {
    bottom: -20px;
    left: 22%;
    color: #93c5fd;
    animation-delay: -3.4s;
}

/* Service cards (home + /services) carry a faded index number; decorative, hidden from screen readers where supported */
.services-section {
    counter-reset: svc-home;
}

.service-card {
    counter-increment: svc-home;
}

.service-card::after {
    content: counter(svc-home, decimal-leading-zero);
    content: counter(svc-home, decimal-leading-zero) / "";
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(13, 91, 216, 0.08);
    pointer-events: none;
    transition: color 0.4s ease, transform 0.5s var(--ease-spring);
}

.service-card:hover::after {
    color: rgba(255, 255, 255, 0.24);
    transform: scale(1.12) rotate(-6deg);
}

/* Contact page: split card (intro panel + form) */
.contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 91, 216, 0.08);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 40px 80px -44px rgba(8, 29, 75, 0.45);
}

.contact-card-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(160deg, #071a44 0%, #0b3a9a 55%, #0d5bd8 100%);
}

.contact-card-intro::before {
    content: "";
    position: absolute;
    top: -10rem;
    right: -10rem;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 196, 217, 0.4), transparent 65%);
    animation: orb-drift 12s ease-in-out infinite alternate;
}

.contact-card-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
}

.contact-card-intro h3 {
    color: #ffffff;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    line-height: 1.22;
}

.contact-card-icons {
    display: flex;
    gap: 0.75rem;
}

.contact-card-icons span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1.3rem;
    animation: chip-float 5s ease-in-out infinite;
}

.contact-card-icons span:nth-child(2) {
    color: #5eead4;
    animation-delay: -1.6s;
}

.contact-card-icons span:nth-child(3) {
    color: #ffd27a;
    animation-delay: -3.2s;
}

.contact-card-form {
    padding: clamp(1.75rem, 4vw, 3rem);
}

.contact-card .form-control {
    border-color: rgba(13, 91, 216, 0.12);
    background-color: #f6f9fe;
}

.contact-card .form-control:focus {
    background-color: #ffffff;
}

@keyframes chip-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-4deg);
    }
}

@media (max-width: 767.98px) {
    .hero-chip {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .hero-chip--1 {
        top: -12px;
        left: -10px;
    }

    .hero-chip--2 {
        right: -10px;
    }

    .contact-card {
        border-radius: 24px;
    }
}
