/* Purpose: 제품 소개 페이지(includes/product_page.php) 전용 — 히어로 · 기능 · 흐름 · 사양 · 자료 · 연계 제품. 공통 머리 · 바닥은 history.css */

.pp-hero {
    padding: 8.5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.pp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(0, 102, 255, 0.16) 0%, transparent 65%);
    pointer-events: none;
}

.pp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    word-break: keep-all;
}

.pp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.2rem;
}

.pp-back:hover {
    color: var(--accent-cyan);
}

.pp-hero-text .page-badge {
    display: table;
    margin-bottom: 1.1rem;
}

.pp-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pp-model {
    margin: -0.4rem 0 1rem;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.pp-tagline {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pp-lead {
    color: #C5D0DE;
    font-size: 1rem;
    line-height: 1.8;
}

.pp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-1);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.35);
}

.pp-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.pp-btn-ghost:hover {
    border-color: var(--accent-cyan);
    box-shadow: none;
}

.pp-hero-media,
.pp-gallery figure {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pp-hero-media img,
.pp-gallery img {
    display: block;
    width: 100%;
}

.pp-hero-media.pp-cover img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pp-hero-media.pp-contain img {
    aspect-ratio: 16 / 11;
    object-fit: contain;
    padding: 1.5rem;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
}

.pp-hero-media figcaption,
.pp-gallery figcaption {
    color: var(--text-gray);
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    word-break: keep-all;
}

.pp-head {
    margin-bottom: 1.8rem;
}

.pp-eyebrow {
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
}

.pp-head h2 {
    font-size: 1.9rem;
    font-weight: 700;
}

.pp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.pp-features.pp-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-feature,
.pp-app {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pp-feature:hover,
.pp-app:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.pp-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gradient-2);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.pp-feature h3,
.pp-app h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pp-feature p,
.pp-app p {
    color: #AEBBCB;
    font-size: 0.92rem;
    line-height: 1.7;
}

.pp-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    counter-reset: none;
}

.pp-flow li {
    position: relative;
    background: linear-gradient(165deg, rgba(26, 35, 50, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.4rem 1.3rem;
}

.pp-flow li:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    z-index: 1;
}

.pp-step {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-1);
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.pp-flow h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.pp-flow p {
    color: #AEBBCB;
    font-size: 0.88rem;
    line-height: 1.65;
}

.pp-legend {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
}

.pp-legend h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.pp-legend ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin-bottom: 0.7rem;
}

.pp-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.pp-legend i {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.pp-legend i.pp-ring {
    border-radius: 50%;
    border: 3px solid #3DFF7A;
    background: transparent;
}

.pp-legend p {
    color: var(--text-gray);
    font-size: 0.84rem;
}

.pp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 4장이면 3+1 로 남지 않게 2열 */
.pp-gallery.pp-gallery-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-gallery figure.pp-contain img {
    max-height: 420px;
    object-fit: contain;
    padding: 1.2rem;
}

/* 「실제 화면」 슬라이드쇼 — 장들을 grid 한 칸에 겹쳐 높이는 가장 긴 설명에 맞춘다 */
.pp-slides {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    outline: none;
}

.pp-slide-track {
    display: grid;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pp-slides:focus-visible .pp-slide-track {
    border-color: var(--accent-cyan);
}

.pp-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.pp-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

.pp-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #05080F;
}

.pp-slide figcaption {
    padding: 0.9rem 1.2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-slide figcaption strong {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
}

.pp-slide figcaption span {
    color: #AEBBCB;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* margin-top 퍼센트는 폭 기준 — 16:9 그림의 세로 가운데(9/32) */
.pp-slide-nav {
    position: absolute;
    top: 0;
    margin-top: 28.125%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 14, 26, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pp-slide-nav:hover,
.pp-slide-nav:focus-visible {
    background: rgba(0, 102, 255, 0.85);
    border-color: var(--accent-cyan);
    outline: none;
}

.pp-slide-prev {
    left: 14px;
}

.pp-slide-next {
    right: 14px;
}

.pp-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pp-dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.pp-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
}

.pp-dot.is-active {
    width: 28px;
    background: var(--accent-cyan);
}

.pp-dot:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.pp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .pp-slide,
    .pp-slide.is-active {
        transition: none;
    }
}

.pp-specs {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.pp-specs div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.pp-specs div:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-specs dt {
    background: rgba(0, 102, 255, 0.08);
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.95rem 1.2rem;
}

.pp-specs dd {
    color: #D5DEEA;
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0.95rem 1.2rem;
}

.pp-note {
    color: var(--text-gray);
    font-size: 0.82rem;
    margin-top: 0.8rem;
}

.pp-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.pp-app {
    border-left: 3px solid var(--accent-cyan);
}

.pp-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.pp-doc {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-white);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pp-doc:hover {
    border-color: rgba(0, 212, 255, 0.45);
    transform: translateY(-3px);
}

.pp-doc img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
    background: #fff;
}

.pp-doc-label {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}

.pp-doc-label i {
    color: var(--accent-cyan);
    margin-right: 0.25rem;
}

.pp-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
}

.pp-rel {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-white);
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.pp-rel:hover {
    border-color: var(--accent-cyan);
}

.pp-rel > i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    width: 1.6rem;
    text-align: center;
}

.pp-rel strong {
    display: block;
    font-size: 0.98rem;
}

.pp-rel small {
    display: block;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.pp-final {
    text-align: center;
    padding-bottom: 6rem;
}

.pp-final h2 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.pp-final p {
    color: var(--text-gray);
    margin-bottom: 1.6rem;
}

@media (max-width: 1100px) {
    .pp-features.pp-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .pp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pp-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-hero h1 {
        font-size: 2.2rem;
    }

    .pp-flow li::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .pp-hero {
        padding-top: 7rem;
    }

    .pp-features,
    .pp-features.pp-four,
    .pp-gallery.pp-gallery-two {
        grid-template-columns: 1fr;
    }

    .pp-slide-nav {
        width: 36px;
        height: 36px;
    }

    .pp-slide-prev {
        left: 8px;
    }

    .pp-slide-next {
        right: 8px;
    }

    .pp-specs div {
        grid-template-columns: 1fr;
    }

    .pp-specs dt {
        padding-bottom: 0.4rem;
    }

    .pp-specs dd {
        padding-top: 0.4rem;
    }
}
