/* Feature: AI Writing Page Styles */

.page-feature-ai-writing {
    --color-brand: #229ebd;
    --color-main: #333333;
    --color-base: #F9F9F9;
    --color-accent: #EE4B2B;
    --color-text: #333333;
    --color-bg-light: #f0f4f8;
}

/* Hero Section */
.page-feature-ai-writing .hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.page-feature-ai-writing .hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-feature-ai-writing .hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.page-feature-ai-writing .hero-tag {
    display: inline-block;
    background-color: rgba(34, 158, 189, 0.1);
    color: var(--color-brand);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.page-feature-ai-writing .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-main);
    letter-spacing: -0.02em;
}

.page-feature-ai-writing .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 32px;
}

.page-feature-ai-writing .hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-feature-ai-writing .hero-mockup-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    position: relative;
}

/* Typing Animation Mockup */
.typing-animation {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-brand);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.mock-document .mock-line {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.mock-document .mock-line.title {
    height: 20px;
    width: 70%;
    background-color: #e0e0e0;
    margin-bottom: 24px;
}

.mock-document .mock-line.short {
    width: 60%;
}


/* Intro Section */
.intro-section {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.intro-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-title-sm {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-main);
    position: relative;
    padding-left: 16px;
}

.section-title-sm::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background-color: var(--color-brand);
    border-radius: 2px;
}

.problem-list {
    list-style: none;
    padding: 0;
}

.problem-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.problem-list li .cross {
    color: #999;
    font-weight: bold;
}

/* Feature Detail Sections */
.feature-detail-section {
    padding: 100px 0;
    overflow: hidden;
}

.feature-detail-section:nth-child(even) {
    background-color: var(--color-bg-light);
}

.feature-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-label {
    display: inline-block;
    color: var(--color-brand);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--color-main);
}

.feature-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mock UI for Features */
.mock-ui {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border: 1px solid #eee;
}

.feature-ui-1 .input-bar {
    height: 48px;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #999;
    margin-bottom: 16px;
    font-family: inherit;
}

.feature-ui-1 .generate-btn {
    height: 48px;
    background-color: var(--color-brand);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 158, 189, 0.3);
}

/* Planning Editor Mock UI */
.feature-ui-2.planning-editor {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.editor-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.editor-title {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
    font-weight: 600;
    cursor: default;
}

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

.editor-body {
    padding: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 6px;
}

.input-fake {
    background-color: #f5f7f9;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #333;
}

/* Outline Items in Editor */
.outline-container {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px;
    background-color: #fafbfc;
}

.outline-item {
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.outline-item:last-child {
    margin-bottom: 0;
}

.outline-item::before {
    content: '::';
    color: #ccc;
    margin-right: 10px;
    font-size: 0.8rem;
}

.outline-item.add-new {
    border: 1px dashed #ccc;
    background: transparent;
    color: #999;
    justify-content: center;
    cursor: default;
}

.outline-item.add-new::before {
    display: none;
}


/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: #fff;
}

.benefits-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-main);
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Case Study Section (MyVision) */
.case-study-feature-section {
    padding: 100px 0;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    /* Example dark gradient */
    color: white;
}

.case-study-feature-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-study-hero {
    display: flex;
    align-items: center;
    gap: 60px;
}

.case-study-content {
    flex: 1;
}

.case-label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #fff;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.case-company {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    border-left: 3px solid var(--color-accent);
    padding-left: 12px;
}

.case-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.metric-box.highlight {
    background: var(--color-accent);
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.case-voice {
    font-style: italic;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 24px;
}

.text-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.text-link:hover {
    opacity: 0.7;
}

.case-study-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Simple Bar Graph CSS */
.graph-placeholder {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.graph-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 160px;
}

.bar {
    width: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.bar::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.bar-before {
    height: 50%;
}

.bar-before::after {
    content: 'Before';
    font-size: 0.7rem;
    opacity: 0.7;
}

.bar-after {
    height: 100%;
    background: var(--color-accent);
}

.bar-after::after {
    content: '2x';
}

.graph-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Use Cases Section */
.use-cases-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.use-cases-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.use-case-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.use-case-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-main);
}

.use-case-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Note Section */
.note-section {
    padding: 40px 0;
    background-color: #fff;
}

.note-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.note-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f57f17;
    margin-bottom: 8px;
}

.note-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-feature-ai-writing .hero-title {
        font-size: 2.2rem;
    }

    .page-feature-ai-writing .hero-section .container,
    .intro-grid,
    .feature-block,
    .benefits-grid,
    .case-study-hero,
    .use-cases-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .page-feature-ai-writing .hero-content {
        margin-bottom: 40px;
    }

    .feature-block.reverse {
        flex-direction: column;
    }

    .hero-mockup-wrapper {
        margin: 0 auto;
    }

    .graph-placeholder {
        margin: 0 auto;
    }

    .case-company {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--color-accent);
        padding-bottom: 10px;
        display: inline-block;
    }

    .case-metrics {
        justify-content: center;
    }
}

/* Footer CTA Section */
.footer-cta {
    padding: 100px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.footer-cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-cta .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--color-main);
}

.footer-cta .text-muted {
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    padding: 0 40px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-brand);
    color: white;
    box-shadow: 0 10px 20px rgba(34, 158, 189, 0.3);
    border: 2px solid var(--color-brand);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 158, 189, 0.4);
    background-color: #1a8ca8;
    border-color: #1a8ca8;
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--color-brand);
    color: white;
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-12 {
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-cta .section-title {
        font-size: 1.8rem;
    }
}