/* ═══════════════════════════════════════════════
   IQ TEST HUBS — "Assured Calm" Design System
   Trust-building light theme
   Navy + Teal + Warm accents
   ═══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -18px) scale(1.03); }
    66% { transform: translate(-18px, 12px) scale(0.97); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Subtle Dot Grid ── */
.dot-grid {
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
}

/* ── Glass Navbar ── */
.nav-glass {
    background: rgba(250, 251, 253, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.04),
        0 4px 16px rgba(15, 23, 42, 0.02);
}

/* ── Nav Links ── */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

/* ── Mobile Nav Links ── */
.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.25s ease;
}

.mobile-nav-link:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

/* ── CTA Button Shimmer ── */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* ── Step Connector ── */
.step-connector {
    background: repeating-linear-gradient(
        90deg,
        #cbd5e1 0px,
        #cbd5e1 5px,
        transparent 5px,
        transparent 11px
    );
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal[style*="animation-delay: 0.05s"].revealed { transition-delay: 0.05s; }
.reveal[style*="animation-delay: 0.1s"].revealed  { transition-delay: 0.1s; }
.reveal[style*="animation-delay: 0.15s"].revealed { transition-delay: 0.15s; }
.reveal[style*="animation-delay: 0.2s"].revealed  { transition-delay: 0.2s; }
.reveal[style*="animation-delay: 0.25s"].revealed { transition-delay: 0.25s; }
.reveal[style*="animation-delay: 0.3s"].revealed  { transition-delay: 0.3s; }

/* ── Media Ticker ── */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 32px;
    font-size: 15px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Selection ── */
::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #0f172a;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fafbfd;
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.18);
}

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ── Focus States ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(13, 148, 136, 0.4);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ── Legal Content ── */
.legal-content a {
    color: #0f766e;
    text-decoration: underline;
    text-decoration-color: rgba(13, 148, 136, 0.25);
    text-underline-offset: 3px;
    transition: all 0.25s ease;
}

.legal-content a:hover {
    color: #0d9488;
    text-decoration-color: rgba(13, 148, 136, 0.5);
}
