/* ===== Custom Orders Page Styles ===== */
/* Accent: Purple (#a78bfa / rgba(139, 92, 246)) */

/* ===== Section Shared Styles ===== */
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* ===== Hero Badge ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 32px;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
}

.hero-badge.pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

/* ===== Hero ===== */
.custom-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 160px 80px 100px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.custom-hero .hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.custom-hero .hero-content {
    flex: 1;
    z-index: 1;
}

.custom-hero .hero-visual {
    flex: 0 0 440px;
    z-index: 1;
}

/* ===== Project Brief Mockup ===== */
.project-brief {
    perspective: 1000px;
}

.brief-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(139, 92, 246, 0.08);
    animation: briefFloat 6s ease-in-out infinite;
    transform: rotateY(-2deg) rotateX(1deg);
}

@keyframes briefFloat {

    0%,
    100% {
        transform: rotateY(-2deg) rotateX(1deg) translateY(0);
    }

    50% {
        transform: rotateY(-2deg) rotateX(1deg) translateY(-10px);
    }
}

.brief-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.brief-dots {
    display: flex;
    gap: 6px;
}

.brief-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
}

.brief-dots span:first-child {
    background: #ef4444;
    opacity: 0.7;
}

.brief-dots span:nth-child(2) {
    background: #eab308;
    opacity: 0.7;
}

.brief-dots span:last-child {
    background: #22c55e;
    opacity: 0.7;
}

.brief-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.brief-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brief-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.brief-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.line-marker {
    color: #a78bfa;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.line-label {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 55px;
}

.line-value {
    color: var(--text-secondary);
    font-size: 13px;
}

.custom-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    color: #22c55e;
    font-weight: 600;
    font-size: 13px;
}

.brief-separator {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.brief-task {
    font-size: 14px;
    color: var(--text-secondary);
}

.task-check {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.task-check.done {
    color: #22c55e;
}

.task-check.active {
    color: #a78bfa;
    animation: pulse-check 2s ease-in-out infinite;
}

.task-check.pending {
    color: var(--text-muted);
    opacity: 0.4;
}

@keyframes pulse-check {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== Features Bento Grid ===== */
.features-showcase {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card, var(--bg-secondary));
    border: 1px solid var(--border-color, var(--border));
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition-normal, all 0.3s ease);
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, var(--bg-card, var(--bg-secondary)) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.bento-card.bento-large {
    grid-column: span 2;
}

.bento-card.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: #a78bfa;
}

.bento-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.3));
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-visual {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-action {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm, 6px);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Code Snippet Visual ===== */
.code-snippet {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
}

.code-comment {
    color: var(--text-muted);
    opacity: 0.6;
}

.code-keyword {
    color: #c084fc;
}

.code-func {
    color: #38bdf8;
}

.code-line {
    color: var(--text-secondary);
}

/* ===== Process Section ===== */
.process-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.process-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.process-card {
    flex: 1;
    max-width: 320px;
    padding: 40px 30px;
    background: var(--bg-card, var(--bg-secondary));
    border: 1px solid var(--border-color, var(--border));
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.process-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 10px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.process-icon svg {
    width: 28px;
    height: 28px;
    color: #a78bfa;
}

.process-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-connector {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-connector svg {
    width: 24px;
    height: 24px;
    color: #a78bfa;
    opacity: 0.5;
}

/* ===== Use Cases ===== */
.usecases-section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.usecase-card {
    background: var(--bg-card, var(--bg-secondary));
    border: 1px solid var(--border-color, var(--border));
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.3s ease;
}

.usecase-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.usecase-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.usecase-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.usecase-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card, var(--bg-secondary));
    border: 1px solid var(--border-color, var(--border));
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: #a78bfa;
}

.faq-item summary:hover {
    color: #a78bfa;
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Accent Override for Buttons ===== */
.custom-hero .btn-primary.btn-glow {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.custom-hero .btn-primary.btn-glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .custom-hero {
        flex-direction: column;
        padding: 140px 40px 80px;
        text-align: center;
    }

    .custom-hero .hero-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 440px;
    }

    .custom-hero .hero-features {
        justify-content: center;
    }

    .custom-hero .hero-cta {
        justify-content: center;
    }

    .process-grid {
        flex-direction: column;
        gap: 30px;
    }

    .process-connector {
        transform: rotate(90deg);
    }

    .process-card {
        max-width: 400px;
        width: 100%;
    }

    .features-bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento-card.bento-large,
    .bento-card.bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .custom-hero {
        padding: 120px 20px 60px;
    }

    .custom-hero .hero-visual {
        max-width: 100%;
    }

    .brief-body {
        padding: 16px;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        padding: 30px 20px;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-card.bento-large,
    .bento-card.bento-wide {
        grid-column: span 1;
    }
}