/* ============================================
   Akuma Media — Use Case Subpage Styles
   Matches main page design language
   ============================================ */

/* === Hero Section === */
.uc-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

/* Minimal grid effect (matching main page .hero-bg-grid) */
.uc-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

/* Gradient orbs (matching main page) */
.uc-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.uc-hero-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 107, 53, 0.08);
    top: -200px;
    right: -200px;
    animation: ucOrbFloat 8s ease-in-out infinite;
}

.uc-hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(167, 139, 250, 0.08);
    bottom: -100px;
    left: -100px;
    animation: ucOrbFloat 10s ease-in-out infinite reverse;
}

@keyframes ucOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.uc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.uc-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: ucPulse 2s ease-in-out infinite;
}

@keyframes ucPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.uc-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.uc-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 24px;
}

.uc-hero h1 .highlight {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.uc-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Workflow Window === */
.uc-workflow-window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 32px rgba(0,0,0,0.06),
        0 24px 60px rgba(0,0,0,0.04);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.uc-workflow-window:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 12px 40px rgba(0,0,0,0.08),
        0 32px 80px rgba(0,0,0,0.06);
}

.uc-wf-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.uc-wf-dots {
    display: flex;
    gap: 6px;
}

.uc-wf-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.uc-wf-dots span:nth-child(1) { background: #FF5F57; }
.uc-wf-dots span:nth-child(2) { background: #FFBD2E; }
.uc-wf-dots span:nth-child(3) { background: #28CA41; }

.uc-wf-title {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.uc-wf-canvas {
    position: relative;
    background: var(--white);
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 48px 32px;
    min-height: 320px;
    overflow: hidden;
}

.uc-wf-canvas-tall {
    min-height: 420px;
}

/* === Shared Workflow Node Styles === */
.uc-wf-layout {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.uc-wf-layout-tall {
    height: 320px;
}

.uc-node {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
    z-index: 2;
}

.uc-node:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.uc-node svg {
    width: 24px;
    height: 24px;
}

.uc-node::after {
    content: attr(data-label);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Diamond shape for IF/decision nodes */
.uc-node-diamond {
    border-radius: 4px;
    transform: rotate(45deg);
    width: 48px;
    height: 48px;
}

.uc-node-diamond svg {
    transform: rotate(-45deg);
    width: 20px;
    height: 20px;
}

.uc-node-diamond::after {
    transform: rotate(-45deg) translateX(-50%);
    bottom: -30px;
    left: 70%;
}

.uc-node-diamond:hover {
    transform: rotate(45deg) scale(1.1);
}

/* Node color variants */
.uc-node-orange { border-color: var(--accent); }
.uc-node-orange svg { color: var(--accent); }
.uc-node-purple { border-color: var(--purple); }
.uc-node-purple svg { color: var(--purple); }
.uc-node-green { border-color: var(--green); }
.uc-node-green svg { color: var(--green); }
.uc-node-blue { border-color: var(--blue); }
.uc-node-blue svg { color: var(--blue); }
.uc-node-red { border-color: #F87171; }
.uc-node-red svg { color: #F87171; }

/* Node label element (alternative to ::after) */
.uc-node-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Connector SVG layer */
.uc-connectors {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.uc-connectors svg {
    width: 100%;
    height: 100%;
}

.uc-connectors line,
.uc-connectors path {
    fill: none;
    stroke: var(--gray-300);
    stroke-width: 2;
}

.uc-connector-dashed {
    stroke-dasharray: 6 4;
}

/* Animated pulse dots */
.uc-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.uc-pulse-orange {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.uc-pulse-purple {
    background: var(--purple);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.uc-pulse-green {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.uc-pulse-blue {
    background: var(--blue);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.uc-pulse-red {
    background: #F87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

/* Branch labels in workflow */
.uc-branch-label {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 4;
}

/* === Content Sections === */
.uc-section {
    padding: 100px 0;
    position: relative;
}

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

.uc-section-alt {
    background: var(--gray-50);
}

.uc-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.uc-section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* Section tag pills (colored) */
.uc-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.uc-tag-problem { background: rgba(248,113,113,0.1); color: #EF4444; }
.uc-tag-solution { background: rgba(52,211,153,0.1); color: var(--green); }
.uc-tag-results { background: rgba(96,165,250,0.1); color: var(--blue); }
.uc-tag-integrations { background: rgba(167,139,250,0.1); color: var(--purple); }

.uc-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.uc-section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 48px;
}

/* === Problem Cards === */
.uc-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.uc-problem-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.uc-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.uc-problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(248,113,113,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.uc-problem-icon svg {
    width: 24px;
    height: 24px;
    color: #EF4444;
}

.uc-problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.uc-problem-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* === Solution Steps === */
.uc-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
}

.uc-step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: padding-left 0.3s var(--ease-out-expo);
}

.uc-step:last-child {
    border-bottom: none;
}

.uc-step:hover {
    padding-left: 8px;
}

.uc-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.uc-step-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}

.uc-step-content p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.uc-step-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.uc-step-tools {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.uc-step-tool {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
}

/* === Stats/Results Grid === */
.uc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.uc-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.uc-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.uc-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.uc-stat-label {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.uc-stat-detail {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* === FAQ Section === */
.uc-faq-list {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uc-faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.uc-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.uc-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.uc-faq-question:hover {
    color: var(--accent);
}

.uc-faq-chevron {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.uc-faq-item.open .uc-faq-chevron {
    transform: rotate(180deg);
}

.uc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}

.uc-faq-item.open .uc-faq-answer {
    max-height: 400px;
}

.uc-faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === CTA Section === */
.uc-cta {
    padding: 100px 0;
    background: var(--gray-50);
}

.uc-cta-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 72px 48px;
    background: var(--black);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}

.uc-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.uc-cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.uc-cta-card p {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.uc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.uc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
    background: var(--accent-dark);
}

.uc-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* === Related Use Cases === */
.uc-related {
    padding: 80px 0;
}

.uc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.uc-related-card {
    display: block;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.uc-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.uc-related-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.uc-related-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.3;
}

.uc-related-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.uc-related-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.uc-related-card:hover .uc-related-arrow {
    gap: 10px;
}

/* === Scroll Reveal === */
.uc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.uc-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.uc-reveal[data-delay="1"] { transition-delay: 0.1s; }
.uc-reveal[data-delay="2"] { transition-delay: 0.2s; }
.uc-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* === Grid Background for Sections === */
.uc-grid-bg {
    position: relative;
}

.uc-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.uc-grid-bg > * {
    position: relative;
    z-index: 1;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .uc-problem-grid,
    .uc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .uc-hero {
        padding: 120px 24px 60px;
        min-height: auto;
    }

    .uc-hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .uc-wf-canvas {
        padding: 32px 16px;
        overflow-x: auto;
    }

    .uc-wf-layout {
        min-width: 860px;
    }

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

    .uc-step {
        flex-direction: column;
        gap: 12px;
    }

    .uc-related-grid {
        grid-template-columns: 1fr;
    }

    .uc-cta-card {
        padding: 48px 24px;
    }

    .uc-section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .uc-hero {
        padding: 110px 16px 40px;
    }

    .uc-cta-card {
        padding: 40px 20px;
    }
}
