/* ============================================================
   Swipe Photo Cleaner — Modern CSS Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root, [data-theme="light"] {
    /* Colors */
    --primary: #007aff;
    --primary-hover: #0071e3;
    --primary-light: rgba(0, 122, 255, 0.1);
    --accent-pink: #ff2d55;
    --accent-purple: #5856d6;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hero-gradient: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    /* Surfaces */
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --header-bg: rgba(255, 255, 255, 0.85);
    
    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #aeaeb2;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255, 255, 255, 0.7);
    
    /* Borders & Shadows */
    --border: #e5e5e7;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.15);
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-width: 1080px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

/* --- Explicit Dark Mode --- */
[data-theme="dark"] {
    --bg: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-card: rgba(44, 44, 46, 0.8);
    --bg-glass: rgba(44, 44, 46, 0.6);
    --header-bg: rgba(28, 28, 30, 0.85);
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
    --border: #38383a;
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* --- OS Preference Fallback (Dark Mode) --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1c1c1e;
        --bg-secondary: #2c2c2e;
        --bg-card: rgba(44, 44, 46, 0.8);
        --bg-glass: rgba(44, 44, 46, 0.6);
        --header-bg: rgba(28, 28, 30, 0.85);
        --text-primary: #f5f5f7;
        --text-secondary: #98989d;
        --text-tertiary: #636366;
        --border: #38383a;
        --border-light: rgba(255, 255, 255, 0.08);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.app-mini-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon-small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.app-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name-small {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Download Buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 36px;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-download-android {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(61, 220, 132, 0.4);
}

.btn-download-android svg {
    fill: #3ddc84;
}

.btn-download-android:hover {
    background: #0f172a;
    border-color: #3ddc84;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(61, 220, 132, 0.25);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-download-android {
    background: #f0fdf4;
    color: #166534;
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .btn-download-android svg {
    fill: #16a34a;
}

[data-theme="light"] .btn-download-android:hover {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

.btn-download svg,
.btn-download-android svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-actions,
.header-downloads {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .header-actions .btn-download,
    .header-actions .btn-download-android {
        padding: 6px 12px;
        font-size: 0.8rem;
        height: 32px;
        gap: 5px;
    }
    .header-actions .btn-download svg,
    .header-actions .btn-download-android svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 440px) {
    .header-actions .btn-download-android {
        display: none;
    }
}

.hero-btn-android {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(61, 220, 132, 0.35);
}

.hero-btn-android svg {
    fill: #3ddc84 !important;
}

.hero-btn-android:hover {
    background: #0f172a !important;
    border-color: #3ddc84 !important;
    box-shadow: 0 6px 24px rgba(61, 220, 132, 0.25) !important;
}

[data-theme="light"] .hero-btn-android {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

[data-theme="light"] .hero-btn-android svg {
    fill: #16a34a !important;
}

[data-theme="light"] .hero-btn-android:hover {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.2) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--hero-gradient);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.app-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: float 6s ease-in-out infinite;
    margin-top: 10px;
}

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

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-on-dark);
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: 1.2rem;
    color: var(--text-on-dark-muted);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-on-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ratings {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.stars {
    color: #ffb800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1d1d1f;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-btn-large:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-large svg {
    width: 22px;
    height: 22px;
}

.hero-subnote {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    max-width: 400px;
}

.hero-subnote a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.hero-subnote a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   SOCIAL PROOF / STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.howto-section {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.hero-quick-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hero-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-step-card:hover::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-step-card strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hero-step-card span {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   SCREENSHOTS CAROUSEL
   ============================================================ */
.screenshots-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.screenshots-heading {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-align: center;
}

.screenshots-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.screenshots-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    justify-content: center;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot {
    width: 240px;
    height: 520px;
    background: var(--bg-secondary);
    border-radius: 32px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    scroll-snap-align: center;
    transition: transform var(--transition-normal);
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .screenshot {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshots-indicator {
    width: min(300px, 60%);
    height: 4px;
    margin: 20px auto 0;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
}

.screenshots-indicator-thumb {
    height: 100%;
    width: 25%;
    background: var(--primary);
    border-radius: inherit;
    transform: translateX(0);
    transition: transform 0.12s linear;
    cursor: grab;
}

.screenshots-indicator-thumb.is-dragging {
    cursor: grabbing;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-section {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 122, 255, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ============================================================
   DESCRIPTION / LONG-FORM CONTENT
   ============================================================ */
.description-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
}

.description-text {
    max-width: 720px;
    margin: 0 auto;
}

.description-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    margin-top: 48px;
    color: var(--text-primary);
}

.description-text h2:first-of-type {
    margin-top: 0;
}

.description-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.description-text p {
    margin-bottom: 1.4rem;
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.highlight {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.steps,
.tips {
    margin: 20px 0 30px;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.steps li,
.tips li {
    margin-bottom: 14px;
    line-height: 1.6;
}

.steps li strong,
.tips li strong {
    color: var(--text-primary);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background var(--transition-fast);
}

.faq-item summary:hover {
    background: var(--bg-secondary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
    padding: 80px 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 24px;
    gap: 16px;
}

.reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    max-width: var(--max-width);
    margin: 0 auto;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #ffb800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.review-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.review-date {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.review-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.review-author {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-link {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.section-link:hover {
    opacity: 0.8;
}

/* ============================================================
   MID-PAGE CTA BANNER
   ============================================================ */
.cta-banner {
    padding: 60px 0;
    background: var(--hero-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-banner .hero-btn-large {
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 40px;
    background: var(--bg-secondary);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand-name img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border-light);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

@media (prefers-color-scheme: dark) {
    .sticky-cta {
        background: rgba(28, 28, 30, 0.92);
    }
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.sticky-cta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sticky-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-cta-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-cta-text {
    min-width: 0;
}

.sticky-cta-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.sticky-cta-btn:hover {
    background: var(--primary-hover);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   LEGAL / SUPPORT PAGES
   ============================================================ */
.page-shell {
    padding: 40px 0 80px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.legal-card ul {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.legal-card .muted {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 60px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .hero-text {
        max-width: 100%;
    }

    .app-icon-large {
        width: 120px;
        height: 120px;
        border-radius: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .ratings {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-subnote {
        margin: 20px auto 0;
        text-align: center;
    }

    .hero-quick-steps {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .screenshot {
        width: 200px;
        height: 434px;
    }
    
    .screenshots-container {
        justify-content: flex-start;
    }

    .section-heading h2,
    .screenshots-heading,
    .section-title {
        font-size: 1.7rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
    
    /* Mobile nav drawer */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .sticky-cta {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .reviews-scroll {
        padding: 0 16px 20px;
    }

    .review-card {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }
    
    .hero-btn-large {
        padding: 14px 28px;
        font-size: 0.98rem;
    }
    
    .section-heading h2,
    .screenshots-heading,
    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   STORAGE CALCULATOR
   ============================================================ */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.calc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-slider {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    outline: none;
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 35%, var(--border) 35%);
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,122,255,0.35);
    transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,122,255,0.35);
}

.calc-value {
    min-width: 70px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.calc-result {
    background: var(--hero-gradient);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.calc-result-number {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
}

.calc-result-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.calc-result-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    position: relative;
}

@media (max-width: 768px) {
    .calculator-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
    .calc-result-number {
        font-size: 3rem;
    }
}

/* ============================================================
   BLOG PREVIEW SECTION
   ============================================================ */
.blog-preview-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.blog-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,122,255,0.2);
}

.blog-preview-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.blog-preview-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.blog-preview-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.blog-preview-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.blog-read-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   NEWSLETTER / EMAIL CAPTURE
   ============================================================ */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 350px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
}

.btn-subscribe {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-subscribe:hover {
    background: var(--primary-hover);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input[type="email"] {
        max-width: 100%;
    }
    .btn-subscribe {
        width: 100%;
    }
    .newsletter-card {
        padding: 32px 20px;
    }
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.before-after-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--border);
    background: var(--bg);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-after {
    z-index: 1;
}

.ba-before {
    z-index: 2;
    width: 50%; /* JS will update this */
    border-right: 2px solid #fff;
}

/* Mockup styles to simulate photos */
.gallery-mockup {
    width: 800px; /* fixed to container max-width */
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 12px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-header::before {
    content: "9:41";
    font-size: 0.8rem;
    opacity: 0.8;
}

.mockup-header::after {
    content: "🔋";
    font-size: 0.9rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
    flex: 1;
}

.m-item {
    background-color: #333;
    aspect-ratio: 1;
    position: relative;
}

/* Mock image styles */
.m-good { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; }
.m-dup { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; filter: contrast(1.2) brightness(0.9); }
.m-blur { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; filter: blur(4px); }
.m-screen { background: #e0e0e0; display: flex; align-items: center; justify-content: center; }
.m-screen::after { content: "TEXT"; font-family: sans-serif; font-weight: bold; color: #999; font-size: 1.5rem; letter-spacing: 2px; }

/* Labels */
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ba-label-before { right: 20px; }
.ba-label-after { left: 20px; }

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    z-index: 3;
    cursor: col-resize;
    margin: 0;
}

.ba-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 4px;
    height: 800px;
    background: transparent;
    cursor: col-resize;
}

.ba-slider::-moz-range-thumb {
    width: 4px;
    height: 800px;
    background: transparent;
    cursor: col-resize;
    border: none;
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 600px) {
    .ba-slider-container {
        aspect-ratio: 1 / 1.2;
    }
    .gallery-mockup {
        width: 100vw;
    }
}
.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.theme-btn:hover {
    background: var(--border-light);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

[data-theme="dark"] .icon-moon {
    display: none;
}
[data-theme="light"] .icon-sun {
    display: none;
}
[data-theme="dark"] .icon-sun {
    display: block;
}
[data-theme="light"] .icon-moon {
    display: block;
}

/* Base OS theme handling */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-moon {
        display: none;
    }
    :root:not([data-theme="light"]) .icon-sun {
        display: block;
    }
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .icon-sun {
        display: none;
    }
    :root:not([data-theme="dark"]) .icon-moon {
        display: block;
    }
}

/* Also need header flex alignment fix */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   DESKTOP QR DOWNLOAD MODAL
   ============================================================ */
.qr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.qr-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    color: var(--text-primary);
}

.qr-modal-backdrop.active .qr-modal-card {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.qr-modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.qr-code-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-lg);
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin: 18px 0;
}

.qr-code-wrapper img, .qr-code-wrapper svg {
    display: block;
    width: 170px;
    height: 170px;
}

.qr-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.qr-modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.qr-modal-web-btn {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

