/* ============================================
   OwiBook Landing Page Styles
   ============================================ */

/* --- Base --- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    font-family: "DM Sans", "Montserrat", "Poppins", "Roboto", sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- Hero gradient background --- */
.hero-gradient {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 35%, #c7d2fe 65%, #ddd6fe 100%);
    background-size: 200% 200%;
    animation: heroShift 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
/* Dot pattern overlay */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99,102,241,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}
/* Soft glow accent */
.hero-gradient::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Stat Cards --- */
.stat-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 3px 8px rgba(99,102,241,0.18);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.stat-card:hover .stat-icon-wrap {
    transform: scale(1.08);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .stat-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
    .stat-icon-wrap svg {
        width: 24px;
        height: 24px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}

/* --- CTA Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}
.btn-secondary {
    background: #fff;
    color: #4f46e5;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid #4f46e5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn-secondary:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.25);
}

/* --- Trust logo strip --- */
.logo-strip .logo-item img {
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.4s ease, transform 0.3s ease;
}
.logo-strip .logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

/* --- Benefit Cards --- */
.benefit-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67,56,202,0.15);
}
.benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

/* --- Media Card --- */
.media-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s;
}
.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

/* --- Video Section --- */
.video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(99,102,241,0.15);
    transition: box-shadow 0.35s;
}
.video-wrapper:hover {
    box-shadow: 0 24px 60px rgba(99,102,241,0.2);
}

/* --- Award Badge --- */
.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #fcd34d;
}

/* --- Nav glass effect --- */
.nav-glass {
    background: rgba(249, 250, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

/* --- Footer gradient --- */
.footer-gradient {
    background: linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
}

/* --- Floating badge animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* --- Responsive fine-tuning --- */
@media (max-width: 768px) {
    .hero-gradient::before,
    .hero-gradient::after {
        display: none;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
