/* ============================================================
   tech-page.css — 기술 페이지 고유 스타일
   ============================================================ */

/* ── Hero Background ── */
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(139, 111, 71, .06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 111, 71, .04) 0%, transparent 50%);
    pointer-events: none
}

/* ── System Architecture ── */
.arch-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 56px 0
}

.arch-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 28px;
    border: 1px solid rgba(139, 111, 71, .06);
    text-align: center;
    transition: all .4s var(--ease);
    position: relative
}

.arch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(139, 111, 71, .08);
    border-color: rgba(139, 111, 71, .15)
}

.arch-card .arch-num {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--ac), #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px
}

.arch-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px
}

.arch-card p {
    font-size: 14px;
    color: var(--tx2);
    line-height: 1.7
}

/* ── System Flow ── */
.flow-diagram {
    margin: 56px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap
}

.flow-node {
    padding: 20px 28px;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s var(--ease)
}

.flow-node:hover {
    transform: scale(1.05)
}

.flow-node.data {
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 111, 71, .2)
}

.flow-node.process {
    background: #fff;
    border: 2px solid rgba(139, 111, 71, .15);
    color: var(--tx)
}

.flow-node.auto {
    background: var(--tx);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15)
}

.flow-node .f-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px
}

.flow-node .f-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
    margin-top: 4px;
    display: block
}

.flow-arrow {
    font-size: 20px;
    color: var(--ac);
    padding: 0 12px;
    font-weight: 300
}

/* ── Automation Cases ── */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 56px 0
}

.auto-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid rgba(139, 111, 71, .06);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden
}

.auto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ac), var(--ac2));
    opacity: 0;
    transition: opacity .3s
}

.auto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(139, 111, 71, .06);
    border-color: rgba(139, 111, 71, .15)
}

.auto-card:hover::before {
    opacity: 1
}

.auto-card .auto-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ac);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: .05em;
    margin-bottom: 16px
}

.auto-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px
}

.auto-card p {
    font-size: 14px;
    color: var(--tx2);
    line-height: 1.8
}

.auto-card .auto-result {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(74, 222, 128, .08);
    border-radius: 10px;
    font-size: 13px;
    color: #2d7a4f;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

.auto-card .auto-result::before {
    content: '✓';
    font-weight: 800;
    font-size: 14px
}

/* ── AI Usage ── */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 56px 0
}

.ai-card {
    background: var(--tx);
    border-radius: var(--radius);
    padding: 36px 28px;
    color: #fff;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden
}

.ai-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(139, 111, 71, .2) 0%, transparent 60%);
    pointer-events: none
}

.ai-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .2)
}

.ai-card .ai-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
    position: relative
}

.ai-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative
}

.ai-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
    position: relative
}

.ai-card .ai-tools {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative
}

.ai-card .ai-tools span {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .7)
}

/* ── Tech Stack ── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 56px 0
}

.stack-item {
    background: #fff;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(139, 111, 71, .06);
    transition: all .3s var(--ease)
}

.stack-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 111, 71, .06);
    border-color: rgba(139, 111, 71, .12)
}

.stack-item .s-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--ac-light)
}

.stack-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px
}

.stack-item p {
    font-size: 12px;
    color: var(--tx3);
    line-height: 1.5
}

.stack-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--ac);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ac-light)
}

.stack-category:first-of-type {
    margin-top: 0
}

/* ── Video Block ── */
.video-block {
    position: relative;
    margin: 72px 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0a0908
}

.video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.video-block .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 23, 20, .6) 100%);
    pointer-events: none
}

.video-block .video-label {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    gap: 8px
}

.video-block .video-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, .5);
    animation: pulse-green 2s ease-in-out infinite
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .arch-overview {
        grid-template-columns: 1fr
    }

    .auto-grid {
        grid-template-columns: 1fr
    }

    .ai-grid {
        grid-template-columns: 1fr
    }

    .stack-grid {
        grid-template-columns: 1fr 1fr
    }

    .flow-diagram {
        flex-direction: column
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 8px 0
    }
}

@media (max-width: 600px) {
    .stack-grid {
        grid-template-columns: 1fr 1fr
    }
}