/* =========================================
   ClearCut - Background Remover Styles
   ========================================= */

/* CSS Variables */
:root {
    --color-primary: #ffffff;
    --color-background: #050505;
    --color-surface: #0c0c0c;
    --color-accent: #1a1a1a;
    --color-border: #262626;
    --color-text-muted: #666666;
    --color-text-secondary: #999999;
    
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Responsive spacing */
    --spacing-page: 1rem;
}

@media (min-width: 640px) {
    :root {
        --spacing-page: 1.5rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: var(--color-primary);
    color: var(--color-background);
}

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

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

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

/* =========================================
   Navigation
   ========================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 var(--spacing-page);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .nav-container {
        height: 70px;
    }
}

@media (min-width: 768px) {
    .nav-container {
        height: 80px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: var(--radius-md);
}

@media (min-width: 640px) {
    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: var(--radius-lg);
    }
}

@media (min-width: 768px) {
    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

.logo-icon .material-symbols-outlined {
    font-size: 16px;
    font-weight: bold;
}

@media (min-width: 640px) {
    .logo-icon .material-symbols-outlined {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .logo-icon .material-symbols-outlined {
        font-size: 22px;
    }
}

.logo-icon.small {
    width: 28px;
    height: 28px;
}

.logo-icon.small .material-symbols-outlined {
    font-size: 16px;
}

@media (min-width: 768px) {
    .logo-icon.small {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon.small .material-symbols-outlined {
        font-size: 18px;
    }
}

.logo-text {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .logo-text {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #737373;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Model Status in Header */
.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .nav-status {
        gap: 1rem;
    }
}

.model-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

@media (min-width: 640px) {
    .model-status {
        gap: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (min-width: 640px) {
    .status-indicator {
        gap: 0.5rem;
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .status-dot {
        width: 8px;
        height: 8px;
    }
}

.status-dot.loading {
    background-color: #f59e0b;
    animation: pulse 1.5s infinite;
}

.status-dot.ready {
    background-color: #22c55e;
    animation: pulse 2s infinite;
}

.status-dot.error {
    background-color: #ef4444;
}

.status-dot.processing {
    background-color: #3b82f6;
    animation: pulse 0.8s infinite;
}

.status-text {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .status-text {
        font-size: 0.625rem;
        max-width: 80px;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 768px) {
    .status-text {
        font-size: 0.6875rem;
        max-width: none;
    }
}

.backend-badge {
    padding: 0.1875rem 0.375rem;
    font-size: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    color: white;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .backend-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.5625rem;
        letter-spacing: 0.15em;
    }
}

.backend-badge.webgpu {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.backend-badge.wasm {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.backend-badge.webgl {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.backend-badge.hidden {
    display: none;
}

.btn-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color var(--transition-fast);
    display: none;
}

.btn-text:hover {
    color: #a3a3a3;
}

.btn-primary {
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-background);
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

@media (min-width: 640px) {
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .btn-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

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

.btn-secondary {
    padding: 0.625rem 1rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all var(--transition-fast);
}

@media (min-width: 640px) {
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }
}

.btn-secondary:hover {
    background-color: var(--color-border);
    border-color: #404040;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

@media (min-width: 640px) {
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    z-index: 99;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .mobile-menu {
        top: 70px;
    }
}

@media (min-width: 768px) {
    .mobile-menu {
        top: 80px;
    }
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    
    .btn-text {
        display: block;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: 1.5rem var(--spacing-page) 2rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero {
        padding: 2rem var(--spacing-page) 2.5rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-left {
        max-width: 240px;
        flex-shrink: 0;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-left {
        max-width: 280px;
    }
}

.hero-right {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-description {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 0.9rem;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .hero-badges {
        justify-content: flex-start;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

@media (min-width: 640px) {
    .badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.5625rem;
        gap: 0.375rem;
    }
}

@media (min-width: 768px) {
    .badge {
        font-size: 0.6rem;
    }
}

.badge-gpu {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.badge-gpu .material-symbols-outlined {
    font-size: 10px;
    color: #4ade80;
}

@media (min-width: 640px) {
    .badge-gpu .material-symbols-outlined {
        font-size: 12px;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =========================================
   Upload Area
   ========================================= */
.upload-section {
    width: 100%;
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(18, 18, 18, 0.6);
    border: 1.5px dashed #333;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

@media (min-width: 640px) {
    .upload-area {
        padding: 1.25rem 1.5rem;
        border-radius: var(--radius-xl);
    }
}

.upload-area:hover,
.upload-area.dragover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(25, 25, 25, 0.8);
}

.upload-area.dragover {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .upload-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
    }
}

.upload-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .upload-left {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.upload-icon {
    font-size: 28px;
    color: #555;
    transition: color var(--transition-fast);
}

@media (min-width: 640px) {
    .upload-icon {
        font-size: 32px;
    }
}

.upload-area:hover .upload-icon {
    color: var(--color-primary);
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.upload-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ddd;
}

@media (min-width: 640px) {
    .upload-title {
        font-size: 0.9rem;
    }
}

.upload-subtitle {
    font-size: 0.7rem;
    color: #666;
}

@media (min-width: 640px) {
    .upload-subtitle {
        font-size: 0.75rem;
    }
}

.btn-upload {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-background);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .btn-upload {
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        border-radius: var(--radius-lg);
    }
}

.btn-upload .material-symbols-outlined {
    font-size: 16px;
}

@media (min-width: 640px) {
    .btn-upload .material-symbols-outlined {
        font-size: 18px;
    }
}

.btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

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

/* =========================================
   Processing Area
   ========================================= */
.processing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background-color: rgba(18, 18, 18, 0.6);
    border: 1.5px solid #333;
    border-radius: var(--radius-lg);
}

@media (min-width: 640px) {
    .processing-area {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }
}

.processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .processing-title {
        font-size: 1rem;
    }
}

.processing-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .processing-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

.progress-bar {
    width: 100%;
    max-width: 200px;
    height: 3px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .progress-bar {
        max-width: 250px;
    }
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
}

.progress-text {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #666;
}

@media (min-width: 640px) {
    .progress-text {
        font-size: 0.75rem;
    }
}

/* =========================================
   Results Area (hidden placeholder)
   ========================================= */
.results-area {
    display: none;
}

/* =========================================
   Full-Screen Results Overlay
   ========================================= */
.results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem var(--spacing-page);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--color-border);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .results-topbar {
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .results-topbar {
        padding: 1rem 2rem;
    }
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

@media (min-width: 640px) {
    .results-info {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .results-info {
        gap: 2rem;
    }
}

.results-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .results-title {
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .results-title {
        font-size: 0.875rem;
    }
}

.results-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .results-stats {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .results-stats {
        gap: 1.5rem;
        font-size: 0.8125rem;
    }
}

.results-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .btn-icon {
        width: 40px;
        height: 40px;
    }
}

.btn-icon:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Image Display Area */
.results-image-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .results-image-area {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .results-image-area {
        padding: 2rem;
    }
}

.image-container {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #0d0d0d;
}

@media (min-width: 640px) {
    .image-container {
        border-radius: var(--radius-lg);
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
}

.processed-image {
    display: block;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
}

@media (min-width: 640px) {
    .processed-image {
        max-width: calc(100vw - 3rem);
        max-height: calc(100vh - 180px);
    }
}

@media (min-width: 768px) {
    .processed-image {
        max-width: calc(100vw - 4rem);
        max-height: calc(100vh - 180px);
    }
}

/* Bottom Bar */
.results-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem var(--spacing-page);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
    .results-bottombar {
        gap: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Background Picker - Always horizontal */
.bg-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .bg-picker {
        gap: 0.75rem;
    }
}

.bg-picker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.bg-picker-label {
    display: none;
}

.bg-tabs {
    display: flex;
    position: relative;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
    border-radius: 6px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .bg-tabs {
        padding: 3px;
        border-radius: 8px;
    }
}

.bg-tab {
    position: relative;
    z-index: 1;
    padding: 4px 6px;
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 400px) {
    .bg-tab {
        padding: 4px 8px;
        font-size: 0.6rem;
    }
}

@media (min-width: 640px) {
    .bg-tab {
        padding: 5px 10px;
        font-size: 0.65rem;
        border-radius: 6px;
    }
}

.bg-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.bg-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.bg-tab-indicator {
    display: none;
}

/* Divider between tabs and swatches */
.bg-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: none;
}

@media (min-width: 400px) {
    .bg-divider {
        display: block;
    }
}

.bg-panels {
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.bg-panels::-webkit-scrollbar {
    display: none;
}

.bg-panel {
    display: none;
    gap: 4px;
    flex-wrap: nowrap;
    padding: 2px;
}

@media (min-width: 640px) {
    .bg-panel {
        gap: 8px;
        padding: 4px;
    }
}

.bg-panel.active {
    display: flex;
}

/* Action Buttons - Compact on mobile */
.results-buttons {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .results-buttons {
        gap: 0.75rem;
    }
}

/* Mobile: Icon-only secondary button */
.results-bottombar .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.results-bottombar .btn-secondary .btn-text {
    display: none;
}

@media (min-width: 480px) {
    .results-bottombar .btn-secondary {
        width: auto;
        height: 38px;
        padding: 0 0.875rem;
        gap: 0.375rem;
    }
    
    .results-bottombar .btn-secondary .btn-text {
        display: inline;
        font-size: 0.75rem;
    }
}

@media (min-width: 640px) {
    .results-bottombar .btn-secondary {
        height: 44px;
        padding: 0 1.25rem;
        gap: 0.5rem;
        border-radius: var(--radius-xl);
    }
    
    .results-bottombar .btn-secondary .btn-text {
        font-size: 0.875rem;
    }
}

/* Primary button - Always show text */
.results-bottombar .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

@media (min-width: 400px) {
    .results-bottombar .btn-primary {
        gap: 0.375rem;
        padding: 0 1rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 480px) {
    .results-bottombar .btn-primary {
        height: 38px;
    }
}

@media (min-width: 640px) {
    .results-bottombar .btn-primary {
        height: 44px;
        padding: 0 1.5rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }
}

.results-bottombar .btn-secondary .material-symbols-outlined {
    font-size: 18px;
}

.results-bottombar .btn-primary .material-symbols-outlined {
    font-size: 16px;
}

@media (min-width: 640px) {
    .results-bottombar .btn-secondary .material-symbols-outlined,
    .results-bottombar .btn-primary .material-symbols-outlined {
        font-size: 20px;
    }
}

/* Background Swatches */
.bg-swatches {
    display: flex;
    gap: 0.5rem;
}

.bg-swatch {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: none;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: outline-color 0.15s ease;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 400px) {
    .bg-swatch {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }
}

@media (min-width: 640px) {
    .bg-swatch {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
}

.bg-swatch:hover {
    outline-color: rgba(255, 255, 255, 0.4);
}

.bg-swatch.active {
    outline-color: #fff;
}

.swatch-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.swatch-check .material-symbols-outlined {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
}

@media (min-width: 400px) {
    .swatch-check .material-symbols-outlined {
        font-size: 12px;
    }
}

@media (min-width: 640px) {
    .swatch-check .material-symbols-outlined {
        font-size: 14px;
    }
}

.bg-swatch.active .swatch-check {
    opacity: 1;
}

/* Light color swatch check contrast */
.bg-swatch[data-bg="#ffffff"] .swatch-check,
.bg-swatch[data-bg="#f5f5f5"] .swatch-check {
    background: rgba(0, 0, 0, 0.15);
}

.bg-swatch[data-bg="#ffffff"] .swatch-check .material-symbols-outlined,
.bg-swatch[data-bg="#f5f5f5"] .swatch-check .material-symbols-outlined {
    color: #333;
}

/* Solid colors */
.bg-swatch[data-bg="#ffffff"] { background-color: #ffffff; }
.bg-swatch[data-bg="#000000"] { background-color: #000000; }
.bg-swatch[data-bg="#f5f5f5"] { background-color: #f5f5f5; }
.bg-swatch[data-bg="#1a1a2e"] { background-color: #1a1a2e; }
.bg-swatch[data-bg="#dc2626"] { background-color: #dc2626; }
.bg-swatch[data-bg="#16a34a"] { background-color: #16a34a; }
.bg-swatch[data-bg="#2563eb"] { background-color: #2563eb; }
.bg-swatch[data-bg="#7c3aed"] { background-color: #7c3aed; }
.bg-swatch[data-bg="#db2777"] { background-color: #db2777; }
.bg-swatch[data-bg="#ea580c"] { background-color: #ea580c; }
.bg-swatch[data-bg="#0d9488"] { background-color: #0d9488; }

/* Gradients */
.bg-swatch.gradient[data-bg*="667eea"] { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-swatch.gradient[data-bg*="f093fb"] { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-swatch.gradient[data-bg*="4facfe"] { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-swatch.gradient[data-bg*="43e97b"] { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-swatch.gradient[data-bg*="fa709a"] { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-swatch.gradient[data-bg*="0f0c29"] { background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.bg-swatch.gradient[data-bg*="f5af19"] { background: linear-gradient(135deg, #f5af19 0%, #f12711 100%); }
.bg-swatch.gradient[data-bg*="373b44"] { background: linear-gradient(135deg, #373b44 0%, #4286f4 100%); }
.bg-swatch.gradient[data-bg*="11998e"] { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.bg-swatch.gradient[data-bg*="834d9b"] { background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%); }

/* Patterns */
.bg-swatch.pattern[data-bg*="255,107,107"] { 
    background: radial-gradient(circle at 20% 80%, rgba(255,107,107,0.6) 0%, transparent 50%), 
                radial-gradient(circle at 80% 20%, rgba(78,205,196,0.6) 0%, transparent 50%), 
                #0a0a0a; 
}
.bg-swatch.pattern[data-bg*="12c2e9"] { background: linear-gradient(45deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%); }
.bg-swatch.pattern[data-bg*="e66465"] { 
    background: radial-gradient(ellipse at top, #e66465 0%, transparent 50%), 
                radial-gradient(ellipse at bottom, #9198e5 0%, transparent 50%), 
                #000; 
}
.bg-swatch.pattern[data-bg*="255,200,100"] { 
    background: radial-gradient(circle at 10% 20%, rgba(255,200,100,0.8) 0%, transparent 20%), 
                radial-gradient(circle at 90% 80%, rgba(255,100,150,0.7) 0%, transparent 25%), 
                radial-gradient(circle at 50% 50%, rgba(100,200,255,0.6) 0%, transparent 30%), 
                #0a0a0a; 
}
.bg-swatch.pattern[data-bg*="0f0f23"] { 
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}
.bg-swatch.pattern[data-bg*="0.03"] { 
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0a 100%);
}
.bg-swatch.pattern[data-bg*="1a0a2e"] { 
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 25%, #0a1a2e 50%, #2e0a1a 75%, #0a0a0a 100%);
}
.bg-swatch.pattern[data-bg*="conic"] { 
    background: conic-gradient(from 0deg at 50% 50%, #ff6b6b, #ffd93d, #6bff6b, #6bd9ff, #d96bff, #ff6b6b);
}

.checkerboard {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(#333 0% 25%, #666 0% 50%) 50% / 4px 4px;
}

@media (min-width: 400px) {
    .checkerboard {
        background: repeating-conic-gradient(#333 0% 25%, #666 0% 50%) 50% / 5px 5px;
    }
}

@media (min-width: 640px) {
    .checkerboard {
        background: repeating-conic-gradient(#333 0% 25%, #666 0% 50%) 50% / 6px 6px;
    }
}

/* =========================================
   Sample Images
   ========================================= */
.sample-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .sample-images {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

.sample-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #555;
}

@media (min-width: 640px) {
    .sample-label {
        font-size: 0.7rem;
    }
}

.sample-buttons {
    display: flex;
    gap: 0.375rem;
}

@media (min-width: 640px) {
    .sample-buttons {
        gap: 0.5rem;
    }
}

.sample-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    border: 1.5px solid #333;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    overflow: hidden;
    padding: 0;
}

@media (min-width: 640px) {
    .sample-btn {
        width: 44px;
        height: 44px;
    }
}

.sample-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sample-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* =========================================
   Stats Bar
   ========================================= */
.stats-bar {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--spacing-page);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-container {
        padding: 3rem var(--spacing-page);
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        padding: 4rem var(--spacing-page);
        gap: 3rem;
    }
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 640px) {
    .stat {
        gap: 0.5rem;
    }
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #525252;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 0.5625rem;
        letter-spacing: 0.25em;
    }
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.625rem;
    }
}

/* =========================================
   Sections
   ========================================= */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-page);
}

.section-container.narrow {
    max-width: 800px;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        margin-bottom: 1.5rem;
    }
}

.section-title.center {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .section-title.center {
        margin-bottom: 3rem;
    }
}

@media (min-width: 768px) {
    .section-title.center {
        margin-bottom: 4rem;
    }
}

.section-description {
    font-size: 1rem;
    color: #525252;
    font-weight: 500;
}

@media (min-width: 640px) {
    .section-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.25rem;
    }
}

/* =========================================
   How It Works
   ========================================= */
.how-it-works {
    padding: 4rem var(--spacing-page);
    background-color: var(--color-background);
}

@media (min-width: 640px) {
    .how-it-works {
        padding: 6rem var(--spacing-page);
    }
}

@media (min-width: 768px) {
    .how-it-works {
        padding: 8rem var(--spacing-page);
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-header {
        gap: 2rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 5rem;
    }
}

.doc-link {
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

@media (min-width: 640px) {
    .doc-link {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .doc-link {
        align-self: auto;
    }
}

.doc-link:hover {
    color: #a3a3a3;
    border-color: #a3a3a3;
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .steps-grid {
        gap: 3rem;
    }
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        gap: 4rem;
    }
}

.step {
    position: relative;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .step-header {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) {
    .step-header {
        margin-bottom: 2.5rem;
    }
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: #171717;
    line-height: 1;
    transition: color 0.7s ease;
}

@media (min-width: 640px) {
    .step-number {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .step-number {
        font-size: 5rem;
    }
}

.step:hover .step-number {
    color: var(--color-primary);
}

.step-icon {
    font-size: 2rem;
    color: #404040;
    transition: color var(--transition-normal);
}

@media (min-width: 640px) {
    .step-icon {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .step-icon {
        font-size: 2.5rem;
    }
}

.step:hover .step-icon {
    color: var(--color-primary);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.5rem;
    }
}

.step-description {
    font-size: 0.875rem;
    color: #525252;
    font-weight: 500;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .step-description {
        font-size: 1rem;
    }
}

/* =========================================
   Features
   ========================================= */
.features {
    padding: 4rem var(--spacing-page);
    background-color: var(--color-surface);
}

@media (min-width: 640px) {
    .features {
        padding: 6rem var(--spacing-page);
    }
}

@media (min-width: 768px) {
    .features {
        padding: 8rem var(--spacing-page);
    }
}

.features-grid {
    display: grid;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        border-radius: 1.5rem;
    }
}

.feature {
    padding: 1.5rem;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background-color var(--transition-normal);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .feature {
        padding: 2rem;
        gap: 1.25rem;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    
    .feature:nth-child(2),
    .feature:nth-child(4) {
        border-right: none;
    }
    
    .feature:nth-child(1),
    .feature:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (min-width: 768px) {
    .feature {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .feature {
        padding: 3rem;
        gap: 1.5rem;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    
    .feature:last-child {
        border-right: none;
    }
    
    .feature:nth-child(1),
    .feature:nth-child(2) {
        border-bottom: none;
    }
}

.feature:last-child {
    border-bottom: none;
}

.feature:hover {
    background-color: var(--color-accent);
}

.feature-icon {
    font-size: 2rem;
    color: #404040;
    transition: color var(--transition-normal);
}

@media (min-width: 640px) {
    .feature-icon {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .feature-icon {
        font-size: 3rem;
    }
}

.feature:hover .feature-icon {
    color: var(--color-primary);
}

.feature-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .feature-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 1.25rem;
    }
}

.feature-description {
    font-size: 0.8125rem;
    color: #525252;
    line-height: 1.6;
    font-weight: 500;
}

@media (min-width: 640px) {
    .feature-description {
        font-size: 0.875rem;
    }
}

/* =========================================
   Use Cases
   ========================================= */
.use-cases {
    padding: 4rem var(--spacing-page);
    background-color: var(--color-background);
}

@media (min-width: 640px) {
    .use-cases {
        padding: 6rem var(--spacing-page);
    }
}

@media (min-width: 768px) {
    .use-cases {
        padding: 8rem var(--spacing-page);
    }
}

.use-cases-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.use-case {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .use-case {
        gap: 1.5rem;
    }
}

.use-case-image {
    aspect-ratio: 4/3;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .use-case-image {
        border-radius: var(--radius-xl);
    }
}

.use-case-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #262626 100%);
    opacity: 0.6;
    transition: transform 1s ease;
}

.use-case:hover .use-case-image::before {
    transform: scale(1.05);
}

.use-case-image .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    transition: color var(--transition-normal);
}

@media (min-width: 640px) {
    .use-case-image .material-symbols-outlined {
        font-size: 4rem;
    }
}

.use-case:hover .use-case-image .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.2);
}

.use-case-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    padding: 0 0.25rem;
}

@media (min-width: 640px) {
    .use-case-title {
        font-size: 1.125rem;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .use-case-title {
        font-size: 1.25rem;
    }
}

.use-case-description {
    font-size: 0.875rem;
    color: #525252;
    font-weight: 500;
    padding: 0 0.25rem;
}

@media (min-width: 640px) {
    .use-case-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 4rem var(--spacing-page);
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .faq {
        padding: 6rem var(--spacing-page);
    }
}

@media (min-width: 768px) {
    .faq {
        padding: 8rem var(--spacing-page);
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .faq-list {
        gap: 1rem;
    }
}

.faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color var(--transition-fast);
}

@media (min-width: 640px) {
    .faq-item {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }
}

@media (min-width: 768px) {
    .faq-item {
        padding: 2rem;
    }
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--color-primary);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    gap: 1rem;
}

@media (min-width: 640px) {
    .faq-item summary {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .faq-item summary {
        font-size: 1.25rem;
    }
}

.faq-item summary span:first-child {
    flex: 1;
}

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

.faq-item summary .material-symbols-outlined {
    transition: transform var(--transition-fast);
    font-size: 1.25rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .faq-item summary .material-symbols-outlined {
        font-size: 1.5rem;
    }
}

.faq-item[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: #525252;
    line-height: 1.6;
    font-weight: 500;
}

@media (min-width: 640px) {
    .faq-item p {
        margin-top: 1.25rem;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .faq-item p {
        margin-top: 1.5rem;
        font-size: 1.125rem;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #000;
    padding: 3rem var(--spacing-page);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .footer {
        padding: 4rem var(--spacing-page);
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 6rem var(--spacing-page);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-main {
        gap: 3rem;
    }
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-brand {
        gap: 1.5rem;
    }
}

.footer-tagline {
    font-size: 0.8125rem;
    color: #525252;
    font-weight: 500;
    line-height: 1.6;
    max-width: 320px;
}

@media (min-width: 640px) {
    .footer-tagline {
        font-size: 0.875rem;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-links {
        gap: 3rem;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .footer-column {
        gap: 1rem;
    }
}

.footer-column-title {
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .footer-column-title {
        font-size: 0.625rem;
        margin-bottom: 0.5rem;
    }
}

.footer-column a {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #525252;
    transition: color var(--transition-fast);
}

@media (min-width: 640px) {
    .footer-column a {
        font-size: 0.6875rem;
    }
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #404040;
}

@media (min-width: 640px) {
    .footer-bottom {
        gap: 1.5rem;
        margin-top: 4rem;
        padding-top: 2rem;
        font-size: 0.625rem;
    }
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 6rem;
        padding-top: 2.5rem;
        font-size: 0.6875rem;
    }
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .footer-meta {
        gap: 1rem;
    }
}

.footer-meta .dot {
    width: 3px;
    height: 3px;
    background-color: #262626;
    border-radius: 50%;
}

@media (min-width: 640px) {
    .footer-meta .dot {
        width: 4px;
        height: 4px;
    }
}

/* =========================================
   Utility Classes
   ========================================= */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

.min-h-screen {
    min-height: 100vh;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar on body when overlay is open */
body.overlay-open {
    overflow: hidden;
}

/* Landscape phone specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem var(--spacing-page);
    }
    
    .hero-content {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-left {
        text-align: left;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.75rem;
    }
    
    .results-topbar,
    .results-bottombar {
        padding: 0.5rem 1rem;
    }
    
    .results-image-area {
        padding: 0.5rem;
    }
    
    .processed-image {
        max-height: calc(100vh - 140px);
    }
}
