:root {
    --color-primary: #8B5A3C;
    --color-primary-dark: #6B4530;
    --color-primary-light: #A67C5F;
    --color-accent: #D4A574;
    --color-accent-light: #E8D4B8;
    --color-accent-lighter: #F5EDE0;
    --color-background: #FEFBF8;
    --color-background-alt: #FAF7F3;
    --color-background-dark: #2C2416;
    --color-text: #1A1511;
    --color-text-secondary: #5C4E3F;
    --color-text-muted: #8B7A6B;
    --color-card: #FFFFFF;
    --color-border: #E8D4B8;
    --color-border-light: #F0E5D6;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 4rem;
    --spacing-xxxl: 6rem;
    
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    
    --shadow-xs: 0 1px 2px rgba(44, 36, 22, 0.04);
    --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 36, 22, 0.16);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-accent-lighter) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 90, 60, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, var(--color-primary) 20px, var(--color-primary) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, var(--color-primary) 20px, var(--color-primary) 21px);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--spacing-xxxl);
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: var(--spacing-xxl);
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

/* Wrapper so logo (tan/gold) has contrast and looks normal */
.hero-title-block {
    margin-bottom: var(--spacing-md);
}

.hero-logo-wrap {
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-text {
    font-size: clamp(6rem, 16vw, 10rem);
    font-weight: 700;
    color: #d4ac81;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: var(--font-primary);
}

.hero-logo-arabic {
    font-size: clamp(3.5rem, 9vw, 6rem);
    color: #d4ac81;
    font-family: var(--font-primary);
    margin-top: -0.1em;
    letter-spacing: 0.02em;
}

.hero-title-block .hero-tagline {
    margin-bottom: 0;
    margin-top: 0.25em;
    color: #d4ac81;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-full-logo {
    display: block;
    height: 520px;
    width: auto;
    max-width: 1680px;
    object-fit: contain;
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-img {
    max-width: 120px;
    height: auto;
    width: auto;
}

.accent-bar {
    width: 5px;
    height: 72px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xxl);
    max-width: 580px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    min-height: 44px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-badges {
    display: flex;
    gap: var(--spacing-md);
}

.badge {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.phone-mockup {
    position: relative;
    max-width: min(340px, 92vw);
    margin: 0 auto;
    filter: drop-shadow(var(--shadow-xl));
}

.phone-screenshot {
    width: 100%;
    height: auto;
    border-radius: 36px;
    display: block;
    border: 10px solid #1a1a1a;
    background: #1a1a1a;
}

.phone-frame {
    position: absolute;
    inset: 0;
    border-radius: 46px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero-image-note {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-xxxl) 0;
    background: var(--color-card);
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.screenshots-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xxl);
}

.screenshot-item {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.screenshot-item:nth-child(1) { animation-delay: 0.1s; }
.screenshot-item:nth-child(2) { animation-delay: 0.2s; }
.screenshot-item:nth-child(3) { animation-delay: 0.3s; }

.screenshot-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
    border: 3px solid var(--color-border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.screenshot-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-weight: 600;
}

.screenshot-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.how-it-works::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
    font-weight: 400;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.step-item {
    position: relative;
    margin-bottom: var(--spacing-xxl);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }

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

.step-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
}

.step-left .step-content {
    flex-direction: row;
    justify-content: flex-end;
    padding-right: calc(50% + var(--spacing-lg));
}

.step-right .step-content {
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-left: calc(50% + var(--spacing-lg));
}

.step-badge {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 3px solid var(--color-card);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(139, 90, 60, 0.35);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.step-text {
    background: var(--color-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-border-light);
    flex: 1;
    max-width: 350px;
    transition: all 0.3s ease;
    position: relative;
}

.step-text::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transition: all 0.3s ease;
}

.step-left .step-text::before {
    right: -12px;
    transform: translateY(-50%);
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent var(--color-card);
}

.step-right .step-text::before {
    left: -12px;
    transform: translateY(-50%);
    border-width: 12px 12px 12px 0;
    border-color: transparent var(--color-card) transparent transparent;
}

.step-item:hover .step-text {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.step-item:hover .step-text::before {
    border-color: transparent transparent transparent var(--color-accent);
}

.step-right:hover .step-text::before {
    border-color: transparent var(--color-accent) transparent transparent;
}

.step-text h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step-text p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

@media (max-width: 968px) {
    .steps-timeline::before {
        left: 30px;
    }
    
    .step-left .step-content,
    .step-right .step-content {
        flex-direction: row;
        padding-left: calc(60px + var(--spacing-xl));
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .step-text {
        max-width: 100%;
    }
    
    .step-left .step-text::before,
    .step-right .step-text::before {
        left: -12px;
        right: auto;
        border-width: 12px 12px 12px 0;
        border-color: transparent var(--color-card) transparent transparent;
    }
    
    .step-item:hover .step-text::before {
        border-color: transparent var(--color-accent) transparent transparent;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* What is Khafi Section — Instagram-ready card */
.what-is-khafi {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, rgba(248, 243, 237, 0.6) 50%, var(--color-card) 100%);
    position: relative;
    overflow: hidden;
}

.what-is-khafi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.what-is-khafi-card {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(145deg, #fefcf9 0%, #faf6f0 50%, #f5efe6 100%);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 24px rgba(139, 90, 60, 0.08), 0 12px 48px rgba(44, 36, 22, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.25);
    overflow: hidden;
}

.what-is-khafi-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4ac81 0%, var(--color-primary) 50%, #d4ac81 100%);
    opacity: 0.9;
}

.what-is-khafi-card-inner {
    padding: var(--spacing-xxl) var(--spacing-xxl) var(--spacing-xxl);
    padding-top: calc(var(--spacing-xxl) + 8px);
}

.what-is-khafi-label {
    font-size: 1rem;
    color: #d4ac81;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
}

.what-is-khafi-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
}

.what-is-khafi-lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.what-is-khafi-body {
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-size: 1.0625rem;
    margin: 0 0 var(--spacing-xl);
}

.what-is-khafi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.what-is-khafi-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(212, 172, 129, 0.2);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(212, 172, 129, 0.4);
}

.what-is-khafi-card-inner strong {
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 640px) {
    .what-is-khafi-card-inner {
        padding: var(--spacing-xl) var(--spacing-lg);
        padding-top: calc(var(--spacing-xl) + 8px);
    }
    .what-is-khafi-title {
        margin-bottom: var(--spacing-md);
    }
    .what-is-khafi-lead {
        font-size: 1.0625rem;
    }
    .what-is-khafi-tags {
        gap: var(--spacing-xs);
    }
    .what-is-khafi-tag {
        font-size: 0.8125rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-card) 100%);
    position: relative;
    overflow: hidden;
}

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

.features::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.features-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    position: relative;
    z-index: 1;
}

.feature-item {
    padding: var(--spacing-xxl);
    background: var(--color-card);
    border-radius: var(--border-radius-xl);
    border: 2px solid var(--color-border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    background: linear-gradient(180deg, var(--color-card) 0%, var(--color-background-alt) 100%);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.feature-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: block;
    color: var(--color-primary);
}
.feature-icon svg {
    display: block;
    width: 56px;
    height: 56px;
    color: inherit;
}
.feature-icon svg use {
    fill: none;
    stroke: currentColor;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent-lighter) 0%, var(--color-accent-light) 100%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-bg {
    width: 100px;
    height: 100px;
    opacity: 0.6;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: var(--color-primary-dark);
}

.feature-item p {
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-size: 1rem;
    margin: 0;
}

.feature-item strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Download Section - Instagram-ready card */
.download {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-background) 100%);
    position: relative;
    overflow: hidden;
}

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

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

.download-card {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #fefcf9 50%, #faf6f0 100%);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(139, 90, 60, 0.1), 0 20px 60px rgba(44, 36, 22, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.3);
    overflow: hidden;
}

.download-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4ac81 0%, var(--color-primary) 50%, #d4ac81 100%);
}

.download-card-inner {
    padding: var(--spacing-xl) var(--spacing-xxl) var(--spacing-xxl);
    padding-top: var(--spacing-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-logo-wrap {
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.download-logo {
    height: 190px;
    width: auto;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.download-badge-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: -0.25rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    width: 100%;
}

.download-headline {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    width: 100%;
}

.download-tagline {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Official-style App Store badge */
.download-btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px 14px 22px;
    background: #000000;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: none;
}

.download-btn-appstore:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

.download-btn-appstore:active {
    transform: scale(0.98);
}

.download-btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.download-btn-apple svg {
    display: block;
    width: 28px;
    height: 28px;
}

.download-btn-apple use {
    fill: currentColor;
}

.download-btn-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.25;
}

.download-btn-line1 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
}

.download-btn-line2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.download-features {
    list-style: none;
    margin: var(--spacing-xl) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.download-features li {
    position: relative;
}

/* Legacy download-btn (if used elsewhere) */
.download-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    min-height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.download-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.download-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}
.download-icon use {
    fill: currentColor;
}

.download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.download-store {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.coming-soon-note {
    opacity: 0.9;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Story Section */
.story {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
    position: relative;
    overflow: hidden;
}

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

.story::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.story-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

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

.story-main {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.story-quote {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    color: white;
}

.story-quote::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-icon {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
}
.quote-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}
.quote-icon use {
    fill: none;
    stroke: currentColor;
}

.story-intro {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: white;
    line-height: 1.9;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.story-intro strong {
    color: var(--color-accent-light);
    font-weight: 600;
    font-style: normal;
}

.story-body {
    background: var(--color-card);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-border-light);
}

.story-body p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: var(--spacing-lg);
}

.story-body p:last-child {
    margin-bottom: 0;
}

.story-body strong {
    color: var(--color-primary);
    font-weight: 600;
}

.story-credits {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xxl);
    border-top: 2px solid var(--color-border-light);
    text-align: center;
}

.story-credits h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.credit-card {
    background: var(--color-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.credit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.credit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.5rem;
}

.credit-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    display: block;
}

.credit-icon-logo {
    width: auto;
    max-width: 5rem;
    height: 2.5rem;
    object-fit: contain;
}

.credit-icon-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-accent-light, #e8ddd0);
    color: var(--color-primary, #5c4033);
    font-weight: 700;
    font-size: 1.125rem;
}

.credit-label {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-name {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Updates Section */
.updates {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 50%, var(--color-background) 100%);
    position: relative;
    overflow: hidden;
}

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

.updates .section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.updates .section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    font-weight: 500;
}

.updates-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

/* Instagram-style carousel: click through update "posts" */
.updates-carousel {
    position: relative;
    max-width: 1080px;
    margin: 0 auto var(--spacing-xxl);
    cursor: pointer;
    padding: 0 56px;
}

.updates-carousel-viewport {
    overflow: hidden;
    border-radius: 28px;
    min-height: 520px;
    cursor: pointer;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.updates-carousel-track {
    display: flex;
    align-items: stretch;
    min-height: 520px;
    transition: transform 0.35s ease-out;
    will-change: transform;
    width: 100%;
}

.updates-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    min-height: 520px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 6px;
}

.updates-carousel-slide .updates-ig-visual,
.updates-carousel-slide .updates-ig-box {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 100%;
    min-height: 100%;
    align-self: stretch;
}

/* Boring slide: card fills height; center text block in the middle of the card */
.updates-carousel-slide .updates-ig-box--boring {
    height: 100%;
    position: relative;
}

.updates-carousel-slide .updates-ig-box--boring .updates-ig-box-inner {
    min-height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
}

/* First slide same size as others: match padding and width */
.updates-carousel-slide .updates-ig-visual {
    padding: var(--spacing-xxxl) var(--spacing-xxl);
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.updates-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f8efe2 100%);
    color: var(--color-primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(44, 36, 22, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.updates-carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 24px rgba(44, 36, 22, 0.24);
}

.updates-carousel-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.updates-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(44, 36, 22, 0.1);
}

.updates-carousel-prev {
    left: 0;
}

.updates-carousel-next {
    right: 0;
}

.updates-carousel-counter {
    margin: var(--spacing-md) auto 0;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-primary-dark);
    background: rgba(212, 165, 116, 0.18);
    border: 1px solid rgba(139, 90, 60, 0.2);
}

.updates-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.updates-carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.updates-carousel-dot:hover {
    background: var(--color-text-muted);
}

.updates-carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .updates-carousel {
        padding: 0 42px;
    }
    .updates-carousel-prev { left: 0; }
    .updates-carousel-next { right: 0; }
    .updates-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* IG post 1: Visual block (screenshot for Instagram) */
.updates-ig-visual {
    max-width: 1080px;
    margin: 0 auto var(--spacing-xxl);
    padding: var(--spacing-xxxl) var(--spacing-xl);
    background: linear-gradient(165deg, #FFFFFF 0%, var(--color-accent-lighter) 50%, var(--color-accent-lighter) 100%);
    border-radius: 28px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    box-shadow:
        0 4px 16px rgba(44, 36, 22, 0.06),
        0 16px 48px rgba(139, 90, 60, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.updates-ig-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xxl);
    width: 100%;
}

.updates-ig-text {
    flex: 0 1 auto;
    min-width: 200px;
    text-align: left;
}

.updates-ig-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.updates-ig-text .updates-ig-eyebrow,
.updates-ig-text .updates-ig-visual-title,
.updates-ig-text .updates-ig-tagline {
    text-align: left;
}

.updates-ig-eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    position: relative;
}

.updates-ig-visual-title {
    font-size: clamp(2.25rem, 5.5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 var(--spacing-xs);
    letter-spacing: -0.04em;
    line-height: 1.05;
    position: relative;
}

.updates-ig-tagline {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-md);
    position: relative;
}

.updates-ig-text .updates-ig-tagline::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: var(--spacing-sm) 0 0;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
    opacity: 0.8;
}

.updates-ig-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 0 1 auto;
    position: relative;
}

.updates-ig-phone {
    margin: 0;
    flex: 0 1 auto;
    width: 280px;
    max-width: 100%;
}

.updates-ig-phone:first-child img {
    transform: rotate(-3deg);
}

.updates-ig-phone:last-child img {
    transform: rotate(3deg);
}

.updates-ig-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(44, 36, 22, 0.12),
        0 24px 56px rgba(139, 90, 60, 0.18);
}

/* Separate boxes below (same vibe as New Update card) */
.updates-ig-box {
    max-width: 1080px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: linear-gradient(165deg, #FFFFFF 0%, var(--color-accent-lighter) 50%, var(--color-accent-lighter) 100%);
    border-radius: 28px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    box-shadow:
        0 4px 16px rgba(44, 36, 22, 0.06),
        0 16px 48px rgba(139, 90, 60, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

/* Collections & Settings & Learn: slightly elevated */
.updates-ig-box--img-left,
.updates-ig-box--img-right {
    padding: var(--spacing-xxxl) var(--spacing-xxl);
}

.updates-ig-box-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xxl);
    width: 100%;
}

.updates-ig-box--img-left .updates-ig-box-inner,
.updates-ig-box--img-right .updates-ig-box-inner {
    gap: var(--spacing-xxxl);
    align-items: center;
}

.updates-ig-box--img-left .updates-ig-box-img { order: 1; }
.updates-ig-box--img-left .updates-ig-box-text { order: 2; }
.updates-ig-box--img-right .updates-ig-box-text { order: 1; }
.updates-ig-box--img-right .updates-ig-box-img { order: 2; }

.updates-ig-box-img {
    flex: 0 1 280px;
    max-width: 100%;
}

.updates-ig-box--img-left .updates-ig-box-img,
.updates-ig-box--img-right .updates-ig-box-img {
    flex: 0 1 300px;
}

.updates-ig-box-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow:
        0 10px 28px rgba(44, 36, 22, 0.12),
        0 28px 64px rgba(139, 90, 60, 0.2);
}

.updates-ig-box-text {
    flex: 1 1 280px;
    min-width: 0;
}

.updates-ig-box--img-left .updates-ig-box-text,
.updates-ig-box--img-right .updates-ig-box-text {
    flex: 1 1 320px;
}

.updates-ig-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.02em;
}

.updates-ig-box--img-left .updates-ig-box-title,
.updates-ig-box--img-right .updates-ig-box-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.updates-ig-box--img-left .updates-ig-box-title::after,
.updates-ig-box--img-right .updates-ig-box-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin-top: var(--spacing-sm);
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
    opacity: 0.9;
}

.updates-ig-box-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.updates-ig-box--img-left .updates-ig-box-text p,
.updates-ig-box--img-right .updates-ig-box-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
}

.updates-ig-box-text a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.updates-ig-box-text a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.updates-ig-box--text-only .updates-ig-box-inner {
    justify-content: center;
}

.updates-ig-box--text-only .updates-ig-box-text {
    flex: 1 1 100%;
    max-width: 560px;
    text-align: center;
}

.updates-ig-box--text-only .updates-ig-box-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
}

.updates-ig-box--text-only .updates-ig-box-text p + p {
    margin-top: var(--spacing-md);
}

/* Boring updates: Instagram-post screen */
.updates-ig-box--boring {
    max-width: 1080px;
    padding: var(--spacing-xxxl) var(--spacing-xxl);
    display: flex;
    flex-direction: column;
}

.updates-ig-box--boring .updates-ig-box-inner {
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
    justify-content: center;
}

.updates-ig-boring-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
    order: -1;
    text-align: center;
}

.updates-ig-box--boring .updates-ig-box-inner {
    align-items: center;
}

.updates-ig-box--boring .updates-ig-box-text,
.updates-ig-box--boring .updates-ig-box-text p {
    text-align: center;
}

.updates-ig-box--boring .updates-ig-box-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    -webkit-text-fill-color: unset;
    background: none;
    text-align: center;
}

/* Legacy feature rows (kept for reference, unused) */
.updates-ig-feature {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xxl);
    width: 100%;
    margin-top: var(--spacing-xxl);
    position: relative;
}

.updates-ig-feature:first-of-type {
    margin-top: var(--spacing-xl);
}

.updates-ig-feature--img-left .updates-ig-feature-img { order: 1; }
.updates-ig-feature--img-left .updates-ig-feature-text { order: 2; }
.updates-ig-feature--img-right .updates-ig-feature-text { order: 1; }
.updates-ig-feature--img-right .updates-ig-feature-img { order: 2; }

.updates-ig-feature-img {
    flex: 0 1 280px;
    max-width: 100%;
    position: relative;
}

.updates-ig-feature-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(44, 36, 22, 0.12),
        0 24px 56px rgba(139, 90, 60, 0.18);
}

.updates-ig-feature-text {
    flex: 1 1 280px;
    min-width: 0;
    position: relative;
}

.updates-ig-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    letter-spacing: -0.02em;
}

.updates-ig-feature-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.updates-ig-feature-text a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.updates-ig-feature-text a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.updates-ig-feature--text-only {
    margin-top: var(--spacing-xxl);
    justify-content: center;
}

.updates-ig-feature--text-only .updates-ig-feature-text {
    flex: 1 1 100%;
    max-width: 560px;
    text-align: center;
}

/* IG post 2: Release notes block (screenshot for Instagram) */
.updates-ig-notes {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.updates-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.update-card {
    background: var(--color-card);
    padding: var(--spacing-xxl) var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.update-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.update-version {
    display: inline-block;
    padding: 0.35em 0.85em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(139, 90, 60, 0.2);
}

.update-changes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.update-changes li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

.update-changes li:last-child {
    margin-bottom: 0;
}

.update-changes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.9;
}

.update-changes li strong {
    color: var(--color-primary);
    font-weight: 600;
}

.update-card-latest {
    border-left-width: 5px;
    border-left-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(44, 36, 22, 0.08), 0 0 0 1px rgba(212, 165, 116, 0.15);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-background-alt) 100%);
}

.update-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(139, 90, 60, 0.25);
}

.update-credit {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px dashed var(--color-border);
}

.update-credit strong {
    color: var(--color-text);
}

.update-credit a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.update-credit a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.update-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.update-screenshot {
    margin: 0;
    text-align: center;
}

.update-screenshot img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 0 auto var(--spacing-sm);
}

.update-screenshot figcaption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Feedback Section */
.feedback {
    padding: var(--spacing-xxxl) 0;
    background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-background) 100%);
    position: relative;
    overflow: hidden;
}

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

.feedback::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.feedback-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.feedback-description {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xxl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.feedback-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xxl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feedback-form-wrapper {
    background: var(--color-card);
    padding: var(--spacing-xxxl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.feedback-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-background);
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 90, 60, 0.1);
    background: var(--color-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.feedback-form .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.feedback-success {
    text-align: center;
    padding: var(--spacing-xxxl) var(--spacing-xl);
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease;
}
.success-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}
.success-icon use {
    fill: none;
    stroke: currentColor;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-success h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.feedback-success p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

.feedback-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feedback-info-item {
    padding: var(--spacing-xl);
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feedback-info-item:hover::before {
    transform: scaleY(1);
}

.feedback-info-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-primary);
}

.info-icon {
    margin-bottom: var(--spacing-md);
    line-height: 1;
    display: block;
    color: var(--color-primary);
}
.info-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}
.info-icon use {
    fill: none;
    stroke: currentColor;
}

.feedback-info-item h4 {
    color: var(--color-primary);
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feedback-info-item p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 968px) {
    .feedback-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .feedback-form-wrapper {
        padding: var(--spacing-xxl);
    }
    
    .feedback-info-item {
        padding: var(--spacing-lg);
    }
}

/* Footer */
.footer {
    background: var(--color-background-dark);
    color: var(--color-accent-light);
    padding: var(--spacing-xxl) 0;
    padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-xxxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand > p {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.85;
    font-family: serif;
}

.footer-tagline {
    font-size: 0.9375rem;
    opacity: 0.7;
    font-style: italic;
    font-weight: 400;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section a {
    display: block;
    color: var(--color-accent-light);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.9375rem;
}

.footer-section a:hover {
    opacity: 1;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.footer-bottom p {
    margin-bottom: var(--spacing-sm);
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-verse {
    font-style: italic;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
        text-align: center;
    }
    
    .hero-title-block {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-logo-wrap {
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
    
    .hero-logo-text,
    .hero-logo-arabic,
    .hero-title-block .hero-tagline {
        text-align: center;
    }
    
    .hero-full-logo {
        height: auto;
        max-height: 480px;
        max-width: 92vw;
        width: auto;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-content,
    .screenshots-content,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xxl);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
.download-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .download-card {
        margin: 0 var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }

    .download-card-inner {
        padding: var(--spacing-xl) var(--spacing-lg);
        padding-top: calc(var(--spacing-xl) + 12px);
        text-align: center;
        align-items: center;
    }

    .download-headline {
        text-align: center;
        width: 100%;
    }

    .download-logo {
        height: 130px;
        max-width: 320px;
    }

    .download-btn-appstore {
        padding: 14px 24px 14px 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    padding: var(--spacing-md) 0;
    padding-top: max(var(--spacing-md), env(safe-area-inset-top));
    padding-left: max(var(--spacing-lg), env(safe-area-inset-left));
    padding-right: max(var(--spacing-lg), env(safe-area-inset-right));
    box-shadow: var(--shadow-xs);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: -1rem;
}

.nav-logo {
    height: 90px;
    width: auto;
    max-width: 260px;
    display: block;
    object-fit: contain;
}

.nav-brand a {
    display: block;
    line-height: 0;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.nav-arabic {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-family: serif;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-nav {
    padding: var(--spacing-sm) var(--spacing-lg);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Burger menu button - hidden on desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-burger:hover {
    background: var(--color-background-alt);
    color: var(--color-primary);
}

.nav-burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar.nav-open .nav-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-burger-line:nth-child(2) {
    opacity: 0;
}

.navbar.nav-open .nav-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Image Updates */
.phone-screen {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: var(--color-background);
    border-radius: 36px;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 10px solid #1a1a1a;
    box-shadow: var(--shadow-xl);
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.app-logo-preview {
    width: 120px;
    height: 120px;
    opacity: 0.9;
}

.app-text-preview {
    text-align: center;
    width: 100%;
}

.app-title-preview {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.app-subtitle-preview {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.app-buttons-preview {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.app-btn-preview {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

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

.app-btn-preview.secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

/* Play Section */
.play-section {
    padding: var(--spacing-xxxl) 0;
    background: var(--color-background-alt);
    position: relative;
}

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

.play-description {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xxl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.play-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.play-frame-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--color-card);
    border: 3px solid var(--color-border-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-overlay-content {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 220px;
}

.play-overlay-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    font-weight: 700;
}

.play-overlay-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: 0.8125rem;
}

.btn-small {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    white-space: nowrap;
}

.play-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.play-info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.play-info-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.play-info-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.play-info-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    font-weight: 600;
}

.play-info-item p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Categories Section */
.categories {
    padding: var(--spacing-xxxl) 0;
    background: var(--color-card);
    position: relative;
}

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

.categories-intro {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xxl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.category-tag {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-background-alt);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.category-tag:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

/* Category Modal */
.category-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-modal-content {
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xxl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.category-modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-background-alt);
}

.category-modal-close:hover {
    color: var(--color-primary);
    background: var(--color-accent-lighter);
}

.category-modal-content h2 {
    color: var(--color-primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    padding-right: var(--spacing-xl);
}

.category-modal-description {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.category-modal-words h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.category-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.category-word-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-background-alt);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: all 0.2s ease;
}

.category-word-tag:hover {
    background: var(--color-accent-lighter);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .category-modal-content {
        padding: var(--spacing-xl);
        max-height: 95vh;
    }
    
    .category-words-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Feature Icons - moved to feature-icon-wrapper above */

/* Download Button Updates */

@media (max-width: 968px) {
    .nav-burger {
        display: flex;
    }
    
    .nav-content {
        flex-wrap: wrap;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .nav-burger {
        order: 2;
    }
    
    .nav-links {
        display: none;
        gap: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .navbar.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        flex-basis: 100%;
        padding: var(--spacing-lg) 0;
        margin-top: var(--spacing-sm);
        border-top: 1px solid var(--color-border-light);
        background: #ffffff;
    }
    
    .navbar.nav-open .nav-links a {
        justify-content: flex-start;
        padding: var(--spacing-md) 0;
        min-height: 48px;
        border-radius: 0;
    }
    
    .navbar.nav-open .nav-links .btn-nav {
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    
    .play-container {
        grid-template-columns: 1fr;
    }
    
    .play-frame-wrapper {
        min-height: 500px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
    }
    
    .story-quote {
        padding: var(--spacing-lg);
    }
    
    .story-body {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
        padding-top: max(var(--spacing-sm), env(safe-area-inset-top));
    }
    
    .nav-brand {
        margin-left: 0;
    }
    
    .nav-logo {
        height: 56px;
        max-width: 180px;
    }
    
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
    }
    
    .nav-links a {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-full-logo {
        max-height: 300px;
        max-width: 95vw;
        height: auto;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
        min-height: auto;
        padding-top: calc(var(--spacing-xxl) + 56px + env(safe-area-inset-top, 0px));
    }
    
    .screenshots,
    .how-it-works,
    .features,
    .download,
    .play-section,
    .categories,
    .story,
    .what-is-khafi,
    .updates,
    .feedback {
        padding: var(--spacing-xxl) 0;
    }
    
    .story-body {
        padding: var(--spacing-lg);
    }
    
    .feedback-form-wrapper {
        padding: var(--spacing-lg);
    }
    
    .section-title {
        margin-bottom: var(--spacing-xl);
    }
    
    .play-frame-wrapper {
        min-height: 400px;
        aspect-ratio: 9 / 16;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small phones (e.g. iPhone SE, narrow devices) */
@media (max-width: 380px) {
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .hero-full-logo {
        max-height: 240px;
        max-width: 98vw;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-tagline {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .nav-logo {
        height: 48px;
        max-width: 140px;
    }
    
    .feature-item {
        padding: var(--spacing-xl);
    }
    
    .feature-item h3 {
        font-size: 1.25rem;
    }
    
    .update-card {
        padding: var(--spacing-xl);
    }

    .updates-ig-visual {
        padding: var(--spacing-xl);
    }

    .updates-ig-box-inner {
        flex-direction: column;
    }

    .updates-ig-box--img-right .updates-ig-box-text { order: 1; }
    .updates-ig-box--img-right .updates-ig-box-img { order: 2; }

    .updates-ig-box-img {
        flex-basis: auto;
        max-width: 240px;
    }

    .updates-ig-phone img {
        max-width: 100%;
    }

    .updates-ig-content {
        flex-direction: column;
    }

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

    .updates-ig-text .updates-ig-eyebrow,
    .updates-ig-text .updates-ig-visual-title,
    .updates-ig-text .updates-ig-tagline {
        text-align: center;
    }

    .updates-ig-text .updates-ig-tagline::after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-btn-appstore {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .download-btn {
        width: 100%;
        max-width: none;
    }
}

/* Updates carousel redesign (v1.2.5) */
.updates-carousel-slide {
    padding: 0;
}

.update-panel {
    width: min(100%, 980px);
    min-height: 520px;
    margin: 0 auto;
    background: var(--color-card);
    border-radius: 28px;
    border: 1px solid rgba(212, 165, 116, 0.35);
    box-shadow: 0 18px 44px rgba(44, 36, 22, 0.14);
    padding: var(--spacing-xxl);
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.update-panel h4,
.update-headline {
    margin: 0 0 var(--spacing-sm);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.update-kicker,
.update-version-pill {
    display: inline-block;
    margin: 0 0 var(--spacing-sm);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.update-copy p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.7;
}

.update-shot {
    margin: 0;
}

.update-shot img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 36px rgba(44, 36, 22, 0.2);
}

.update-panel-hero {
    text-align: center;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 40%),
                linear-gradient(145deg, #fffaf1 0%, #f7ead6 60%, #efdbbe 100%);
    justify-items: center;
    align-content: center;
    position: relative;
    overflow: hidden;
}

.update-panel-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 90, 60, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.update-hero-shot {
    margin: var(--spacing-sm) auto 0;
    width: 100%;
    max-width: 860px;
}

.update-hero-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(139, 90, 60, 0.2);
    box-shadow: 0 10px 30px rgba(44, 36, 22, 0.18);
}

.update-version-pill {
    background: rgba(139, 90, 60, 0.14);
    color: var(--color-primary);
}

.update-headline {
    color: var(--color-primary-dark);
    font-size: clamp(2rem, 5vw, 3rem);
}

.update-lede {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 1.08rem;
}

.update-panel-difficulty {
    grid-template-columns: 1.05fr 0.95fr;
    background: linear-gradient(145deg, #fff4e5 0%, #f4dfbf 55%, #e9cfa3 100%);
    border-color: rgba(150, 102, 49, 0.24);
}

.update-panel-difficulty h4 {
    color: #7a4c1e;
}

.update-panel-difficulty .update-kicker {
    background: rgba(122, 76, 30, 0.14);
    color: #7a4c1e;
}

.update-panel-difficulty .update-copy p {
    color: #805c34;
}

.update-panel-normal {
    grid-template-columns: 0.95fr 1.05fr;
    background: linear-gradient(145deg, #f3e1c4 0%, #e2c293 48%, #c5965a 100%);
    border-color: rgba(138, 90, 38, 0.32);
}

.update-panel-normal h4 {
    color: #5f3816;
}

.update-panel-normal .update-copy p {
    color: #6f4a25;
}

.update-panel-normal .update-kicker {
    background: rgba(95, 56, 22, 0.12);
    color: #5f3816;
}

.update-panel-settings {
    grid-template-columns: 1.05fr 0.95fr;
    background: linear-gradient(145deg, #dcc39c 0%, #bd915d 45%, #9b6f3e 100%);
    border-color: rgba(74, 45, 20, 0.34);
}

.update-panel-settings h4 {
    color: #fff1dc;
}

.update-panel-settings .update-kicker {
    background: rgba(255, 241, 220, 0.18);
    color: #fff1dc;
}

.update-panel-settings .update-copy p {
    color: rgba(255, 241, 220, 0.9);
}

.update-panel-polish {
    background: linear-gradient(145deg, #8a5b35 0%, #6f4627 55%, #4f311b 100%);
    align-content: center;
    justify-items: start;
    border-color: rgba(255, 225, 186, 0.24);
}

.update-panel-polish h4 {
    color: #ffe6c0;
}

.update-panel-polish .update-kicker {
    background: rgba(255, 230, 192, 0.14);
    color: #ffe6c0;
}

.update-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: var(--spacing-sm);
    color: rgba(255, 230, 192, 0.9);
    line-height: 1.7;
    font-size: 1.02rem;
}

.update-list li::marker {
    color: var(--color-accent);
}

@media (max-width: 968px) {
    .update-panel,
    .update-panel-difficulty,
    .update-panel-normal,
    .update-panel-settings {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: var(--spacing-xl);
    }

    .update-panel-normal .update-shot {
        order: -1;
    }
}

@media (max-width: 640px) {
    .updates-carousel {
        padding: 0 12px;
    }

    .updates-carousel-btn {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: -10px;
        transform: none;
    }

    .updates-carousel-btn:hover,
    .updates-carousel-btn:active {
        transform: none;
    }

    .updates-carousel-prev {
        left: 30%;
    }

    .updates-carousel-next {
        right: 30%;
    }

    .updates-carousel-counter {
        margin-top: var(--spacing-xl);
    }
}

/* Social-style redesign for Updates carousel */
.updates {
    background: radial-gradient(circle at 15% 20%, #1e1a12 0%, #121212 45%, #0b0b0d 100%);
}

.updates .section-title {
    color: #f7efe4;
}

.updates .section-subtitle {
    color: rgba(247, 239, 228, 0.72);
}

.updates-carousel {
    padding: 0 64px;
}

.updates-carousel-counter {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8f2e8;
    backdrop-filter: blur(8px);
}

.updates-carousel-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.updates-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.update-panel {
    background: linear-gradient(160deg, #1f1f24 0%, #17171b 60%, #111115 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: #f7f7fb;
    position: relative;
    overflow: hidden;
}

.update-panel::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.55), rgba(255,255,255,0.15));
    opacity: 0.9;
}

.update-copy p,
.update-lede,
.update-list {
    color: rgba(247, 247, 251, 0.82);
}

.update-headline,
.update-panel h4 {
    color: #ffffff;
}

.update-kicker,
.update-version-pill {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.update-shot img,
.update-hero-shot img {
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.update-panel-hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
                linear-gradient(140deg, #2c2416 0%, #5a3d28 48%, #8b5a3c 100%);
}

.update-panel-difficulty {
    background: linear-gradient(145deg, #0f4c81 0%, #1369a5 50%, #29a3d2 100%);
}

.update-panel-normal {
    background: linear-gradient(145deg, #6e2b2b 0%, #9a3f54 45%, #de7f56 100%);
}

.update-panel-settings {
    background: linear-gradient(145deg, #1b5f53 0%, #268173 52%, #4bb89a 100%);
}

.update-panel-polish {
    background: linear-gradient(145deg, #2a2438 0%, #3e2e56 52%, #6a4a83 100%);
}

.update-panel-hero .update-version-pill {
    background: rgba(255, 230, 192, 0.18);
    color: #ffe6c0;
    border: 1px solid rgba(255, 230, 192, 0.35);
}

.update-panel-hero .update-headline {
    color: #fff2de;
}

.update-panel-hero .update-lede {
    color: rgba(255, 234, 206, 0.88);
}

.update-panel-difficulty .update-kicker,
.update-panel-normal .update-kicker,
.update-panel-settings .update-kicker,
.update-panel-polish .update-kicker {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.update-panel-difficulty h4,
.update-panel-normal h4,
.update-panel-settings h4,
.update-panel-polish h4 {
    color: #ffffff;
}

.update-panel-difficulty .update-copy p,
.update-panel-normal .update-copy p,
.update-panel-settings .update-copy p,
.update-panel-polish .update-copy p,
.update-panel-polish .update-list {
    color: rgba(255, 255, 255, 0.92);
}

.update-list li::marker {
    color: #ffe7a7;
}

@media (max-width: 768px) {
    .updates-carousel {
        padding: 0 44px;
    }
}

/* Export-ready Instagram post styling for Updates */
.updates-carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.update-panel {
    width: min(100%, 780px);
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: clamp(1.4rem, 2.4vw, 2rem);
}

.update-shot img {
    max-width: 300px;
}

.update-hero-shot {
    max-width: 620px;
}

.updates-export-actions {
    margin-top: 1.1rem;
    text-align: center;
}

.updates-export-btn {
    min-width: 280px;
}

.updates-export-hint {
    margin: 0.75rem 0 0;
    color: rgba(247, 239, 228, 0.75);
    font-size: 0.95rem;
}

.updates-export-status {
    min-height: 1.3em;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92rem;
}

@media (max-width: 968px) {
    .update-panel {
        width: min(100%, 640px);
        aspect-ratio: auto;
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .updates-export-btn {
        width: 100%;
        min-width: 0;
    }

    .update-panel {
        min-height: 0;
    }
}
