/* ============================================
   Cue - Home Page CSS
   ============================================ */

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

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

/* Brief Preview Card */
.brief-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.brief-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-match {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

.brief-preview h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.preview-client {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.preview-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.preview-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.preview-step i {
    font-size: 18px;
}

.preview-step.done {
    color: var(--success);
}

.preview-step.done i {
    color: var(--success);
}

.preview-step.current {
    color: var(--text-primary);
    font-weight: 600;
}

.preview-step.current i {
    color: var(--accent);
}

.preview-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.preview-btn:hover {
    background: var(--primary-hover);
}

/* ===== Problem/Solution ===== */
.problem-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.problem-card,
.solution-card {
    padding: 32px;
    border-radius: var(--radius-xl);
}

.problem-card {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.solution-card {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
}

.problem-card h3,
.solution-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-card h3 {
    color: #DC2626;
}

.solution-card h3 {
    color: #059669;
}

.problem-card ul,
.solution-card ul {
    list-style: none;
}

.problem-card li,
.solution-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.problem-card li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #DC2626;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: white;
}

.section-header.light h2 {
    color: white;
}

.section-header.light p {
    color: rgba(255,255,255,0.7);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header.light .section-label {
    color: var(--accent-light);
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== How it Works ===== */
.how-section {
    padding: 100px 24px;
}

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

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

.how-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.how-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.how-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Task Types ===== */
.types-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

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

.type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.type-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.type-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 20px;
}

.type-icon.debug {
    color: #06B6D4;
}

.type-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.type-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.type-examples {
    list-style: none;
    margin-bottom: 20px;
}

.type-examples li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    padding-left: 16px;
    position: relative;
}

.type-examples li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.type-examples li:last-child {
    border-bottom: none;
}

.type-badge {
    padding: 10px 12px;
    background: #ECFEFF;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: #06B6D4;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Debug Section ===== */
.debug-section {
    padding: 100px 24px;
}

.debug-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.debug-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.debug-text > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.debug-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.debug-feature {
    display: flex;
    gap: 16px;
}

.debug-feature > i {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.debug-feature h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.debug-feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Chat Preview */
.chat-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: var(--accent);
}

.chat-bubble {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 300px;
}

.chat-message.user .chat-bubble {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.chat-bubble p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-bubble code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.chat-message.user .chat-bubble code {
    background: rgba(255,255,255,0.2);
}

/* ===== Business Section ===== */
.business-section {
    padding: 100px 24px;
    background: var(--primary);
    text-align: center;
}

.api-preview {
    max-width: 600px;
    margin: 0 auto 40px;
}

.api-code {
    background: #1E293B;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
}

.api-header {
    padding: 12px 16px;
    background: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-method {
    padding: 4px 8px;
    background: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.api-header span:last-child {
    font-family: monospace;
    font-size: 13px;
    color: #94A3B8;
}

.api-code pre {
    padding: 16px;
    font-family: monospace;
    font-size: 13px;
    color: #A5F3FC;
    line-height: 1.5;
    margin: 0;
    overflow-x: auto;
}

.business-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.biz-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.biz-feature i {
    color: var(--accent-light);
}

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

.btn-white:hover {
    background: #F3F4F6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 24px;
    text-align: center;
    background: var(--bg-secondary);
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 24px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.15s;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .types-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .debug-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle br {
        display: none;
    }

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

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

    .section-header h2 {
        font-size: 28px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .business-features {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
