/* ============================================================
   CRAFTED REACH — PREMIUM DESIGN SYSTEM (OFFICIAL BRAND PALETTE)
   Logo Colors:
   - Deep Navy Blue: #062B55
   - Royal Blue:     #0866D8
   - Premium Gold:   #F5B800
   - Teal:           #00A6A6
   - White:          #FFFFFF
   - Muted:          #AAB5C5
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --bg-deep: #03152B;          /* Deepest atmospheric navy */
    --bg-dark: #062B55;          /* Official Deep Navy Blue */
    --bg-surface: #083870;       /* Elevated navy surface */
    --bg-card: rgba(6, 43, 85, 0.75);
    --border-subtle: rgba(8, 102, 216, 0.2);
    --border-highlight: rgba(8, 102, 216, 0.5);
    --brand-royal: #0866D8;      /* Official Royal Blue */
    --brand-gold: #F5B800;       /* Official Premium Gold */
    --brand-teal: #00A6A6;       /* Official Teal */
    --brand-emerald: #10B981;
    --text-primary: #FFFFFF;
    --text-muted: #AAB5C5;
    --text-dim: #64748B;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem; /* 112px clearance ensures sticky navbar never overlaps section titles */
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Navigation Hover Dropdown Menu */
.nav-dropdown-wrapper {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-dropdown-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 1. Refined Card Physics & Glassmorphism */
.premium-card {
    background: linear-gradient(180deg, rgba(8, 48, 96, 0.55) 0%, rgba(6, 43, 85, 0.85) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 102, 216, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover {
    border-color: rgba(8, 102, 216, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(3, 21, 43, 0.9), 0 0 25px -5px rgba(8, 102, 216, 0.25);
}

.premium-card:hover::before {
    opacity: 1;
}

.tilt-card {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}
.tilt-card:hover {
    transform: translateY(-3px);
}

/* 2. Interactive Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0866D8 0%, #00A6A6 100%);
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: -0.01em;
    border-radius: 0.875rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 10px 25px -5px rgba(8, 102, 216, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(8, 102, 216, 0.55);
    color: #FFFFFF;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(6, 43, 85, 0.75);
    border: 1px solid rgba(8, 102, 216, 0.3);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 0.875rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background: rgba(8, 56, 112, 0.95);
    border-color: rgba(0, 166, 166, 0.6);
    color: #00A6A6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(3, 21, 43, 0.7);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-gold {
    background: linear-gradient(135deg, #F5B800 0%, #D49B00 100%);
    color: #03152B;
    font-weight: 800;
    border-radius: 0.875rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 10px 25px -5px rgba(245, 184, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(245, 184, 0, 0.5);
    color: #03152B;
}

.motion-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.motion-btn:hover {
    transform: translateY(-2px);
}

/* 3. Infinite Velocity Marquee */
@keyframes marqueeScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* 4. Audio Equalizer Waveform */
@keyframes soundWave {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

.wave-bar-1 { animation: soundWave 0.9s ease-in-out infinite; }
.wave-bar-2 { animation: soundWave 0.7s ease-in-out infinite 0.2s; }
.wave-bar-3 { animation: soundWave 1.1s ease-in-out infinite 0.4s; }
.wave-bar-4 { animation: soundWave 0.8s ease-in-out infinite 0.1s; }
.wave-bar-5 { animation: soundWave 1.0s ease-in-out infinite 0.3s; }

/* 5. Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #03152B;
}
::-webkit-scrollbar-thumb {
    background: #083870;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0866D8;
}

/* 6. Slide-Over Cart Drawer & Toast */
#cart-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
#cart-drawer.translate-x-full {
    transform: translateX(100%);
    pointer-events: none;
}
#cart-backdrop {
    transition: opacity 0.3s ease;
}

@keyframes toastSlide {
    0% { transform: translateY(20px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-enter {
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 7. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   ENHANCED VISUALS & MOCKUPS STYLES
   ============================================================ */

/* Subtle background patterns */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.bg-dots-pattern {
    background-image: radial-gradient(rgba(0, 166, 166, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Floating animation */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Device Mockups Styling */
.mockup-laptop {
    position: relative;
    border-radius: 1rem 1rem 0.25rem 0.25rem;
    background: #1e293b;
    border: 3px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.mockup-laptop-base {
    position: relative;
    height: 12px;
    background: #0f172a;
    border-radius: 0 0 1rem 1rem;
    border: 1px solid #334155;
    border-top: none;
}

.mockup-laptop-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #334155;
    border-radius: 0 0 4px 4px;
}

.mockup-phone {
    position: relative;
    border-radius: 2rem;
    background: #0f172a;
    border: 3px solid #334155;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 166, 166, 0.2);
}

/* FAQ Accordion Styling */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #00A6A6;
}

/* Feature Bullets Toggle */
.feature-list.collapsed .feature-extra {
    display: none;
}

/* Scrollspy Active Link */
.nav-link.nav-active {
    color: #00A6A6 !important;
    position: relative;
}

.nav-link.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00A6A6;
    border-radius: 2px;
}

/* Back to Top Button */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
