/* 
 * DESIGN SYSTEM: "Precision Engineering" (Apple x Ferrari)
 * Keywords: Ceramic, Titanium, Air, Speed, Precision.
 */

:root {
    /* Apple-esque Canvas */
    --c-canvas: #F5F5F7;
    --c-surface: #FFFFFF;

    /* Brand Colors */
    --c-ruby: #C8102E;
    /* Ruby Hall Red */
    --c-ruby-light: #E63946;
    --c-accent: #0071E3;
    /* Apple Blue */
    --c-accent-hover: #0077ED;
    --c-teal: #14B8A6;
    /* Medical Teal */
    --c-teal-light: #5EEAD4;
    --c-dark: #1D1D1F;
    /* Apple Black */
    --c-grey: #4a4a4f;
    /* Improved Contrast (was #86868B) */
    --c-border: rgba(0, 0, 0, 0.08);

    /* Typography */
    --f-heading: 'Manrope', sans-serif;
    --f-body: 'Inter', sans-serif;

    /* Properties */
    --r-card: 28px;
    --r-btn: 980px;
    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);

    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 30%, #EEF2F7 60%, #E8EDF4 100%);
    background-attachment: fixed;
    color: var(--c-dark);
    font-family: var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Subtle mesh overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 113, 227, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200, 16, 46, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(20, 184, 166, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: glowOrbs 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 70% 60% at 70% 60%, rgba(41, 151, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(200, 16, 46, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: glowOrbs2 20s ease-in-out infinite;
}

@keyframes glowOrbs {

    0%,
    100% {
        background:
            radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 113, 227, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200, 16, 46, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 50% 80%, rgba(20, 184, 166, 0.07) 0%, transparent 50%);
    }

    50% {
        background:
            radial-gradient(ellipse 80% 50% at 30% 50%, rgba(0, 113, 227, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 70% 30%, rgba(200, 16, 46, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 40% 70%, rgba(20, 184, 166, 0.09) 0%, transparent 50%);
    }
}

@keyframes glowOrbs2 {

    0%,
    100% {
        background:
            radial-gradient(ellipse 70% 60% at 70% 60%, rgba(41, 151, 255, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse 40% 50% at 10% 80%, rgba(200, 16, 46, 0.05) 0%, transparent 50%);
    }

    50% {
        background:
            radial-gradient(ellipse 70% 60% at 60% 50%, rgba(41, 151, 255, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 40% 50% at 20% 70%, rgba(200, 16, 46, 0.07) 0%, transparent 50%);
    }
}

/* Section backgrounds */
.section-gradient-light {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.section-gradient-blue {
    background: linear-gradient(180deg, #F0F7FF 0%, #E8F4FD 100%);
}

.section-mesh {
    position: relative;
    background: #FFFFFF;
}

.section-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 113, 227, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(41, 151, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--f-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--c-dark);
}

.display-1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.display-2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(90deg, #0071E3, #2997FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c-grey);
    margin-bottom: 1rem;
    display: block;
}

/* VIDEO HERO BANNER */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

.hero-video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-title {
    font-family: var(--f-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.6;
}

.btn-link-light {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-link-light:hover {
    color: white;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounceScroll 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 1rem;
}

@keyframes bounceScroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-video-section {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-scroll-indicator {
        bottom: 1.5rem;
    }
}

/* "DYNAMIC ISLAND" NAV */
.nav-pill-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: rgba(29, 29, 31, 0.85);
    /* Dark Glass */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-apple);
}

.nav-pill-container:hover {
    background: rgba(29, 29, 31, 0.95);
    transform: translateX(-50%) scale(1.02);
}

.nav-brand {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: #E5E5E5;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.btn-nav {
    background: #0071E3;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: #0077ED;
    color: white;
}

/* CERAMIC CARDS (BENTO) */
.bento-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--c-border);
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-float);
    z-index: 10;
}

.bento-dark {
    background: var(--c-dark);
    color: white;
}

.bento-dark h3,
.bento-dark p {
    color: white;
}

/* BUTTONS */
.btn-ferrari {
    display: inline-block;
    background: linear-gradient(135deg, #0071E3 0%, #0D84F3 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--r-btn);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ferrari::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-ferrari:hover::before {
    left: 100%;
}

.btn-ferrari:hover {
    background: linear-gradient(135deg, #0077ED 0%, #1A91FF 100%);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.4);
}

.btn-ruby {
    background: linear-gradient(135deg, var(--c-ruby) 0%, var(--c-ruby-light) 100%);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.btn-ruby:hover {
    background: linear-gradient(135deg, var(--c-ruby-light) 0%, var(--c-ruby) 100%);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.4);
}

.btn-teal {
    background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-light) 100%);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

.btn-teal:hover {
    background: linear-gradient(135deg, var(--c-teal-light) 0%, var(--c-teal) 100%);
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.4);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 113, 227, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

.btn-pulse {
    animation: pulse-blue 2s infinite;
}

.btn-link-apple {
    color: #0071E3;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link-apple:hover {
    text-decoration: underline;
    color: #0071E3;
}

/* SECTIONS */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
}

.hero-image-wrapper {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.hero-image-wrapper img {
    max-height: 550px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    transition: transform 1s var(--ease-apple);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* TECH SPECS TABLE */
.spec-table {
    width: 100%;
    border-top: 1px solid var(--c-border);
}

.spec-row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--c-border);
    align-items: center;
}

.spec-label {
    flex: 1;
    font-weight: 600;
    color: var(--c-dark);
}

.spec-val-surgery {
    flex: 1;
    color: var(--c-grey);
    text-align: right;
    padding-right: 2rem;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.spec-val-focal {
    flex: 1;
    color: #0071E3;
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
}

/* PROCESS SECTION - ENHANCED */
.process-card {
    position: relative;
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid var(--c-border);
    transition: all 0.4s var(--ease-apple);
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-ruby), var(--c-accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 113, 227, 0.15);
}

.process-card:hover::before {
    opacity: 1;
}

.process-gif-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E8F4FD 0%, #D1E9FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0, 113, 227, 0.15),
        inset 0 0 0 4px rgba(0, 113, 227, 0.1);
    transition: all 0.4s var(--ease-apple);
    position: relative;
}

.process-gif-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-teal));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.process-card:hover .process-gif-wrapper::before {
    opacity: 1;
}

.process-card:hover .process-gif-wrapper {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(0, 113, 227, 0.25),
        inset 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.process-gif-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
}

.process-dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071E3, #2997FF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
    position: relative;
}

.process-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(0, 113, 227, 0.3);
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    color: var(--c-accent);
    font-size: 1.5rem;
    opacity: 0.4;
    z-index: 10;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-50%) translateX(5px);
        opacity: 0.8;
    }
}

.process-card-active {
    background: linear-gradient(135deg, #0071E3 0%, #0D84F3 100%);
    border: none;
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.3);
}

.process-card-active::before {
    display: none;
}

.process-card-active .process-dot {
    background: white;
    color: #0071E3;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.process-card-active .process-dot::after {
    border-color: rgba(255, 255, 255, 0.5);
}

.process-card-active .process-gif-wrapper {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.process-card-active h4,
.process-card-active p {
    color: white;
}

.process-card-active p {
    opacity: 0.85;
}

/* ACCORDION REFRESH */
.accordion-item {
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--c-border);
}

.accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-dark);
}

.accordion-body {
    padding: 0 0 1.5rem 0;
    color: var(--c-grey);
    background: transparent;
}

/* CUSTOM UTILITIES (Lint Fix) */
.bg-hifusion {
    background: url('../../assets/Images/hifusion-interface.png');
    background-size: cover;
    background-position: center;
}

.bg-robot-card {
    background: #F5F5F7;
}

/* NEUROMARKETING ENHANCEMENTS */
.img-shadow-deep {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    transition: transform 0.6s var(--ease-apple);
}

.img-shadow-deep:hover {
    transform: scale(1.03) translateY(-5px);
}

.text-platinum {
    background: linear-gradient(135deg, #FFFFFF 0%, #A5A5AA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spec-val-highlight {
    background: rgba(0, 113, 227, 0.05);
    /* Subtle Blue Tint */
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem -0.5rem 0;
    /* Alignment fix */
    color: #0071E3;
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
}

.bg-process-treat {
    background: #0071E3;
    border: none;
}

.text-process-treat {
    color: #0071E3;
}

.glass-overlay-dark {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: auto;
}

.img-shadow-lg {
    max-height: 150px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.img-cover-full {
    object-fit: cover;
}

/* UTILS */
.spec-row:last-child {
    border-bottom: none;
}

.nav-brand-subtitle {
    font-weight: 400;
    opacity: 0.7;
}

.text-titanium {
    color: #86868B;
}

.hero-lead {
    max-width: 600px;
}

.icon-sm {
    font-size: 0.8em;
}

.process-gif {
    max-height: 120px;
    border-radius: 16px;
}

.grayscale-img {
    filter: grayscale(0.5) brightness(0.9);
    transition: filter 0.4s ease;
}

.grayscale-img:hover {
    filter: grayscale(0) brightness(1);
}

.rounded-lg {
    border-radius: 28px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .nav-pill-container {
        width: 90%;
        justify-content: space-between;
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .display-1 {
        font-size: 3rem;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    .hero-image-wrapper img,
    .hero-image-wrapper video {
        max-height: 350px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .process-arrow {
        display: none !important;
    }

    .process-card {
        margin-bottom: 1rem;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .trust-badges {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .showcase-full img {
        height: 50vh;
    }

    .showcase-overlay {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .nav-pill-container {
        width: calc(100% - 20px);
        max-width: 355px;
        padding: 0.5rem 0.65rem;
        top: 8px;
        gap: 0.25rem;
    }

    .nav-brand {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .nav-brand-subtitle {
        display: none;
    }

    .btn-nav {
        padding: 0.35rem 0.7rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .display-1 {
        font-size: 2.2rem;
    }

    .display-2 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .btn-ferrari {
        padding: 0.85rem 1.8rem;
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .feature-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1.25rem;
        gap: 1rem;
    }

    .feature-item .feature-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 1.25rem;
        margin: 0;
        border-radius: 14px;
    }

    .feature-item h5 {
        margin-bottom: 0.25rem;
        font-size: 0.95rem;
    }

    .feature-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .process-gif-wrapper {
        width: 100px;
        height: 100px;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badge i {
        font-size: 1.5rem;
    }

    .trust-badge span {
        font-size: 0.65rem;
    }

    .spec-table {
        font-size: 0.9rem;
    }

    .spec-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .spec-label,
    .spec-val-surgery,
    .spec-val-focal {
        text-align: center;
        padding: 0;
    }
}

/* Ruby brand styles */
.text-ruby {
    color: var(--c-ruby) !important;
}

.nav-brand .text-ruby {
    color: #FF3B4E !important;
}

.bg-ruby {
    background: var(--c-ruby);
}

.text-teal {
    color: var(--c-teal);
}

.nav-logo {
    height: 36px;
    margin-right: 0.5rem;
}

/* COLORFUL GRADIENTS */
.gradient-text-rainbow {
    background: linear-gradient(135deg, var(--c-ruby), #FF6B6B, #FFB347, #14B8A6, var(--c-accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #0071E3, #00D4FF, #2997FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-ruby {
    background: linear-gradient(135deg, var(--c-ruby), #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* COLORFUL BADGES */
.badge-ruby {
    background: linear-gradient(135deg, var(--c-ruby), var(--c-ruby-light));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-teal {
    background: linear-gradient(135deg, var(--c-teal), var(--c-teal-light));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-blue {
    background: linear-gradient(135deg, #0071E3, #2997FF);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ANIMATED GLOW */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.3);
    animation: glowPulse 2s ease-in-out infinite;
}

.glow-ruby {
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.3);
    animation: glowPulseRuby 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 113, 227, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 113, 227, 0.5);
    }
}

@keyframes glowPulseRuby {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(200, 16, 46, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(200, 16, 46, 0.5);
    }
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366) !important;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.cta-lead {
    max-width: 600px;
}

/* ENTRANCE ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.bounce-on-hover:hover {
    animation: bounceOnce 0.5s ease;
}

@keyframes bounceOnce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* COLORFUL SECTION BACKGROUNDS */
.section-gradient-ruby {
    background: linear-gradient(180deg, #FFF5F5 0%, #FFE4E6 100%);
}

.section-gradient-teal {
    background: linear-gradient(180deg, #F0FDFA 0%, #CCFBF1 100%);
}

/* NEW ANIMATIONS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

.shimmer-text {
    background: linear-gradient(90deg, #0071E3, #2997FF, #0071E3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* FEATURE GRID - ENHANCED */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--c-surface);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--c-border);
    transition: all 0.4s var(--ease-apple);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-teal), var(--c-ruby));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 113, 227, 0.15);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0071E3 0%, #2997FF 50%, #14B8A6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
    transition: all 0.4s var(--ease-apple);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.3), rgba(20, 184, 166, 0.3));
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(0, 113, 227, 0.4);
}

.feature-item:hover .feature-icon::after {
    opacity: 1;
}

.feature-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--c-dark);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--c-grey);
    margin-bottom: 0;
    line-height: 1.5;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--c-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-float);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--c-accent);
    transform: translateY(-5px);
    color: white;
}

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071E3, #2997FF);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* FULL WIDTH SHOWCASE */
.showcase-full {
    position: relative;
    padding: 0;
    overflow: visible;
    min-height: 85vh;
    margin-top: -100px;
    /* Overlap previous section */
    z-index: 10;
}

.showcase-full img {
    width: 100%;
    height: 100%;
    min-height: 85vh;
    object-fit: cover;
    filter: brightness(0.7);
    position: absolute;
    top: 0;
    left: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
}



.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.showcase-glass-card {
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem 2.5rem;
    max-width: 550px;
    position: relative;
}

.showcase-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.5), rgba(20, 184, 166, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.showcase-desc {
    max-width: 480px;
    font-size: 1rem;
}

.showcase-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showcase-feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 113, 227, 0.2);
    border: 1px solid rgba(0, 113, 227, 0.4);
    border-radius: 100px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.showcase-feature-pill:hover {
    background: rgba(0, 113, 227, 0.4);
    border-color: rgba(0, 113, 227, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.showcase-feature-pill i {
    color: #5EEAD4;
    font-size: 0.9rem;
}

/* STAT COUNTER */
.stat-counter {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

/* TESTIMONIAL */
.testimonial-card {
    background: var(--c-surface);
    border-radius: var(--r-card);
    padding: 3rem;
    position: relative;
    border: 1px solid var(--c-border);
}

.testimonial-card::before {
    content: '"';
    font-size: 6rem;
    color: var(--c-accent);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--c-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--c-dark);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--c-grey);
}

/* TRUST BADGES */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.trust-badge {
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.trust-badge:hover {
    opacity: 1;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--c-grey);
    display: block;
    margin-bottom: 0.5rem;
}

.trust-badge span {
    font-size: 0.75rem;
    color: var(--c-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ENHANCED HERO VIDEO */
.hero-image-wrapper video {
    border-radius: 24px;
    max-height: 500px;
}

.footer-border {
    border-top: 1px solid var(--c-border);
}

/* FORM PLACEHOLDER CONTRAST FIX */
::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(255, 255, 255, 0.5) !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(255, 255, 255, 0.5) !important;
}

/* GLASS FORM UTILITY */
.glass-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}