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

:root {
    /* Color Palette - SINGLE SOURCE OF TRUTH */
    --sage-green: #7f9da3;
    --sage-green-light: #a4d0df;
    --sage-green-dark: #527376;
    --sage-green-alpha-10: rgba(127, 157, 163, 0.1);
    --sage-green-alpha-20: rgba(127, 157, 163, 0.2);
    --sage-green-alpha-30: rgba(127, 157, 163, 0.3);
    --warm-beige: #F7F5F3;
    --warm-white: #FEFEFE;
    --text-primary: #2C3E2D;
    --text-secondary: #4A5D4B;
    --text-muted: #6B7B6C;
    --accent-gold: #D4AF37;
    --border-soft: #E8E5E1;
    --shadow-soft: 0 4px 20px rgba(127, 157, 163, 0.08);
    --shadow-medium: 0 8px 30px rgba(127, 157, 163, 0.12);
    --radius-warm: 12px;
    --radius-large: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(247, 245, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    max-width: 250px;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
    white-space: nowrap;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--sage-green);
}

.login-btn {
    background: var(--sage-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-warm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background: var(--sage-green-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 45, 0.6);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sage-green-alpha-10);
    border: 1px solid var(--sage-green-alpha-30);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta {
    background: var(--sage-green);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-warm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta:hover {
    background: var(--sage-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Quick Start Section */
.quick-start {
    background: white;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-soft);
}

.quick-start-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quick-start-title {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quick-start-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Input Tabs */
.input-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-warm);
    overflow: hidden;
    background: var(--sage-green-alpha-10);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--sage-green);
    color: white;
}

.input-section {
    width: 100%;
}

.input-section.hidden {
    display: none;
}

.quick-form {
    background: var(--sage-green);
    padding: 2rem;
    border-radius: var(--radius-large);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.url-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--radius-warm);
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.url-input:focus {
    box-shadow: 0 0 0 3px var(--sage-green-alpha-20);
}

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

.generate-btn {
    background: var(--text-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-warm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* Upload Area Styles */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-warm);
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.upload-area.dragover {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.upload-text {
    color: white;
}

.upload-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-text span {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* File List Styles */
.file-list {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-warm);
    margin-bottom: 0.5rem;
    color: white;
}

.file-item-icon {
    font-size: 1.2rem;
}

.file-item-info {
    flex: 1;
    text-align: left;
}

.file-item-name {
    font-weight: 500;
}

.file-item-size {
    font-size: 0.8rem;
    opacity: 0.8;
}

.file-remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.file-remove-btn:hover {
    background: rgba(255, 100, 100, 0.3);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--warm-beige);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.features-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage-green), var(--sage-green-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-icon img {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain;
    /* Remove the filter that makes them white */
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}
/* Wizard Modal Styles */
.wizard-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wizard-section.show {
    opacity: 1;
    visibility: visible;
}

.wizard-container {
    background: white;
    border-radius: var(--radius-large);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
}

.wizard-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.close-wizard {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-wizard:hover {
    background: var(--border-soft);
    color: var(--text-primary);
}

.wizard-header h2 {
    font-family: 'Crimson Text', serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-soft);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--sage-green);
    width: 25%;
    transition: width 0.3s ease;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-soft);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--sage-green);
    color: white;
}

.step-dot.completed {
    background: var(--sage-green-dark);
    color: white;
}

.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.wizard-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

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

.wizard-step h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wizard-step > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.persona-card {
    background: var(--warm-beige);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-warm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.persona-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.persona-card.selected {
    border-color: var(--sage-green);
    background: var(--sage-green-alpha-10);
}

.persona-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.persona-icon img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
}

.persona-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.persona-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px var(--sage-green-alpha-10);
}

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

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: white;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-warm);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--sage-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.content-card.selected {
    border-color: var(--sage-green);
    background: var(--sage-green-alpha-10);
}

.content-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-icon img {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain;
}

.content-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.content-card > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.content-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-includes span {
    background: var(--sage-green-light);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.upload-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-warm);
    overflow: hidden;
    background: var(--border-soft);
}

.upload-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-tab.active {
    background: var(--sage-green);
    color: white;
}

.upload-content {
    position: relative;
}

.upload-panel {
    display: none;
}

.upload-panel.active {
    display: block;
}

.main-upload-area {
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-warm);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--warm-beige);
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-upload-area:hover {
    border-color: var(--sage-green-light);
    background: var(--sage-green-alpha-10);
}

.main-upload-area.dragover {
    border-color: var(--sage-green);
    background: var(--sage-green-alpha-20);
    transform: scale(1.02);
}

.upload-visual {
    max-width: 300px;
    margin: 0 auto;
}

.upload-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--sage-green);
}

.upload-icon-large img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain;
}

.upload-visual h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-visual p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.browse-btn {
    background: var(--sage-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-warm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.browse-btn:hover {
    background: var(--sage-green-dark);
}

.uploaded-files {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-warm);
    border: 1px solid var(--border-soft);
}

.uploaded-files h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.url-input-area,
.text-input-area {
    max-width: 500px;
    margin: 0 auto;
}

.url-input-area label,
.text-input-area label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.url-examples {
    margin-top: 1rem;
}

.url-examples p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.example-btn {
    background: var(--border-soft);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-warm);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.example-btn:hover {
    background: var(--sage-green-light);
    color: white;
}

.text-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wizard-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-spacer {
    flex: 1;
}

.btn-primary {
    background: var(--sage-green);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-warm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--sage-green-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--border-soft);
    color: var(--text-primary);
}

.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem 2rem;
}

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

.footer-logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}
/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.generating {
    position: relative;
    overflow: hidden;
}

.generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.wizard-section .file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.wizard-section .file-item:hover {
    box-shadow: var(--shadow-soft);
}

.wizard-section .file-item-icon {
    font-size: 1.5rem;
    color: var(--sage-green);
}

.wizard-section .file-item-info {
    flex: 1;
}

.wizard-section .file-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.wizard-section .file-item-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.wizard-section .file-remove-btn {
    background: var(--border-soft);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-section .file-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Content Display Modal */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.content-modal.show {
    opacity: 1;
    visibility: visible;
}

.content-modal-container {
    background: white;
    border-radius: var(--radius-large);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
}

.content-modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.content-modal-header h2 {
    flex: 1;
    margin: 0;
}

.close-content-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.close-content-modal:hover {
    color: var(--text-primary);
}

.content-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.generated-content {
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 400px;
    border: 1px solid var(--border-soft);
    border-radius: 0 0 var(--radius-warm) var(--radius-warm);
}

.generated-content h1 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.generated-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.generated-content h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.generated-content p {
    margin-bottom: 1rem;
}

.generated-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.content-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.editor-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--sage-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.editor-toolbar {
    border: 1px solid var(--border-soft) !important;
    border-bottom: none !important;
    border-radius: var(--radius-warm) var(--radius-warm) 0 0;
    background: var(--warm-beige);
}

.generated-content.ql-container {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.generated-content .ql-editor {
    min-height: 400px;
    line-height: 1.8;
    padding: 1.5rem;
}

.generated-content .ql-editor h1 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.generated-content .ql-editor h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.generated-content .ql-editor h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.generated-content .ql-editor p {
    margin-bottom: 1rem;
}

.generated-content .ql-editor strong {
    font-weight: 600;
    color: var(--text-primary);
}

.generated-content.ql-container.ql-disabled {
    border-radius: var(--radius-warm);
}

.print-content-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generated-content .ql-editor ol,
.generated-content .ql-editor ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.generated-content .ql-editor ol li,
.generated-content .ql-editor ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.generated-content .ql-editor ol {
    list-style-type: decimal;
}

.generated-content .ql-editor ul {
    list-style-type: disc;
}

/* Content Refinement Tools */
.refinement-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--warm-beige);
    border-radius: var(--radius-warm);
    margin-bottom: 1rem;
}

.refinement-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.counter-icon {
    font-size: 1.2rem;
}

.refinement-buttons {
    display: flex;
    gap: 0.75rem;
}

.refine-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--sage-green);
    background: white;
    color: var(--sage-green);
    border-radius: var(--radius-warm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.refine-btn:hover:not(:disabled) {
    background: var(--sage-green);
    color: white;
    transform: translateY(-1px);
}

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

.refine-expand {
    border-color: #10b981;
    color: #10b981;
}

.refine-expand:hover:not(:disabled) {
    background: #10b981;
    color: white;
}

.refine-simplify {
    border-color: #6366f1;
    color: #6366f1;
}

.refine-simplify:hover:not(:disabled) {
    background: #6366f1;
    color: white;
}

.refine-examples {
    border-color: #f59e0b;
    color: #f59e0b;
}

.refine-examples:hover:not(:disabled) {
    background: #f59e0b;
    color: white;
}
/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-container {
    background: white;
    border-radius: var(--radius-large);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-medium);
}

.auth-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.close-auth-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-auth-modal:hover {
    background: var(--border-soft);
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    gap: 2rem;
}

.auth-tab {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.auth-tab.active {
    color: var(--sage-green);
    border-bottom-color: var(--sage-green);
}

.auth-modal-body {
    padding: 2rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px var(--sage-green-alpha-10);
}

.auth-submit-btn {
    width: 100%;
    background: var(--sage-green);
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-warm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    background: var(--sage-green-dark);
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: var(--radius-warm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    background: var(--sage-green-alpha-10);
    border: 1px solid var(--sage-green);
    color: var(--sage-green);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-warm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: var(--sage-green);
    color: white;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s ease;
    display: block;
    text-decoration: none;
}

.user-menu-item:hover {
    background: var(--warm-beige);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 0.5rem 0;
}

/* Saved Content */
.saved-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.saved-content-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-warm);
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.saved-content-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.saved-content-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.saved-content-card .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.saved-content-card .preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.saved-content-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.saved-content-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-soft);
    background: white;
    border-radius: var(--radius-warm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.saved-content-btn:hover {
    background: var(--warm-beige);
}

.delete-btn {
    color: #dc2626;
    border-color: #fee2e2;
}

.delete-btn:hover {
    background: #fee2e2;
}

/* Template Customization */
.customize-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--warm-beige);
    border-radius: var(--radius-warm);
    border: 1px solid var(--border-soft);
}

.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.customize-header h4 {
    color: var(--text-primary);
    font-size: 1rem;
}

.customize-toggle {
    font-size: 0.85rem;
    color: var(--sage-green);
    cursor: pointer;
    text-decoration: underline;
}

.customize-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.customize-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customize-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.customize-checkbox label {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 120px 1rem 2rem;
    }

    .wizard-content {
        padding: 1.5rem;
    }

    .persona-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .refinement-tools {
        flex-direction: column;
        gap: 1rem;
    }
    
    .refinement-buttons {
        flex-direction: column;
    }
    
    .refine-btn {
        width: 100%;
        justify-content: center;
    }

    .customize-options {
        grid-template-columns: 1fr;
    }
}
/* How It Works Section */
.how-it-works {
    padding: 6rem 2rem;
    background: white;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: var(--warm-beige);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-large);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--sage-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--sage-green), var(--sage-green-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.88rem;
}

.demo-video-container {
    background: var(--warm-beige);
    padding: 3rem 2rem;
    border-radius: var(--radius-large);
    margin-top: 3rem;
}

.demo-video-container h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.demo-placeholder {
    background: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-warm);
    border: 2px dashed var(--border-soft);
}

.demo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.demo-placeholder p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.demo-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}