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

:root {
    /* Company branding color palette */
    --primary: #8c2c8c;        /* Company primary (header) */
    --primary-light: #f3e6f3;  /* Light version of primary */
    --accent: #8d1491;         /* Company accent */
    --secondary: #a855f7;      /* Supporting purple */
    --text: #333333;           /* Primary text */
    --text-secondary: #444444; /* Secondary text */
    --text-light: #888888;     /* Metadata text */
    --text-muted: #aaaaaa;     /* Footer text */
    --bg: #ffffff;
    --bg-light: #f8f8f8;       /* Footer background */
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(140, 44, 140, 0.1);
    --radius: 8px;
    --radius-lg: 12px;

    /* Beta badge colors */
    --beta-bg: #f59e0b;
    --beta-text: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Main Container */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    box-shadow: var(--shadow);
}

/* Landing Page Container */
.app-container.landing {
    max-width: 1200px;
}

/* Navigation */
.main-nav {
    background: var(--bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

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

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* Header */
.header {
    background: var(--bg);
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Template Selection */
.template-selection h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.template-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.template-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.template-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.template-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.template-cta {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Form Builder */
.form-builder {
    animation: slideIn 0.3s ease-out;
}

.form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-right: 1rem;
    overflow: hidden;
}

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

.progress-text {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Form Fields */
.field-container {
    margin-bottom: 2rem;
}

.field-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.field-help {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--bg);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.error {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

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

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

.other-input {
    border-color: var(--accent) !important;
    background: var(--primary-light);
}

.other-input:focus {
    border-color: var(--primary) !important;
    background: var(--bg);
}

/* Clickable Options */
.clickable-options-container {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Educational Tips */
.educational-tip-container {
    margin: 1rem 0;
    padding: 0 1rem;
}

.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    position: relative;
    animation: fadeIn 0.5s ease;
    border-left: 3px solid;
}

.tip-content.tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 10%, #fef3c7 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.tip-content.quote {
    background: var(--bg-light);
    border-left-color: var(--text-light);
    color: var(--text-light);
    opacity: 0.8;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tip-text {
    flex: 1;
}

.tip-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.tip-message {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.9;
}

.tip-refresh {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.2s ease;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.tip-refresh:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

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

.form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.option-card.selected {
    border-color: var(--accent);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(140, 44, 140, 0.15);
}

.option-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-text {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.option-check {
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 1rem;
}

.option-card.selected .option-check {
    opacity: 1;
}

/* Multiple Selection Styles */
.multiple-selection {
    position: relative;
}

.multiple-selection-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 1px dashed var(--primary);
}

.multiple-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.multiple-option.selected .option-check {
    opacity: 1;
    color: var(--primary);
}

.custom-option {
    border-style: dashed;
    border-color: var(--text-light);
}

.custom-option:hover {
    border-style: solid;
    border-color: var(--primary);
}

.custom-option.selected {
    border-style: solid;
    border-color: var(--accent);
}

.custom-input {
    border-color: var(--accent) !important;
    background: var(--primary-light);
    font-style: italic;
}

.custom-input:focus {
    border-color: var(--primary) !important;
    background: var(--bg);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

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

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

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

.btn-success.success {
    background: var(--secondary);
}

/* Context Preview */
.context-preview {
    animation: slideIn 0.3s ease-out;
}

.context-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

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

.preview-header h2 {
    margin: 0;
}

.copy-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.preview-content {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.preview-content pre {
    white-space: pre-wrap;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Setup Guide */
.setup-guide {
    animation: slideIn 0.3s ease-out;
}

.setup-guide h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.platform-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

/* Platform Instructions */
.platform-instructions {
    margin-bottom: 2rem;
}

.instruction-steps h3 {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

.step-content a {
    color: var(--primary);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Download Section */
.download-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 2px solid var(--primary);
}

.download-section h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.download-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Feedback Section */
.feedback-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
}

.feedback-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feedback-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feedback-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.feedback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.feedback-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feedback-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.feedback-emoji {
    font-size: 1.5rem;
}

.feedback-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.feedback-follow-up {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feedback-follow-up textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
}

.feedback-thanks {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.rating-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.rating-btn {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.feedback-form {
    text-align: left;
}

.feedback-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    margin-bottom: 1rem;
    resize: vertical;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .header {
        padding: 1.5rem 1rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .template-card {
        padding: 1.5rem;
    }

    .template-icon {
        font-size: 2.5rem;
    }

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

    .btn {
        width: 100%;
    }

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

    .platform-tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        text-align: left;
    }

    .step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-number {
        align-self: flex-start;
    }

    .rating-buttons {
        flex-wrap: wrap;
    }

    .clickable-options-container {
        gap: 0.75rem;
    }

    .option-card {
        padding: 0.875rem 1rem;
    }

    .option-icon {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }

    .option-text {
        font-size: 0.9rem;
    }

    .option-description {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .app-container {
        box-shadow: none;
    }

    .form-navigation,
    .preview-actions,
    .download-section,
    .feedback-section {
        display: none;
    }
}

/* ========================================
   LANDING PAGE & DOCUMENTATION STYLES
   ======================================== */

/* Content Wrapper */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    margin-top: 2rem;
}

.ai-platforms {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-badge {
    background: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--text);
    border: 2px solid var(--primary-light);
}

/* Problem Solution Section */
.problem-solution {
    padding: 4rem 2rem;
    background: var(--bg);
}

.problem-block, .solution-block {
    margin-bottom: 3rem;
}

.problem-block h2, .solution-block h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.challenge-grid, .solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.challenge-item, .feature-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
}

.challenge-icon, .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.challenge-item h3, .feature-item h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

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

.step-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.step-item .step-number {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.step-item h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

/* Templates Preview */
.templates-preview {
    background: var(--bg);
    padding: 4rem 2rem;
}

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

.template-preview-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(140, 44, 140, 0.15);
}

.clickable-template {
    cursor: pointer;
    position: relative;
}

.clickable-template .template-cta {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.clickable-template:hover .template-cta {
    opacity: 1;
}

.template-preview-card .template-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.template-preview-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.template-features {
    list-style: none;
    margin-top: 1.5rem;
}

.template-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3,
.footer-brand .logo {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.link-group h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-group a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
}

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

/* Documentation Styles */
.docs-header {
    background: var(--primary-light);
    padding: 3rem 2rem;
    text-align: center;
}

.docs-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.docs-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.table-of-contents {
    background: var(--bg);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.table-of-contents h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary);
}

.docs-content {
    background: var(--bg);
    padding: 2rem;
}

.docs-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 2rem;
}

.docs-block {
    margin-bottom: 2rem;
}

.docs-block h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.docs-block h4 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.example-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.before, .after {
    padding: 1rem;
    border-radius: var(--radius);
}

.before {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

.after {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.process-step .step-number {
    margin-top: 0.25rem;
}

.time-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.time-duration {
    font-weight: 600;
    color: var(--primary);
}

.template-detailed {
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.template-detailed h3 {
    background: var(--primary-light);
    color: var(--primary);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.5rem;
}

.template-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.template-description,
.template-questions,
.template-outputs {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-guide {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.platform-guide h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.setup-steps ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.setup-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.practice-category {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.practice-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.troubleshooting-items,
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trouble-item,
.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.trouble-item h3,
.faq-item h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.solution {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.quick-actions {
    background: var(--primary-light);
    padding: 3rem 2rem;
    text-align: center;
}

.action-cta h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.action-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Mobile Responsive - Landing & Docs */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .challenge-grid,
    .solution-features,
    .steps-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

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

    .comparison,
    .template-info {
        grid-template-columns: 1fr;
    }

    .platform-grid,
    .best-practices-grid {
        grid-template-columns: 1fr;
    }

    .time-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Beta Badge Styling */
.beta-badge {
    display: inline-block;
    background: var(--beta-bg);
    color: var(--beta-text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: super;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Logo with beta badge container */
.logo-with-beta {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

/* Version Number Styling - Simple */.version-number {    font-size: 0.85em;    color: #6b7280;    font-weight: 400;}/* Footer Styling */.main-footer {    margin-top: 4rem;    padding: 2rem 0 1rem 0;    border-top: 1px solid #e5e7eb;    text-align: center;    color: #6b7280;    font-size: 0.875rem;}.main-footer .footer-brand {    font-weight: 600;    color: #374151;    margin-bottom: 0.5rem;}

.version-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

/* Responsive beta badge */
@media (max-width: 768px) {
    .beta-badge {
        font-size: 0.6rem;
    }

    .version-badge {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.3rem;
        border-radius: 8px;
        padding: 0.1rem 0.3rem;
        margin-left: 0.3rem;
    }
}