/* ============================================
   ProofPost - Design System & Styles
   ============================================ */

/* Design Tokens */
:root {
    /* Colors */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #f59e0b;
    --color-success: #10b981;
    
    /* Neutrals */
    --color-gray-50: #fafafa;
    --color-gray-100: #f4f4f5;
    --color-gray-200: #e4e4e7;
    --color-gray-300: #d4d4d8;
    --color-gray-400: #a1a1aa;
    --color-gray-500: #71717a;
    --color-gray-600: #52525b;
    --color-gray-700: #3f3f46;
    --color-gray-800: #27272a;
    --color-gray-900: #18181b;
    
    /* Semantic */
    --color-text: var(--color-gray-900);
    --color-text-muted: var(--color-gray-500);
    --color-background: #ffffff;
    --color-surface: var(--color-gray-50);
    --color-border: var(--color-gray-200);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo {
    font-size: var(--font-size-xl);
}

.nav-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-gray-900);
}

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

.nav-links a {
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
}

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

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

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.btn-secondary:hover {
    background: var(--color-gray-200);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-gray-700);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

/* Hero Section */
.hero {
    padding: calc(var(--space-20) + 80px) 0 var(--space-20);
    text-align: center;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-background) 100%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

.hero-price {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-gray-900);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-gray-200);
}

/* Problem Section */
.problem {
    padding: var(--space-20) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--color-gray-900);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-500);
    text-align: center;
    margin-top: calc(var(--space-4) * -1);
    margin-bottom: var(--space-12);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.problem-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
}

.problem-icon {
    font-size: var(--font-size-4xl);
    display: block;
    margin-bottom: var(--space-4);
}

.problem-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.problem-card p {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

/* How It Works */
.how-it-works {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.step-content p {
    color: var(--color-gray-600);
}

/* Demo Section */
.demo-section {
    padding: var(--space-20) 0;
}

.demo-container {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    min-height: 500px;
}

.demo-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.demo-step-badge {
    background: var(--color-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.demo-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    flex: 1;
}

.btn-back {
    background: none;
    border: none;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    cursor: pointer;
    font-weight: 500;
}

.btn-back:hover {
    color: var(--color-primary);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.review-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.review-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.review-card.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.review-stars {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
}

.review-date {
    color: var(--color-gray-400);
    font-size: var(--font-size-xs);
}

.review-text {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.review-author {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.review-highlight {
    display: block;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.template-card {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.template-card:hover .template-preview {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.template-card.selected .template-preview {
    ring: 3px solid var(--color-primary);
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.template-preview {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-2);
}

.template-preview.modern {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
}

.template-preview.minimal {
    background: white;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-800);
}

.template-preview.bold {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: white;
}

.template-preview.warm {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--color-gray-800);
}

.template-quote {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-2);
}

.template-stars {
    font-size: var(--font-size-xs);
    color: var(--color-secondary);
}

.template-name {
    display: block;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gray-600);
}

/* Result Preview */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.result-preview {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.result-preview .quote {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.result-preview .stars {
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
    margin-bottom: var(--space-3);
}

.result-preview .author {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.result-preview .business {
    font-size: var(--font-size-xs);
    opacity: 0.6;
    margin-top: var(--space-2);
}

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

/* Pricing */
.pricing {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    border: 1px solid var(--color-border);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    position: absolute;
    top: calc(var(--space-4) * -1);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.pricing-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

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

.price-amount {
    font-size: var(--font-size-4xl);
    font-weight: 800;
}

.price-period {
    color: var(--color-gray-500);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-8);
}

.pricing-features li {
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
}

.pricing-features li.muted {
    color: var(--color-gray-400);
}

/* CTA */
.cta {
    padding: var(--space-20) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.cta h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.cta p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

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

.cta .btn-primary:hover {
    background: var(--color-gray-100);
}

/* Footer */
.footer {
    padding: var(--space-12) 0;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.footer-tagline {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.footer-copyright {
    color: var(--color-gray-400);
    font-size: var(--font-size-xs);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .problem-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .nav-links a:not(.btn) {
        display: none;
    }
}
