/* Base font reduction - 10% smaller than standard 16px */
html {
    font-size: 14.4px;
}

body {
    font-size: 1rem;
}

/* V4 Hero Glass Card Styles */
.glass-card {
    background: linear-gradient(135deg, rgba(13, 31, 53, 0.85) 0%, rgba(10, 22, 40, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glow-line {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.6), transparent);
    height: 1px;
}

.side-btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.primary-cta {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284c7 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(14, 165, 233, 0.5), 0 0 60px rgba(14, 165, 233, 0.3);
}

.chat-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.chat-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
}

.side-buttons {
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mobile-ctas {
        display: flex !important;
    }
}

/* Custom utility for consistent page top spacing - change this value to adjust all pages */
.page-top-spacing {
    padding-top: 1rem;
    /* 16px = pt-4 */
}

.tab-active {
    border-bottom: 3px solid #0EA5E9;
    color: #0EA5E9;
}

.form-input {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #1E3A8A;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #0EA5E9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Fix for Chrome/Safari Autofill - Force Light Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important;
    -webkit-text-fill-color: #1E3A8A !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hero-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}


::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Screen reader only content - accessible but visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* Hero Scrolling Background Animation */
.hero-scroll-container {
    display: flex;
    width: max-content;
    height: 100%;
    animation: scroll-left 300s linear infinite;
    animation-play-state: paused;
}

.hero-scroll-active {
    animation-play-state: running;
    will-change: transform;
}

.hero-image {
    width: 40vw;
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200vw);
    }
}

.hero-scroll-container:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .hero-image {
        width: 60vw;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-300vw);
        }
    }
}

/* Brand Colors */
.bg-brand-sky {
    background-color: #0EA5E9;
}

.text-brand-sky {
    color: #0EA5E9;
}

.bg-brand-dark {
    background-color: #0F172A;
}

.text-brand-dark {
    color: #0F172A;
}

.border-brand-sky {
    border-color: #0EA5E9;
}

.border-brand-dark {
    border-color: #0F172A;
}