/* ========================================
   Svelto Landing Page - Custom Styles
   Modern, Animated, Tech-Forward Design
   ======================================== */

/* ===== COLOR VARIABLES ===== */

:root {
    --svelto-deep-blue: #083372;
    --svelto-deep-blue-overlay-rgb: 5, 24, 66;
}

/* ===== ANIMATIONS ===== */

/* Blob Animation for Background Elements */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 20s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

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

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

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

/* Hero Section Background */
.hero-section {
    position: relative;
    background-image: url('assets/home-rocket.svg');
    background-size: cover;
    background-position: 78% center;
    background-repeat: no-repeat;
    background-color: var(--svelto-deep-blue);
    z-index: 0;
}

.site-header {
    background: transparent;
    position: fixed;
    isolation: isolate;
    box-shadow: none;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: #15aaf9;
}

.site-header .nav-cta-btn {
    background: #00bdf2;
    border-color: #00bdf2;
    color: #ffffff;
}

#mobile-menu {
    background: var(--svelto-deep-blue);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#mobile-menu .nav-link {
    display: block;
}

.site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.site-header.header-scrolled::before {
    opacity: 0;
}

.site-header.header-scrolled .nav-link {
    color: #0d3270;
}

.site-header.header-scrolled .nav-link:hover,
.site-header.header-scrolled .nav-link:focus {
    color: #0b63d1;
}

.site-header.header-scrolled .nav-cta-btn {
    background: #102d62;
    border-color: #102d62;
    color: #ffffff;
}

.site-header.header-scrolled .nav-cta-btn:hover {
    background: #0b2450;
    border-color: #0b2450;
}

.site-header.header-scrolled #mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.site-header.header-scrolled #mobile-menu .nav-link {
    color: #0d3270;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 51, 114, 0.55) 0%, rgba(8, 51, 114, 0.38) 20%, rgba(8, 51, 114, 0.18) 52%, rgba(8, 51, 114, 0.06) 74%, rgba(8, 51, 114, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 22vh;
    min-height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 38%, rgba(255, 255, 255, 0.62) 66%, #ffffff 90%);
    pointer-events: none;
    z-index: 2;
}

.hero-section > * {
    position: relative;
    z-index: 3;
}

@media (max-width: 1024px) {
    .hero-section::after {
        height: 26vh;
        min-height: 180px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 36%, rgba(255, 255, 255, 0.66) 68%, #ffffff 92%);
    }
}

@media (max-width: 768px) {
    .hero-section::after {
        height: 32vh;
        min-height: 210px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 32%, rgba(255, 255, 255, 0.7) 68%, #ffffff 94%);
    }
}

@media (max-width: 1280px) {
    .hero-section {
        background-position: 70% center;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        background-position: 75% center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-position: 80% top;
    }
}

.hero-headline {
    animation: fadeInUp 1s ease-out 0.3s backwards;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.hero-subheadline {
    animation: fadeInUp 1s ease-out 0.5s backwards;
    color: rgba(255, 255, 255, 0.92);
    text-shadow:
        0 0 6px rgba(8, 51, 114, 0.85),
        0 2px 10px rgba(8, 51, 114, 0.6),
        0 8px 28px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(21, 170, 249, 0.18);
    letter-spacing: 0.012em;
}

@supports (filter: drop-shadow(0 0 0 #000)) {
    .hero-subheadline {
        filter: drop-shadow(0 0 3px rgba(8, 51, 114, 0.55));
    }
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.hero-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-button-group {
        flex-direction: row;
    }
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.75rem;
    padding: 0.9rem 2.6rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-primary-btn {
    gap: 0.75rem;
    background: #102d62;
    border: 1px solid #102d62;
    color: #ffffff;
}

.hero-primary-btn:hover {
    background: #0b2450;
    border-color: #0b2450;
}

.hero-primary-btn--light {
    background: #00bdf2;
    border-color: #00bdf2;
    color: #ffffff;
}

.hero-primary-btn--light:hover {
    background: #0fa7e0;
    border-color: #0fa7e0;
}

.hero-primary-btn .icon-arrow {
    width: 1.2rem;
    height: 1.2rem;
}

.hero-secondary-btn {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #083372;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 28px rgba(8, 51, 114, 0.34);
}

.hero-secondary-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.hero-primary-btn:focus-visible,
.hero-secondary-btn:focus-visible {
    outline: 3px solid rgba(21, 170, 249, 0.5);
    outline-offset: 4px;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.8rem;
    border-radius: 0.75rem;
    background: #00bdf2;
    border: 1px solid #00bdf2;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-cta-btn:hover {
    background: #0fa7e0;
    border-color: #0fa7e0;
}

.nav-cta-btn:focus-visible {
    outline: 3px solid rgba(21, 170, 249, 0.5);
    outline-offset: 3px;
}

/* Fade-in Animation for Scroll-triggered Elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays for Staggered Effects */
.animation-delay-200 {
    transition-delay: 0.2s;
}

.animation-delay-400 {
    transition-delay: 0.4s;
}

.animation-delay-600 {
    transition-delay: 0.6s;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile-First: Base styles are for mobile, media queries enhance for larger screens */

/* Tablet Breakpoint (768px and up) */
@media (min-width: 768px) {
    .hero-headline {
        line-height: 1.2;
    }
    
    /* Smooth gradient transitions on hover for cards */
    .group:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    }
}

/* Desktop Breakpoint (1024px and up) */
@media (min-width: 1024px) {
    /* Enhanced parallax effect on larger screens */
    .hero-image {
        transition: transform 0.3s ease-out;
    }
    
    .hero-image:hover {
        transform: scale(1.05) translateY(-10px);
    }
}

/* ===== GLASSMORPHISM EFFECTS ===== */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== GRADIENT TEXT ===== */

.gradient-text {
    background: linear-gradient(135deg, #15aaf9 0%, #04d9c3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTON HOVER EFFECTS ===== */

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(21, 170, 249, 0.6),
                0 0 40px rgba(4, 217, 195, 0.4);
}

/* ===== SCROLL BEHAVIOR ===== */

html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus States for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #15aaf9;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FORM STYLING ===== */

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== CARD HOVER EFFECTS ===== */

.card-hover {
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 170, 249, 0.2), transparent);
    transition: left 0.5s ease;
}

.card-hover:hover::before {
    left: 100%;
}

/* ===== VALUE PROPOSITION CARDS ===== */

.value-card-kicker {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(8, 51, 114, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0;
    text-align: center;
}

.value-card-text {
    font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.32rem);
    line-height: 1.95;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    text-align: center;
}

.value-highlight {
    background: linear-gradient(120deg, rgba(21, 170, 249, 0.1), rgba(4, 217, 195, 0.28));
    border-radius: 0.45rem;
    padding: 0.1rem 0.35rem;
    font-weight: 600;
    color: #083372;
}

@media (max-width: 768px) {
    .value-card-kicker {
        letter-spacing: 0.05em;
    }

    .value-card-kicker {
        letter-spacing: 0.05em;
    }
}

/* ===== SECTION TYPOGRAPHY TUNING ===== */

#master-how-why .value-card-kicker {
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
}

#master-how-why .value-card-text {
    font-size: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
    line-height: 2.05;
}

#master-how-why .value-card h3 {
    font-size: clamp(1.9rem, 1.7rem + 0.45vw, 2.3rem);
}

#features .group h3 {
    font-size: clamp(1.85rem, 1.7rem + 0.35vw, 2.2rem);
}

#features .group p {
    font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.32rem);
    line-height: 1.9;
    max-width: 32rem;
}

/* ===== PROBLEM SECTION ===== */

.problem-heading {
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0;
}

.problem-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(8, 51, 114, 0.7);
}

.problem-body {
    max-width: 38rem;
    font-size: clamp(1.05rem, 1.05rem + 0.6vw, 1.3rem);
    line-height: 1.85;
    color: #3c4a63;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}

.problem-list {
    max-width: 32rem;
}

.problem-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
    line-height: 1.6;
    color: #475569;
}

.problem-list-item p {
    margin: 0;
}

.problem-bullet {
    margin-top: 0.45rem;
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #15aaf9 0%, #04d9c3 100%);
    box-shadow: 0 0 0 4px rgba(21, 170, 249, 0.1);
}

@media (max-width: 768px) {
    .problem-list {
        max-width: 100%;
    }
    .problem-body {
        line-height: 1.75;
    }
}

/* ===== LOGO STYLING ===== */

.logo-glow {
    filter: drop-shadow(0 0 10px rgba(21, 170, 249, 0.3));
    transition: filter 0.3s ease;
}

.logo-glow:hover {
    filter: drop-shadow(0 0 20px rgba(21, 170, 249, 0.6));
}

/* ===== SECTION TRANSITIONS ===== */

section {
    position: relative;
    overflow: hidden;
}

/* ===== ICON ANIMATIONS ===== */

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

.icon-container:hover img {
    animation: iconPulse 0.6s ease-in-out;
}

/* ===== GRID LAYOUT ENHANCEMENTS ===== */

/* Ensure consistent card heights in grid layouts */
.grid > * {
    display: flex;
    flex-direction: column;
}

/* ===== TYPOGRAPHY REFINEMENTS ===== */

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

p {
    line-height: 1.7;
}

/* ===== MOBILE MENU ANIMATION ===== */

#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* ===== LOADING STATES (Optional Enhancement) ===== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    header, footer, .hero-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== HIGH CONTRAST MODE ===== */

@media (prefers-contrast: high) {
    .bg-deep-blue {
        background-color: #000000;
    }
    
    .text-gray-700 {
        color: #000000;
    }
    
    a, button {
        border: 2px solid currentColor;
    }
}

/* ===== CUSTOM UTILITIES ===== */

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(21, 170, 249, 0.5);
}

.backdrop-blur-strong {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== RESPONSIVE IMAGE HANDLING ===== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TRANSITION UTILITIES ===== */

.transition-300 {
    transition: all 0.3s ease;
}

.transition-500 {
    transition: all 0.5s ease;
}

/* ===== Z-INDEX MANAGEMENT ===== */

.z-header {
    z-index: 1000;
}

.z-modal {
    z-index: 2000;
}

.z-tooltip {
    z-index: 3000;
}

/* ===== FAQ ACCORDION STYLES ===== */

/* Remove default disclosure triangle/marker */
.faq-accordion summary {
    list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::marker {
    display: none;
}

/* Focus states for accessibility */
.faq-accordion summary:focus {
    outline: 2px solid var(--svelto-bright-cyan, #15aaf9);
    outline-offset: 2px;
}

/* Smooth open/close animation */
.faq-accordion[open] {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Active state styling */
.faq-accordion[open] {
    border-color: rgba(21, 170, 249, 0.3);
    box-shadow: 0 4px 6px -1px rgba(21, 170, 249, 0.1), 0 2px 4px -1px rgba(21, 170, 249, 0.06);
}

/* Hover effect on closed state */
.faq-accordion:not([open]):hover {
    border-color: rgba(21, 170, 249, 0.2);
}
