/* ========================================
   Citio Landing Page Styles
   ======================================== */

/* Landing Page Specific Styles */
.demo-dashboard {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(31, 41, 55, 0.8);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.demo-dot.red { background: #ef4444; }
.demo-dot.yellow { background: #eab308; }
.demo-dot.green { background: #22c55e; }

.demo-url {
    margin-left: auto;
    font-size: 12px;
    color: #6b7280;
}

.demo-body {
    padding: 24px;
}

.demo-query-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.demo-query-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.demo-query-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-query-text svg {
    color: #ef4444;
}

.demo-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.demo-stat {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.demo-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.demo-stat-value.highlight {
    color: #ef4444;
}

.demo-stat-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.demo-chart-container {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.demo-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.demo-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.demo-chart-period {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(75, 85, 99, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.demo-chart-wrapper {
    height: 180px;
    position: relative;
}

.demo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.demo-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d1d5db;
}

.demo-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.demo-brands-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-brand-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #d1d5db;
}

.demo-brand-tag .count {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* AI Provider Logos */
.ai-providers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    opacity: 0.7;
}

.ai-provider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-weight: 500;
    font-size: 15px;
}

.ai-provider svg {
    width: 28px;
    height: 28px;
}

/* How It Works - Timeline Journey */
.how-it-works-section {
    padding: 100px 0 80px;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.how-it-works-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    background: rgba(239, 68, 68, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Journey Timeline */
.journey-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Connecting line down the center */
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.5));
}

/* Individual step */
.journey-step {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

.journey-step:not(:last-child) {
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

/* Step number */
.journey-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(17, 24, 39, 0.95);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
    color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
    position: relative;
    z-index: 1;
}

.journey-number.final span {
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

/* Step content */
.journey-content {
    text-align: left;
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.journey-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.journey-icon svg {
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.journey-icon.final {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.journey-icon.final svg {
    color: #22c55e;
}

.journey-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.journey-content > p {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 500px;
}

/* Feature tags */
.journey-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journey-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.journey-features span svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

/* Visual card */
.journey-visual {
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    width: 240px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.visual-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.visual-card.final {
    border-color: rgba(34, 197, 94, 0.3);
}

.visual-card.final:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Visual card inner elements */
.visual-providers {
    display: flex;
    gap: 8px;
}

.provider-dot {
    font-size: 11px;
    font-weight: 600;
    color: var(--color);
    background: color-mix(in srgb, var(--color) 15%, transparent);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--color) 30%, transparent);
}

.visual-stat {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.stat-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-big svg {
    color: #22c55e;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Citations visual */
.visual-citations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.citation-item {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(31, 41, 55, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.citation-item.highlight {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Generate visual */
.visual-generate {
    padding: 12px 0;
}

.generate-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.generate-arrow .from {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(31, 41, 55, 0.8);
    padding: 8px 14px;
    border-radius: 6px;
}

.generate-arrow svg {
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.generate-arrow .to {
    font-size: 12px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 8px 14px;
    border-radius: 6px;
}

/* Growth visual */
.visual-growth {
    padding: 8px 0;
}

.growth-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 60px;
}

.growth-bars .bar {
    width: 24px;
    height: var(--height);
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.growth-bars .bar:last-child {
    background: linear-gradient(180deg, #22c55e, #15803d);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Calendar visual */
.visual-calendar {
    padding: 8px 0;
}

.calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 200px;
    margin: 0 auto;
}

.cal-day {
    aspect-ratio: 1;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.cal-day.filled {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Journey CTA */
.journey-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
}

.journey-cta .btn {
    font-size: 16px;
    padding: 16px 32px;
}

.cta-subtext {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
}

/* Responsive - Timeline */
@media (max-width: 1024px) {
    .journey-timeline::before {
        left: 60px;
    }

    .journey-step {
        grid-template-columns: 140px 1fr 220px;
        gap: 24px;
    }

    .journey-number span {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }

    .journey-content h3 {
        font-size: 18px;
    }

    .visual-card {
        width: 200px;
        padding: 18px;
    }
}

@media (max-width: 900px) {
    .journey-timeline::before {
        display: none;
    }

    .journey-step {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 32px 0;
    }

    .journey-number {
        order: 1;
    }

    .journey-number span {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .journey-content {
        order: 2;
    }

    .journey-visual {
        order: 3;
        justify-content: center;
    }

    .visual-card {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .how-it-works-section {
        padding: 60px 0 40px;
    }

    .how-it-works-section .section-header {
        margin-bottom: 40px;
    }

    .section-label {
        font-size: 11px;
        padding: 6px 12px;
    }

    .journey-step {
        padding: 24px 0;
        gap: 16px;
    }

    .journey-number span {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .journey-header {
        gap: 0;
    }

    /* Hide icons on mobile */
    .journey-icon {
        display: none;
    }

    /* Hide visual cards on mobile */
    .journey-visual {
        display: none;
    }

    .journey-content h3 {
        font-size: clamp(16px, 3vw, 17px);
    }

    .journey-content > p {
        font-size: clamp(13px, 2vw, 14px);
        line-height: 1.6;
    }

    .journey-features {
        flex-wrap: wrap;
        gap: 8px;
    }

    .journey-features span {
        font-size: 12px;
        padding: 5px 10px;
    }

    .journey-features span svg {
        width: 12px;
        height: 12px;
    }

    .journey-cta {
        margin-top: 40px;
        padding-top: 24px;
    }

    .journey-cta .btn {
        font-size: 14px;
        padding: 14px 24px;
        width: 100%;
        max-width: 320px;
    }

    .cta-subtext {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .journey-features span {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Integrations Section */
.integrations-section {
    padding: 80px 0;
    background: rgba(17, 24, 39, 0.3);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.integration-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.integration-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.integration-card.coming-soon {
    opacity: 0.6;
}

.integration-card svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
}

.integration-card .name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.integration-card .status {
    font-size: 11px;
    color: #22c55e;
    margin-top: 4px;
}

.integration-card.coming-soon .status {
    color: #9ca3af;
}

/* How It Works - Updated */
.workflow-section {
    padding: 100px 0;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, transparent);
}

.workflow-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
}

.workflow-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-step::after {
        display: none;
    }
}

/* Audience Section */
.audience-section {
    padding: 100px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.audience-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.audience-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-4px);
}

.audience-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 12px;
}

.audience-card p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.faq-item:first-child {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-trigger:hover .faq-question {
    color: #ef4444;
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: #ef4444;
    transition: all 0.3s ease;
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

.faq-icon-vertical {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-icon {
    background: rgba(239, 68, 68, 0.2);
}

.faq-item.active .faq-icon-vertical {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
    padding-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .demo-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    .ai-providers {
        flex-wrap: wrap;
        gap: 20px;
    }
    .problem-section,
    .audience-section,
    .faq-section {
        padding: 60px 0;
    }
    .faq-question {
        font-size: 15px;
    }
    .faq-answer p {
        font-size: 14px;
    }
}
