/* QuoteFlow AI - Complete Stylesheet */

:root {
    --copper: #B87333;
    --copper-light: #D4A574;
    --copper-dark: #8B5A2B;
    --slate: #2F3640;
    --slate-light: #4A5568;
    --slate-dark: #1A1D23;
    --cream: #F5F0EB;
    --cream-dark: #E8E0D5;
    --white: #FFFFFF;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--slate); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; border-radius: 8px; border: none; transition: all 0.25s ease; }
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--slate); border: 1px solid var(--cream-dark); }
.btn-secondary:hover { background: var(--cream); border-color: var(--copper-light); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { color: var(--copper); }
.btn-outline { background: transparent; color: var(--copper); border: 2px solid var(--copper); }
.btn-outline:hover { background: var(--copper); color: var(--white); }
.btn-large { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.mt-3 { margin-top: 1rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cream-dark); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--slate); }
.logo-icon { color: var(--copper); font-size: 1.25rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--slate-light); transition: color 0.15s; }
.nav-links a:hover { color: var(--copper); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.user-name { font-weight: 600; color: var(--slate); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 0.5rem; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--slate); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background: var(--white); z-index: 2000; padding: 1.5rem; transition: right 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu-close { width: 40px; height: 40px; border: none; background: var(--cream); border-radius: 8px; font-size: 1.5rem; cursor: pointer; color: var(--slate); }
.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav a { padding: 1rem; font-size: 1.125rem; font-weight: 500; color: var(--slate); border-radius: 8px; transition: all 0.2s; }
.mobile-nav a:hover { background: var(--cream); color: var(--copper); }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* Hero */
.hero { position: relative; padding: calc(80px + 6rem) 0 6rem; background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%); overflow: hidden; }
.hero-bg-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(184,115,51,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(47,54,64,0.05) 0%, transparent 50%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(184,115,51,0.1); border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--copper); margin-bottom: 1.5rem; }
.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: 3.5rem; font-weight: 600; line-height: 1.1; color: var(--slate); margin-bottom: 1.5rem; }
.title-accent { color: var(--copper); position: relative; }
.title-accent::after { content: ''; position: absolute; bottom: 0.1em; left: 0; right: 0; height: 0.15em; background: rgba(184,115,51,0.2); z-index: -1; }
.hero-description { font-size: 1.125rem; color: var(--slate-light); max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 4rem; }
.hero-stats { display: flex; align-items: center; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--copper); }
.stat-label { font-size: 0.875rem; color: var(--slate-light); }
.stat-divider { width: 1px; height: 40px; background: var(--cream-dark); }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.proposal-card { width: 380px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-xl); overflow: hidden; transform: rotate(-2deg); transition: transform 0.35s ease; }
.proposal-card:hover { transform: rotate(0deg) translateY(-5px); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--slate); color: var(--white); }
.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.card-dots span:first-child { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #28c840; }
.card-status { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.25rem 0.75rem; background: rgba(255,255,255,0.1); border-radius: 4px; }
.card-content { padding: 1.5rem; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--slate); margin-bottom: 0.25rem; }
.card-client { font-size: 0.875rem; color: var(--slate-light); margin-bottom: 1.25rem; }
.card-items { border-top: 1px solid var(--cream-dark); padding-top: 1rem; margin-bottom: 1rem; }
.card-item { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9375rem; }
.card-item span:first-child { color: var(--slate-light); }
.card-item span:last-child { font-weight: 600; color: var(--slate); }
.card-total { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 2px solid var(--slate); font-weight: 700; font-size: 1.125rem; }
.card-footer { padding: 1rem 1.5rem; background: var(--cream); border-top: 1px solid var(--cream-dark); }
.ai-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--copper); }
.ai-icon { font-size: 1rem; }
.floating-element { position: absolute; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 0.875rem; font-weight: 500; color: var(--slate); animation: float 3s ease-in-out infinite; }
.element-1 { top: 10%; right: -20px; animation-delay: 0s; }
.element-2 { bottom: 20%; left: -30px; animation-delay: 1.5s; }
.check-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--copper); color: var(--white); border-radius: 50%; font-size: 0.75rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust Bar */
.trust-bar { padding: 2.5rem 0; background: var(--slate); color: var(--white); }
.trust-text { text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; }
.trust-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; opacity: 0.7; }

/* Section Headers */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-header.text-left { text-align: left; margin-left: 0; }
.section-tag { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--copper); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--slate); margin-bottom: 1rem; line-height: 1.2; }
.section-description { font-size: 1.125rem; color: var(--slate-light); }

/* Features */
.features { padding: 6rem 0; background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { padding: 2.5rem; background: var(--white); border: 1px solid var(--cream-dark); border-radius: 16px; transition: all 0.25s ease; cursor: pointer; }
.feature-card:hover { border-color: var(--copper-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-card.featured { grid-column: span 2; background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%); color: var(--white); border: none; }
.feature-card.featured .feature-title, .feature-card.featured .feature-description { color: var(--white); }
.feature-card.featured .feature-icon { color: var(--copper-light); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--copper); margin-bottom: 1.5rem; }
.feature-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--slate); margin-bottom: 0.5rem; }
.feature-description { font-size: 0.9375rem; color: var(--slate-light); margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: rgba(255,255,255,0.8); }
.feature-list li::before { content: '✓'; color: var(--copper-light); font-weight: 700; }

/* How It Works */
.how-it-works { padding: 6rem 0; background: var(--cream); }
.steps { display: flex; flex-direction: column; gap: 2.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 2rem; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); }
.step-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--copper); opacity: 0.3; line-height: 1; }
.step-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--slate); margin-bottom: 0.5rem; }
.step-description { font-size: 1rem; color: var(--slate-light); max-width: 500px; }

/* Generator Section */
.generator-section { padding: calc(80px + 4rem) 0 4rem; background: var(--cream); min-height: 100vh; }
.generator-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.generator-form { background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--slate); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--cream-dark); border-radius: 8px; font-size: 0.9375rem; transition: all 0.2s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184,115,51,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-suggestions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestion-chip { padding: 0.5rem 0.75rem; background: rgba(184,115,51,0.1); color: var(--copper); border-radius: 20px; font-size: 0.8125rem; }

/* Preview */
.generator-preview { position: sticky; top: 100px; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.preview-header h3 { font-family: var(--font-display); font-size: 1.25rem; }
.preview-status { font-size: 0.875rem; color: var(--slate-light); }
.preview-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); min-height: 400px; display: flex; align-items: center; justify-content: center; }
.preview-placeholder { text-align: center; color: var(--slate-light); }
.placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.preview-loading { text-align: center; padding: 3rem; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--cream-dark); border-top-color: var(--copper); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dashboard */
.dashboard-section { padding: calc(80px + 2rem) 0 2rem; background: var(--cream); min-height: 100vh; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dashboard-header h1 { font-family: var(--font-display); font-size: 2rem; }
.dashboard-header p { color: var(--slate-light); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem; }
.stat-card.highlight { background: var(--slate); color: var(--white); }
.stat-icon { font-size: 1.5rem; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-card.highlight .stat-value { color: var(--copper-light); }
.stat-label { font-size: 0.75rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card.highlight .stat-label { color: rgba(255,255,255,0.7); }
.dashboard-content { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.proposals-panel, .analytics-panel { background: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.panel-header h3 { font-family: var(--font-display); font-size: 1.25rem; }
.panel-header a { font-size: 0.875rem; color: var(--copper); }
.proposals-list { display: flex; flex-direction: column; gap: 0.75rem; }
.proposal-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--cream); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.proposal-row:hover { background: var(--cream-dark); }
.proposal-info h4 { font-weight: 600; margin-bottom: 0.25rem; }
.proposal-info span { font-size: 0.875rem; color: var(--slate-light); }
.proposal-meta { text-align: right; }
.proposal-amount { display: block; font-weight: 700; color: var(--copper); }
.proposal-status { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 4px; text-transform: uppercase; }
.proposal-status.draft { background: var(--cream-dark); color: var(--slate); }
.proposal-status.sent { background: #DBEAFE; color: #1E40AF; }
.proposal-status.accepted { background: #D1FAE5; color: #065F46; }
.empty-state { text-align: center; padding: 3rem; color: var(--slate-light); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.analytics-chart { display: flex; align-items: flex-end; justify-content: center; gap: 2rem; height: 200px; padding: 1rem; }
.chart-bar { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; max-width: 60px; }
.bar-fill { width: 100%; background: var(--copper); border-radius: 4px 4px 0 0; transition: height 0.5s ease; min-height: 4px; }
.bar-fill.accepted { background: var(--success); }
.chart-bar label { font-size: 0.75rem; color: var(--slate-light); }

/* Pricing */
.pricing-section { padding: calc(80px + 4rem) 0 4rem; background: var(--white); min-height: 100vh; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card { position: relative; padding: 2rem; background: var(--white); border: 2px solid var(--cream-dark); border-radius: 16px; transition: all 0.25s ease; }
.pricing-card:hover { border-color: var(--copper-light); box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--copper); box-shadow: var(--shadow-xl); transform: scale(1.02); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 0.375rem 1rem; background: var(--copper); color: var(--white); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 50px; }
.pricing-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--cream-dark); }
.pricing-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--slate); margin-bottom: 0.25rem; }
.pricing-desc { font-size: 0.9375rem; color: var(--slate-light); margin-bottom: 1.5rem; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; }
.pricing-price .currency { font-size: 1.5rem; font-weight: 600; color: var(--slate); }
.pricing-price .amount { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--slate); line-height: 1; }
.pricing-price .period { font-size: 1rem; color: var(--slate-light); }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; font-size: 0.9375rem; color: var(--slate); border-bottom: 1px solid var(--cream); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: rgba(184,115,51,0.1); color: var(--copper); border-radius: 50%; font-size: 0.75rem; font-weight: 700; }

/* Auth */
.auth-section { padding: calc(80px + 4rem) 0 4rem; background: var(--cream); min-height: 100vh; display: flex; align-items: center; }
.auth-card { max-width: 420px; margin: 0 auto; background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--slate-light); }
.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-dark); }
.auth-footer a { color: var(--copper); font-weight: 600; }

/* Result Page */
.result-section { padding: calc(80px + 2rem) 0 2rem; background: var(--cream); min-height: 100vh; }
.result-header { text-align: center; margin-bottom: 3rem; }
.result-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(184,115,51,0.1); border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--copper); margin-bottom: 1rem; }
.result-header h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.5rem; }
.result-header p { color: var(--slate-light); }
.result-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.result-actions { display: flex; flex-direction: column; gap: 1rem; }
.result-actions h3 { font-family: var(--font-display); margin-bottom: 0.5rem; }
.quote-card { background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-lg); }
.quote-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--slate); }
.quote-header h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.quote-client { color: var(--slate-light); }
.quote-breakdown { margin-bottom: 2rem; }
.quote-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--cream-dark); }
.quote-item:last-child { border-bottom: none; }
.quote-total { display: flex; justify-content: space-between; padding: 1.5rem 0; border-top: 2px solid var(--slate); font-size: 1.25rem; font-weight: 700; }
.quote-meta { display: flex; gap: 2rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--cream); border-radius: 8px; }
.meta-item { display: flex; flex-direction: column; }
.meta-item span:first-child { font-size: 0.75rem; color: var(--slate-light); text-transform: uppercase; }
.meta-item span:last-child { font-weight: 600; }
.quote-suggestions { padding: 1rem; background: rgba(184,115,51,0.05); border-radius: 8px; border-left: 3px solid var(--copper); }
.quote-suggestions h4 { margin-bottom: 0.5rem; color: var(--copper); }
.quote-suggestions ul { list-style: disc; padding-left: 1.25rem; }
.quote-suggestions li { margin-bottom: 0.25rem; color: var(--slate-light); font-size: 0.875rem; }

/* CTA */
.cta { padding: 6rem 0; background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%); color: var(--white); }
.cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.cta-description { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.cta-actions .btn-primary { background: var(--copper); }
.cta-actions .btn-primary:hover { background: var(--copper-light); }
.cta-actions .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); }
.cta-note { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

/* AI Chat */
.ai-chat { position: fixed; bottom: 20px; right: 20px; width: 380px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-xl); z-index: 1000; overflow: hidden; transform: translateY(calc(100% - 60px)); transition: transform 0.3s ease; }
.ai-chat.open { transform: translateY(0); }
.chat-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--slate); color: var(--white); cursor: pointer; }
.chat-icon { font-size: 1.25rem; }
.chat-title { flex: 1; font-weight: 600; }
.chat-toggle { font-size: 1.25rem; }
.chat-body { height: 400px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-message { display: flex; gap: 0.75rem; }
.chat-message.user { flex-direction: row-reverse; }
.message-avatar { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 50%; font-size: 0.875rem; flex-shrink: 0; }
.chat-message.ai .message-avatar { background: var(--copper); color: var(--white); }
.message-content { padding: 0.75rem 1rem; background: var(--cream); border-radius: 12px; font-size: 0.875rem; line-height: 1.5; max-width: 80%; }
.chat-message.ai .message-content { background: rgba(184,115,51,0.1); color: var(--slate); }
.chat-input-area { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--cream-dark); }
.chat-input-area input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--cream-dark); border-radius: 8px; font-size: 0.875rem; }
.chat-input-area input:focus { outline: none; border-color: var(--copper); }
.chat-input-area button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--copper); color: var(--white); border: none; border-radius: 8px; font-size: 1rem; }

/* Notifications */
#notifications { position: fixed; top: 100px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 0.75rem; }
.notification { padding: 1rem 1.5rem; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 0.9375rem; transform: translateX(120%); transition: transform 0.3s ease; }
.notification.show { transform: translateX(0); }
.notification-success { border-left: 4px solid var(--success); }
.notification-error { border-left: 4px solid var(--error); }
.notification-info { border-left: 4px solid var(--copper); }

/* Footer */
.footer { padding: 4rem 0 2rem; background: var(--slate-dark); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9375rem; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-links h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--copper-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container, .generator-layout, .result-layout, .dashboard-content { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.featured { grid-column: span 2; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-visual { display: none; }
    .hero { text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .generator-preview { position: static; }
    .ai-chat { width: calc(100% - 40px); right: 20px; left: 20px; }
}

@media (max-width: 768px) {
    .nav-links, #auth-section { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.75rem; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .feature-card.featured { grid-column: span 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .step { grid-template-columns: 1fr; text-align: center; }
    .step-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-tagline { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-divider { display: none; }
    .cta-actions { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
}