/* ============================================
   mRetina AI Page — Styles
   ============================================ */

/* ---------- AI Hero Section ---------- */
.ai-hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
}

.ai-hero-card {
    background: var(--gradient-blue);
    border-radius: var(--radius-xl);
    padding: 64px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 122, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ai-hero-logo {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 36px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    animation: fadeIn 1s ease 0.6s both;
}

.ai-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.ai-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.ai-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.ai-suite-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    animation: fadeIn 0.8s ease both;
}

.ai-hero-card h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: fadeIn 0.8s ease 0.15s both;
}

.ai-hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 16px;
    animation: fadeIn 0.8s ease 0.3s both;
}

.ai-hero-description {
    font-size: 1rem;
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeIn 0.8s ease 0.45s both;
}

/* Download buttons */
.ai-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeIn 0.8s ease 0.6s both;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.dl-btn-primary {
    background: #ffffff;
    color: var(--accent-blue);
}

.dl-btn-primary:hover {
    background: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dl-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dl-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dl-btn-accent {
    background: #ffeaa7;
    color: #1c1c1e;
}

.dl-btn-accent:hover {
    background: #ffd93d;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dl-icon {
    font-size: 1rem;
}

/* ---------- Features Section ---------- */
.ai-features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.ai-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-features-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ai-features-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.feature-block {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
}

.feature-block:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 122, 255, 0.1);
}

.feature-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feature-block-icon {
    font-size: 1.3rem;
}

.feature-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ai-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--text-primary);
    color: #ffffff;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* App preview mock */
.app-preview-card {
    background: #1c1c1e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

.app-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #2c2c2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-preview-dots {
    display: flex;
    gap: 6px;
}

.app-preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.app-preview-dots span:nth-child(1) {
    background: #FF5F57;
}

.app-preview-dots span:nth-child(2) {
    background: #FFBD2E;
}

.app-preview-dots span:nth-child(3) {
    background: #28C840;
}

.app-preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.app-preview-body {
    padding: 24px 20px;
}

.app-module {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
    transition: background var(--transition-fast);
}

.app-module:hover {
    background: rgba(255, 255, 255, 0.08);
}

.app-module-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.app-module h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.app-module p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.app-module-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 12px 16px 4px;
    letter-spacing: 0.3px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green, #34C759);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Platforms Section ---------- */
.ai-platforms {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-center .section-subtitle {
    margin: 0 auto;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 122, 255, 0.15);
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.platform-emoji {
    font-size: 1.8rem;
}

.platform-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-app-name {
    font-size: 0.88rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 12px;
}

.platform-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 16px;
    transition: gap var(--transition-fast);
}

.platform-link:hover {
    gap: 8px;
}

/* ---------- Privacy Section ---------- */
.ai-privacy {
    padding: 80px 0;
    background: var(--bg-primary);
}

.privacy-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.privacy-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.privacy-card>p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 32px;
}

.privacy-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.back-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    transition: opacity var(--transition-fast);
}

.back-link:hover {
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .platform-cards {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ai-hero-card {
        padding: 40px 28px;
        flex-direction: column;
    }

    .ai-hero-logo {
        width: 120px;
        height: 120px;
        border-radius: 24px;
    }

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

    .ai-hero-buttons {
        flex-direction: column;
    }

    .dl-btn {
        justify-content: center;
    }

    .privacy-card {
        padding: 40px 24px;
    }

    .feature-block {
        padding: 16px 20px;
    }
}