/* =====================================================
   ISLAMIC PRAYER APP - LANDING PAGE STYLES
   A premium, scroll-animated landing page
   ===================================================== */

/* ===================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   =================== */
:root {
    /* Raw Color Tokens - Light */
    --color-cream: #FDF8F4;
    --color-cream-dark: #F5EDE5;
    --color-primary-light: #a7885e;
    --color-primary-dark: #D0A98A;
    /* Muted Gold for Dark Mode */
    --color-brown: #C4A57B;
    --color-brown-light: #D4C5A1;
    --color-charcoal: #2D3436;
    --color-charcoal-light: #636E72;
    --color-amber: #E67E22;
    --color-green: #27AE60;
    --color-white: #FFFFFF;
    --color-black: #0B0B15;

    /* Raw Color Tokens - Dark (from App) */
    --color-dark-bg: #12100E;
    --color-dark-card: #1E1B18;
    --color-dark-text: #F2EDE9;
    --color-dark-text-muted: rgba(242, 237, 233, 0.7);
    --color-dark-accent-secondary: #2A241F;

    /* Semantic Variables (Default: Light) */
    --bg-page: var(--color-cream);
    --bg-card: var(--color-white);
    --bg-nav: rgba(253, 248, 244, 0.9);
    --bg-footer: #F5EDE5;

    --text-main: var(--color-charcoal);
    --text-muted: var(--color-charcoal-light);
    --text-inverse: var(--color-white);

    --color-primary: var(--color-primary-light);
    --color-accent: var(--color-brown);

    --border-color: rgba(167, 136, 94, 0.2);
    --border-color-focus: var(--color-primary);

    /* Button Colors */
    --btn-primary-bg: var(--color-charcoal);
    --btn-primary-text: var(--color-white);
    --btn-secondary-border: var(--color-charcoal);
    --btn-secondary-text: var(--color-charcoal);

    --bg-inverse-section: var(--color-charcoal);

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page) 100%);
    /* Simplified for theme switch */
    --gradient-primary: linear-gradient(135deg, var(--color-brown) 0%, var(--color-primary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-showcase: linear-gradient(180deg, var(--color-cream) 0%, #F5EDE5 50%, var(--color-cream) 100%);
    --gradient-text: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brown) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --font-brand: 'Playfair Display', serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(196, 165, 123, 0.3);
    --shadow-card: 0 10px 30px -5px rgba(196, 165, 123, 0.05);
    --shadow-card-hover: 0 20px 40px -5px rgba(196, 165, 123, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-nav: 1000;
    --z-modal: 1100;
}

[data-theme="dark"] {
    --bg-page: var(--color-dark-bg);
    --bg-card: var(--color-dark-card);
    --bg-nav: rgba(18, 16, 14, 0.9);
    --bg-footer: #1A1816;

    --text-main: var(--color-dark-text);
    --text-muted: var(--color-dark-text-muted);
    --text-inverse: var(--color-dark-text);

    --color-primary: var(--color-primary-dark);
    --color-accent: var(--color-primary-dark);

    --border-color: rgba(208, 169, 138, 0.15);

    --gradient-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, #B08968 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 27, 24, 0.9) 0%, rgba(30, 27, 24, 0.6) 100%);
    --gradient-showcase: linear-gradient(180deg, var(--color-dark-bg) 0%, var(--color-dark-card) 50%, var(--color-dark-bg) 100%);
    --gradient-text: linear-gradient(135deg, #F2EDE9 0%, #D0A98A 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.4);

    --btn-primary-bg: var(--color-primary);
    --btn-primary-text: #12100E;
    --btn-secondary-border: var(--color-dark-text);
    --btn-secondary-border: var(--color-dark-text);
    --btn-secondary-text: var(--color-dark-text);

    --bg-inverse-section: var(--color-dark-card);
}

/* ===================
   RESET & BASE STYLES
   =================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===================
   TYPOGRAPHY
   =================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.text-gradient {
    /* Use solid color first for fallback */
    color: var(--color-brown);
    background: linear-gradient(135deg, var(--color-brown) 0%, #b6a191 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-word {
    display: inline;
    background-image: linear-gradient(var(--text-main) 0%, var(--text-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-image var(--transition-slow);
}

.highlight-word.dimmed {
    background-image: linear-gradient(var(--text-muted) 0%, var(--text-muted) 100%);
}

/* ===================
   LAYOUT UTILITIES
   =================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================
   ANIMATIONS
   =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

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

    100% {
        background-position: 200% 0;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* ===================
   NAVIGATION
   =================== */
/* ===================
   NAVIGATION (Floating Pill Design)
   =================== */
.nav {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;
    z-index: var(--z-nav);
    padding: 16px 32px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.nav.scrolled {
    top: 10px;
    background: var(--bg-nav);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.brand-text {
    font-family: var(--font-brand);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-cta {
    padding: 10px 20px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition-fast);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav {
        top: 16px;
        width: calc(100% - 32px);
        max-width: none;
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        width: 90%;
        opacity: 0;
        pointer-events: none;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: var(--space-8);
        gap: var(--space-6);
        transition: all var(--transition-base);
        border-radius: var(--radius-2xl);
        box-shadow: var(--shadow-2xl);
        border: 1px solid var(--border-color);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .nav-link {
        font-size: var(--text-lg);
    }

    .nav-cta {
        padding: 12px 30px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===================
   HERO SECTION
   =================== */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: calc(100vh - 100px);
}

.hero-content {
    padding: var(--space-8) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(196, 165, 123, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #A07F4A;
    margin-bottom: var(--space-6);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.btn-icon-left {
    gap: var(--space-3);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--btn-secondary-border);
    color: var(--bg-page);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero-stars {
    display: flex;
    gap: 2px;
    color: var(--color-amber);
}

.hero-rating-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

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

.phone-mockup {
    position: relative;
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.phone-frame {
    width: 100%;
    position: relative;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    top: 2.5%;
    left: 5%;
    width: 90%;
    height: 95%;
    border-radius: 32px;
    overflow: hidden;
    z-index: 1;
}

.phone-screen img,
.phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 165, 123, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .phone-mockup {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        margin: 0 auto var(--space-8);
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-rating {
        justify-content: center;
    }

    .phone-mockup {
        width: 220px;
    }
}

/* ===================
   STATEMENT SECTION (Scroll Animation)
   =================== */
.statement {
    min-height: 200vh;
    position: relative;
}

.statement-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
}

.statement-text {
    font-size: var(--text-4xl);
    font-weight: 600;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .statement-text {
        font-size: var(--text-2xl);
    }
}

/* ===================
   FEATURES SECTION
   =================== */
.features {
    background: var(--bg-page);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid rgba(196, 165, 123, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(196, 165, 123, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(196, 165, 123, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: var(--btn-primary-text);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--text-muted);
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================
   APP SHOWCASE SECTION
   =================== */
.showcase {
    background: var(--gradient-showcase);
    overflow: hidden;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.showcase-container.reverse {
    direction: rtl;
}

.showcase-container.reverse>* {
    direction: ltr;
}

.showcase-content h2 {
    margin-bottom: var(--space-6);
}

.showcase-content p {
    margin-bottom: var(--space-8);
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.showcase-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

.showcase-phone {
    width: 260px;
    position: relative;
}

.showcase-phone-frame {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

.showcase-phone-screen {
    position: absolute;
    top: 2.5%;
    left: 5%;
    width: 90%;
    height: 95%;
    border-radius: 30px;
    overflow: hidden;
}

.showcase-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {

    .showcase-container,
    .showcase-container.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .showcase-features {
        align-items: center;
    }

    .showcase-phone {
        width: 220px;
    }
}

/* ===================
   IMPACT / STATS SECTION
   =================== */
.impact {
    background: var(--bg-inverse-section);
    color: white;
    text-align: center;
}

.impact h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.impact .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.stat-item {
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, #D4C5A1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .stat-number {
        font-size: var(--text-4xl);
    }
}

/* ===================
   TESTIMONIALS SECTION
   =================== */
.testimonials {
    background: var(--bg-page);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-6);
    animation: scroll 30s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    width: 350px;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-amber);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--text-main);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--text-lg);
}

.testimonial-info h4 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ===================
   FAQ SECTION
   =================== */
.faq {
    background: var(--bg-page);
}

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

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================
   CTA SECTION
   =================== */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

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

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ===================
   FOOTER
   =================== */
.footer {
    background: var(--bg-inverse-section);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-4);
    max-width: 300px;
}

.footer-column h4 {
    color: white;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

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

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: var(--space-4) auto 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================
   UTILITY CLASSES
   =================== */
.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;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================
   TIMELINE STYLES (Features Page)
   =================== */
.page-hero {
    min-height: auto;
    padding-top: 180px;
    padding-bottom: var(--space-12);
}

.page-hero .hero-container {
    min-height: auto;
    display: block;
    text-align: center;
}

.timeline-section {
    position: relative;
    padding: var(--space-20) 0;
}

/* Vertical Line */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(196, 165, 123, 0) 0%,
            rgba(196, 165, 123, 0.3) 15%,
            rgba(196, 165, 123, 0.3) 85%,
            rgba(196, 165, 123, 0) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    margin-bottom: var(--space-24);
    position: relative;
}

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

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 4px solid var(--color-cream);
    box-shadow: 0 0 0 1px rgba(196, 165, 123, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-content {
    padding: var(--space-8);
}

.timeline-content h2 {
    margin-bottom: var(--space-4);
    color: var(--color-primary-dark);
}

.timeline-time {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid rgba(196, 165, 123, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.timeline-visual {
    display: flex;
    justify-content: center;
}

.timeline-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 165, 123, 0.1);
}

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

.ui-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-2);
}

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

.feature-list {
    margin-top: var(--space-6);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li svg {
    color: var(--color-primary);
}

/* Reverse Layout */
.timeline-item.reverse {
    direction: rtl;
}

.timeline-item.reverse .timeline-content {
    text-align: left;
    direction: ltr;
}

/* Text alignment for normal items */
.timeline-item:not(.reverse) .timeline-content {
    text-align: right;
}

.timeline-item:not(.reverse) .feature-list li {
    flex-direction: row-reverse;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-section::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-left: 50px;
    }

    .timeline-item::after {
        left: 20px;
        top: 20px;
        /* Align with top instead of center */
        transform: translate(-50%, 0);
    }

    .timeline-item.reverse {
        direction: ltr;
    }

    .timeline-content {
        padding: 0;
        text-align: left !important;
    }

    .timeline-item:not(.reverse) .feature-list li {
        flex-direction: row;
    }

    .timeline-visual {
        order: 2;
        /* Visual below content on mobile */
    }
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

/* ===================
   THEME TOGGLE
   =================== */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-right: 0;
        margin-bottom: 0;
    }
}