/* ============================================================
   EduFlow AI CRM — SaaS Explainer & Animated Product Demo
   Exact 1:1 Replica of Flike / Pinterest Motion Graphic Video
   Light Sky-Blue Radial Aura, Orbiting Cards, 360° Flow & Confetti
   ============================================================ */

:root {
    --landing-bg: #f8fafc;
    --landing-aura-1: #e0f2fe;
    --landing-aura-2: #bfdbfe;
    --landing-aura-3: #ddd6fe;
    --landing-card-bg: rgba(255, 255, 255, 0.85);
    --landing-card-border: rgba(226, 232, 240, 0.9);
    --landing-primary: #2563eb;
    --landing-primary-hover: #1d4ed8;
    --landing-accent: #0284c7;
    --landing-success: #10b981;
    --landing-warning: #f59e0b;
    --landing-purple: #8b5cf6;
    --landing-text-main: #0f172a;
    --landing-text-muted: #64748b;
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.landing-body {
    background-color: var(--landing-bg);
    color: var(--landing-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ── Luminous Sky-Blue Radial Aura Backdrop (00:00 - 00:15) ── */
.landing-bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #e0f2fe 0%, #f0f9ff 45%, #ffffff 80%);
}

.glow-aura-circle {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    0% { transform: translateX(-50%) scale(0.95); opacity: 0.85; }
    100% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* ── Navbar ── */
.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.landing-brand .brand-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
}

.landing-nav-links a {
    color: var(--landing-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.landing-nav-links a:hover {
    color: var(--landing-primary);
}

.btn-landing-primary {
    background: #2563eb;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-landing-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.btn-landing-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-landing-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-2px);
}

/* ── Hero Section (Orbiting Integration Stage like 00:00 - 00:09) ── */
.landing-hero {
    position: relative;
    z-index: 10;
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 99px;
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    max-width: 980px;
    margin: 0 auto 1.5rem;
    letter-spacing: -1.5px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    color: var(--landing-text-muted);
    max-width: 760px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Orbiting Stage Container right inside Hero */
.orbit-showcase-stage {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 380px;
    margin: 1.5rem auto 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center-avatar {
    position: relative;
    z-index: 5;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
}

.orbit-center-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.orbit-rings {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px dashed rgba(37, 99, 235, 0.35);
    animation: spinRing 25s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.6rem 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    z-index: 6;
    animation: floatCard 4s ease-in-out infinite alternate;
}

.orbit-item.item-1 { top: 8%; left: 8%; animation-delay: 0s; border-left: 4px solid #ef4444; }
.orbit-item.item-2 { top: 5%; right: 12%; animation-delay: 0.7s; border-left: 4px solid #f59e0b; }
.orbit-item.item-3 { bottom: 12%; left: 10%; animation-delay: 1.4s; border-left: 4px solid #10b981; }
.orbit-item.item-4 { bottom: 10%; right: 8%; animation-delay: 2.1s; border-left: 4px solid #2563eb; }
.orbit-item.item-5 { top: 45%; left: 2%; animation-delay: 1s; border-left: 4px solid #8b5cf6; }
.orbit-item.item-6 { top: 45%; right: 2%; animation-delay: 1.8s; border-left: 4px solid #06b6d4; }

@keyframes floatCard {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-8px) scale(1.03); }
}

/* ── 360-Degree Customer & Lead Workflow Pipeline (00:20 - 00:28) ── */
.flow-360-section {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.flow-360-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flow-step-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.flow-step-node {
    flex: 1;
    min-width: 170px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.flow-step-node:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.flow-step-node .step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.85rem;
}

.flow-step-node.green .step-icon { background: #ecfdf5; color: #10b981; }
.flow-step-node.purple .step-icon { background: #f5f3ff; color: #8b5cf6; }
.flow-step-node.orange .step-icon { background: #fffbeb; color: #f59e0b; }

.flow-step-node h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.flow-step-node p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.flow-wave-connector {
    color: #3b82f6;
    font-size: 1.5rem;
    animation: flowPulseRight 1.5s infinite;
}

@keyframes flowPulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* ── The Interactive Flike / EduFlow SaaS Dashboard Window Replica (00:30 - 00:43) ── */
.app-mockup-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.app-mockup-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 0 45px rgba(37, 99, 235, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-window-topbar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-window-dots {
    display: flex;
    gap: 8px;
}

.app-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.app-dot.red { background: #ef4444; }
.app-dot.yellow { background: #f59e0b; }
.app-dot.green { background: #10b981; }

.app-url-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.38rem 1.25rem;
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 45%;
    justify-content: center;
}

.app-live-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    background: #ecfdf5;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    border: 1px solid #a7f3d0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 10px #10b981; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* App Body Grid (3 Columns just like Flike: Sidebar, Inbox/Outbox Feed, Profile Details) */
.app-window-body {
    display: grid;
    grid-template-columns: 240px 1fr 340px;
    min-height: 540px;
}

@media (max-width: 1024px) {
    .app-window-body {
        grid-template-columns: 200px 1fr;
    }
    .app-col-right {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .app-window-body {
        grid-template-columns: 1fr;
    }
    .app-col-left {
        display: none !important;
    }
}

/* Left Sidebar in Mockup */
.app-col-left {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-brand-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.mockup-btn-new {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-btn-new:hover {
    background: #1d4ed8;
}

.mockup-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mockup-nav-item {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mockup-nav-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.mockup-nav-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
}

.mockup-nav-item.active .mockup-nav-badge {
    background: #dbeafe;
    color: #2563eb;
}

/* Center Feed Panel */
.app-col-center {
    padding: 1.75rem 2rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.feed-sources-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.source-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.source-pill:hover, .source-pill.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

/* Interactive Tabs inside Mockup Center Panel */
.mockup-tab-content {
    flex: 1;
    display: none;
    animation: fadeInTab 0.35s ease forwards;
}

.mockup-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-bubble-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.message-bubble-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.message-bubble-card.active-message {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.msg-sender {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.sender-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.msg-time {
    font-size: 0.78rem;
    color: #64748b;
}

.msg-body {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.msg-tags {
    display: flex;
    gap: 0.5rem;
}

.msg-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.msg-tag.flikeable { background: #fef3c7; color: #d97706; }
.msg-tag.inbox { background: #e2e8f0; color: #475569; }
.msg-tag.hot { background: #fee2e2; color: #dc2626; }
.msg-tag.wa { background: #ecfdf5; color: #10b981; }

/* Right Profile Column */
.app-col-right {
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.profile-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.profile-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.profile-role {
    font-size: 0.82rem;
    color: #64748b;
}

.profile-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.stat-box-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-box-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

/* Action Bar inside Mockup Bottom Right */
.mockup-action-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-mockup-send {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-mockup-send:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.btn-mockup-secondary {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-mockup-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ── Follow-ups Ready to Send Table Replica (00:55) ── */
.table-showcase-section {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.table-showcase-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.table-header-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-row-item {
    padding: 1.1rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s ease;
}

.table-row-item:hover {
    background: #f8fafc;
}

.table-row-item:last-child {
    border-bottom: none;
}

.row-contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.contact-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.row-msg-preview {
    flex: 1;
    font-size: 0.88rem;
    color: #475569;
}

.row-msg-preview span.bold-subject {
    font-weight: 700;
    color: #0f172a;
}

/* ── Confetti Animation Container ── */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background: #ef4444;
    top: -20px;
    opacity: 0;
}

@keyframes dropConfetti {
    0% { transform: translateY(0) rotateZ(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotateZ(720deg); opacity: 0; }
}

/* ── Section Titles & Grid ── */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--landing-text-muted);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
    font-size: 1.08rem;
}

/* ── Final CTA Section Replica (01:09 - 01:13) ── */
.landing-final-cta {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 28px;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 980px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.1);
}

.landing-footer {
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    background: #ffffff;
}
