/* ============================================================
   imagic — Website Styles
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --accent: #7c5cfc;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 92, 252, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border: #2a2a3e;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #7c5cfc, #a78bfa, #c4b5fd);
    --gradient-2: linear-gradient(135deg, #7c5cfc 0%, #6366f1 50%, #818cf8 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(124, 92, 252, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(124, 92, 252, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 252, 0.08);
    color: var(--text-primary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.navbar-brand:hover { color: var(--text-primary); }

.navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}
.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(124, 92, 252, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(124, 92, 252, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-light);
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step:hover .step-number {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}

.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 252, 0.4);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    margin: 16px 0 8px;
    letter-spacing: -0.03em;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card .price-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li .check {
    color: var(--success);
    font-weight: 700;
}

.pricing-features li .cross {
    color: var(--text-muted);
}

/* --- Formats --- */
.formats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.format-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.format-chip:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

/* --- CTA --- */
.cta-section {
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 12px 0 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 99, 71, 0.1);
    border: 1px solid rgba(255, 99, 71, 0.3);
    border-radius: var(--radius-sm);
    color: #ff6347;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.donate-btn:hover {
    background: rgba(255, 99, 71, 0.2);
    color: #ff6347;
}

/* --- Ad Banner (non-intrusive) --- */
.ad-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 20px auto;
    max-width: 728px;
}

.ad-banner-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================================
   Web App Styles
   ============================================================ */

.app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 56px 1fr;
    min-height: 100vh;
}

.app-header {
    grid-column: 1 / -1;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    overflow-y: auto;
}

.app-main {
    padding: 24px;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* Sidebar navigation */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
}

.sidebar-nav li a.active {
    background: rgba(124, 92, 252, 0.15);
    font-weight: 600;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: var(--bg-secondary);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(124, 92, 252, 0.05);
}

.upload-zone-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.upload-zone h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.photo-card:hover {
    border-color: rgba(124, 92, 252, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.photo-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-card-score {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.score-badge.high {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.score-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Analysis panel */
.analysis-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 24px;
}

.analysis-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.metric-bar {
    width: 120px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.metric-bar-fill.high { background: var(--success); }
.metric-bar-fill.medium { background: var(--warning); }
.metric-bar-fill.low { background: var(--error); }

.metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Grade preview grid */
.grade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.grade-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.grade-card:hover,
.grade-card.selected {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.grade-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.grade-card-label {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
}

/* Progress bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Usage counter */
.usage-counter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.usage-counter strong {
    color: var(--accent-light);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    min-width: 300px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps::before { display: none; }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .section { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .navbar-links { display: none; }
    .hamburger { display: flex; }
    .navbar-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .app-layout {
        grid-template-columns: 1fr;
    }
    .app-sidebar {
        display: none;
    }
    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Animated Showcase Previews
   ============================================================ */

.showcase-section {
    background: var(--bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.showcase-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.showcase-label {
    padding: 16px 20px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.showcase-screen {
    padding: 0 20px 20px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* --- Quality Scoring --- */
.mock-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mock-photo {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0;
    animation: photoFadeIn 0.4s ease forwards;
}
.mock-photo:nth-child(1) { animation-delay: 0.1s; }
.mock-photo:nth-child(2) { animation-delay: 0.3s; }
.mock-photo:nth-child(3) { animation-delay: 0.5s; }
.mock-photo:nth-child(4) { animation-delay: 0.7s; }
.mock-photo:nth-child(5) { animation-delay: 0.9s; }
.mock-photo:nth-child(6) { animation-delay: 1.1s; }

.mock-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 40%, 20%) 0%,
        hsl(var(--hue), 50%, 30%) 40%,
        hsl(var(--hue), 35%, 15%) 100%
    );
}

.score-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0);
    animation: scorePop 0.3s ease forwards;
}
.mock-photo:nth-child(1) .score-badge { animation-delay: 0.5s; }
.mock-photo:nth-child(2) .score-badge { animation-delay: 0.7s; }
.mock-photo:nth-child(3) .score-badge { animation-delay: 0.9s; }
.mock-photo:nth-child(4) .score-badge { animation-delay: 1.1s; }
.mock-photo:nth-child(5) .score-badge { animation-delay: 1.3s; }
.mock-photo:nth-child(6) .score-badge { animation-delay: 1.5s; }

.score-high { background: rgba(34, 197, 94, 0.9); color: #fff; }
.score-mid  { background: rgba(245, 158, 11, 0.9); color: #fff; }
.score-low  { background: rgba(239, 68, 68, 0.9); color: #fff; }

.score-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 4px;
}
.score-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    width: 0;
    animation: barFill 0.6s ease forwards;
}
.mock-photo:nth-child(1) .score-fill { animation-delay: 0.6s; }
.mock-photo:nth-child(2) .score-fill { animation-delay: 0.8s; }
.mock-photo:nth-child(3) .score-fill { animation-delay: 1.0s; }
.mock-photo:nth-child(4) .score-fill { animation-delay: 1.2s; }
.mock-photo:nth-child(5) .score-fill { animation-delay: 1.4s; }
.mock-photo:nth-child(6) .score-fill { animation-delay: 1.6s; }

.mock-scan-line {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent), 0 0 30px var(--accent-glow);
    animation: scanDown 2.5s ease-in-out infinite;
    opacity: 0.8;
}

/* --- Duplicate Detection --- */
.dupe-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dupe-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}
.dupe-pair:nth-child(1) { animation-delay: 0.2s; }
.dupe-pair:nth-child(2) { animation-delay: 0.6s; }
.dupe-pair:nth-child(3) { animation-delay: 1.0s; }

.dupe-img {
    flex: 1;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 40%, 20%) 0%,
        hsl(var(--hue), 50%, 30%) 40%,
        hsl(var(--hue), 35%, 15%) 100%
    );
}

.dupe-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-light);
    opacity: 0;
    animation: scorePop 0.3s ease forwards;
}
.dupe-pair:nth-child(1) .dupe-connector { animation-delay: 0.5s; }
.dupe-pair:nth-child(2) .dupe-connector { animation-delay: 0.9s; }
.dupe-pair:nth-child(3) .dupe-connector { animation-delay: 1.3s; }

.dupe-check {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.3s ease forwards;
}
.dupe-pair:nth-child(1) .dupe-check { animation-delay: 0.7s; }
.dupe-pair:nth-child(2) .dupe-check { animation-delay: 1.1s; }
.dupe-pair:nth-child(3) .dupe-check { animation-delay: 1.5s; }

.dupe-check.keep  { background: rgba(34, 197, 94, 0.85); color: #fff; }
.dupe-check.trash { background: rgba(239, 68, 68, 0.85); color: #fff; }

/* --- Auto-Crop --- */
.crop-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crop-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 40%, 18%) 0%,
        hsl(var(--hue), 55%, 28%) 35%,
        hsl(var(--hue), 45%, 22%) 70%,
        hsl(var(--hue), 35%, 15%) 100%
    );
}

.crop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: cropReveal 1.5s ease forwards 0.5s;
}

.crop-frame {
    position: absolute;
    top: 10%;
    left: 12%;
    width: 76%;
    height: 80%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0);
    z-index: 2;
    opacity: 0;
    animation: cropFrameIn 0.6s ease forwards 0.8s;
}

.crop-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #fff;
    border-style: solid;
    border-width: 0;
}
.crop-corner.tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; }
.crop-corner.tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; }
.crop-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; }
.crop-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; }

.crop-rule-h,
.crop-rule-v {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
}
.crop-rule-h {
    left: 0;
    right: 0;
    height: 1px;
    top: 33.33%;
    box-shadow: 0 calc(33.33% + 0px) 0 rgba(255, 255, 255, 0.2);
}
.crop-rule-v {
    top: 0;
    bottom: 0;
    width: 1px;
    left: 33.33%;
    box-shadow: calc(33.33%) 0 0 rgba(255, 255, 255, 0.2);
}

.crop-info {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.crop-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0;
    animation: fadeUp 0.4s ease forwards;
}
.crop-stat:nth-child(1) { animation-delay: 1.2s; }
.crop-stat:nth-child(2) { animation-delay: 1.4s; }
.crop-stat:nth-child(3) { animation-delay: 1.6s; }

.crop-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.crop-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* --- Color Grading --- */
.grade-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.grade-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(220, 40%, 18%) 0%,
        hsl(220, 55%, 28%) 35%,
        hsl(200, 45%, 22%) 70%,
        hsl(240, 35%, 15%) 100%
    );
}

.grade-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        hsl(var(--grade-hue), var(--grade-sat), 22%) 0%,
        hsl(var(--grade-hue), var(--grade-sat), 32%) 50%,
        hsl(var(--grade-hue), var(--grade-sat), 18%) 100%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
}
.grade-layer:first-child {
    opacity: 1;
}

.grade-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.grade-pill {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: default;
    transition: all 0.3s ease;
}
.grade-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- Showcase animations --- */
@keyframes photoFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes scorePop {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes barFill {
    from { width: 0; }
    to   { width: var(--score); }
}

@keyframes scanDown {
    0%   { top: 0; opacity: 0.8; }
    50%  { top: calc(100% - 22px); opacity: 0.4; }
    100% { top: 0; opacity: 0.8; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cropReveal {
    from { background: rgba(0,0,0,0); }
    to   { background: rgba(0,0,0,0.55); }
}

@keyframes cropFrameIn {
    from { opacity: 0; transform: scale(1.1); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Showcase responsive --- */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .crop-info {
        flex-direction: column;
        align-items: center;
    }
}
