/* ──────────────────────────────────────────────────────────────────────────
   NextLesson – Custom CSS
   Tailwind handles utilities; this file handles animations, pseudo-elements,
   and anything that can't be expressed with Tailwind classes alone.
   ────────────────────────────────────────────────────────────────────────── */

/* ─── Global ────────────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #16162a;
    color: #ffffff;
}

/* ─── Brand check/cross icons in comparison table ───────────────────────── */
.check-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #00bcd4;
    color: #16162a;
    font-size: 14px;
    font-weight: 700;
}

.check-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e9284c;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #16162a 60%, #1e102e 100%);
    min-height: 70vh;
}

.hero-logo {
    font-size: clamp(5rem, 13vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

/* Animated background blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: float 8s ease-in-out infinite;
}

.blob-pink {
    width: 500px;
    height: 500px;
    background: #e91e8c;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-teal {
    width: 400px;
    height: 400px;
    background: #00bcd4;
    bottom: -80px;
    left: -80px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ─── Feature cards ─────────────────────────────────────────────────────── */
.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(233, 30, 140, 0.15);
}

/* ─── Phone / Tablet mockups ────────────────────────────────────────────── */
.mockup-phone {
    width: 200px;
    background: #1e1e35;
    border-radius: 32px;
    border: 3px solid #2e2e50;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.mockup-tablet {
    width: 320px;
    background: #1e1e35;
    border-radius: 28px;
    border: 3px solid #00bcd4;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0,188,212,0.2);
    flex-shrink: 0;
}

.mockup-screen,
.mockup-screen-tablet {
    background: #16162a;
    border-radius: 22px;
    overflow: hidden;
}

.mockup-screen-inner {
    padding: 16px 12px;
    min-height: 280px;
}

.mockup-rotate-left {
    transform: rotate(-5deg) translateY(20px);
}

.mockup-rotate-right {
    transform: rotate(5deg) translateY(20px);
}

/* ─── Table styling ──────────────────────────────────────────────────────── */
table {
    border-collapse: collapse;
}

tbody tr:last-child {
    border-bottom: none;
}

/* ─── Scrollbar (Webkit) ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1e1e35;
}

::-webkit-scrollbar-thumb {
    background: #e91e8c;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2185b;
}

/* ─── Responsive tweaks ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .mockup-rotate-left,
    .mockup-rotate-right {
        transform: none;
    }

    .hero-logo {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }
}

/* ─── Smooth section transitions ─────────────────────────────────────────── */
section {
    transition: background-color 0.3s ease;
}

/* ─── Nav backdrop blur fallback ─────────────────────────────────────────── */
nav {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* ─── Focus ring for accessibility ──────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #00bcd4;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Carousel ───────────────────────────────────────────────────────────── */
.carousel-phone-frame {
    width: 260px;
    background: #1e1e35;
    border-radius: 32px;
    border: 3px solid #2e2e50;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.carousel-dot-active {
    background: #e91e8c;
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #252540;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: #e91e8c;
}
