/* ===================================
   Sprint SaaS - CSS Styles
   Design: Dark Navy + Teal + Orange
   =================================== */

:root {
    /* Colors */
    --color-teal: oklch(0.72 0.17 175);
    --color-teal-dark: oklch(0.55 0.15 175);
    --color-orange: oklch(0.72 0.19 45);
    --color-navy: oklch(0.18 0.03 260);
    --color-navy-light: oklch(0.25 0.03 260);
    --color-navy-dark: oklch(0.13 0.02 260);
    
    --color-bg: oklch(0.99 0.001 260);
    --color-text: oklch(0.18 0.03 260);
    --color-text-muted: oklch(0.5 0.02 260);
    --color-border: oklch(0.925 0.004 260);
    --color-card: oklch(1 0 0);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Fonts */
    --font-sans: 'Noto Sans Arabic', 'DM Sans', system-ui, sans-serif;
    --font-display: 'DM Sans', 'Noto Sans Arabic', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-teal), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-teal {
    color: var(--color-teal);
}

.text-orange {
    color: var(--color-orange);
}

.text-white {
    color: white;
}

.text-gray {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Navbar
   =================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.875rem;
    font-family: var(--font-display);
    box-shadow: 0 2px 8px rgba(114, 231, 221, 0.3);
    transition: box-shadow 0.2s;
}

.logo:hover .logo-icon {
    box-shadow: 0 4px 12px rgba(114, 231, 221, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    color: var(--color-text);
    transition: color 0.3s;
}

#navbar.scrolled .logo-title {
    color: var(--color-text);
}

body:not(.scrolled) #navbar:not(.scrolled) .logo-title {
    color: white;
}

.logo-subtitle {
    font-size: 0.5625rem;
    line-height: 1;
    margin-top: 0.125rem;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

body:not(.scrolled) #navbar:not(.scrolled) .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.nav-links {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-teal);
}

body:not(.scrolled) #navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

body:not(.scrolled) #navbar:not(.scrolled) .nav-link::after {
    background: white;
}

body:not(.scrolled) #navbar:not(.scrolled) .nav-link:hover,
body:not(.scrolled) #navbar:not(.scrolled) .nav-link.active {
    color: white;
}

/* ===================================
   Light pages - navbar always solid
   (pages without dark hero section)
   =================================== */

body.light-page #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-page #navbar .logo-title {
    color: var(--color-text);
}

body.light-page #navbar .logo-subtitle {
    color: var(--color-text-muted);
}

body.light-page #navbar .nav-link {
    color: var(--color-text-muted);
}

body.light-page #navbar .nav-link:hover,
body.light-page #navbar .nav-link.active {
    color: var(--color-teal);
}

body.light-page #navbar .nav-link::after {
    background: var(--color-teal);
}

body.light-page #navbar .mobile-menu-btn span {
    background: var(--color-text);
}

body.light-page #navbar .btn-ghost {
    color: var(--color-text);
}

/* hero-page: navbar transparent on top, solid on scroll */
body.hero-page:not(.scrolled) #navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .nav-link::after {
    background: white;
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .nav-link:hover,
body.hero-page:not(.scrolled) #navbar:not(.scrolled) .nav-link.active {
    color: white;
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .logo-title {
    color: white;
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .mobile-menu-btn span {
    background: white;
}

body.hero-page:not(.scrolled) #navbar:not(.scrolled) .btn-ghost {
    color: rgba(255, 255, 255, 0.85);
}

.nav-actions {
    display: none;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-actions {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

body:not(.scrolled) #navbar:not(.scrolled) .mobile-menu-btn span {
    background: white;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-menu-content {
    padding: 1.5rem 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(114, 231, 221, 0.1);
    color: var(--color-teal);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-teal);
    color: var(--color-navy);
}

.btn-primary:hover {
    background: var(--color-teal-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hero-page #navbar:not(.scrolled) .btn-ghost {
    color: rgba(255, 255, 255, 0.8);
}

.hero-page #navbar:not(.scrolled) .btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    height: 48px;
}

.icon {
    width: 1rem;
    height: 1rem;
}

.btn-lg .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, 
        oklch(0.13 0.03 260) 0%, 
        oklch(0.18 0.04 240) 50%, 
        oklch(0.15 0.03 260) 100%);
    padding: 8rem 0 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 9rem 0 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 10rem 0 7rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-circle-1 {
    top: 5rem;
    right: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, var(--color-teal), transparent);
    opacity: 0.1;
}

.hero-circle-2 {
    bottom: 5rem;
    left: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, var(--color-orange), transparent);
    opacity: 0.08;
}

.hero-circle-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37.5rem;
    height: 37.5rem;
    background: radial-gradient(circle, var(--color-teal), transparent);
    opacity: 0.05;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hero-feature .icon {
    color: var(--color-teal);
}

.hero-image {
    display: none;
}

@media (min-width: 1024px) {
    .hero-image {
        display: block;
    }
}

@media (max-width: 1023px) {
    .section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .section [style*="order: 2"] {
        order: 1 !important;
    }
    
    .section [style*="order: 1"] {
        order: 2 !important;
    }
    
    .feature-highlights {
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    #ministry-stats {
        grid-template-columns: 1fr !important;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr !important;
    }
    
    .hero-section {
        padding: 6rem 0 4rem !important;
    }
    
    .section {
        padding: 3rem 0 !important;
    }
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px rgba(114, 231, 221, 0.2), 
                0 0 80px rgba(114, 231, 221, 0.1);
}

/* ===================================
   Badge
   =================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-teal {
    background: rgba(114, 231, 221, 0.1);
    color: var(--color-teal);
    border: 1px solid rgba(114, 231, 221, 0.2);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.badge .icon {
    width: 0.75rem;
    height: 0.75rem;
}

/* ===================================
   Stats Section
   =================================== */

.stats-section {
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 20;
    margin-top: -1.5rem;
}

.stats-container {
    max-width: 80rem;
    margin: 0 auto;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 auto 0.5rem;
    color: var(--color-teal);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text);
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===================================
   Section
   =================================== */

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 7rem 0;
    }
}

.section-dark {
    background: linear-gradient(135deg, 
        oklch(0.13 0.03 260) 0%, 
        oklch(0.18 0.04 240) 50%, 
        oklch(0.15 0.03 260) 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Grid
   =================================== */

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Card Component
   =================================== */

.card {
    background: var(--color-card);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(114, 231, 221, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card svg {
    color: var(--color-teal);
    stroke-width: 2;
}

.feature-icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    background: rgba(114, 231, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-teal);
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-right: 3.75rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.feature-highlight svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--color-teal);
    flex-shrink: 0;
}

/* ===================================
   Badge Component
   =================================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 0.25rem;
    transition: all 0.2s;
}

.badge svg {
    width: 0.75rem;
    height: 0.75rem;
    pointer-events: none;
}

.badge-teal {
    background: rgba(114, 231, 221, 0.1);
    color: var(--color-teal);
    border-color: rgba(114, 231, 221, 0.2);
}

.badge-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.badge-secondary {
    background: var(--color-secondary);
    color: var(--color-secondary-foreground);
    border-color: transparent;
}

/* ===================================
   Problem Card
   =================================== */

.problem-card {
    height: 100%;
}

.problem-item,
.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.problem-item {
    margin-bottom: 1rem;
}

.problem-icon,
.solution-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-icon {
    background: rgba(239, 68, 68, 0.1);
}

.problem-icon svg {
    width: 1rem;
    height: 1rem;
    color: rgb(239, 68, 68);
}

.solution-icon {
    background: rgba(114, 231, 221, 0.1);
}

.solution-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-teal);
}

.problem-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.solution-item p {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
}

.divider {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--color-border), transparent);
    margin: 1rem 0;
}

/* ===================================
   Ecosystem
   =================================== */

.ecosystem-image {
    max-width: 64rem;
    margin: 0 auto 4rem;
}

.ecosystem-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px rgba(114, 231, 221, 0.2);
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(114, 231, 221, 0.4);
}

.role-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.role-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.role-info {
    flex: 1;
    min-width: 0;
}

.role-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.role-card:hover .role-title {
    color: var(--color-teal);
}

.role-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.role-arrow {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    margin-top: 0.25rem;
    transition: color 0.2s;
}

.role-card:hover .role-arrow {
    color: var(--color-teal);
}

/* ===================================
   Footer
   =================================== */

.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.footer-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ===================================
   Animations
   =================================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0s; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Utilities
   =================================== */

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* ===================================
   Demo Page - Responsive
   =================================== */

@media (max-width: 1023px) {
    .demo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Comparison Table - Mobile scroll */
.comparison-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

/* Dashboards grid - 2 cols on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    #dashboards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* About stats - 2 cols on mobile */
@media (max-width: 767px) {
    #values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .demo-two-col {
        grid-template-columns: 1fr !important;
    }
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}
