/* -------------------------------------------------------------
   Mustajad Landing Page Design System & Stylesheet
   ------------------------------------------------------------- */

/* Custom Fonts & Base Variables */
:root {
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Main Color Palette */
    --primary: #6366f1;       /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #10b981;        /* Emerald (Truth/Good) */
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --bg-dark: #0b0f19;
    --bg-darker: #070a10;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-dark: #1f2937;
    
    /* Warning/AQI Colors */
    --color-good: #10b981;
    --color-moderate: #fbbf24;
    --color-sensitive: #f97316;
    --color-unhealthy: #ef4444;
    
    /* Glassmorphism Styles */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Animation Speeds */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* LTR override when English is selected */
body.ltr-mode {
    font-family: var(--font-en);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.flex-container.reverse {
    flex-direction: row-reverse;
}

section {
    padding: 7rem 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Ambient Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 12s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 5%;
    inset-inline-start: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 35%;
    inset-inline-end: -150px;
    animation-delay: -3s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #a855f7; /* Purple */
    bottom: 10%;
    inset-inline-start: 15%;
    animation-delay: -6s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.15); }
}

/* Typography Accent Styles */
.accent-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: var(--transition-smooth);
}
.btn-glow:hover::after {
    filter: blur(12px);
    opacity: 0.8;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Nav Bar & Header */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-svg {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 5rem;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body[dir="rtl"] .hero-content {
    align-items: flex-start;
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* Floating 3D Phone Showcase */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-3d-wrapper {
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.mockup-3d-wrapper:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-5px);
}

.glow-shadow {
    position: absolute;
    inset: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 40px;
    filter: blur(40px);
    opacity: 0.35;
    z-index: -1;
    animation: glowPulse 6s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    0% { opacity: 0.25; filter: blur(30px); }
    100% { opacity: 0.45; filter: blur(50px); }
}

/* CSS Smartphone Frame */
.phone-frame {
    width: 290px;
    height: 590px;
    background: #0f172a;
    border: 12px solid #1e293b;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-frame::before {
    /* Screen Glare */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(55deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 10;
}

.speaker {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #334155;
    border-radius: 10px;
    z-index: 15;
}

.camera {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: #000000;
    border-radius: 15px;
    z-index: 15;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #f3f4f6; /* iOS style light-theme background */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 0.8rem;
    overflow: hidden;
}

.home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000;
    border-radius: 10px;
    z-index: 15;
}

/* App Simulation Layout Components */
.app-header {
    background: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.8rem 1rem 0.6rem;
    font-family: var(--font-ar);
    border-bottom: 1px solid #e5e7eb;
    z-index: 5;
}

.app-header.border-bottom {
    border-bottom: 1px solid #e5e7eb;
}

.app-title {
    font-weight: 800;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-title-bold {
    font-weight: 800;
    font-size: 0.85rem;
    color: #111827;
}

.app-header-icons-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.app-icon-btn {
    cursor: pointer;
    opacity: 0.75;
}

.app-categories {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    overflow-x: auto;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    scrollbar-width: none;
}
.app-categories::-webkit-scrollbar {
    display: none;
}

.app-cat-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: #4b5563;
    background: #e5e7eb;
}
.app-cat-tag.active {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.app-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f3f4f6;
    padding-bottom: 2rem;
}

.app-body.no-pad {
    padding: 0;
}

/* Specific App Screen Designs */
.app-weather-widget {
    background: #fffbeb;
    border: 1.5px solid #fef3c7;
    border-radius: 16px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.weather-location {
    font-weight: 700;
    color: #92400e;
    font-size: 0.7rem;
}

.weather-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-temp {
    font-size: 1.1rem;
    font-weight: 800;
    color: #78350f;
}

.weather-link {
    font-size: 0.65rem;
    color: #b45309;
    font-weight: 700;
}

.weather-aqi-tag {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d97706;
    align-self: flex-start;
}

/* News Cards inside Mockup */
.app-news-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.news-img-placeholder {
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.reliability-badge-app {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reliability-badge-app.safe {
    background: rgba(16, 185, 129, 0.95);
}

.news-card-body {
    padding: 0.8rem;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.source-bullet {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.news-date {
    margin-inline-start: auto;
}

.news-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.4;
}

/* Floating Badges on Hero */
.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 12;
    animation: floatingFloat 4s infinite alternate ease-in-out;
}

.badge-cred {
    top: 25%;
    inset-inline-start: -80px;
}

.badge-aqi {
    bottom: 20%;
    inset-inline-end: -60px;
    animation-delay: -2s;
}

.badge-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

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

/* Features Grid Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0.15;
}

.icon-emerald { color: #34d399; }
.icon-emerald::after { background: #10b981; }

.icon-amber { color: #fbbf24; }
.icon-amber::after { background: #fbbf24; }

.icon-indigo { color: #818cf8; }
.icon-indigo::after { background: #6366f1; }

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   Interactive Simulators
   ------------------------------------------------------------- */

/* -------------------------------------------------------------
   Verified Article Reader Styling
   ------------------------------------------------------------- */
.accent-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.accent-badge.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.demo-content {
    flex: 1;
    min-width: 320px;
}

.demo-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.article-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: start;
}

.article-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(-4px);
}

body.ltr-mode .article-tab:hover {
    transform: translateX(4px);
}

.article-tab.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.2);
}

.tab-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.article-tab.active .tab-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tab-category {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

.tab-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.reader-mockup-wrapper {
    flex: 1;
    min-width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reader-mockup {
    width: 310px;
    height: 590px;
    background: #0f172a;
    border: 12px solid #1e293b;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.reader-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(55deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 15;
}

.reader-screen {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    font-size: 0.8rem;
    scrollbar-width: none;
}

.reader-screen::-webkit-scrollbar {
    display: none;
}

.reader-header {
    background: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.8rem 1rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
    position: sticky;
    top: 0;
}

.reader-header-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: #111827;
}

.reader-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #f3f4f6;
    padding-bottom: 2rem;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reader-article-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.reader-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reader-source-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.reader-article-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.reader-article-text {
    font-size: 0.72rem;
    color: #4b5563;
    line-height: 1.5;
}

.feature-screen {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-screen.active {
    display: flex;
}

/* Translation styling */
.translation-toggle-bar {
    display: flex;
    background: #e5e7eb;
    padding: 0.2rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    gap: 0.2rem;
}

.toggle-lang-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.toggle-lang-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Summarization styling */
.summarize-action-btn {
    width: 100%;
    margin-top: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.summarize-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.summary-result-card {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.summary-result-title {
    font-weight: 800;
    font-size: 0.78rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.summary-bullets {
    padding-inline-start: 1rem;
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-bullets li {
    font-size: 0.7rem;
    color: #4b5563;
    line-height: 1.4;
    text-align: start;
}

/* Podcast styling */
.podcast-player-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.podcast-cover {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.podcast-cover-inner {
    font-size: 2.2rem;
}

.podcast-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.podcast-show {
    font-size: 0.72rem;
    color: #4b5563;
    font-weight: 700;
}

.podcast-episode {
    font-size: 0.78rem;
    color: #111827;
    font-weight: 800;
    line-height: 1.3;
}

.podcast-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 25px;
    margin: 0.3rem 0;
}

.wave-bar {
    width: 2px;
    height: 6px;
    background: #d1d5db;
    border-radius: 1px;
    transition: height 0.15s ease;
}

.wave-bar:nth-child(even) { height: 10px; }
.wave-bar:nth-child(3n) { height: 15px; }
.wave-bar:nth-child(4n) { height: 8px; }

.podcast-waveform.playing .wave-bar {
    background: var(--primary);
    animation: playWave 0.8s infinite ease-in-out alternate;
}

.podcast-waveform.playing .wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.podcast-waveform.playing .wave-bar:nth-child(3n) { animation-delay: 0.25s; }
.podcast-waveform.playing .wave-bar:nth-child(4n) { animation-delay: 0.15s; }

@keyframes playWave {
    0% { height: 5px; }
    100% { height: 22px; }
}

.podcast-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.podcast-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transition: var(--transition-quick);
}

.podcast-play-btn:hover {
    transform: scale(1.08);
}

.podcast-btn-side {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1.1rem;
    cursor: pointer;
}

.podcast-time-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.time-progress-bg {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.time-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 700;
}

/* YouTube Live styling */
.youtube-player-frame {
    width: 100%;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.player-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.4rem;
}

.player-play-icon {
    font-size: 1.5rem;
    width: 38px;
    height: 38px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.player-title {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.9;
}

.simulated-video-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #111827);
    position: relative;
}

.video-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: rgba(239, 68, 68, 0.4);
    animation: scanLine 3s infinite linear;
}

@keyframes scanLine {
    0% { top: 0%; }
    100% { top: 100%; }
}

.youtube-channels-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-top: 0.3rem;
    text-align: start;
}

.youtube-channels-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.yt-channel-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.yt-channel-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}

.yt-channel-card.active {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.yt-icon {
    font-size: 0.9rem;
}

.yt-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.yt-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: #111827;
}

.yt-status {
    font-size: 0.55rem;
    color: #9ca3af;
    font-weight: 700;
}

.yt-channel-card.active .yt-status {
    color: #ef4444;
}

/* AQI Simulator Specifics */
.demo-visual-card {
    min-height: 575px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.aqi-card-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2.8rem 1.2rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.aqi-title-text {
    font-weight: 800;
    font-size: 0.85rem;
}

.aqi-close-btn {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #9ca3af;
}

.aqi-card-body {
    background: #ffffff;
    padding: 1.5rem;
    color: var(--text-dark);
}

.aqi-gauge-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 1.5rem;
    background: #fff8f5;
    border: 1px solid #ffedd5;
    border-radius: 16px;
}

.gauge-center-text {
    position: absolute;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.gauge-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.gauge-status {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-moderate);
    margin: 0.2rem 0;
}

.gauge-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.gauge-arc-svg {
    transform: translateY(-10px);
}

#aqiNeedle {
    transform-origin: 100px 100px;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Health Advice callout inside app mockup */
.health-advice-card {
    border-radius: 14px;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    transition: var(--transition-smooth);
    min-height: 115px; /* Prevent layout shift */
}

.advice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.advice-icon {
    font-size: 1.1rem;
}

.advice-title {
    font-weight: 800;
    font-size: 0.75rem;
    color: #b45309;
}

.advice-content {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #78350f;
    font-weight: 600;
}

.pollutants-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.8rem;
}

.pollutants-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.pollutant-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.pol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.pol-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.pol-badge.green { background: #d1fae5; color: #065f46; }
.pol-badge.orange { background: #fef3c7; color: #92400e; }
.pol-badge.red { background: #fee2e2; color: #991b1b; }

.pol-name {
    font-weight: 800;
    font-size: 0.75rem;
    color: #111827;
}

.pol-sub {
    font-size: 0.55rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.pol-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.pol-slider {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
}

.pol-pointer {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f2937;
    position: absolute;
    top: -1px;
    transform: translateX(-50%);
    transition: left 0.8s ease;
}

/* AQI Interactive Control panel */
.aqi-interactive-slider {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aqi-interactive-slider label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sliderAqiVal {
    display: inline-block;
    min-width: 35px;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.custom-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right, #10b981, #fbbf24, #f97316, #ef4444);
    outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid var(--primary);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
   App Showcase / Mockup Walkthrough Section
   ------------------------------------------------------------- */
.showcase-interactive-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.showcase-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.showcase-nav-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    align-items: center;
}

.showcase-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.showcase-nav-item.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.nav-item-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-quick);
}

.showcase-nav-item.active .nav-item-num {
    color: var(--primary);
    opacity: 1;
}

.nav-item-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.nav-item-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.showcase-phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-phone {
    width: 300px;
    height: 610px;
}

/* Showcase Screen Switch Transitions */
.screen-content .screen-wrapper {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.screen-content .screen-wrapper.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* SCREEN 2 (WEATHER DETAIL APP VERSION) */
.weather-detail-gauge-container {
    background: #fff8f5;
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #fee8e1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wd-gauge-sub {
    font-size: 0.65rem;
    color: #9a3412;
    font-weight: 700;
}

.wd-gauge-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: #7c2d12;
    line-height: 1;
    margin-top: 0.3rem;
}

.wd-gauge-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c2410c;
    background: #ffedd5;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.3rem;
}

.wd-gauge-graphic {
    margin-top: 0.5rem;
}

.wd-health-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    margin: 0.8rem;
    padding: 0.7rem;
    border-radius: 12px;
}

.wd-health-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.wd-health-icon { font-size: 0.9rem; }
.wd-health-title { font-weight: 800; font-size: 0.7rem; color: #b45309; }
.wd-health-desc { font-size: 0.62rem; color: #78350f; font-weight: 600; line-height: 1.4; }

.wd-pollutants-section {
    padding: 0 0.8rem 0.8rem;
}

.wd-pollutants-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.6rem;
}

.wd-pollutant-row {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wd-pol-col {
    display: flex;
    flex-direction: column;
}

.wd-pol-col.text-left { align-items: flex-start; }
.wd-pol-col.text-right { align-items: flex-end; }

.wd-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    margin-bottom: 0.15rem;
}
.wd-badge.yellow { background: #fef3c7; color: #92400e; }
.wd-badge.green { background: #d1fae5; color: #065f46; }

.wd-pol-name { font-weight: 800; font-size: 0.72rem; color: #111827; }
.wd-pol-desc { font-size: 0.55rem; color: #9ca3af; }
.wd-pol-val { font-size: 0.78rem; font-weight: 800; color: #1f2937; margin-bottom: 0.2rem; }

.wd-pol-bar {
    width: 60px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.wd-pol-fill {
    height: 100%;
    border-radius: 2px;
}

/* SCREEN 3 (SOURCES SETTINGS APP VERSION) */
.bg-light-gray {
    background: #f9fafb;
}

.sources-prompt {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-prompt-icon { font-size: 1.1rem; }
.sources-prompt-text { font-weight: 800; font-size: 0.75rem; color: #111827; }
.sources-prompt-close { margin-inline-start: auto; color: #9ca3af; cursor: pointer; }

.sources-list {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sources-item {
    background: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    font-weight: 700;
    transition: var(--transition-quick);
}

.sources-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.src-icon { font-size: 1.1rem; }
.src-name { font-size: 0.75rem; color: #1f2937; }
.src-arrow { margin-inline-start: auto; color: #9ca3af; font-size: 1rem; }

/* Color Tags matching the app settings screenshot */
.pink-tag { border-color: #fbcfe8; background: #fff1f2 !important; }
.blue-tag { border-color: #bfdbfe; background: #eff6ff !important; }
.rose-tag { border-color: #fecdd3; background: #fff5f5 !important; }
.lightblue-tag { border-color: #bae6fd; background: #f0f9ff !important; }
.yellow-tag { border-color: #fef08a; background: #fefce8 !important; }
.orange-tag { border-color: #fed7aa; background: #fff7ed !important; }
.teal-tag { border-color: #99f6e4; background: #f0fdfa !important; }

/* SCREEN 4 (ARTICLE VIEW) */
.detail-view {
    background: #ffffff !important;
}

.detail-img-placeholder {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.detail-source-badge {
    color: #111827;
}

.detail-verification-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.detail-cred-score-pill {
    font-size: 0.65rem;
    font-weight: 800;
    color: #15803d;
}

.detail-cred-check-btn {
    border: none;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.detail-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.detail-p {
    font-size: 0.68rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   Download CTA Section
   ------------------------------------------------------------- */
.download-section {
    position: relative;
    overflow: hidden;
}

.download-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.download-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.store-btn {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.6rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.store-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(16, 185, 129, 0.15));
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
}

.store-icon {
    color: var(--text-primary);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtext {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.btn-maintext {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Double Phone Mockup Stack */
.double-phone-stack {
    position: relative;
    width: 320px;
    height: 480px;
}

.phone-under-glow {
    position: absolute;
    inset: 40px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    filter: blur(30px);
    z-index: 0;
}

.phone-back {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    transform: scale(0.95) rotate(-8deg);
    z-index: 1;
    opacity: 0.75;
    transition: var(--transition-smooth);
}

.phone-front {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    transform: scale(0.95) rotate(6deg);
    z-index: 2;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.double-phone-stack:hover .phone-back {
    transform: scale(0.98) rotate(-15deg) translate(-20px, -10px);
    opacity: 0.9;
}

.double-phone-stack:hover .phone-front {
    transform: scale(0.98) rotate(12deg) translate(20px, 10px);
}

/* Footer Styling */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-desc {
    max-width: 450px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-privacy a {
    color: var(--text-secondary);
    transition: var(--transition-quick);
    font-weight: 700;
}

.footer-privacy a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 700;
}

.social-links a {
    transition: var(--transition-quick);
}

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

/* -------------------------------------------------------------
   Scroll animations helper classes (Intersection Observer)
   ------------------------------------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appeared {
    opacity: 1;
    transform: translateY(0);
}

/* Delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    body[dir="rtl"] .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .showcase-interactive-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .showcase-nav-list {
        order: 2;
    }
    
    .showcase-phone-container {
        order: 1;
    }
    
    .download-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .download-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        display: none; /* Hide nav links on mobile for simplicity, keep download/language toggles */
    }
    
    section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .flex-container {
        gap: 2rem;
    }
    
    .demo-visual-card, .demo-content {
        width: 100%;
        min-width: 0;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group button {
        width: 100%;
    }
    
    .analysis-result {
        flex-direction: column;
        text-align: center;
    }
    
    .result-badge {
        align-self: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
