/**
 * Wonotify Landing Page Theme
 * Theme Name: Wonotify New Landing
 * Primary Color: #1B4D3E (Dark Green)
 * Secondary Color: #E8F5E9 (Mint Green)
 */

:root {
    --bs-primary: #1B4D3E;
    --bs-primary-rgb: 27, 77, 62;
    --bs-secondary: #E8F5E9;
    --bs-success: #28a745;
    --bs-body-bg: #F5F7FA;
    --bs-body-color: #2C3E50;
    --bs-font-sans-serif: 'Public Sans', sans-serif;
    
    /* Custom Theme Colors */
    --wn-green-dark: #1B4D3E;
    --wn-green-light: #E8F5E9;
    --wn-green-hover: #143a2f;
    --wn-mint: #A7F3D0;
    --wn-mint-soft: #ECFDF5;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0F172A;
    --bs-body-color: #F8FAFC;
    --bs-primary: #34D399; /* Lighter green for dark mode */
    --bs-primary-rgb: 52, 211, 153;
    
    /* Custom Dark Overrides */
    --wn-green-dark: #34D399;
    --wn-green-light: rgba(52, 211, 153, 0.1);
    --wn-green-hover: #10B981;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

/* --- Navigation --- */
.layout-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

[data-bs-theme="dark"] .layout-navbar {
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.navbar-brand {
    color: #1B4D3E !important;
    font-weight: 700;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #34D399 !important;
}

.nav-link {
    color: #2C3E50 !important;
    font-weight: 500;
}

[data-bs-theme="dark"] .nav-link {
    color: #E2E8F0 !important;
}

.nav-link:hover, .nav-link.active {
    color: #1B4D3E !important;
}

[data-bs-theme="dark"] .nav-link:hover, [data-bs-theme="dark"] .nav-link.active {
    color: #34D399 !important;
}

/* --- Hero Section --- */
.landing-hero {
    background-color: #0F172A;
    background-image: 
        radial-gradient(at 0% 0%, rgba(27, 77, 62, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(52, 211, 153, 0.1) 0px, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px; /* Grid pattern */
    color: #F8FAFC;
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .landing-hero {
    background-color: #0F172A;
}

/* Light Mode Override for Grid */
[data-bs-theme="light"] .landing-hero {
    background-color: #F8FAFC;
    background-image: 
        radial-gradient(at 0% 0%, rgba(27, 77, 62, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(52, 211, 153, 0.05) 0px, transparent 50%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    color: #2C3E50;
}

/* Central Hub Visual */
.wn-flow-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16/9;
    perspective: 1000px;
}

/* Adjust text alignment for left column */
.landing-hero h1, 
.landing-hero p, 
.landing-hero .hero-sub-title {
    margin-left: 0;
    margin-right: 0;
    text-align: inherit; /* Inherit from parent (start/center) */
}

.hero-sub-title {
    max-width: 100%; /* Allow full width in column */
}

/* Satellites - Scale down slightly for column fit */
.wn-flow-satellite {
    padding: 10px 16px;
    font-size: 0.8rem;
    gap: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .wn-flow-container {
        margin-top: 3rem;
    }
}

.wn-flow-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #1B4D3E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.3);
    z-index: 10;
    border: 4px solid rgba(255,255,255,0.1);
    animation: pulseHub 3s infinite ease-in-out;
}

.wn-flow-hub img {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
}

@keyframes pulseHub {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { box-shadow: 0 0 0 30px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.wn-flow-satellite {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1B4D3E;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(27, 77, 62, 0.1);
    z-index: 5;
    transition: all 0.3s ease;
    animation: floatSat 4s ease-in-out infinite;
}

[data-bs-theme="dark"] .wn-flow-satellite {
    background: #1E293B;
    color: #E2E8F0;
    border-color: rgba(255,255,255,0.1);
}

.wn-flow-satellite i { font-size: 1.2rem; }

/* Positioning Satellites */
.sat-1 { top: 10%; left: 20%; animation-delay: 0s; }
.sat-2 { top: 20%; right: 15%; animation-delay: 1s; }
.sat-3 { bottom: 15%; left: 15%; animation-delay: 2s; }
.sat-4 { bottom: 25%; right: 25%; animation-delay: 1.5s; }
.sat-5 { top: 50%; right: 5%; animation-delay: 0.5s; }
.sat-6 { top: 60%; left: 5%; animation-delay: 2.5s; }

@keyframes floatSat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Connecting Lines (SVG) */
.wn-flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wn-flow-line {
    stroke: #34D399;
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: flowLine 20s linear infinite;
    opacity: 0.3;
}

@keyframes flowLine {
    to { stroke-dashoffset: -1000; }
}

/* Floating Status Card */
.wn-hero-floating-card {
    position: absolute;
    bottom: 5%;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 20;
    animation: floatCard 6s ease-in-out infinite;
    max-width: 240px;
}

[data-bs-theme="dark"] .wn-hero-floating-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255,255,255,0.1);
    color: #F8FAFC;
}

.wn-float-icon {
    width: 40px;
    height: 40px;
    background: #E8F5E9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4D3E;
}

[data-bs-theme="dark"] .wn-float-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
}

.wn-float-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.wn-float-subtitle {
    font-size: 0.75rem;
    color: #64748B;
}

[data-bs-theme="dark"] .wn-float-subtitle {
    color: #94A3B8;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Badge Updates */
.hero-badge-new {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid #34D399;
    color: #34D399;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

/* --- Features Section --- */
.wn-feature-section {
    background: #ffffff;
    color: #334155;
    overflow: hidden;
    position: relative;
    padding: 5rem 0;
}

[data-bs-theme="dark"] .wn-feature-section {
    background: #0F172A;
    color: #F8FAFC;
}

.wn-feature-badge {
    background: #E8F5E9;
    border: 1px solid #C6F6D5;
    color: #1B4D3E;
    font-weight: 600;
    letter-spacing: 0.3px;
}

[data-bs-theme="dark"] .wn-feature-badge {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.2);
    color: #34D399;
}

.wn-feature-title {
    color: #1B4D3E;
    font-weight: 800;
    letter-spacing: -0.02em;
}

[data-bs-theme="dark"] .wn-feature-title {
    color: #F1F5F9;
}

.wn-feature-subtitle {
    color: #64748B;
    max-width: 720px;
    margin: 0 auto;
}

[data-bs-theme="dark"] .wn-feature-subtitle {
    color: #94A3B8;
}

.wn-feature-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    height: 100%;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .wn-feature-card {
    background: #1E293B;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.wn-feature-card:hover {
    border-color: #1B4D3E;
    box-shadow: 0 12px 24px rgba(27, 77, 62, 0.08);
    transform: translateY(-4px);
}

[data-bs-theme="dark"] .wn-feature-card:hover {
    border-color: #34D399;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.wn-feature-card-title {
    color: #1B4D3E;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

[data-bs-theme="dark"] .wn-feature-card-title {
    color: #F1F5F9;
}

.wn-feature-card-text {
    color: #64748B;
    font-size: 0.92rem;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .wn-feature-card-text {
    color: #94A3B8;
}

.wn-feature-icon {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

/* Feature Tones - Mapped to Green/Teal Palette */
.wn-tone-violet { background: #E8F5E9; color: #1B4D3E; }
.wn-tone-teal { background: #E0F2F1; color: #00695C; }
.wn-tone-green { background: #DCFCE7; color: #15803D; }
.wn-tone-orange { background: #FEF3C7; color: #B45309; }
.wn-tone-red { background: #FEE2E2; color: #B91C1C; }
.wn-tone-blue { background: #E0F2FE; color: #0369A1; }
.wn-tone-slate { background: #F1F5F9; color: #475569; }

[data-bs-theme="dark"] .wn-tone-violet { background: rgba(52, 211, 153, 0.1); color: #34D399; }
[data-bs-theme="dark"] .wn-tone-teal { background: rgba(45, 211, 238, 0.1); color: #2DD4BF; }
[data-bs-theme="dark"] .wn-tone-green { background: rgba(34, 197, 94, 0.1); color: #4ADE80; }
[data-bs-theme="dark"] .wn-tone-orange { background: rgba(251, 146, 60, 0.1); color: #FB923C; }
[data-bs-theme="dark"] .wn-tone-red { background: rgba(248, 113, 113, 0.1); color: #F87171; }
[data-bs-theme="dark"] .wn-tone-blue { background: rgba(56, 189, 248, 0.1); color: #38BDF8; }
[data-bs-theme="dark"] .wn-tone-slate { background: rgba(148, 163, 184, 0.1); color: #94A3B8; }

/* --- Pricing Section --- */
.landing-pricing {
    background-color: #F5F7FA;
    padding: 5rem 0;
}

[data-bs-theme="dark"] .landing-pricing {
    background-color: #0F172A;
}

.card.border-primary {
    border-color: #1B4D3E !important;
}

[data-bs-theme="dark"] .card.border-primary {
    border-color: #34D399 !important;
}

.text-primary {
    color: #1B4D3E !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #34D399 !important;
}

.bg-label-primary {
    background-color: #E8F5E9 !important;
    color: #1B4D3E !important;
}

[data-bs-theme="dark"] .bg-label-primary {
    background-color: rgba(52, 211, 153, 0.1) !important;
    color: #34D399 !important;
}

.btn-label-primary {
    background-color: #E8F5E9;
    color: #1B4D3E;
}

[data-bs-theme="dark"] .btn-label-primary {
    background-color: rgba(52, 211, 153, 0.1);
    color: #34D399;
}

.btn-label-primary:hover {
    background-color: #1B4D3E;
    color: #fff;
}

[data-bs-theme="dark"] .btn-label-primary:hover {
    background-color: #34D399;
    color: #0F172A;
}

/* --- CTA Section --- */
.landing-cta {
    background-color: #ffffff;
}

[data-bs-theme="dark"] .landing-cta {
    background-color: #1E293B;
}

.cta-title {
    color: #1B4D3E !important;
}

[data-bs-theme="dark"] .cta-title {
    color: #34D399 !important;
}

/* --- Contact Section --- */
.landing-contact {
    background-color: #F5F7FA;
    padding: 5rem 0;
}

[data-bs-theme="dark"] .landing-contact {
    background-color: #0F172A;
}

.contact-img-box {
    background: #ffffff;
    border-color: #E2E8F0 !important;
    border-radius: 16px;
}

[data-bs-theme="dark"] .contact-img-box {
    background: #1E293B;
    border-color: #334155 !important;
}

/* --- Footer --- */
.landing-footer {
    background-color: #1B4D3E;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
}

[data-bs-theme="dark"] .landing-footer {
    background-color: #0F172A;
    border-top: 1px solid #334155;
    color: #94A3B8;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .landing-footer a {
    color: #E2E8F0;
}

.landing-footer a:hover {
    color: #fff;
}

[data-bs-theme="dark"] .landing-footer a:hover {
    color: #34D399;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .wn-hero-visual {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .wn-hero-panel-flow,
    .wn-hero-panel-chat {
        grid-column: span 1;
    }
    .landing-hero {
        padding-top: 8rem; /* Smaller padding on mobile */
    }
}

/* --- Buttons --- */
.btn-primary {
    background-color: #1B4D3E;
    border-color: #1B4D3E;
    box-shadow: 0 4px 6px rgba(27, 77, 62, 0.2);
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #34D399;
    border-color: #34D399;
    color: #0F172A;
    box-shadow: 0 4px 6px rgba(52, 211, 153, 0.2);
}

.btn-primary:hover {
    background-color: #143a2f;
    border-color: #143a2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(27, 77, 62, 0.3);
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #10B981;
    border-color: #10B981;
    color: #fff;
    box-shadow: 0 6px 12px rgba(52, 211, 153, 0.3);
}

/* --- Global Dark Mode Base Overrides --- */
[data-bs-theme="dark"] body {
    color: #F8FAFC;
    background-color: #0F172A;
}

[data-bs-theme="dark"] .card {
    background-color: #1E293B;
    border-color: #334155;
}

[data-bs-theme="dark"] .text-body {
    color: #F8FAFC !important;
}

[data-bs-theme="dark"] .text-heading {
    color: #F1F5F9 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

/* Visual Panel specific animations */
.wn-hero-panel {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wn-hero-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(27, 77, 62, 0.12);
}

[data-bs-theme="dark"] .wn-hero-panel:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
