/* ============================================
   PitchOS — CSS Styles
   Modern, clean design with CSS variables
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #0ea5e9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

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

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

/* Wizard Preview Mockup */
.wizard-preview {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 320px;
    overflow: hidden;
}

.preview-header {
    background: var(--color-border-light);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.preview-body {
    padding: 24px;
}

.preview-step {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.preview-field {
    margin-bottom: 16px;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.preview-input {
    height: 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.preview-progress {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 24px;
}

.preview-progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ============================================
   How It Works
   ============================================ */
.how-it-works {
    padding: 80px 0;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.step-connector {
    font-size: 2rem;
    color: var(--color-border);
    font-weight: 300;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

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

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-tier {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-desc {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ============================================
   CTA / Waitlist
   ============================================ */
.cta {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form .form-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.waitlist-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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

.waitlist-form .btn-primary:hover {
    background: var(--color-bg);
}

/* ============================================
   Form Elements
   ============================================ */
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 48px;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

.form-actions .btn-outline {
    margin-right: auto;
}

/* ============================================
   Wizard
   ============================================ */
.wizard-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.wizard-wrapper {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    padding: 48px;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.wizard-header p {
    color: var(--color-text-muted);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: var(--color-primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ============================================
   Proposal
   ============================================ */
.proposal-container {
    min-height: calc(100vh - 64px);
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proposal-wrapper {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

.proposal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 48px;
    text-align: center;
}

.proposal-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.proposal-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.proposal-status.sent {
    background: var(--color-success);
}

.proposal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.proposal-for {
    font-size: 1.125rem;
    opacity: 0.9;
}

.proposal-client-email {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 4px;
}

.proposal-body {
    padding: 48px;
}

.proposal-section {
    margin-bottom: 40px;
}

.proposal-section:last-child {
    margin-bottom: 0;
}

.proposal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border-light);
}

.proposal-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
}

.budget-value {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.scope-content {
    background: var(--color-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    white-space: pre-wrap;
    line-height: 1.8;
}

.proposal-actions {
    display: flex;
    gap: 16px;
    padding: 32px 48px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.action-form {
    display: inline;
}

.proposal-footer {
    text-align: center;
    padding: 24px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.proposal-id {
    margin-top: 4px;
    font-family: monospace;
}

/* ============================================
   Pay Page
   ============================================ */
.pay-container {
    min-height: calc(100vh - 64px);
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-wrapper {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.pay-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.pay-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pay-body {
    padding: 40px;
}

.pay-summary {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.pay-summary h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pay-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9375rem;
}

.pay-detail span {
    color: var(--color-text-muted);
}

.pay-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid var(--color-border);
    font-size: 1.25rem;
}

.pay-total span,
.pay-total strong {
    color: var(--color-text);
}

.pay-note {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.pay-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.pay-placeholder {
    margin-top: 32px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius);
    text-align: center;
    border: 2px dashed var(--color-border);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.pay-placeholder h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pay-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.placeholder-config {
    margin-top: 16px;
}

.placeholder-config code {
    background: var(--color-border-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Alerts / Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: 500px;
    width: 90%;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: var(--color-success);
    color: white;
}

.alert-error {
    background: var(--color-error);
    color: white;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features {
        padding: 48px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works {
        padding: 48px 0;
    }

    .steps {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .pricing {
        padding: 48px 0;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .wizard-wrapper,
    .proposal-wrapper,
    .pay-wrapper {
        padding: 32px 24px;
    }

    .proposal-header,
    .proposal-body,
    .proposal-actions {
        padding: 32px 24px;
    }

    .proposal-header h1 {
        font-size: 1.75rem;
    }

    .progress-steps {
        gap: 4px;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-outline {
        margin-right: 0;
        order: 1;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 56px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-card {
        padding: 24px;
    }

    .pricing-price {
        font-size: 2.5rem;
    }
}
