/* ============================================
   PixelMind AI — Copper & Slate Design System
   ============================================ */

/* CSS Variables — Copper & Slate Palette */
:root {
    /* Primary Colors */
    --copper: #B87333;
    --copper-light: #D4A574;
    --copper-dark: #8B5A2B;
    
    /* Slate Colors */
    --slate-900: #2F3640;
    --slate-800: #3D4654;
    --slate-700: #4A5568;
    --slate-600: #718096;
    --slate-500: #A0AEC0;
    --slate-400: #CBD5E0;
    --slate-300: #E2E8F0;
    --slate-200: #EDF2F7;
    --slate-100: #F7FAFC;
    --slate-50: #FAFBFC;
    
    /* Background Colors */
    --bg-primary: #F5F0EB;
    --bg-secondary: #FFFFFF;
    --bg-dark: #2F3640;
    
    /* Text Colors */
    --text-primary: #2F3640;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #F5F0EB;
    
    /* Accent */
    --accent: #B87333;
    --accent-hover: #9A5F2A;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(47, 54, 64, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(47, 54, 64, 0.1), 0 2px 4px -1px rgba(47, 54, 64, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(47, 54, 64, 0.1), 0 4px 6px -2px rgba(47, 54, 64, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(47, 54, 64, 0.1), 0 10px 10px -5px rgba(47, 54, 64, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 54, 64, 0.06);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--copper);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--slate-800);
    color: white;
}

.btn-secondary:hover {
    background: var(--slate-900);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(47, 54, 64, 0.05);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--slate-300);
}

.btn-ghost-dark:hover {
    border-color: var(--copper);
    color: var(--copper);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary-light {
    background: white;
    color: var(--slate-900);
}

.btn-primary-light:hover {
    background: var(--slate-100);
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 115, 51, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 165, 116, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(47, 54, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 54, 64, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--copper);
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--copper);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.hero-title-accent {
    display: block;
    color: var(--copper);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--copper);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: var(--space-4xl);
    padding: 0 var(--space-lg);
}

.image-showcase {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    box-shadow: var(--shadow-xl);
    width: 280px;
    transform: translateY(0);
    transition: transform var(--transition-slow);
}

.showcase-card:hover {
    transform: translateY(-8px);
}

.card-1 { transform: rotate(-3deg) translateY(20px); }
.card-2 { transform: translateY(0); z-index: 1; }
.card-3 { transform: rotate(3deg) translateY(20px); }

.card-image {
    height: 180px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
}

.card-prompt {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: var(--space-sm);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--copper);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(47, 54, 64, 0.06);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 115, 51, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(184, 115, 51, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--copper);
    margin-bottom: var(--space-lg);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 280px;
    align-items: center;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--copper);
    opacity: 0.3;
    line-height: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-mockup {
    width: 240px;
    height: 140px;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.mockup-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.mockup-cursor {
    width: 2px;
    height: 1em;
    background: var(--copper);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.mockup-processing {
    display: flex;
    gap: var(--space-sm);
}

.processing-dot {
    width: 12px;
    height: 12px;
    background: var(--copper);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.processing-dot:nth-child(1) { animation-delay: 0s; }
.processing-dot:nth-child(2) { animation-delay: 0.2s; }
.processing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.mockup-result {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(47, 54, 64, 0.08);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-popular {
    background: var(--slate-900);
    border-color: var(--slate-800);
    color: var(--text-light);
    transform: scale(1.05);
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--copper);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(47, 54, 64, 0.08);
}

.pricing-popular .pricing-header {
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.pricing-price {
    margin-bottom: var(--space-sm);
}

.price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-popular .price-period {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-popular .pricing-desc {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-popular .pricing-features li {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--copper);
}

.pricing-popular .pricing-features li svg {
    color: var(--copper-light);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--space-4xl) 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(184, 115, 51, 0.15), transparent),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(212, 165, 116, 0.1), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--bg-primary);
    border-top: 1px solid rgba(47, 54, 64, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 54, 64, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--copper);
    color: white;
    transform: translateY(-2px);
}

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

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--copper);
}

.footer-bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(47, 54, 64, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .step {
        grid-template-columns: auto 1fr;
    }
    
    .step-visual {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-stats {
        gap: var(--space-xl);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .showcase-card {
        width: 240px;
    }
    
    .card-1,
    .card-3 {
        transform: rotate(0) translateY(0);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-popular {
        transform: none;
    }
    
    .pricing-popular:hover {
        transform: translateY(-4px);
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .pricing-card,
    .step {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}