/* =========================================
   1. BRAND TOKENS & THEMING
   ========================================= */
:root {
    --primary-blue: #00a3ff;
    --primary-gradient: linear-gradient(90deg,#00a3ff 0%, #0066ff 100%);
    --accent-strong: #ff7a59;
    --white: #ffffff;
    --bg-body: #f1f5f9;
    --bg-alt: #f8fdff;
    --section-card: #ffffff;
    --text-main: #0f1724;
    --text-muted: #556174;
    --card-bg: #ffffff;
    --border: #e6eef3;
    --section-border: rgba(0, 0, 0, 0.05);
    --focus-ring: rgba(6, 182, 212, 0.18);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --nav-glass: rgba(255, 255, 255, 0.75); /* Added for consistency */
}

[data-theme="dark"] {
    --primary-blue: #38bdf8;
    --accent-strong: #7dd3fc;
    --bg-body: #0f172a;
    --bg-alt: #1e293b;
    --section-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border: rgba(255, 255, 255, 0.06);
    --section-border: rgba(255, 255, 255, 0.05);
    --nav-glass: rgba(15, 23, 42, 0.8);
    --hero-gradient: radial-gradient(circle at top right, #1e293b, #0f172a);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =========================================
   2. CORE RESET & BASE STYLES
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* Prevents the iOS 'copy' menu on long press if desired */
    a, button, input, textarea, .carousel-card {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none; /* Also removes the focus ring that appears on some browsers */
}
}

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { 
    color: var(--text-main); 
    letter-spacing: -0.01em; 
    line-height: 1.1; 
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-weight: 800; 
    margin-bottom: 20px; 
}

h2 { 
    font-size: 2.2rem; 
    font-weight: 800; 
}

/* Typography utility classes */
.text-blue { 
    color: var(--primary-blue); 
    font-weight: 800; 
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}
/* =========================================
   3. LAYOUT & CONTAINERS
   ========================================= */
.section-container {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--section-card);
    border: 1px solid var(--section-border);
    border-radius: 40px;
    padding: 80px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

[data-theme="light"] .section-container {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 
                0 20px 25px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid #ffffff;
}

[data-theme="dark"] section:nth-child(even) .section-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.section { 
    padding: 100px 8%; 
    position: relative; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}
/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    background: var(--nav-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 0.7rem 1.5rem;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .navbar {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--primary-blue); 
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
}

/* Modern hamburger animation */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: var(--text-main);
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(135deg);
    background: var(--primary-blue);
    width: 25px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0) translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-135deg);
    background: var(--primary-blue);
    width: 25px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.hamburger:hover span {
    background: var(--primary-blue);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.hamburger.active:hover span {
    background: var(--primary-blue);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Mobile menu styles */
@media (max-width: 1024px) {
    .hamburger {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 280px;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        border-radius: 24px;
        border: 1px solid var(--border);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        z-index: 999;
        display: flex !important;
        gap: 8px;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    visibility 0s linear 0.5s;
        transform: translateX(100%) scale(0.95);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 4%;
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                    opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                    visibility 0s linear 0s;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
        border-radius: 14px;
        font-weight: 600;
        font-size: 0.95rem;
        display: block;
        transition: all 0.3s ease;
        margin-bottom: 4px;
        background: transparent;
        border: 1px solid transparent;
        color: var(--text-main);
        text-decoration: none;
    }
    
    .nav-item:hover {
        background: rgba(56, 189, 248, 0.1);
        color: var(--primary-blue);
        border-color: rgba(56, 189, 248, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
    }
}

/* Desktop navigation */
@media (min-width: 1025px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .nav-item {
        display: inline-flex !important;
        padding: 10px 18px !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* Accessibility improvements */
.hamburger:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.nav-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* =========================================
   5. BUTTONS & BADGES
   ========================================= */
/* Primary Blue Button */
.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 32px;
    border: none; 
    border-radius: 12px;
    font-weight: 700; 
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.navbar .btn-blue {
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .btn-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

/* Outline Button Variants */
.btn-outline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(0, 163, 255, 0.1);
    transform: translateX(5px);
}

.btn-outline-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-outline-small:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.btn-outline-small svg {
    transition: transform 0.3s ease;
}

.btn-outline-small:hover svg {
    transform: translateX(4px);
}

.btn-outline-sleek {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1.5px solid var(--primary-blue);
    border-radius: 100px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-sleek:hover {
    background: rgba(0, 163, 255, 0.05);
    transform: translateY(-2px);
}

/* Primary Button (used in modal) */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00a3ff, #0066ff);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.4);
}

.download-app-btn {
    background: linear-gradient(90deg, #0088ff, #00c2ff);
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-app-btn:active {
    transform: scale(0.96);
}

/* Carousel trigger button (moved from carousel section) */
.carousel-trigger-btn {
    margin-top: 40px;
    padding: 15px 40px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-trigger-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 10px 20px var(--focus-ring);
}

/* Control Buttons (carousel) */
.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.control-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Share button (modal) */
.share-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
}

.share-icon-circle {
    width: 40px;
    height: 40px;
    background: #0088ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge Styles */
.badge { 
    display: inline-block; 
    background: var(--bg-alt); 
    color: var(--primary-blue); 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase;
}

.badge-pill {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px !important;
    display: inline-block;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-item, .btn-blue, .btn-outline, .btn-outline-small, .control-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* =========================================
   6. CARDS
   ========================================= */
/* Basic Card */
.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .card {
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 240px;
    padding: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Image Wrapper */
.card-img {
    width: 100%;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card-image-wrapper {
    width: 100%;
    height: 160px;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.category-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--card-accent);
    margin-bottom: 8px;
    display: block;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Card active state (moved from carousel section) */
.card.active {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 
                inset 0 0 10px rgba(59, 130, 246, 0.4);
    transition: all 0.5s ease-in-out;
}
/* =========================================
   7. HERO SECTION
   ========================================= */
.hero {
    margin-bottom: -60px;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 5% 80px;
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content { 
    text-align: left; 
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.hero-btns-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Store Badges */
.store-badge img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badge:hover img {
    transform: translateY(-3px) scale(1.02);
}

.app-badge img {
    height: 52px;
    width: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.app-badge:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Hero Visual - Phone */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-wrapper {
    width: 280px;
    height: 580px;
    background: #0f172a;
    border: 12px solid #1e293b;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
}

.phone-screen-content {
    padding: 40px 20px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

.app-ui-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.app-ui-mood-tracker {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mood-wave {
    height: 60px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="black" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,144C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    margin-bottom: 10px;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: 15px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}

.glass-card { top: 100px; right: -60px; }
.glass-card-alt { bottom: 100px; left: -80px; animation-delay: 2s; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero Trust Section */
.hero-trust-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-pill {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* Social Proof */
.hero-social-proof {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-group {
    display: flex;
    margin-left: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
    margin-left: -12px;
    object-fit: cover;
}

.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 3px solid var(--bg-body);
    margin-left: -12px;
}

.stars {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.proof-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Prevent text selection on interactive elements */
.floating-card, .task-item, .nav-item, .btn-blue, .btn-outline {
    user-select: none;
    -webkit-user-select: none;
}
/* =========================================
   8. PILLARS SECTION
   ========================================= */
.pillars-section {
    padding: 120px 5%;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 100px;
}

.pillars-section .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    max-width: 1600px;
}

.pillars-section .section-header {
    margin-bottom: 20px !important;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 0 !important;
    width: 100%;
    align-items: stretch;
    justify-items: center;
}

.pillar-card {
    background: var(--bg-alt);
    padding: 45px 35px;
    border-radius: 28px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 380px;
    margin-left: auto;
    margin-right: auto;
}

.pillar-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.active-pillar {
    background: linear-gradient(145deg, var(--bg-alt), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.3);
}

.pillar-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
    color: var(--text-main);
    line-height: 1.3;
}

.pillar-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.pillar-list li {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.pillar-list li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Section Header (used in multiple sections) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px; 
}

.section-header h2 {
    font-size: 2.8rem;
    margin: 20px 0 25px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Wide screen adjustments for pillars */
@media (min-width: 1200px) {
    .pillars-grid {
        grid-template-columns: repeat(3, minmax(340px, 1fr));
        gap: 36px;
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .pillars-grid {
        max-width: 1400px;
        grid-template-columns: repeat(3, minmax(360px, 1fr));
    }
    
    .pillars-section .section-container {
        max-width: 1600px;
    }
}
/* =========================================
   9. CAROUSEL - IMPROVED FOR MEDIUM DEVICES
   ========================================= */
.carousel-section {
    padding: 80px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Update the container to ensure the title is part of the layout */
.carousel-inner-container {
    width: 100%;           /* Let it span the full width */
    max-width: 1200px;     /* Keep the content from getting too wide */
    margin: 0 auto;
    padding: 20px;         /* Simple padding for breathing room */
    background: transparent; /* REMOVED the dark background */
    border-radius: 0;      /* REMOVED the rounded corners */
    box-shadow: none;      /* REMOVED the shadow */
    overflow: visible;     /* Let the card glow effects spill out naturally */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carousel-inner-container h2 {
    padding-top: 13px;
    white-space: nowrap; 
    margin-bottom: 5px;
    font-size: 1.5rem; /* Slightly smaller to ensure it fits on one line */
}
/* Update the viewport to remove the overlap */
.carousel-viewport {
    height: 350px; 
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Ensure your title (assuming it's an h2 or has a class) has consistent spacing */
.carousel-section h2 {
    margin-top: -40px;
    font-size: 2rem;
    margin-bottom: 30px; /* More space since there is no box boundary */
    color: #ffffff;      /* Or your primary text color */
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.nav-arrow {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--primary-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.nav-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 163, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.4s ease, background 0.4s ease;
}

.dot.active {
    width: 40px;
    background: rgba(0, 163, 255, 0.3);
}

.dot.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #00a3ff;
    box-shadow: 0 0 10px #00a3ff;
    animation: dotProgress 3.5s linear forwards;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Carousel Track Container */
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Carousel Card Styles (moved here from cards section for organization) */
.carousel-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170px; /* Small and sleek */
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.carousel-card-img {
    width: 100%;
    height: 100px; /* Compact image height */
    border-radius: 16px;
    margin-bottom: 10px;
}

.carousel-card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Carousel Card States */
.carousel-card.active {
    border: 2px solid var(--primary-blue) !important;
    box-shadow: 0 0 25px rgba(0, 163, 255, 0.4) !important;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.05);
}

.carousel-card.prev {
    transform: translate(-180%, -50%) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}

.carousel-card.next {
    transform: translate(80%, -50%) scale(0.85);
    opacity: 0.7;
    z-index: 5;
}

.carousel-card.far-left {
    transform: translate(-280%, -50%) scale(0.7);
    opacity: 0.4;
    z-index: 2;
}

.carousel-card.far-right {
    transform: translate(180%, -50%) scale(0.7);
    opacity: 0.4;
    z-index: 2;
}

.carousel-card.hidden {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.carousel-card .description {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.carousel-card.active .description {
    opacity: 1;
    max-height: 60px;
    margin-top: 8px;
}

/* Carousel Responsive Fixes */
@media (max-width: 1024px) {
    .carousel-viewport {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-viewport {
        height: 400px !important;
        margin-top: -30px !important;
    }
    
    .carousel-inner-container {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .carousel-viewport {
        height: 320px; /* Even shorter for small phones */
    }

    
    .carousel-inner-container {
        padding: 30px 10px;
        border-radius: 24px;
    }
}
/* =========================================
   10. SPOTLIGHT & FEATURES
   ========================================= */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 100px 0;
}

.feature-check-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.check-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check-icon {
    background: rgba(56, 189, 248, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.glass-ui-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.ui-graph-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    margin-top: 20px;
}

.bar {
    flex: 1;
    background: var(--primary-blue);
    border-radius: 5px 5px 0 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.bar:hover { 
    opacity: 1; 
}
/* =========================================
   11. CONNECTION & ORBITAL - WITH TOP SPACE
   ========================================= */
.connection-section {
    position: relative;
    padding: 140px 8% 120px;
    background-color: var(--bg-body);
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.map-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.connection-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.connection-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.main-card {
    grid-row: span 2;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Match Pulse Animation */
.match-pulse {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
}

.match-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: absolute;
    z-index: 2;
}

[data-theme="dark"] .match-img {
    border-color: #1e293b;
}

.img-left { 
    left: 20px; 
}

.img-right { 
    right: 20px; 
}

.pulse-ring {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(8px);
    animation: match-glow 2.5s infinite;
}

/* Orbital System */
.orbital-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.orbital-ring {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px; 
    height: 320px;
    border: 1.5px dashed rgba(0, 163, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.node {
    position: absolute;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 5;
}

.node img {
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.central-node {
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; 
    height: 120px;
    z-index: 10;
}

.node-glow {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px; 
    height: 160px;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

[data-theme="dark"] .orbiting-mood img {
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Avatar Cloud */
.avatar-cloud {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
}

.main-user-node {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    z-index: 10;
}

.main-user-node, .peer-node {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.main-user-node img, .peer-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.peer-node {
    position: absolute;
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    animation: float 6s ease-in-out infinite;
}

.peer { 
    width: 60px; 
    height: 60px; 
}

.p1 { 
    top: 10%; 
    left: 15%; 
}

.p2 { 
    top: 20%; 
    right: 5%; 
}

.p3 { 
    bottom: 15%; 
    left: 10%; 
}

.p4 { 
    bottom: 10%; 
    right: 20%; 
}

/* =========================================
   12. VIDEO SPOTLIGHT
   ========================================= */
.video-spotlight {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.bento-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.bento-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.bento-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 30px;
}

.bento-video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ambient-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    z-index: -1;
}

.video-sleek-container {
    position: relative;
    border-radius: 32px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 20px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-sleek-container:hover {
    transform: translateY(-10px) scale(1.02);
    border: 1px solid rgba(0, 163, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.main-video {
    width: 100%;
    border-radius: 24px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 50vh;
}

.bento-actions {
    margin-top: 32px;
    display: flex;
}
/* =========================================
   13. MODAL SYSTEM
   ========================================= */
.details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000; /* Increased to be above navbar (2000) */
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
}

.details-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.details-content {
    width: min(820px, 92vw);
    max-width: 820px;
    max-height: calc(100vh - 12vh);
    margin: 0 auto;
    padding: 24px;
    border-radius: 18px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateY(-10vh);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.details-grid {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.details-image {
    flex: 0 0 40%;
    max-width: 420px;
}

.details-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    max-height: 44vh;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.details-info {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.details-info h2 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: var(--primary-blue);
}

.details-info p { 
    color: #ccc; 
    line-height: 1.6; 
    margin-bottom: 30px; 
}

.details-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.neon-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 163, 255, 0.1);
    border: 2px solid #00a3ff;
    color: #00a3ff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 9999; /* Very high to be above everything */
}

.neon-close:hover {
    background: #00a3ff;
    color: white;
    box-shadow: 0 0 25px #00a3ff;
}

.module-integration h4 {
    margin: 20px 0 10px;
    font-size: 1.1rem;
    color: #fff;
}

#modalFeatures {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#modalFeatures li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.95rem;
}

#modalFeatures li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00a3ff;
    font-weight: bold;
}

/* Ensure body lock when modal open */
body.modal-open { 
    overflow: hidden; 
}
/* =========================================
   14. THEME TOGGLE - WITH PERMANENT BLUE OUTLINE
   ========================================= */
.theme-toggle-modern {
    position: relative;
    width: 60px;
    height: 32px;
    border-radius: 50px;
    background: var(--bg-alt);
    border: 2px solid var(--primary-blue); /* Blue outline */
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); /* For glow effect */
}

.theme-toggle-modern:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4); /* Blue glow on hover */
}

/* Blue outline stays visible in both themes */
[data-theme="light"] .theme-toggle-modern {
    border-color: var(--primary-blue);
    background: var(--bg-alt);
}

[data-theme="dark"] .theme-toggle-modern {
    border-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.8);
}

.toggle-circle {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 320ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background 220ms ease;
    transform: translateX(0);
}

[data-theme="dark"] .theme-toggle-modern .toggle-circle {
    transform: translateX(26px);
    background: var(--primary-blue); /* Keep blue in dark mode too */
}

.theme-toggle-modern .sun-svg,
.theme-toggle-modern .moon-svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
}

/* Sun icon - white in blue circle */
html:not([data-theme="dark"]) .theme-toggle-modern .sun-svg {
    display: inline-block;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: white; /* White sun */
}

html:not([data-theme="dark"]) .theme-toggle-modern .moon-svg {
    display: none;
    opacity: 0;
    transform: scale(0.9) rotate(8deg);
}

/* Moon icon - white in blue circle */
[data-theme="dark"] .theme-toggle-modern .moon-svg {
    display: inline-block;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: white; /* White moon */
}

[data-theme="dark"] .theme-toggle-modern .sun-svg {
    display: none;
    opacity: 0;
    transform: scale(0.9) rotate(-8deg);
}

/* Optional: Add a subtle pulse animation to the outline */
@keyframes gentlePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3); 
    }
    50% { 
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1); 
    }
}

.theme-toggle-modern:hover {
    animation: gentlePulse 2s infinite;
}
/* =========================================
   15. FINAL CTA
   ========================================= */
.final-cta {
    padding: 100px 5% 150px;
    background: var(--bg-body);
}

.cta-glass-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 48px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.cta-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
}

.cta-subtitle {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-btns {
    justify-content: center;
    display: flex;
    gap: 15px;
}

.cta-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}
/* =========================================
   16. HARBOR NET SECTION
   ========================================= */
.harbor-net-section {
    position: relative;
    padding: clamp(100px, 10vh, 140px) 5% 80px 5%;
    background-color: transparent; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 800px;
}

.harbor-flow-container {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: clamp(40px, 5vw, 80px); 
    max-width: 1200px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .harbor-flow-container {
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.harbor-net-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(30px, 5vw, 60px);
    width: 100%;
    align-items: center;
}

.harbor-net-canvas {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.harbor-net-svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.harbor-line {
    stroke-width: 1.5;
    stroke-dasharray: 4, 8;
    stroke-linecap: round;
}

.harbor-node {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(5px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.15);
    z-index: 5;
}

.harbor-node img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    display: block; 
    object-fit: cover; 
}

.harbor-main { 
    top: 50%; 
    left: 50%; 
    width: 28%; 
    height: 28%; 
    transform: translate(-50%, -50%); 
    z-index: 10; 
}

.harbor-peer { 
    width: 14%; 
    height: 14%; 
}

.p-tl { 
    top: 15%; 
    left: 10%; 
}

.p-tr { 
    top: 15%; 
    right: 10%; 
}

.p-br { 
    bottom: 20%; 
    right: 15%; 
}

.p-bl { 
    bottom: 20%; 
    left: 15%; 
}

.harbor-static-glow {
    position: absolute;
    top: 50%; 
    left: 50%;
    width: 120%; 
    height: 120%;
    background: radial-gradient(circle, #00a3ff 0%, transparent 70%);
    z-index: -1;
    animation: harborGlowPulse 4s ease-in-out infinite;
}

.float-y-alt { 
    animation: floatY 6s ease-in-out infinite reverse; 
}

.float-x { 
    animation: floatX 7s ease-in-out infinite; 
}
/* =========================================
   17. ANIMATIONS
   ========================================= */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

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

@keyframes floatX { 
    0%, 100% { 
        transform: translateX(0); 
    } 
    50% { 
        transform: translateX(10px); 
    } 
}

@keyframes harborGlowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.4); 
        opacity: 0.1; 
    }
}

@keyframes dotProgress {
    0% { 
        width: 0%; 
    }
    100% { 
        width: 100%; 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes match-glow {
    0% { 
        transform: scale(0.8); 
        opacity: 0.5; 
    }
    100% { 
        transform: scale(2.8); 
        opacity: 0; 
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1.5); 
        opacity: 0; 
    }
}

@keyframes mainOrbit {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes counterRotate {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(-360deg); 
    }
}
/* =========================================
   18. MOBILE RESPONSIVENESS FIXES
   ========================================= */

/* ========== TABLET (1024px and below) ========== */
@media (max-width: 1024px) {
    /* Hero fixes */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle { 
        margin: 0 auto 40px; 
    }
    
    .hero-btns-group { 
        justify-content: center; 
        flex-direction: row;
    }
    
    .hero-visual { 
        margin-top: 50px; 
    }
    
    .hero-title { 
        font-size: 3rem; 
    }
    
    .hero-social-proof { 
        justify-content: center; 
    }

    /* Spotlight grid */
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .check-item { 
        text-align: left; 
    }

    /* Video spotlight */
    .video-spotlight { 
        height: auto; 
        padding: 100px 20px; 
    }
    
    .bento-wrapper { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .bento-text { 
        align-items: center; 
    }

    /* Harbor net */
    .harbor-net-container {
        gap: 40px;
    }
    
    .harbor-net-canvas {
        max-width: 350px;
    }

    /* Bento wrapper specific */
    .bento-wrapper {
        grid-template-columns: 1fr; 
        gap: 60px;
        text-align: center;
        width: 90%; 
    }

    .bento-text {
        align-items: center; 
        text-align: center;
        margin: 0 auto;
        gap: 24px; 
    }

    .bento-actions {
        margin-top: 20px;
        justify-content: center;
        width: 100%;
    }

    .bento-description {
        margin: 0 auto;
        max-width: 550px;
    }

    .bento-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    /* Carousel viewport for tablet */
    .carousel-viewport {
        height: 400px;
    }
}

/* ========== 992px BREAKPOINT ========== */
@media (max-width: 992px) {
    .connection-grid {
        grid-template-columns: 1fr;
    }
    
    .main-card {
        flex-direction: column;
        text-align: center;
    }
    
    .main-card .icon-circle { 
        margin: 0 auto 20px; 
    }
    
    .match-pulse { 
        margin: 20px auto 0; 
    }

    .mood-flex { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px;
    }

    .mood-orbit-container { 
        width: 350px; 
        height: 350px; 
        margin: 0 auto;
    }

    .orbiting-mood { 
        transform: rotate(calc(var(--i) * (360deg / 6))) translateY(-150px) rotate(calc(var(--i) * (-360deg / 6))); 
    }
}

/* ========== 850px BREAKPOINT ========== */
@media (max-width: 850px) {
    .details-modal { 
        align-items: center; 
        padding-top: 6vh; 
    }
    
    .details-modal.show .details-content {
        transform: none;
        margin-top: 0;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 16px;
        border-radius: 14px;
        max-height: calc(100vh - 18vh);
    }
    
    .details-grid { 
        flex-direction: column; 
        gap: 18px; 
        align-items: center; 
    }
    
    .details-image { 
        order: 1; 
        flex: none; 
        width: 100%; 
        max-width: 100%; 
    }
    
    .details-info { 
        order: 2; 
        padding-top: 6px; 
        text-align: center; 
        align-items: center; 
    }
    
    .details-actions { 
        order: 3; 
        display: flex; 
        flex-direction: column; 
        gap: 12px; 
        margin-top: 8px; 
        width: 100%; 
        align-items: stretch; 
    }

    .details-image img { 
        max-height: 28vh; 
        border-radius: 12px; 
    }
    
    .download-app-btn, .share-btn { 
        width: 100%; 
        padding: 12px 16px; 
        border-radius: 12px; 
        justify-content: center; 
    }

    .details-info h2 { 
        font-size: 1.6rem; 
    }
    
    .details-info p { 
        font-size: 0.95rem; 
        color: var(--text-muted); 
    }

    .details-content .neon-close { 
        top: 10px; 
        right: 10px; 
        width: 36px; 
        height: 36px; 
    }
}

/* ========== TABLET (768px and below) ========== */
@media (max-width: 768px) {
    .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    h1 { font-size: 2.4rem; }
    
    .hero { padding: 120px 5% 60px 5%; }

    .section { padding: 60px 5%; }
    
    .section-container {
        margin: 20px 15px;
        padding: 40px 20px;
        border-radius: 24px;
    }

    /* Carousel Spacing Fix */
    .carousel-inner-container {
        width: 100%;
        padding: 10px 0 20px 0;
        margin: 0 auto;
        overflow: visible;
    }

    .carousel-viewport {
        height: 320px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .carousel-section .section-title {
        margin-bottom: 10px;
        padding-bottom: 0;
    }

    /* Mood Orbit */
    .mood-orbit-container { 
        width: 280px; 
        height: 280px; 
    }
    
    .orbiting-mood { 
        width: 100px;
        height: 100px;
        transform: rotate(calc(var(--i) * (360deg / 6))) translateY(-115px) rotate(calc(var(--i) * (-360deg / 6))); 
    }

    .orbiting-mood img {
        width: 100px;
        height: 100px;
    }

    /* Harbor Net Grid */
    .harbor-net-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .harbor-flow-container { 
        padding: 40px 24px; 
        border-radius: 30px; 
        margin: 0 10px; 
    }
    
    .harbor-net-left { 
        order: 2; 
        transform: scale(0.9);
    }
    
    .harbor-net-right { 
        order: 1; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    
    .bento-description {
        max-width: 450px;
    }

    /* Hero Content & Social Proof */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-subtitle {
        text-align: center;
        margin: 0 auto 35px auto;
        max-width: 95%;
        padding: 0;
        line-height: 1.7;
    }
    
    .hero-btns-group {
        justify-content: center;
        margin: 0 auto 30px auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        max-width: 320px;
    }
    
    .store-badge { flex: 1; text-align: center; }
    
    .store-badge img {
        height: 48px;
        width: auto;
        max-width: 100%;
    }
    
    .hero-social-proof {
        justify-content: center;
        text-align: center;
        margin: 25px auto 0 auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .avatar-group { justify-content: center; margin-left: 0; }
    .proof-text { align-items: center; text-align: center; }

    /* Pillars layout */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pillar-card {
        padding: 35px 25px;
        min-height: 350px;
    }
    
    /* Stars alignment fix */
    .stars {
        justify-content: center;
        margin-bottom: 4px;
    }
}

/* ========== SMALL PHONES (480px and below) ========== */
@media (max-width: 480px) {
    .hero { padding: 100px 5% 40px; }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    /* Pillars - Balanced Spacing */
    .pillars-section .section-container {
        width: 100%;
        padding-left: 20px; 
        padding-right: 20px;
    }

    .pillar-card {
        padding: 30px 25px; 
        width: 100%;
        min-height: auto; 
        box-sizing: border-box;
    }

    .pillar-card h3, .pillar-card p, .pillar-list {
        text-align: left;
    }

    /* Harbor Net - Lowered to fix overlap */
    .harbor-net-section {
        margin-top: 60px;
        padding: 60px 5%;
    }
    
    .harbor-flow-container {
        padding: 30px 15px;
        margin-top: 0;
    }

    /* Phone UI & Floating Cards */
    .phone-wrapper {
        width: 240px;
        height: 500px;
        border-width: 8px;
        border-radius: 30px;
    }
    
    .phone-screen-content { padding: 25px 15px; font-size: 0.9rem; }
    .app-ui-header { font-size: 1rem; margin-bottom: 20px; }
    .app-ui-mood-tracker { padding: 15px; margin-bottom: 15px; }
    .mood-wave { height: 40px; }
    .task-item { padding: 8px 10px; font-size: 0.8rem; margin-bottom: 8px; }
    
    .app-ui-mood-tracker > div:last-child {
        font-size: 0.75rem;
        padding: 0 5px;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .floating-card { padding: 10px 15px; font-size: 0.8rem; max-width: 150px; }
    .glass-card { top: 60px; right: -30px; transform: scale(0.8); }
    .glass-card-alt { bottom: 60px; left: -40px; transform: scale(0.8); }
    
    /* Nav & Stats */
    .navbar { width: 95%; top: 10px; padding: 0.5rem 1rem; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .stat-divider { display: none; }
    
    /* Store Badges */
    .store-badge img { height: 40px; width: auto; }
    .hero-social-proof { flex-direction: column; align-items: center; }

    /* Video Spotlight */
    .video-spotlight { height: auto; min-height: 80vh; padding: 60px 5%; }
    .main-video { max-height: 40vh; }
    
    /* Final CTA */
    .cta-glass-card { padding: 40px 20px; border-radius: 24px; }
    .cta-title { font-size: 1.8rem; }
}

/* ========== LARGE SCREENS (1025px and above) ========== */
@media (min-width: 1025px) {
    .carousel-section { overflow: hidden; width: 100%; position: relative; }
    
    .carousel-viewport {
        height: 380px;
        padding: 15px 20px;
        margin-top: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-inner-container { padding-top: 20px; padding-bottom: 20px; }
    .store-badge img { height: 54px; min-width: 140px; }
    .bento-text { align-items: flex-start; }
    .bento-actions { justify-content: flex-start; }
}

/* ========== LANDSCAPE MODE ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; padding: 120px 5% 40px; }
    .phone-wrapper { width: 200px; height: 400px; }
    .hero-container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hero-title { font-size: 1.8rem; }
    .glass-card { top: 60px; right: -30px; }
    .glass-card-alt { bottom: 60px; left: -40px; }
}




/* =========================================
   TRELIO How it works FLOW SECTION - FINAL MOBILE POSITIONS
   ========================================= */

/* Base Container */
.trelio-flow-section {
    padding: 100px 5%;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.flow-header {
    text-align: center;
    margin-bottom: 60px;
}

.flow-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.flow-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Flow Diagram Container */
.flow-diagram {
    position: relative;
    height: 600px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Central Cloud */
.flow-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced gap */
}

.cloud-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Reduced gap */
    position: relative;
}

.mood-cloud {
    width: 160px;
    height: 160px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Combined Label - Emoji + Mood TOGETHER top-left */
.combined-label {
    position: absolute;
    top: -25px;
    left: -25px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 25;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    min-width: 100px;
    justify-content: center;
}

.label-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.label-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.cloud-svg {
    width: 100%;
    height: 100%;
}

.cloud-body {
    color: #38bdf8; /* Default blue */
    transition: color 0.6s ease;
}

/* Improved glow effect - smoother and more natural */
.mood-cloud.happy .cloud-body {
    color: #38bdf8;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
}

.mood-cloud.happy .combined-label {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.happy .label-text {
    color: #38bdf8;
}

.mood-cloud.calm .cloud-body {
    color: #0ea5e9;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.4));
}

.mood-cloud.calm .combined-label {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.calm .label-text {
    color: #0ea5e9;
}

.mood-cloud.stressed .cloud-body {
    color: #f59e0b;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}

.mood-cloud.stressed .combined-label {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.stressed .label-text {
    color: #f59e0b;
}

.mood-cloud.anxious .cloud-body {
    color: #ef4444;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
}

.mood-cloud.anxious .combined-label {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.anxious .label-text {
    color: #ef4444;
}

.mood-cloud.peaceful .cloud-body {
    color: #10b981;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.mood-cloud.peaceful .combined-label {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.peaceful .label-text {
    color: #10b981;
}

.mood-cloud.supported .cloud-body {
    color: #8b5cf6;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.mood-cloud.supported .combined-label {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.supported .label-text {
    color: #8b5cf6;
}

.mood-cloud.connected .cloud-body {
    color: #ec4899;
    filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.4));
}

.mood-cloud.connected .combined-label {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    transform: translateY(-5px);
}

.mood-cloud.connected .label-text {
    color: #ec4899;
}

/* Logo Cloud facial expressions */
.mood-cloud.happy .cloud-mouth {
    d: path("M40 54c2.5 0 3.5 2 3.5 2s1-2 4.5-2");
    stroke-width: 2.5;
}

.mood-cloud.calm .cloud-mouth {
    d: path("M43 55c1.5 0 2.5 1 2.5 1s0.5-1 2.5-1");
    stroke-width: 2;
}

.mood-cloud.stressed .cloud-mouth {
    d: path("M43 58c2.5 0 3.5 -1 3.5 -1s1 1 4.5 1");
    stroke-width: 2;
}

.mood-cloud.anxious .cloud-mouth {
    d: path("M40 58 Q50 54 60 58");
    stroke-width: 2.5;
}

.mood-cloud.peaceful .cloud-mouth {
    d: path("M42 55 Q50 53 58 55");
    stroke-width: 2;
}

.mood-cloud.supported .cloud-mouth {
    d: path("M40 54c3 0 4 1.5 4 1.5s1-1.5 5-1.5");
    stroke-width: 2.5;
}

.mood-cloud.connected .cloud-mouth {
    d: path("M38 54c4 0 5 2 5 2s2-2 6-2");
    stroke-width: 2.5;
}

/* Eye animations for logo cloud - eyes moved higher */
.mood-cloud.happy .cloud-eye {
    r: 3.5;
    cy: 43;
}

.mood-cloud.happy .eye-pupil {
    r: 1.5;
    cy: 43;
}

.mood-cloud.stressed .cloud-eye {
    r: 3;
    cy: 44;
}

.mood-cloud.stressed .eye-pupil {
    r: 1.3;
    cy: 44;
}

.mood-cloud.anxious .cloud-eye {
    r: 2.8;
    cy: 44.5;
}

.mood-cloud.anxious .eye-pupil {
    r: 1.2;
    cy: 44.5;
}

.mood-cloud.calm .cloud-eye {
    r: 3.5;
    cy: 43;
}

.mood-cloud.calm .eye-pupil {
    r: 1.5;
    cy: 43;
}

.mood-cloud.peaceful .cloud-eye {
    r: 3.5;
    cy: 43;
}

.mood-cloud.peaceful .eye-pupil {
    r: 1.5;
    cy: 43;
}

.mood-cloud.supported .cloud-eye {
    r: 3.5;
    cy: 43;
}

.mood-cloud.supported .eye-pupil {
    r: 1.5;
    cy: 43;
}

.mood-cloud.connected .cloud-eye {
    r: 3.8;
    cy: 42.5;
}

.mood-cloud.connected .eye-pupil {
    r: 1.6;
    cy: 42.5;
}

/* Blush intensity for logo cloud - smaller blush */
.mood-cloud.happy .cloud-blush {
    opacity: 0.7;
    r: 3.2;
    cy: 50; /* Positioned lower */
}

.mood-cloud.stressed .cloud-blush {
    opacity: 0.3;
    fill: #F59E0B;
    r: 3;
    cy: 50;
}

.mood-cloud.anxious .cloud-blush {
    opacity: 0.8;
    fill: #EF4444;
    r: 2.8;
    cy: 50;
}

.mood-cloud.calm .cloud-blush {
    opacity: 0.4;
    fill: #0EA5E9;
    r: 3.2;
    cy: 50;
}

.mood-cloud.peaceful .cloud-blush {
    opacity: 0.5;
    fill: #10B981;
    r: 3.2;
    cy: 50;
}

.mood-cloud.supported .cloud-blush {
    opacity: 0.6;
    fill: #8B5CF6;
    r: 3.2;
    cy: 50;
}

.mood-cloud.connected .cloud-blush {
    opacity: 0.7;
    fill: #EC4899;
    r: 3.5;
    cy: 50;
}

/* Cloud label and status - positioned higher */
.cloud-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    background: var(--card-bg);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    z-index: 21;
    position: relative;
    margin-top: -3px; /* Moved higher */
}

.mood-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.4s ease;
    font-weight: 600;
    text-align: center;
    max-width: 180px;
    line-height: 1.3;
    z-index: 21;
    position: relative;
    margin-top: -3px; /* Moved higher */
}

/* Flow Nodes */
.flow-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.flow-node:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: var(--primary-blue);
    box-shadow: 
        0 16px 32px rgba(56, 189, 248, 0.12),
        0 0 0 1px rgba(56, 189, 248, 0.08);
    z-index: 15 !important;
}

.flow-node.active {
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--primary-blue);
}

.node-orb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bg-alt), var(--card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
}

.flow-node:hover .node-orb {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--primary-blue);
    background: rgba(56, 189, 248, 0.1);
}

.node-icon {
    font-size: 1.8rem;
}

.node-content {
    flex: 1;
    min-width: 0;
}

.node-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
        line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DESKTOP NODE POSITIONS */
.node-1 { top: 20%; left: 12%; z-index: 11; }
.node-2 { top: 15%; right: 12%; z-index: 12; }
.node-3 { top: 48%; right: 12%; transform: translateY(-50%); z-index: 13; }
.node-4 { bottom: 18%; right: 12%; z-index: 14; }
.node-5 { bottom: 13%; left: 12%; z-index: 13; }
.node-6 { top: 48%; left: 12%; transform: translateY(-50%); z-index: 12; }

/* Flow Explanation */
.flow-explanation {
    margin-top: 80px;
    padding: 40px;
    background: var(--section-card);
    border: 1px solid var(--section-border);
    border-radius: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.explanation-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.explanation-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mood Legend */
.mood-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.explanation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Flow Buttons */
.flow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.flow-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
    color: white;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.flow-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.4);
}

.flow-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.flow-btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-3px);
}

/* Cloud Floating Animation */
@keyframes cloudFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
    }
}

.mood-cloud {
    animation: cloudFloat 6s ease-in-out infinite;
}

/* Label Animation */
@keyframes labelBounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
    }
}

.mood-cloud:hover .combined-label {
    animation: labelBounce 0.6s ease;
}

/* Node Floating Animations */
@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.node-1 { animation: nodeFloat 6s ease-in-out infinite; }
.node-2 { animation: nodeFloat 6s ease-in-out infinite 0.2s; }
.node-3 { animation: nodeFloat 6s ease-in-out infinite 0.4s; }
.node-4 { animation: nodeFloat 6s ease-in-out infinite 0.6s; }
.node-5 { animation: nodeFloat 6s ease-in-out infinite 0.8s; }
.node-6 { animation: nodeFloat 6s ease-in-out infinite 1s; }

/* =========================================
   TABLET RESPONSIVENESS (1024px - 769px)
   ========================================= */

@media (max-width: 1024px) and (min-width: 769px) {
    .flow-diagram {
        height: 550px;
        max-width: 800px;
    }
    
    .flow-node {
        width: 180px;
        padding: 16px;
    }
    
    /* TABLET POSITIONS */
    .node-1 { top: 18%; left: 10%; }
    .node-2 { top: 14%; right: 10%; }
    .node-3 { top: 50%; right: 10%; transform: translateY(-50%); }
    .node-4 { bottom: 20%; right: 10%; }
    .node-5 { bottom: 15%; left: 10%; }
    .node-6 { top: 50%; left: 10%; transform: translateY(-50%); }
    
    .mood-cloud {
        width: 140px;
        height: 140px;
    }
    
    .combined-label {
        min-width: 90px;
        padding: 6px 12px;
        top: -20px;
        left: -20px;
    }
    
    .label-emoji {
        font-size: 1.2rem;
    }
    
    .label-text {
        font-size: 0.8rem;
        max-width: 60px;
    }
    
    .cloud-label {
        padding: 7px 18px;
        font-size: 1rem;
        margin-top: -5px;
    }
    
    .mood-status {
        padding: 5px 14px;
        font-size: 0.85rem;
        margin-top: -5px;
        max-width: 160px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (768px and below)
   ========================================= */

@media (max-width: 768px) {
    .trelio-flow-section {
        padding: 80px 5%;
    }
    
    .flow-title {
        font-size: 2.5rem;
    }
    
    .flow-subtitle {
        font-size: 1.1rem;
    }
    
    /* Mobile layout - increased height for better spacing */
    .flow-diagram {
        height: 680px; /* Increased from 580px */
        max-width: 100%;
        margin: 40px auto;
    }
    
    /* Cloud positioning */
    .flow-central {
        top: 35%; /* Higher up to make room below */
        gap: 6px; /* Reduced gap */
    }
    
    .cloud-wrapper {
        gap: 5px; /* Reduced gap */
    }
    
    .cloud-label {
        padding: 6px 16px;
        font-size: 0.95rem;
        margin-top: -5px; /* Higher position */
    }
    
    .mood-status {
        padding: 5px 12px;
        font-size: 0.8rem;
        max-width: 150px;
        margin-top: -5px; /* Higher position */
    }
    
    /* Mobile nodes */
    .flow-node {
        width: 160px;
        padding: 14px;
        gap: 12px;
        border-radius: 16px;
        min-width: 160px;
    }
    
    .node-orb {
        width: 46px;
        height: 46px;
    }
    
    .node-icon {
        font-size: 1.6rem;
    }
    
    .node-content h4 {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.2;
        margin-bottom: 4px;
    }
    
    .node-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.3;
    }
    
    /* MOBILE POSITIONS - PERFECTED */
    /* Top row nodes */
    .node-1 { 
        top: 5%; 
        left: 5%; 
        z-index: 11; 
    }
    
    .node-2 { 
        top: 5%; 
        right: 5%; 
        z-index: 12; 
    }
    
    /* Middle row nodes - BELOW mood-status */
    .node-3 { 
        top: 60%; /* Dashboard - BELOW mood-status */
        right: 5%; 
        transform: none; 
        z-index: 13; 
    }
    
    .node-6 { 
        top: 60%; /* Trelio AI - BELOW mood-status */
        left: 5%; 
        transform: none; 
        z-index: 12; 
    }
    
    /* Bottom row nodes - with more spacing */
    .node-4 { 
        bottom: 12%; /* Community */
        right: 5%; 
        z-index: 14; 
    }
    
    .node-5 { 
        bottom: 12%; /* Therapist */
        left: 5%; 
        z-index: 13; 
    }
    
    /* Scale down cloud */
    .mood-cloud {
        width: 120px;
        height: 120px;
    }
    
    .combined-label {
        min-width: 80px;
        padding: 5px 10px;
        top: -15px;
        left: -15px;
        z-index: 30;
    }
    
    .label-emoji {
        font-size: 1rem;
    }
    
    .label-text {
        font-size: 0.7rem;
        max-width: 50px;
    }
    
    .flow-explanation {
        padding: 30px;
        margin-top: 50px;
        border-radius: 24px;
    }
    
    .mood-legend {
        gap: 10px;
    }
    
    .legend-item {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .explanation-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .flow-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 600px) {
    /* For small screens */
    .flow-diagram {
        height: 650px; /* Increased from 550px */
    }
    
    .flow-node {
        width: 150px;
        padding: 12px;
        gap: 10px;
    }
    
    .node-orb {
        width: 42px;
        height: 42px;
    }
    
    .node-icon {
        font-size: 1.5rem;
    }
    
    .node-content h4 {
        font-size: 0.9rem;
    }
    
    .node-content p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Adjust positions with more vertical spacing */
    .node-1 { top: 4%; left: 3%; }
    .node-2 { top: 4%; right: 3%; }
    .node-3 { top: 58%; right: 3%; } /* Dashboard - BELOW mood-status */
    .node-6 { top: 58%; left: 3%; } /* Trelio AI - BELOW mood-status */
    .node-4 { bottom: 10%; right: 3%; } /* Community - more space from bottom */
    .node-5 { bottom: 10%; left: 3%; } /* Therapist - more space from bottom */
    
    .mood-cloud {
        width: 110px;
        height: 110px;
    }
    
    .combined-label {
        min-width: 75px;
        padding: 4px 8px;
        top: -12px;
        left: -12px;
    }
    
    .label-text {
        font-size: 0.65rem;
        max-width: 45px;
    }
    
    .cloud-label {
        padding: 5px 14px;
        font-size: 0.9rem;
        margin-top: -4px;
    }
    
    .mood-status {
        padding: 4px 10px;
        font-size: 0.75rem;
        max-width: 130px;
        margin-top: -4px;
    }
}

@media (max-width: 480px) {
    .trelio-flow-section {
        padding: 60px 4%;
    }
    
    .flow-title {
        font-size: 2rem;
    }
    
    .flow-subtitle {
        font-size: 1rem;
    }
    
    .flow-header {
        margin-bottom: 40px;
    }
    
    .flow-diagram {
        height: 620px; /* Increased from 520px */
    }
    
    .flow-node {
        width: 140px;
        padding: 10px;
        gap: 8px;
    }
    
    .node-content h4 {
        font-size: 0.85rem;
    }
    
    .node-content p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Final mobile positions with maximum spacing */
    .node-1 { top: 3%; left: 2%; }
    .node-2 { top: 3%; right: 2%; }
    .node-3 { top: 56%; right: 2%; } /* Dashboard - BELOW mood-status */
    .node-6 { top: 56%; left: 2%; } /* Trelio AI - BELOW mood-status */
    .node-4 { bottom: 8%; right: 2%; } /* Community - more space */
    .node-5 { bottom: 8%; left: 2%; } /* Therapist - more space */
    
    .mood-cloud {
        width: 100px;
        height: 100px;
    }
    
    .combined-label {
        min-width: 70px;
        padding: 4px 8px;
        top: -10px;
        left: -10px;
    }
    
    .label-emoji {
        font-size: 0.9rem;
    }
    
    .label-text {
        font-size: 0.6rem;
        max-width: 40px;
    }
    
    .cloud-label {
        padding: 4px 12px;
        font-size: 0.85rem;
        margin-top: -3px;
    }
    
    .mood-status {
        padding: 3px 8px;
        font-size: 0.7rem;
        max-width: 120px;
        margin-top: -3px;
    }
    
    .flow-explanation {
        padding: 24px;
        border-radius: 20px;
    }
    
    .explanation-title {
        font-size: 1.5rem;
    }
    
    .explanation-text {
        font-size: 1rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .flow-diagram {
        height: 420px; /* Increased from 380px */
    }
    
    .flow-node {
        width: 130px;
        padding: 8px;
    }
    
    .mood-cloud {
        width: 90px;
        height: 90px;
    }
    
    /* Adjust positions for landscape */
    .node-1 { top: 5%; left: 3%; }
    .node-2 { top: 5%; right: 3%; }
    .node-3 { top: 54%; right: 3%; } /* Dashboard - BELOW mood-status */
    .node-6 { top: 54%; left: 3%; } /* Trelio AI - BELOW mood-status */
    .node-4 { bottom: 8%; right: 3%; } /* Community */
    .node-5 { bottom: 8%; left: 3%; } /* Therapist */
    
    .cloud-label,
    .mood-status {
        margin-top: -5px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .flow-diagram {
        height: 600px; /* Adjusted for very small screens */
    }
    
    .flow-node {
        width: 130px;
        padding: 8px;
    }
    
    .node-content h4 {
        font-size: 0.8rem;
    }
    
    .node-content p {
        font-size: 0.65rem;
    }
    
    /* More compact positions */
    .node-1 { top: 3%; left: 2%; }
    .node-2 { top: 3%; right: 2%; }
    .node-3 { top: 54%; right: 2%; } /* Dashboard - BELOW mood-status */
    .node-6 { top: 54%; left: 2%; } /* Trelio AI - BELOW mood-status */
    .node-4 { bottom: 6%; right: 2%; } /* Community */
    .node-5 { bottom: 6%; left: 2%; } /* Therapist */
    
    .mood-cloud {
        width: 90px;
        height: 90px;
    }
    
    .combined-label {
        min-width: 65px;
        padding: 3px 6px;
        top: -8px;
        left: -8px;
    }
    
    .cloud-label,
    .mood-status {
        margin-top: -3px;
    }
}

/* Dark Mode */
[data-theme="dark"] .flow-node {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .flow-explanation {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cloud-label {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .node-orb {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
}

[data-theme="dark"] .mood-status {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .combined-label {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .legend-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Performance */
@media (prefers-reduced-motion: reduce) {
    .mood-cloud,
    .flow-node,
    .combined-label,
    .flow-btn {
        animation: none !important;
        transition: none !important;
    }
}


/*Footer css*/
/* =========================================
   FOOTER - MODERN & SLEEK
   ========================================= */
/* =========================================
   FOOTER - MODERN & SLEEK
   ========================================= */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 80px 5% 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo svg {
    width: 140px;
    height: 35px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 300px;
}

.footer-download {
    text-align: right;
}

.footer-subtitle {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Main Content Grid */
.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    width: 20px;
}

/* Newsletter Section */
.newsletter {
    grid-column: span 1;
}

.newsletter-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.input-group input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #0ea5e9;
}

.newsletter-btn svg {
    width: 20px;
    height: 20px;
}

.form-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border) 20%, 
        var(--border) 80%, 
        transparent 100%);
    margin: 40px 0;
}

/* Bottom Section */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-blue);
}

/* Social Media */
.footer-social {
    text-align: right;
}

.social-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* KENYA CRISIS DISCLAIMER - Enhanced */
.footer-disclaimer {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-disclaimer strong {
    color: #ef4444;
}

.crisis-numbers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.crisis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.crisis-item:last-child {
    border-bottom: none;
    justify-content: center;
    margin-top: 10px;
    font-style: italic;
}

.crisis-label {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.crisis-number {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.crisis-item:last-child .crisis-label {
    color: var(--text-muted);
    font-weight: normal;
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* =========================================
   FOOTER RESPONSIVE - SIDE BY SIDE ON MOBILE
   ========================================= */

/* Desktop (1025px and above) - 3 columns */
@media (min-width: 1025px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-columns-container {
        grid-column: span 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-newsletter {
        grid-column: 3;
    }
}

/* Tablet (769px - 1024px) - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-columns-container {
        grid-column: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-newsletter {
        grid-column: 2;
    }
}

/* Mobile & Small Tablet (Up to 768px) - SIDE BY SIDE! */
@media (max-width: 768px) {
    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    /* RESOURCES & SUPPORT SIDE BY SIDE */
    .footer-columns-container {
        display: flex;
        justify-content: center;
        gap: 40px;
        width: 100%;
        max-width: 500px;
    }
    
    .footer-section {
        flex: 1;
        min-width: 150px;
        max-width: 200px;
    }
    
    /* NEWSLETTER BELOW - CENTERED */
    .footer-newsletter {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }
    
    .input-group {
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Fix other mobile styles */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .legal-links {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Small Phones (Up to 480px) */
@media (max-width: 480px) {
    .footer-columns-container {
        flex-direction: column;
        gap: 30px;
        max-width: 280px;
    }
    
    .footer-section {
        max-width: 100%;
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .input-group {
        max-width: 280px;
    }
}

/* Dark mode enhancements */
[data-theme="dark"] .footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
}

[data-theme="dark"] .social-icon {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .input-group {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-disclaimer {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .crisis-number {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
}



/* =========================================
   MINIMAL MISSION SECTION WITH COUNTERS
   ========================================= */

.tre-minimal-mission {
    padding: 80px 5%;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.tre-mission-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Badge */
.tre-mission-badge {
  display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Title with rotating gradient words */
.tre-mission-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.tre-gradient-words {
    display: inline-block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.tre-gradient-word {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
    -webkit-background-clip: text;
        background-clip: text;
    -webkit-text-fill-color: transparent;
        color: transparent;
    opacity: 0;
    transform: translateY(100%);
    animation: wordCycle 9s infinite;
}

.tre-gradient-word:nth-child(1) { animation-delay: 0s; }
.tre-gradient-word:nth-child(2) { animation-delay: 3s; }
.tre-gradient-word:nth-child(3) { animation-delay: 6s; }

@keyframes wordCycle {
    0%, 20% {
        opacity: 0;
        transform: translateY(100%);
    }
    25%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    35%, 100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Subtitle */
.tre-mission-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Stats with Counter Animation */
.tre-mission-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tre-stat {
    text-align: center;
    min-width: 100px;
    position: relative;
}

.tre-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    display: inline-block;
    min-width: 60px;
    transition: transform 0.3s ease;
}

.tre-stat-number.animating {
    animation: numberPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Progress bar for counting */
.tre-stat-progress {
    width: 60px;
    height: 3px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 2px;
    margin: 8px auto 12px;
    overflow: hidden;
    position: relative;
}

.tre-stat-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), #0ea5e9);
    border-radius: 2px;
    transition: width 1s ease-out;
    /* Make it stay filled after animation */
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

/* Use animation instead of transition for better control */
.tre-stat.animate-progress .tre-stat-progress::after {
    animation: fillProgress 1s ease-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Keep it filled after animation */
.tre-stat.completed .tre-stat-progress::after {
    width: 100% !important;
    animation: none !important;
}

.tre-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .tre-minimal-mission {
        padding: 60px 5%;
    }
    
    .tre-mission-title {
        font-size: 2rem;
    }
    
    .tre-mission-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .tre-mission-stats {
        gap: 30px;
    }
    
    .tre-stat {
        min-width: 80px;
    }
    
    .tre-stat-number {
        font-size: 2rem;
    }
    
    .tre-stat-progress {
        width: 50px;
        margin: 6px auto 10px;
    }
}

@media (max-width: 480px) {
    .tre-minimal-mission {
        padding: 50px 4%;
    }
    
    .tre-mission-title {
        font-size: 1.8rem;
    }
    
    .tre-mission-stats {
        gap: 20px;
    }
    
    .tre-stat {
        min-width: 70px;
    }
    
    .tre-stat-number {
        font-size: 1.8rem;
    }
    
    .tre-stat-progress {
        width: 40px;
    }
}

/* Dark mode */
[data-theme="dark"] .tre-mission-badge {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .tre-stat-progress {
    background: rgba(56, 189, 248, 0.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tre-gradient-word {
        animation: none;
        opacity: 1;
        transform: none;
        position: static;
        display: inline;
    }
    
    .tre-gradient-words {
        height: auto;
        overflow: visible;
    }
    
    .tre-stat-number.animating,
    .tre-stat-progress::after {
        animation: none;
        transition: none;
    }
}
/* Policy pages — clean, readable styles */
.policy-page {
    max-width: 980px;
    margin: 48px auto;
    padding: 28px;
    /* soft, off-white teal tint for a subtle card feel */
    background: var(--section-card, #f0fdfa);
    border-radius: 12px;
    border: 1px solid var(--section-border, rgba(6,182,212,0.08));
}

.policy-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.policy-hero h1 { font-size: 1.6rem; margin: 0; }
.policy-meta { color: var(--text-muted, #6b7280); font-size: 0.95rem; margin-top: 6px; }

.policy-hero-actions { display:flex; gap:8px; }
.policy-action-btn { background: transparent; border: 1px solid var(--border, #e6e9ee); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight:600; transition: transform 160ms ease, box-shadow 180ms ease, background-color 140ms ease, filter 140ms ease; }

/* Make primary action clearly visible */
.policy-action-btn.primary {
    background: linear-gradient(90deg,#06b6d4,#0ea5a4);
    color: #fff;
    border: none;
    padding: 9px 14px;
    box-shadow: 0 8px 20px rgba(6,182,212,0.18);
    font-weight:700;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.policy-action-btn.primary:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 38px rgba(6,182,212,0.24); filter: brightness(1.03); }
.policy-action-btn.primary:active { transform: translateY(0) scale(0.998); box-shadow: 0 8px 18px rgba(6,182,212,0.14); }

/* accepted state keeps a softer gradient */
.policy-action-btn.primary.accepted {
    background: linear-gradient(90deg,#10b981,#06b6d4);
    color: #fff;
    border-color: transparent;
    opacity: 1;
}

/* pulse attention animation for primary action until accepted */
@keyframes pulse-attn {
    0% { box-shadow: 0 6px 20px rgba(6,182,212,0.18); transform: translateY(0); }
    50% { box-shadow: 0 18px 36px rgba(6,182,212,0.22); transform: translateY(-3px); }
    100% { box-shadow: 0 6px 20px rgba(6,182,212,0.18); transform: translateY(0); }
}
.policy-action-btn.primary.attention {
    animation: pulse-attn 1.6s ease-in-out infinite;
}

/* non-primary hover/active + focus styles */
.policy-action-btn:not(.primary):hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(2,6,23,0.06); background: rgba(2,6,23,0.03); }
.policy-action-btn:not(.primary):active { transform: translateY(0); box-shadow: 0 6px 12px rgba(2,6,23,0.04); }
.policy-action-btn:focus-visible { outline: 3px solid rgba(6,182,212,0.14); outline-offset: 3px; border-radius: 8px; }

.policy-content { padding-top: 18px; color: var(--text-main, #0f1724); line-height: 1.7; }
.policy-content h2 { font-size: 1.2rem; margin-top: 22px; margin-bottom: 8px; }
.policy-content h3 { font-size: 1.05rem; margin-top: 14px; margin-bottom: 6px; color: var(--text-muted, #6b7280); }
.policy-content p, .policy-content li { font-size: 0.98rem; color: var(--text-main, #0f1724); }
.policy-content ul { margin-left: 1.15rem; }

.policy-content section { padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,0.04); }

.policy-content p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .policy-page { margin: 20px; padding: 18px; border-radius: 8px; }
    .policy-hero { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media print {
    body { background: #fff; color: #000; }
    .policy-hero-actions, .policy-action-btn { display: none; }
    .policy-page { box-shadow: none; border: none; padding: 0; }
}

/* Accept button and toast */
.policy-action-btn.primary.accepted {
    background: linear-gradient(90deg,#10b981,#06b6d4);
    color: #fff;
    border-color: transparent;
    opacity: 0.95;
}

.policy-toast {
    position: fixed;
    right: 20px;
    bottom: 40px;
    background: rgba(16,185,129,0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(1, 3, 8, 0.2);
    z-index: 1600;
    font-weight: 600;
}

/* Inline acceptance section placed under the policy content */
.policy-accept-section {
    margin: 18px auto;
    padding: 0;
    max-width: 820px;
}

/* inner card: soft match to policy-page */
.accept-inner {
    /* slightly tinted to separate from the page while remaining soft */
    background: color-mix(in srgb, var(--section-card, #f0fdfa) 86%, #ffffff 14%);
    border: 1px solid rgba(15,23,36,0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(2,6,23,0.04);
}

/* copy */
.accept-copy h3 { font-size:1.06rem; font-weight:700; color:var(--text-main,#0f1724); margin:0 0 6px; }
.accept-copy p { font-size:0.98rem; color:var(--text-main,#0f1724); margin:0; max-width:560px; line-height:1.6; }

/* actions: keep primary filled for agree, outline for decline */
.accept-actions { display:flex; gap:12px; align-items:center; flex-shrink:0; }
.accept-actions .policy-action-btn { min-width:120px; height:42px; padding:0 16px; border-radius:10px; }
.accept-actions .policy-action-btn:not(.primary) {
    background: rgba(15,23,36,0.04);
    border: 1.6px solid rgba(15,23,36,0.18);
    color: var(--text-main,#0f1724);
    font-weight:700;
    box-shadow: 0 6px 12px rgba(2,6,23,0.04);
    transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.accept-actions .policy-action-btn:not(.primary):hover {
    background: rgba(15,23,36,0.08);
    border-color: rgba(15,23,36,0.26);
    box-shadow: 0 10px 22px rgba(2,6,23,0.06);
    transform: translateY(-3px);
}
.accept-actions .policy-action-btn:not(.primary):focus-visible {
    outline: 3px solid rgba(6,182,212,0.12);
    outline-offset: 3px;
}

/* responsive */
@media (max-width:720px) {
    .accept-inner { flex-direction:column; align-items:stretch; }
    .accept-actions { justify-content:flex-end; width:100%; }
}
.policy-accept-section .accept-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }
.policy-accept-section .accept-actions .policy-action-btn { padding: 8px 12px; min-width:120px; }


/* Index banner showing acceptance status */
.policy-banner {
    background: linear-gradient(90deg,#e6f7fb,#ffffff);
    border: 1px solid rgba(6,182,212,0.12);
    padding: 10px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(2,6,23,0.04);
    margin: 10px auto;
    max-width: 1200px;
    border-radius: 10px;
    font-weight: 600;
}

.policy-banner .left { color: var(--text-main, #0f1724); }
.policy-banner .right { display:flex; gap:8px; align-items:center; }
.policy-banner a { text-decoration: none; color: var(--primary-blue, #06b6d4); font-weight:700; }
.policy-banner .btn-small { padding:6px 10px; border-radius:8px; border:1px solid rgba(3,7,18,0.06); background:#fff; cursor:pointer; }

@media (max-width:900px) {
    .policy-banner { flex-direction: column; align-items:flex-start; gap:8px; }
}

/* Consent modal */
.policy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.policy-modal {
    width: 560px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.25);
}
.policy-modal h3 { margin: 0 0 8px 0; font-size: 1.1rem; }
.policy-modal p { margin: 0 0 12px 0; color: var(--text-muted,#475569); }
.policy-modal .modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }
.policy-modal .btn-decline { background: transparent; border: 1px solid #e6e9ee; padding:8px 12px; border-radius:8px; cursor:pointer; }
.policy-modal .btn-agree { padding:8px 14px; border-radius:8px; border:none; background: linear-gradient(90deg,#06b6d4,#0ea5a4); color:#fff; cursor:pointer; font-weight:700; }

@media (prefers-reduced-motion: reduce) {
    .policy-action-btn.primary.attention { animation: none; }
}