:root {
    --ink: #102e5d;
    --navy: #102d49;
    --violet: #653ca8;
    --purple-dark: #442277;
    --aqua: #27a8bf;
    --sky-soft: #f0f6fc;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html {
        overflow-x: hidden;
    }
}

@media (min-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffffff;
    color: #334155;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: clip;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

*, *::before, *::after {
    box-sizing: border-box;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}


.site-header {
    width: 100%;
}

.linkedin-header-btn {
    transform-style: preserve-3d;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.linkedin-header-btn:hover {
    background-color: #653ca8;
    color: #ffffff;
    transform: perspective(600px) rotateY(180deg) translateY(-2px);
    box-shadow: 0 10px 20px rgba(101, 60, 168, 0.25);
}

.linkedin-header-btn:hover > * {
    transform: rotateY(180deg);
}

.font-display {
    font-family: 'Sora', sans-serif;
}

/* Nav links */
.mobile-drawer { position: fixed; z-index: 40; top: 76px; right: 0; width: min(86vw, 360px); max-height: calc(100dvh - 76px); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; border-left: 1px solid #e8eef5; transform: translateX(105%); opacity: 0; transition: transform .32s ease, opacity .32s ease; }
.mobile-drawer.is-open { transform: translateX(0); opacity: 1; }

@media (max-width: 1279px) {
    header > div {
        min-width: 0;
    }

    header > div > a:first-child {
        min-width: 0;
    }

    header > div > a:first-child img {
        max-width: min(68vw, 120px);
        height: auto;
        max-height: 56px;
    }
}

@media (max-width: 639px) {
    header > div {
        height: 76px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-drawer {
        top: 76px;
        max-height: calc(100dvh - 76px);
    }

    .site-content {
        padding-top: 76px;
    }
}
.nav-link {
    position: relative;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #9ca3af;
}

.nav-active {
    color: #ffffff;
}

.mobile-drawer a {
    color: #6b7280 !important;
}

.mobile-drawer a:hover,
.mobile-drawer a:focus-visible,
.mobile-drawer a.text-violet {
    color: #0284c7 !important;
}

.mobile-drawer .mobile-linkedin-btn,
.mobile-drawer .mobile-linkedin-btn:hover,
.mobile-drawer .mobile-linkedin-btn:focus-visible {
    color: #ffffff !important;
    background-color: #0877b9 !important;
}

.mobile-drawer .mobile-linkedin-btn:hover,
.mobile-drawer .mobile-linkedin-btn:focus-visible {
    background-color: #653ca8 !important;
}

.nav-active::after {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: auto;
    height: 2.5px;
    width: 24px;
    background: var(--violet);
    border-radius: 99px;
    content: '';
}

/* ✦ Mesh Gradient Hero Background with Dot Pattern */
.inner-hero-mesh {
    position: relative;
    background: radial-gradient(circle at 8% 18%, rgba(101, 60, 168, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 92% 82%, rgba(2, 132, 199, 0.1) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f8fd 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.inner-hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 46, 93, 0.07) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    pointer-events: none;
    opacity: 0.6;
}

/* ✦ Eyebrow Badges */
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 2px 10px rgba(16, 46, 93, 0.05);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #102e5d;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0284c7;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #0284c7;
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* ✦ Gradient Text Utilities */
.text-gradient-purple {
    background: linear-gradient(135deg, #102e5d 0%, #653ca8 55%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #0284c7 0%, #653ca8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ✦ Button Gradients & Shimmer */
.btn-purple-gradient {
    background: linear-gradient(90deg, #442277 0%, #60339d 100%);
    color: #ffffff;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-purple-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.btn-purple-gradient:hover::before {
    left: 125%;
}

.btn-purple-gradient:hover {
    opacity: 0.96;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(68, 34, 119, 0.3);
}

/* Secondary Button */
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #102e5d;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 1px 3px rgba(16, 46, 93, 0.04);
    transition: all 0.25s ease;
}

.btn-secondary-action:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #442277;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 46, 93, 0.08);
}

/* ✦ Interactive Cards with Multi-Glow */
.card-interactive {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card-interactive:hover {
    transform: translateY(-6px);
    border-color: rgba(101, 60, 168, 0.38);
    box-shadow: 0 20px 35px -8px rgba(16, 46, 93, 0.12), 0 0 0 1px rgba(101, 60, 168, 0.08);
}

/* Colored Icon Box Accents */
.icon-box-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.icon-box-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #653ca8;
    box-shadow: 0 4px 12px rgba(101, 60, 168, 0.15);
}

.icon-box-emerald {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.icon-box-amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

/* ✦ Image Layering & Ambient Backdrops */
.image-glow-wrapper {
    position: relative;
    z-index: 1;
}

.image-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, rgba(101, 60, 168, 0.2), rgba(2, 132, 199, 0.22));
    border-radius: 1.25rem;
    filter: blur(14px);
    opacity: 0.75;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.image-glow-wrapper:hover::before {
    opacity: 1;
}

/* Our Heritage & Mission entrance animation */
.heritage-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.heritage-reveal-left {
    transform: translateX(-34px);
}

.heritage-reveal-right {
    transform: translateX(34px);
    transition-delay: 0.14s;
}

.heritage-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered entrance for the Our Story metric cards */
.story-stat {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.heritage-reveal.is-visible .story-stat {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.heritage-reveal.is-visible .story-stat-1 { transition-delay: 0.18s; }
.heritage-reveal.is-visible .story-stat-2 { transition-delay: 0.3s; }
.heritage-reveal.is-visible .story-stat-3 { transition-delay: 0.42s; }

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .heritage-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .story-stat {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ✦ Glass Floating Chip */
.glass-chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 0.85rem;
    padding: 0.55rem 0.95rem;
    box-shadow: 0 12px 28px rgba(16, 46, 93, 0.14);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

/* Counter numbers */
.counter-number {
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

/* Process connector lines & step dots */
.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.step-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.step-highlight {
    border-color: #0284c7;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.16);
    transform: translateY(-5px);
}

.step-card.step-highlight .step-dot {
    background: linear-gradient(135deg, #653ca8 0%, #442277 100%);
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(101, 60, 168, 0.22);
}

/* Role checklist transition */
.role-check-item {
    transition: transform 0.2s ease, background-color 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
}

.role-check-item:hover {
    transform: translateX(4px);
    background-color: #f8fafc;
}

/* ✦ Rich CTA Banner */
.cta-banner {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(101, 60, 168, 0.07) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
                linear-gradient(135deg, #f0f6fc 0%, #ffffff 50%, #eff5fb 100%);
    border: 1px solid #d4e3f2;
    border-radius: 1.25rem;
    box-shadow: 0 14px 40px rgba(16, 46, 93, 0.06);
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 60, 168, 0.1) 0%, rgba(2, 132, 199, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.cta-floating-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.55rem 0.9rem;
    box-shadow: 0 12px 28px rgba(16, 46, 93, 0.14);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 10;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

@media (min-width: 640px) {
    .cta-floating-badge {
        bottom: -10px;
        left: -10px;
    }
}

/* Clean Form inputs */
.form-control {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #653ca8;
    box-shadow: 0 0 0 3px rgba(101, 60, 168, 0.14);
}

.form-control.is-invalid {
    border-color: #f43f5e !important;
    background-color: #fff1f2 !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16) !important;
}

.form-control.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
}

.field-error-msg {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e11d48;
    line-height: 1.25;
    animation: fadeInError 0.2s ease-in-out;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .card-interactive:hover,
    .role-check-item:hover,
    .btn-purple-gradient:hover,
    .btn-secondary-action:hover {
        transform: none !important;
    }
    .pulse-dot::after {
        animation: none !important;
    }
}

/* ✦ Floating Action Buttons (Call & Scroll Up) */
.floating-actions-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .floating-actions-container {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.85rem;
    }
}

.floating-btn {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    user-select: none;
}

@media (min-width: 640px) {
    .floating-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.floating-btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.floating-btn-call:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.65);
}

.floating-btn-call .pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.35);
    animation: floatingPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.floating-btn-scroll {
    background: linear-gradient(135deg, #653ca8 0%, #102e5d 100%);
    box-shadow: 0 8px 24px rgba(101, 60, 168, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.floating-btn-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-btn-scroll:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(101, 60, 168, 0.65);
}

.floating-tooltip {
    position: absolute;
    right: calc(100% + 0.85rem);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(16, 46, 93, 0.95);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ✦ Index Page Utilities */
.hero-bg {
    background: radial-gradient(circle at 15% 35%, rgba(201,225,249,.55), transparent 27%), linear-gradient(105deg,#f8fcff 0%,#eef7fd 53%,#fff 100%);
}
.section-bg {
    background: linear-gradient(105deg,#f8fbff,#eef6fc);
}
.purple-grad {
    background: linear-gradient(90deg,#4e248d,#6f3ab0);
}
.glass {
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(8px);
}
.script-font {
    font-family: "Brush Script MT", "Segoe Script", cursive;
}
.font-handwriting {
    font-family: 'Caveat', 'Brush Script MT', 'Segoe Script', cursive;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}
.hero-primary-btn {
    background-color: #442277;
}
.hero-primary-btn:hover {
    background-color: #32185d;
}
.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#e8f7ff,#e8ddff);
}
.hero-cut {
    clip-path: polygon(23% 0, 100% 0, 100% 100%, 0 100%, 0 78%);
}
.clip-slanted {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* Reliable hero animations for every page, with AOS as an enhancement. */
.inner-hero-mesh .grid > div:first-child,
.hero-copy {
    animation: heroFadeFromLeft 1s cubic-bezier(.22, 1, .36, 1) both;
}

.inner-hero-mesh .grid > div:nth-child(2),
.hero-image {
    animation: heroFadeFromRight 1.1s cubic-bezier(.22, 1, .36, 1) .12s both;
}

@keyframes heroFadeFromLeft {
    from { opacity: 0; transform: translateX(-42px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeFromRight {
    from { opacity: 0; transform: translateX(42px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile hero layout: show the visual before the copy on every page. */
@media (max-width: 767px) {
    .testimonial-slider {
        overflow: hidden;
        width: 100%;
    }

    .testimonial-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .testimonial-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
    }

    .home-cta {
        padding-bottom: 5px !important;
    }

    .inner-hero-mesh .grid {
        display: flex;
        flex-direction: column;
    }

    .inner-hero-mesh .grid > div:first-child {
        order: 2;
    }

    .inner-hero-mesh .grid > div:nth-child(2) {
        order: 1;
    }

    .inner-hero-mesh .grid > div:nth-child(2),
    .hero-image {
        animation: heroFadeFromRight 1.45s cubic-bezier(.22, 1, .36, 1) .1s both;
    }

    .inner-hero-mesh .grid > div:first-child,
    .hero-copy {
        animation: heroFadeFromLeft 1.35s cubic-bezier(.22, 1, .36, 1) .35s both;
    }

    .hero-image {
        order: 1;
        margin-top: 1.5rem;
    }

    .hero-copy {
        order: 2;
    }

    .hero-floating-text {
        display: none;
    }

    .hero-image .clip-slanted {
        clip-path: none;
        border-radius: 1.5rem;
    }

    .hero-image img {
        border-radius: 1.5rem;
    }

    /* Keep mobile hero content visible even if the AOS CDN is slow/unavailable. */
    .inner-hero-mesh .grid > div,
    .hero-copy,
    .hero-image,
    section.relative.bg-white[data-aos] {
        opacity: 1;
    }
}

@keyframes mobileHeroImageIn {
    from { opacity: 0; transform: translateY(-18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mobileHeroCopyIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-cut {
        clip-path: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inner-hero-mesh .grid > div,
    .hero-image,
    .hero-copy {
        animation: none;
    }
}
