/* ============================================
   NUMAYA AI - CUSTOM STYLES
   Brand Colors: Primary #57ADDA, Secondary #1B7597, Accent #117AE9
   Text: Primary #001532, Secondary #2C3E50
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --numaya-primary: #57ADDA;
    --numaya-secondary: #1B7597;
    --numaya-accent: #117AE9;
    --numaya-primary-light: #8DD3F3;
    --numaya-primary-dark: #1B7597;
    --numaya-text-primary: #001532;
    --numaya-text-secondary: #2C3E50;
    --numaya-white: #FFFFFF;
    --numaya-background-light: #F8FBFD;
    --numaya-shadow: 0 4px 20px rgba(87, 173, 218, 0.15);
    --numaya-shadow-hover: 0 8px 30px rgba(87, 173, 218, 0.25);
    --numaya-transition: 0.3s ease;
    --numaya-border-radius: 8px;
}

/* ============================================
   FONT FACE DECLARATIONS - Montserrat
   ============================================ */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   BASE STYLES
   ============================================ */
html, body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    scroll-behavior: smooth;
}

a, .btn-link {
    color: var(--numaya-primary);
    text-decoration: none;
    transition: color var(--numaya-transition);
}

a:hover {
    color: var(--numaya-secondary);
}

.btn-primary {
    color: #fff;
    background-color: var(--numaya-primary);
    border-color: var(--numaya-secondary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--numaya-accent);
}

h1:focus {
    outline: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   APP BAR & NAVIGATION
   ============================================ */
.app-bar {
    background: var(--numaya-white) !important;
    border-bottom: 2px solid var(--numaya-primary);
    box-shadow: 0 2px 10px rgba(87, 173, 218, 0.15);
}

/* Header Logo - Square Lean (1:1 aspect ratio) */
.app-logo {
    /* Responsive sizing using clamp: min(40px), preferred(5vw), max(80px) */
    height: clamp(40px, 5vw, 80px);
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform var(--numaya-transition);
}

.app-logo:hover {
    transform: scale(1.05);
}

/* Inline Navigation Links Wrapper */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    margin-left: 24px;
}

/* Hide nav links on mobile/tablet, show mobile menu button */
@media (max-width: 1280px) {
    .nav-links-wrapper {
        display: none;
    }
    
    .sign-in-wrapper {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(87, 173, 218, 0.1);
    }
    
    .mobile-menu-btn .mud-icon-root {
        color: var(--numaya-secondary) !important;
        font-size: 28px !important;
    }
}

/* Show nav links on desktop, hide mobile menu button */
@media (min-width: 1281px) {
    .nav-links-wrapper {
        display: flex;
    }
    
    .sign-in-wrapper {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Inline Navigation Link Style */
.nav-link-inline {
    color: var(--numaya-text-primary) !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: var(--numaya-border-radius);
    transition: all var(--numaya-transition);
    white-space: nowrap;
    font-size: 0.875rem !important;
}

.nav-link-inline:hover {
    color: var(--numaya-primary) !important;
    background-color: rgba(87, 173, 218, 0.1);
}

.nav-button-group .mud-button-root {
    text-transform: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-link {
    color: var(--numaya-text-primary) !important;
    transition: color var(--numaya-transition), background-color var(--numaya-transition);
}

.nav-link:hover {
    color: var(--numaya-primary) !important;
    background-color: rgba(87, 173, 218, 0.1);
    border-radius: var(--numaya-border-radius);
}

/* ============================================
   MOBILE DRAWER - Custom Implementation
   ============================================ */
.custom-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.custom-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--numaya-white);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.custom-drawer.open {
    transform: translateX(0);
}

.custom-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--numaya-primary) 0%, var(--numaya-secondary) 100%);
    color: white;
}

.custom-drawer-header .mud-typography {
    color: white !important;
    font-weight: 700 !important;
}

.drawer-header {
    background: linear-gradient(135deg, var(--numaya-primary) 0%, var(--numaya-secondary) 100%);
    padding: 24px !important;
}

/* Drawer Logo - Square Lean (1:1 aspect ratio) - maintains aspect ratio with responsive sizing */
.drawer-logo {
    /* Responsive height: min(48px), preferred(8vw), max(60px) */
    height: clamp(48px, 8vw, 60px);
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.drawer-nav-link {
    padding: 16px 24px !important;
    font-weight: 500;
    color: var(--numaya-text-primary) !important;
    transition: all var(--numaya-transition);
}

.drawer-nav-link:hover {
    background-color: var(--numaya-background-light);
    color: var(--numaya-primary) !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 0 !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #57ADDA 0%, #1B7597 50%, #117AE9 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(17, 122, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text-wrapper {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0, 21, 50, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    font-weight: 400;
}

.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-cta-primary {
    background: #FFFFFF !important;
    color: var(--numaya-secondary) !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 21, 50, 0.2);
    transition: all var(--numaya-transition) !important;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 21, 50, 0.25);
}

.hero-cta-secondary {
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    background: transparent !important;
    transition: all var(--numaya-transition) !important;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 21, 50, 0.15);
}

.hero-animation-wrapper {
    animation: slideInRight 0.8s ease-out 0.4s both, float 6s ease-in-out infinite 1.2s;
}

/* Lottie Animation Container */
.lottie-container {
    width: 100%;
    max-width: 400px;
    height: 350px;
}

/* Fallback Logo Styles */
.logo-fallback {
    width: 100%;
    max-width: 400px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-animated {
    max-width: 280px;
    height: auto;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(87, 173, 218, 0.3));
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(87, 173, 218, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 30px rgba(87, 173, 218, 0.5));
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   SLOGAN ANIMATION - INNOVATE → PERFORM → SCALE → LOGO
   ============================================ */
.slogan-animation-container {
    width: 100%;
    max-width: 400px;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-phase {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.animation-phase.active {
    opacity: 1;
    visibility: visible;
}

.phase-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    animation: phaseTextPulse 2s ease-in-out infinite;
}

@keyframes phaseTextPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* ============================================
   PHASE 1: INNOVATE - Neural Network
   ============================================ */
.neural-network {
    position: relative;
    width: 300px;
    height: 200px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--numaya-accent) 0%, #BEE6F5 100%);
    box-shadow: 0 0 20px rgba(17, 122, 233, 0.6), 0 0 40px rgba(17, 122, 233, 0.3);
    animation: nodePulse 1.5s ease-in-out infinite;
}

.node-1 { top: 30px; left: 40px; animation-delay: 0s; }
.node-2 { top: 30px; right: 40px; animation-delay: 0.2s; }
.node-3 { top: 90px; left: 140px; animation-delay: 0.4s; width: 28px; height: 28px; }
.node-4 { bottom: 30px; left: 40px; animation-delay: 0.6s; }
.node-5 { bottom: 30px; right: 40px; animation-delay: 0.8s; }
.node-6 { top: 10px; left: 144px; animation-delay: 1s; }

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(17, 122, 233, 0.6), 0 0 40px rgba(17, 122, 233, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(17, 122, 233, 0.8), 0 0 60px rgba(17, 122, 233, 0.5);
    }
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection {
    stroke: rgba(190, 230, 245, 0.6);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: connectionDraw 2s ease-in-out infinite;
}

.c1 { animation-delay: 0s; }
.c2 { animation-delay: 0.2s; }
.c3 { animation-delay: 0.4s; }
.c4 { animation-delay: 0.6s; }
.c5 { animation-delay: 0.8s; }
.c6 { animation-delay: 1s; }

@keyframes connectionDraw {
    0%, 100% { stroke-dashoffset: 100; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #BEE6F5;
    box-shadow: 0 0 10px rgba(190, 230, 245, 0.8);
    animation: particleFloat 3s ease-in-out infinite;
}

.p1 { top: 20%; left: 20%; animation-delay: 0s; }
.p2 { top: 40%; left: 80%; animation-delay: 0.3s; }
.p3 { top: 60%; left: 30%; animation-delay: 0.6s; }
.p4 { top: 80%; left: 70%; animation-delay: 0.9s; }
.p5 { top: 30%; left: 50%; animation-delay: 1.2s; }
.p6 { top: 70%; left: 40%; animation-delay: 1.5s; }
.p7 { top: 50%; left: 10%; animation-delay: 1.8s; }
.p8 { top: 10%; left: 60%; animation-delay: 2.1s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    25% { opacity: 1; }
    50% {
        transform: translate(20px, -30px) scale(1.5);
        opacity: 1;
    }
    75% { opacity: 0.5; }
}

/* ============================================
   PHASE 2: PERFORM - Gears and Data Streams
   ============================================ */
.gears-container {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear {
    position: absolute;
    color: rgba(190, 230, 245, 0.8);
    filter: drop-shadow(0 0 15px rgba(27, 117, 151, 0.6));
}

.gear-large {
    width: 120px;
    height: 120px;
    left: 30px;
    top: 40px;
    animation: gearRotate 4s linear infinite;
}

.gear-medium {
    width: 80px;
    height: 80px;
    right: 50px;
    top: 20px;
    animation: gearRotateReverse 3s linear infinite;
}

.gear-small {
    width: 60px;
    height: 60px;
    right: 80px;
    bottom: 30px;
    animation: gearRotate 2s linear infinite;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-stream {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--numaya-accent), transparent);
    border-radius: 2px;
    animation: dataStreamFlow 1.5s ease-in-out infinite;
}

.ds1 { left: 10%; top: 30%; animation-delay: 0s; }
.ds2 { left: 90%; top: 50%; animation-delay: 0.3s; }
.ds3 { left: 50%; top: 10%; animation-delay: 0.6s; }
.ds4 { left: 70%; top: 70%; animation-delay: 0.9s; }

@keyframes dataStreamFlow {
    0%, 100% {
        transform: translateY(-20px);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* ============================================
   PHASE 3: SCALE - Expanding Fractals
   ============================================ */
.fractals-container {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fractal-ring {
    position: absolute;
    border: 3px solid rgba(190, 230, 245, 0.5);
    border-radius: 50%;
    animation: fractalExpand 2s ease-out infinite;
}

.ring-1 {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.ring-2 {
    width: 80px;
    height: 80px;
    animation-delay: 0.4s;
}

.ring-3 {
    width: 120px;
    height: 120px;
    animation-delay: 0.8s;
}

.ring-4 {
    width: 160px;
    height: 160px;
    animation-delay: 1.2s;
}

@keyframes fractalExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
        border-color: var(--numaya-accent);
    }
    100% {
        transform: scale(2);
        opacity: 0;
        border-color: #BEE6F5;
    }
}

.growth-arrows {
    position: absolute;
    display: flex;
    gap: 30px;
    top: 30px;
}

.arrow {
    font-size: 2rem;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(17, 122, 233, 0.8);
    animation: arrowFloat 1s ease-in-out infinite;
}

.arrow-1 { animation-delay: 0s; }
.arrow-2 { animation-delay: 0.2s; }
.arrow-3 { animation-delay: 0.4s; }

@keyframes arrowFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

.scale-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scale-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--numaya-primary) 0%, var(--numaya-accent) 100%);
    border-radius: 2px;
    animation: scaleParticleRise 2s ease-out infinite;
}

.sp1 { left: 20%; bottom: 20%; animation-delay: 0s; }
.sp2 { left: 40%; bottom: 30%; animation-delay: 0.3s; }
.sp3 { left: 60%; bottom: 25%; animation-delay: 0.6s; }
.sp4 { left: 80%; bottom: 35%; animation-delay: 0.9s; }
.sp5 { left: 30%; bottom: 40%; animation-delay: 1.2s; }
.sp6 { left: 70%; bottom: 45%; animation-delay: 1.5s; }

@keyframes scaleParticleRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 1; }
    100% {
        transform: translateY(-150px) scale(1.5) rotate(180deg);
        opacity: 0;
    }
}

/* ============================================
   PHASE 4: LOGO REVEAL
   ============================================ */
.logo-reveal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal-logo {
    /* Responsive height: min(120px), preferred(25vw), max(280px) - maintains 4:3 aspect ratio */
    height: clamp(120px, 25vw, 280px);
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    animation: logoRevealFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 30px rgba(87, 173, 218, 0.5));
}

@keyframes logoRevealFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 4px 30px rgba(87, 173, 218, 0.5));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 8px 40px rgba(87, 173, 218, 0.7));
    }
}

.logo-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(17, 122, 233, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Phase-specific entrance animations */
.phase-innovate.active .neural-network {
    animation: fadeInScale 0.5s ease-out forwards;
}

.phase-perform.active .gears-container {
    animation: fadeInScale 0.5s ease-out forwards;
}

.phase-scale.active .fractals-container {
    animation: fadeInScale 0.5s ease-out forwards;
}

.phase-logo.active .logo-reveal-container {
    animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 80px 0;
    background: var(--numaya-background-light);
}

.section-header {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    color: var(--numaya-text-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--numaya-text-secondary) !important;
    max-width: 600px;
    margin: 0 auto !important;
    font-weight: 400;
}

.feature-card {
    height: 100%;
    border-radius: 16px !important;
    transition: all var(--numaya-transition) !important;
    border: 1px solid rgba(87, 173, 218, 0.2);
    background: var(--numaya-white) !important;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(87, 173, 218, 0.2) !important;
    border-color: var(--numaya-primary);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #57ADDA 0%, #1B7597 100%);
    box-shadow: 0 4px 15px rgba(87, 173, 218, 0.3);
}

.feature-icon {
    color: #FFFFFF !important;
    font-size: 32px !important;
}

.feature-title {
    color: var(--numaya-text-primary) !important;
    font-weight: 600 !important;
}

.feature-description {
    color: var(--numaya-text-secondary) !important;
    line-height: 1.6 !important;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--numaya-white);
    border-top: 1px solid rgba(87, 173, 218, 0.15);
    border-bottom: 1px solid rgba(87, 173, 218, 0.15);
}

.stat-number {
    color: var(--numaya-secondary) !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #57ADDA 0%, #1B7597 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--numaya-text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem !important;
    font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--numaya-background-light);
}

.cta-card {
    background: linear-gradient(135deg, #57ADDA 0%, #1B7597 100%) !important;
    border-radius: 24px !important;
    text-align: center;
    box-shadow: 0 8px 40px rgba(87, 173, 218, 0.3);
}

.cta-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
}

.cta-button {
    background: #FFFFFF !important;
    color: var(--numaya-secondary) !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 21, 50, 0.15);
    transition: all var(--numaya-transition) !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    transition: all var(--numaya-transition) !important;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--numaya-text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 40px;
}

/* Footer Logo - Full logo with 4:3 aspect ratio */
.footer-logo {
    /* Responsive height: min(100px), preferred(12vw), max(180px) */
    height: clamp(100px, 12vw, 180px);
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6;
}

.footer-heading {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color var(--numaya-transition);
}

.footer-link:hover {
    color: var(--numaya-primary) !important;
}

.social-button {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all var(--numaya-transition) !important;
}

.social-button:hover {
    color: #FFFFFF !important;
    background: var(--numaya-primary) !important;
    transform: translateY(-2px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   BLAZOR ERROR UI
   ============================================ */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 960px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-headline {
        font-size: 2rem !important;
    }
    
    .hero-animation-wrapper {
        margin-top: 32px;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-card {
        padding: 32px 24px !important;
    }
}

@media (max-width: 600px) {
    .hero-cta-wrapper {
        flex-direction: column;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-decoration-none {
    text-decoration: none !important;
}

.gap-4 {
    gap: 16px;
}

.gap-2 {
    gap: 8px;
}

/* ============================================
   PLACEHOLDER PAGES
   ============================================ */
.placeholder-page {
    min-height: 60vh;
    padding: 80px 0;
    animation: fadeIn 0.5s ease-out;
}

.placeholder-title {
    color: var(--numaya-text-primary) !important;
    font-weight: 700 !important;
}

.placeholder-subtitle {
    color: var(--numaya-text-secondary) !important;
    font-weight: 400 !important;
}

.placeholder-card {
    border-radius: 16px !important;
    border: 1px solid rgba(87, 173, 218, 0.2);
    background: var(--numaya-white) !important;
    max-width: 700px;
    margin: 0 auto;
}

.placeholder-description {
    color: var(--numaya-text-secondary) !important;
    line-height: 1.7 !important;
    max-width: 500px;
    margin: 0 auto;
}
