/* CSS Custom Properties - Enhanced Design System */
:root {
    --brand: #41b9a8;
    --brand-ink: #036666;
    --brand-light: #66d4c6;
    --accent: #fad35c;
    --accent-dark: #f5c842;
    --bg: #fdf9ef;
    --bg-alt: #f8f5eb;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --ink: #2d3748;
    --ink-light: #4a5568;
    --muted: #718096;
    --muted-light: #a0aec0;
    --soft: #a4d6c5;
    --soft-light: #c6f7e9;
    --dark: #1a202c;
    --dark-alt: #2d3748;
    --card-border: #e2e8f0;
    --border-light: #edf2f7;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 8px;
    --shadow: 0 10px 25px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,.15);
    --gradient-primary: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
    --gradient-soft: linear-gradient(135deg, var(--soft-light) 0%, var(--soft) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Arabic Font Helper */
.ar {
    font-family: "IBM Plex Sans Arabic", Inter, sans-serif;
}

/* RTL Layout Support */
body.ar-layout {
    font-family: "IBM Plex Sans Arabic", Inter, sans-serif;
}

[dir="rtl"] .nav-container {
    direction: rtl;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: center;
}

[dir="rtl"] .services-grid {
    direction: rtl;
}

[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .blog-grid {
    direction: rtl;
}

[dir="rtl"] .blog-card-content {
    text-align: right;
}

[dir="rtl"] .article-content {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .scenario-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .form-group {
    direction: rtl;
}

[dir="rtl"] .coming-soon-grid {
    direction: rtl;
}

[dir="rtl"] .btn {
    direction: rtl;
}

/* Arabic Typography Adjustments */
body.ar-layout h1,
body.ar-layout h2,
body.ar-layout h3,
body.ar-layout h4,
body.ar-layout h5,
body.ar-layout h6 {
    font-weight: 700;
    line-height: 1.4;
}

body.ar-layout .hero-title {
    font-weight: 700;
}

body.ar-layout .section-title {
    font-weight: 700;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.page-lead {
    font-size: 1.125rem;
    color: var(--muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link:hover {
    transform: scale(1.05);
}

.brand-logo {
    width: 40px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Language toggle positioning */
.language-toggle {
    order: 999; /* Move to end in English layout */
}

/* Arabic layout - keep language toggle at the beginning */
body.ar-layout .language-toggle {
    order: -1; /* Move to beginning in Arabic layout */
}



.nav-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-ink);
    background: var(--soft-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.language-toggle {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
    border: 2px solid var(--border-light);
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
}

.language-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    transform: scale(0.9);
}

.language-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(65, 185, 168, 0.2);
    border-color: var(--brand);
}

.language-toggle:hover::before {
    opacity: 1;
    transform: scale(1);
}

.language-toggle:hover .current-lang {
    color: var(--surface);
}

.language-toggle:hover .lang-divider {
    color: rgba(255, 255, 255, 0.6);
}

.language-toggle:hover .alt-lang {
    color: rgba(255, 255, 255, 0.8);
}

.language-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 185, 168, 0.3), 0 8px 25px rgba(65, 185, 168, 0.15);
}

.language-toggle:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.lang-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-weight: 600;
}

.current-lang {
    font-weight: 700;
    transition: all 0.3s ease;
}

.lang-divider {
    color: var(--muted);
    font-weight: 300;
    font-size: 18px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.alt-lang {
    font-weight: 500;
    font-family: "IBM Plex Sans Arabic", Inter, sans-serif;
    transition: all 0.3s ease;
}

/* Style based on current language - ENG is highlighted in English mode, عربي in Arabic mode */
body:not(.ar-layout) .current-lang {
    color: var(--brand-ink);
}

body:not(.ar-layout) .alt-lang {
    color: var(--muted-light);
}

body.ar-layout .current-lang {
    color: var(--muted-light);
}

body.ar-layout .alt-lang {
    color: var(--brand-ink);
    font-weight: 700;
}



@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Mobile optimizations for language toggle */
@media (max-width: 768px) {
    .language-toggle {
        padding: 6px 12px;
        min-height: 40px;
        font-size: 14px;
        gap: 6px;
    }
    
    .lang-divider {
        font-size: 16px;
    }
    
    .language-toggle:hover {
        transform: translateY(-1px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .language-toggle {
        border-radius: 20px;
        padding: 6px 10px;
        font-size: 13px;
        gap: 5px;
    }
    
    .lang-divider {
        font-size: 15px;
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-soft {
    background: var(--gradient-soft);
    color: var(--brand-ink);
    border: 1px solid var(--soft);
}

.btn-soft:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

/* Enhanced Hero Section */
.hero-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--brand-ink) 60%, var(--brand) 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Services Section */
.services {
    padding: 100px 0;
    background: var(--surface);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

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

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--soft);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--brand-ink);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ink);
}

.service-description {
    color: var(--muted);
    line-height: 1.6;
}

/* Enhanced Articles Teaser */
.articles-teaser {
    background: linear-gradient(135deg, var(--bg) 0%, var(--gradient-soft) 50%, var(--bg-alt) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.articles-teaser::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65,185,168,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: float 25s linear infinite;
    opacity: 0.6;
}

.articles-teaser::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250,211,92,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.4; }
}

.teaser-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.teaser-description {
    color: var(--brand-ink);
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    transform: translateY(0);
    margin-bottom: 2rem;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--soft);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-soft);
    transition: transform 0.4s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--brand-ink);
    transform: translateX(4px);
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 1.5rem;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-text:last-child {
    width: 70%;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--brand-ink);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

/* Articles Actions */
.articles-actions {
    text-align: center;
    position: relative;
    z-index: 2;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary-outline:hover {
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-outline:hover::before {
    left: 0;
}

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

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

/* Article animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Coming Soon Section */
/* Enhanced Coming Soon Section */
.coming-soon {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 50%, var(--soft) 100%);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(65, 185, 168, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(250, 211, 92, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 120px 0;
}

/* Mobile App Mockup */
.app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
    border-radius: 27px;
    position: relative;
    overflow: hidden;
}

/* App Header */
.app-header {
    padding: 15px 20px 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.time {
    color: var(--ink);
}

.battery-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.signal-bars {
    display: flex;
    gap: 2px;
}

.signal-bars span {
    width: 3px;
    height: 8px;
    background: var(--brand);
    border-radius: 1px;
}

.signal-bars span:nth-child(2) { height: 10px; }
.signal-bars span:nth-child(3) { height: 12px; }
.signal-bars span:nth-child(4) { height: 14px; }

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

.app-nav h3 {
    color: var(--brand);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* App Content */
.app-content {
    padding: 20px;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    padding: 20px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 25px rgba(65, 185, 168, 0.3);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.portfolio-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.portfolio-value {
    font-size: 24px;
    font-weight: 800;
}

.portfolio-growth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.growth-indicator {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.growth-period {
    font-size: 12px;
    opacity: 0.8;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--surface);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--card-border);
}

.action-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.action-icon.invest { background: linear-gradient(45deg, var(--brand) 0%, var(--brand-light) 100%); }
.action-icon.track { background: linear-gradient(45deg, var(--accent) 0%, #ffd700 100%); }
.action-icon.learn { background: linear-gradient(45deg, #6366f1 0%, #8b5cf6 100%); }

/* Market Overview */
.market-overview {
    background: var(--surface);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--card-border);
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.market-item:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 8px;
    padding-bottom: 16px;
}

.symbol {
    font-weight: 700;
    color: var(--ink);
}

.price {
    font-weight: 600;
    color: var(--muted);
}

.change {
    font-weight: 700;
    font-size: 12px;
}

.change.positive { color: #10b981; }
.change.negative { color: #ef4444; }

.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-card.card-1 {
    top: 20%;
    right: -60px;
    animation: floatCard1 8s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 50%;
    left: -80px;
    animation: floatCard2 8s ease-in-out infinite 2s;
}

.floating-card.card-3 {
    bottom: 25%;
    right: -70px;
    animation: floatCard3 8s ease-in-out infinite 4s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); opacity: 0.8; }
    50% { transform: translateY(-15px) rotate(-1deg); opacity: 1; }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(1deg); opacity: 1; }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); opacity: 0.8; }
    50% { transform: translateY(-10px) rotate(-2deg); opacity: 1; }
}

/* Content Section */
.coming-soon-content {
    max-width: 600px;
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(65, 185, 168, 0.3);
}

.coming-soon-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.coming-soon-subtitle {
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.coming-soon-description {
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 185, 168, 0.1);
    border-color: var(--brand-light);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-text h4 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Clean Subscribe Form */
.subscribe-form {
    margin: 3rem 0;
}

.input-wrapper {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--card-border);
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 20px 24px;
    font-size: 1.125rem;
    color: var(--ink);
    background: transparent;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--muted);
    font-size: 1.125rem;
}

.input-wrapper button {
    border: none;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: white;
    padding: 20px 32px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-wrapper button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(65, 185, 168, 0.4);
}

.form-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(65, 185, 168, 0.1);
    color: var(--brand);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(65, 185, 168, 0.2);
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 1rem;
}

.success-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.error-message::before {
    content: '⚠';
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Launch Timeline */
.launch-timeline {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--card-border);
    position: relative;
    flex-shrink: 0;
}

.timeline-dot.completed {
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(65, 185, 168, 0.2);
}

.timeline-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(250, 211, 92, 0.2);
    animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(250, 211, 92, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(250, 211, 92, 0.1); }
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.875rem;
}

.timeline-status {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Responsive Design for Coming Soon */
@media (max-width: 768px) {
    .coming-soon {
        padding: 80px 0;
    }
    
    .coming-soon-content h2 {
        font-size: 2.5rem;
    }
    
    .coming-soon-subtitle {
        font-size: 1.25rem;
    }
    
    .coming-soon-description {
        font-size: 1.125rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
        transform: none;
        animation: none;
    }
    
    .floating-card {
        display: none;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .coming-soon-content h2 {
        font-size: 2.5rem;
    }
    
    .coming-soon-subtitle {
        font-size: 1.25rem;
    }
    
    .coming-soon-description {
        font-size: 1.125rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        max-width: 320px;
    }
    
    .input-wrapper input {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .input-wrapper button {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .form-tags {
        gap: 0.75rem;
    }
    
    .tag {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    
    .timeline-item {
        gap: 0.75rem;
    }
}

/* Legacy Subscribe Form Styles */
.subscribe-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(65, 185, 168, 0.1);
    transform: translateY(-1px);
}

.form-group input[type="email"]:hover {
    border-color: var(--soft);
}

.success-message {
    background: var(--gradient-soft);
    color: var(--brand-ink);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--soft);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand-ink);
}

/* Enhanced Blog Styles */
.blog-header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--gradient-soft) 50%, var(--bg-alt) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(65,185,168,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
    opacity: 0.7;
}

.blog-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.blog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

/* Search Controls */
.search-container {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    pointer-events: none;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(65, 185, 168, 0.1);
    transform: translateY(-1px);
}

.clear-search {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
}

.clear-search:hover {
    background: var(--border-light);
    color: var(--ink);
}

/* Filter Controls */
.filter-container {
    min-width: 160px;
}

.category-filter {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-filter:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(65, 185, 168, 0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.view-btn {
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--border-light);
    color: var(--ink);
}

.view-btn.active {
    background: var(--brand);
    color: white;
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.clear-filters-btn:hover {
    background: var(--border-light);
    color: var(--ink);
}

.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    transition: all 0.3s ease;
}

.blog-grid.list-view {
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

.blog-grid.list-view .blog-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    align-items: start;
}

.blog-grid.list-view .blog-card .blog-image {
    height: 150px;
    border-radius: var(--radius) 0 0 var(--radius);
}

.blog-grid.list-view .blog-card .blog-card-content {
    padding: 1.5rem;
}

/* Blog Responsive Styles */
@media (max-width: 768px) {
    .blog-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        min-width: auto;
        width: 100%;
    }
    
    .filter-container {
        min-width: auto;
        width: 100%;
    }
    
    .blog-grid.list-view .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-grid.list-view .blog-card .blog-image {
        height: 200px;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

/* Loading States */
.loading-skeleton-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skeleton-blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-blog-content {
    padding: 2rem;
}

.skeleton-blog-badge {
    width: 80px;
    height: 24px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-blog-title {
    height: 1.5rem;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-blog-text {
    height: 1rem;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-blog-text:last-of-type {
    width: 70%;
}

.skeleton-blog-meta {
    height: 1rem;
    width: 120px;
    background: linear-gradient(90deg, var(--border-light) 25%, var(--soft) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-top: 1rem;
    animation: skeletonShimmer 1.5s infinite;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--brand-ink);
}

.blog-empty-state h3 {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.blog-empty-state p {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-soft);
}

.blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--gradient-soft) 0%, var(--soft) 100%);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--soft);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.blog-badge {
    background: var(--gradient-accent);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover .blog-badge {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--brand-ink);
}

.blog-excerpt {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--brand-ink);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    color: var(--brand);
    transform: translateX(2px);
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translate(2px, -2px);
}

/* Article Styles */
.article-main {
    padding: 60px 0;
}

.article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--ink);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--ink);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--brand-ink);
}

.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--brand);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .coming-soon-content h2 {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-dark {
        padding: 80px 0 60px;
    }
    
    .services, .coming-soon {
        padding: 60px 0;
    }
    
    .articles-teaser {
        padding: 80px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .teaser-header {
        margin-bottom: 3rem;
    }
    
    .loading-skeleton {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .service-card, .blog-card {
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .service-card, .blog-card {
        margin-bottom: 1rem;
    }
}

/* Modern Focus Styles for Better Accessibility */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading Animation for Dynamic Content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Improved Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-ink);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Ensure good contrast for text */
.hero-dark .btn-primary:focus {
    outline-color: white;
}
