/* 기습 랜딩 — 다크 단일 테마. 브랜드 색은 앱 아이콘의 딥 인디고/시안 계열을 따른다. */
:root {
    --bg: #06060a;
    --bg-soft: #0b0b12;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --fg: #f4f4f7;
    --fg-dim: #c9c9d6;
    --fg-faint: #a8a8ba;
    --accent: #7c8cff;
    --accent-2: #43e0d0;
    --accent-3: #b98cff;
    --radius: 20px;
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family:
        "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: -0.017em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    /* HTML width/height 속성이 CSS 폭과 싸우지 않게 한다.
       빠뜨리면 object-fit이 속성 height를 기준으로 크게 확대한다. */
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- 배경: 오라 그라디언트 + 그레인 ---------- */
.aura {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.aura span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}

.aura .a1 {
    width: 46vw;
    height: 46vw;
    min-width: 340px;
    min-height: 340px;
    top: -14vw;
    left: -8vw;
    background: radial-gradient(circle, #4a55d6, transparent 68%);
    animation: drift1 26s var(--ease) infinite alternate;
}

.aura .a2 {
    width: 40vw;
    height: 40vw;
    min-width: 300px;
    min-height: 300px;
    top: 18vh;
    right: -12vw;
    background: radial-gradient(circle, #14867d, transparent 68%);
    animation: drift2 32s var(--ease) infinite alternate;
}

.aura .a3 {
    width: 44vw;
    height: 44vw;
    min-width: 320px;
    min-height: 320px;
    bottom: -18vw;
    left: 24vw;
    background: radial-gradient(circle, #6b3fb0, transparent 70%);
    animation: drift3 38s var(--ease) infinite alternate;
}

@keyframes drift1 {
    to {
        transform: translate3d(9vw, 7vh, 0) scale(1.16);
    }
}

@keyframes drift2 {
    to {
        transform: translate3d(-11vw, 10vh, 0) scale(1.1);
    }
}

@keyframes drift3 {
    to {
        transform: translate3d(7vw, -9vh, 0) scale(1.2);
    }
}

/* 미세한 노이즈로 그라디언트 밴딩을 덮는다 */
.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 레이아웃 ---------- */
.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 84px 0;
}

.eyebrow {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 18px;
}

h1,
h2,
h3 {
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin: 0;
    font-weight: 800;
    text-wrap: balance;
}

h2 {
    font-size: clamp(30px, 4.6vw, 50px);
}

h3 {
    font-size: 19px;
    letter-spacing: -0.028em;
    line-height: 1.35;
}

.lede {
    color: var(--fg-dim);
    font-size: clamp(16px, 1.6vw, 19px);
    max-width: 62ch;
    margin: 20px 0 0;
}

.grad {
    background: linear-gradient(
        104deg,
        #ffffff 6%,
        var(--accent) 34%,
        var(--accent-2) 58%,
        var(--accent-3) 78%,
        #ffffff 96%
    );
    background-size: 260% 100%;
    background-position: 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 14s linear infinite;
}

@keyframes sheen {
    to {
        background-position: 260% 0;
    }
}

/* ---------- 헤더 ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    background: rgba(6, 6, 10, 0.62);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

header.stuck {
    border-bottom-color: var(--line);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 17px;
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 14.5px;
    color: var(--fg-dim);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--fg);
}

@media (max-width: 720px) {
    nav .nav-link {
        display: none;
    }
}

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    border: 1px solid transparent;
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s,
        background 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--fg);
    color: #08080c;
    box-shadow: 0 8px 30px -10px rgba(124, 140, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -10px rgba(124, 140, 255, 0.72);
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--fg);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.btn-sm {
    height: 38px;
    padding: 0 17px;
    font-size: 14px;
}

/* ---------- 히어로 ---------- */
.hero {
    padding: clamp(56px, 9vh, 104px) 0 64px;
}

/* 첫 화면은 스크롤이 없으니 로드 시점에 순서대로 올라오게 한다 */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.hero .pill,
.hero h1,
.hero .lede,
.hero .cta-row,
.hero .rating {
    animation: rise 0.85s var(--ease) both;
}

.hero .pill {
    animation-delay: 0.04s;
}
.hero h1 {
    animation-delay: 0.12s;
}
.hero .lede {
    animation-delay: 0.22s;
}
.hero .cta-row {
    animation-delay: 0.32s;
}
.hero .rating {
    animation-delay: 0.4s;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

.hero h1 {
    font-size: clamp(38px, 6.6vw, 74px);
    font-weight: 850;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 32px;
    padding: 0 14px 0 11px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.045);
    font-size: 12.5px;
    color: var(--fg-dim);
    letter-spacing: -0.01em;
    margin-bottom: 26px;
}

.pill b {
    color: var(--fg);
    font-weight: 700;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(67, 224, 208, 0.18);
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--fg-faint);
}

.stars {
    color: #ffc75a;
    letter-spacing: 0.09em;
    font-size: 13px;
}

/* 히어로 폰 목업 */
/* 시뮬레이터 캡처엔 기기 프레임이 없다. 아이폰 형태를 CSS로 만든다.
   비율은 화면 폭 기준: 라운딩 15.5%, 베젤 2.7% (iPhone 17 Pro 실제 비례) */
.device {
    position: relative;
    border-radius: 15.5%/7.4%;
    padding: 2.7%;
    background: linear-gradient(148deg, #3a3a42, #16161b 34%, #101014 62%, #2e2e36);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.device img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 13.2%/6.3%;
    background: #000;
}

/* 측면 버튼 — 아이폰 실루엣을 알아보게 하는 최소 단서 */
.device::before,
.device::after {
    content: "";
    position: absolute;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(#4a4a54, #24242b);
}

.device::before {
    left: -2px;
    top: 21%;
    height: 7%;
}

.device::after {
    right: -2px;
    top: 24%;
    height: 12%;
}

.phone {
    margin: 0 auto;
    width: min(320px, 80vw);
    animation:
        rise 1s 0.18s var(--ease) both,
        float 7s 1.2s ease-in-out infinite;
    filter: drop-shadow(0 44px 74px rgba(0, 0, 0, 0.9));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone,
    .aura span,
    .grad,
    .hero .pill,
    .hero h1,
    .hero .lede,
    .hero .cta-row,
    .hero .rating {
        animation: none;
    }

    /* 호버 확대·이동도 끈다 */
    .shots figure:hover .device,
    .quote:hover .qposter,
    .card:hover,
    .card:hover .ico,
    .quote:hover .qcard,
    .qr-side:hover .qr-card,
    .btn:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- 기능 카드 ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 18px;
    margin-top: 52px;
}

.card {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.014)
        ),
        var(--bg-soft);
    overflow: hidden;
    transition:
        transform 0.35s var(--ease),
        border-color 0.35s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 140, 255, 0.7),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover .ico {
    transform: translateY(-2px) scale(1.06);
    border-color: rgba(124, 140, 255, 0.5);
    color: var(--fg);
}

.card .ico {
    transition:
        transform 0.4s var(--ease),
        border-color 0.4s,
        color 0.4s;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.card p {
    color: var(--fg-dim);
    font-size: 15px;
    margin: 11px 0 0;
    line-height: 1.62;
}

.card.soon .ico {
    color: var(--accent-3);
}

.tag {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(185, 140, 255, 0.34);
    color: var(--accent-3);
    margin-left: 8px;
    vertical-align: 2px;
}

/* ---------- 스크린샷 갤러리 ---------- */
/* 한 줄로 늘어놓으면 어디까지가 한 화면인지 헷갈린다. 4x2 격자로 끊는다. */
.shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 52px;
    width: 100%;
    max-width: var(--max);
    margin: 52px auto 0;
    padding: 0 24px;
}

@media (max-width: 940px) {
    .shots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 40px;
    }
}

@media (max-width: 620px) {
    .shots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 34px;
    }
}

.shots figure {
    margin: 0 auto;
    max-width: 206px;
}

/* 마우스를 올린 화면만 살짝 떠오르며 강조된다 */
.shots .device {
    transition:
        transform 0.5s var(--ease),
        box-shadow 0.5s var(--ease);
}

.shots figure:hover .device {
    transform: translateY(-14px) scale(1.06);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.24),
        0 40px 64px -22px rgba(0, 0, 0, 0.95),
        0 0 60px -14px rgba(124, 140, 255, 0.42);
}

.shots figcaption {
    transition: color 0.4s var(--ease);
}

.shots figure:hover figcaption {
    color: var(--fg);
}

.shots .device {
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.85));
}

.shots figcaption {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg-dim);
    text-align: center;
}

/* ---------- 설치 / QR ---------- */
.install {
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(
            120% 130% at 12% 0%,
            rgba(124, 140, 255, 0.16),
            transparent 58%
        ),
        radial-gradient(
            110% 120% at 96% 100%,
            rgba(67, 224, 208, 0.13),
            transparent 56%
        ),
        var(--bg-soft);
    padding: clamp(30px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
    align-items: center;
}

@media (max-width: 800px) {
    .install {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.qr-card {
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
    background: #fff;
    color: #000;
    padding: 16px;
    border-radius: 18px;
    width: 176px;
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.8);
}

.qr-card svg {
    width: 100%;
    height: auto;
}

.qr-note {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: #55555f;
    letter-spacing: -0.01em;
}

.qr-side {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.qr-side:hover .qr-card {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.9);
}

/* 모바일에선 QR 대신 버튼이 자연스럽다 */
@media (max-width: 560px) {
    .qr-side {
        display: none;
    }
}

.platform {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 26px;
    font-size: 13px;
    color: var(--fg-faint);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--fg-dim);
}

/* ---------- 푸터 ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 46px 0 60px;
    color: var(--fg-faint);
    font-size: 13.5px;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    align-items: flex-start;
}

footer a:hover {
    color: var(--fg);
}

.flinks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- 스크롤 등장 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 스크린리더 전용 */
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 실제 기록(리뷰 인용) ----------
   포스터는 카드 밖에 두고, 리뷰만 카드에 담는다.
   포스터 위치를 좌·우로 번갈아 둬서 스크롤이 단조롭지 않게 한다. */
.quotes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
}

.quote {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.quote:nth-child(even) {
    flex-direction: row-reverse;
}

.qposter {
    flex: 0 0 auto;
    width: 190px;
    transition: transform 0.45s var(--ease);
}

.quote:hover .qposter {
    transform: translateY(-4px) scale(1.03);
}

.qposter img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.09),
        0 22px 40px -16px rgba(0, 0, 0, 0.9);
}

.qcard {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* 좁게 잡아 글이 줄바꿈되며 카드가 통통해지게 한다 */
    max-width: 520px;
    min-height: 226px;
    justify-content: center;
    padding: 30px 32px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.014)
        ),
        var(--bg-soft);
    transition:
        transform 0.35s var(--ease),
        border-color 0.35s;
}

.quote:hover .qcard {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

@media (max-width: 760px) {
    .quote,
    .quote:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .qposter {
        width: 150px;
    }

    .qcard {
        max-width: none;
        min-height: 0;
    }
}

.qhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.qtitle {
    font-weight: 700;
    letter-spacing: -0.028em;
    font-size: 17.5px;
    color: var(--fg);
}

/* 별 아이콘 + 숫자 */
.qscore {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px 0 9px;
    border-radius: 999px;
    background: rgba(255, 199, 90, 0.13);
    border: 1px solid rgba(255, 199, 90, 0.26);
    font-size: 13.5px;
    font-weight: 800;
    color: #ffd27a;
    letter-spacing: -0.01em;
}

.qscore svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.qcard blockquote {
    margin: 0;
    flex: 0 1 auto;
    color: var(--fg-dim);
    font-size: 16px;
    line-height: 1.78;
    quotes: none;
}

.qcard figcaption {
    font-size: 12.5px;
    color: var(--fg-faint);
    letter-spacing: -0.01em;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

/* ---------- 펄싱 보더 — 프레임 가장자리를 도는 컬러 라이트.
   originkit은 WebGL 셰이더를 쓰지만, 여기선 conic-gradient의 각도만 돌린다.
   @property를 모르는 브라우저는 정지된 그라디언트 링으로 남는다. */
@property --ring {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.install,
.hero .device {
    /* 링을 z-index:-1로 깔려면 positioned여야 한다. 스태킹 컨텍스트는 만들지 않는다 */
    position: relative;
}

.install::before,
.install::after,
.hero .device > .ring,
.hero .device > .ring::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    background: conic-gradient(
        from var(--ring),
        transparent 4deg,
        var(--accent) 52deg,
        transparent 104deg,
        var(--accent-2) 168deg,
        transparent 224deg,
        var(--accent-3) 296deg,
        transparent 356deg
    );
    animation: ringspin 9s linear infinite;
}

/* 바깥으로 새어 나오는 빛 한 겹 */
.install::after,
.hero .device > .ring::after {
    inset: -16px;
    filter: blur(24px);
    opacity: 0.5;
    z-index: -2;
}

.hero .device > .ring {
    inset: -2px;
    border-radius: 15.5%/7.4%;
}

.hero .device > .ring::after {
    border-radius: inherit;
}

@keyframes ringspin {
    to {
        --ring: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .install::before,
    .install::after,
    .hero .device > .ring,
    .hero .device > .ring::after {
        animation: none;
    }
}

/* ---------- 3D 궤도 캐러셀 — 기울어진 타원 위를 도는 화면들.
   그리드가 기본이고, 넓은 화면에서만 궤도로 바뀐다. 모바일·모션 축소는 그대로 그리드.

   무대와 카드를 같은 길이·같은 linear로 반대 방향 회전시킨다. 둘 다 순수
   transform이라 컴포지터에서 돈다. 등록 커스텀 프로퍼티(@property)를 애니메이션해서
   transform이 그걸 읽게 하면 매 프레임 스타일 재계산이 걸려 끊긴다. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .orbit {
        position: relative;
        perspective: 2100px;
        perspective-origin: 50% 38%;
        padding: 112px 0 24px;
    }

    /* 좌우 끝을 녹인다. mask로 하면 Safari가 자식의 preserve-3d를 평면으로 뭉갠다 */
    .orbit::before,
    .orbit::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 15%;
        z-index: 2;
        pointer-events: none;
    }

    .orbit::before {
        left: 0;
        background: linear-gradient(90deg, var(--bg), transparent);
    }

    .orbit::after {
        right: 0;
        background: linear-gradient(270deg, var(--bg), transparent);
    }

    .orbit .shots {
        display: block;
        position: relative;
        height: 500px;
        max-width: none;
        padding: 0;
        margin: 0;
        transform-style: preserve-3d;
        animation: orbitspin 56s linear infinite;
    }

    .orbit .shots figure {
        position: absolute;
        top: 0;
        left: 50%;
        width: 200px;
        max-width: none;
        margin: 0 0 0 -100px;
        transform-style: preserve-3d;
        /* 자기 배치각을 되돌려 카드가 정면을 본다 */
        transform: rotateY(calc(var(--i) * 45deg)) translateZ(520px)
            rotateY(calc(var(--i) * -45deg));
    }

    /* 무대 회전만큼 역회전 — 항상 카메라를 향한다 */
    .orbit .shots .bb {
        animation: orbitback 56s linear infinite;
    }

    /* 읽고 싶을 때 멈춘다 */
    .orbit:hover .shots,
    .orbit:hover .bb {
        animation-play-state: paused;
    }

    /* drop-shadow는 8장에 매 프레임 필터 패스가 걸린다. 둥근 사각형이라 box-shadow로 충분 */
    .orbit .shots .device {
        filter: none;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.16),
            inset 0 0 0 1px rgba(255, 255, 255, 0.07),
            0 24px 42px -12px rgba(0, 0, 0, 0.85);
    }

    .orbit .shots figcaption {
        margin-top: 14px;
        font-size: 13.5px;
    }

    /* 호버 확대는 궤도에선 깊이감을 깨뜨린다 */
    .orbit .shots figure:hover .device {
        transform: none;
    }
}

@keyframes orbitspin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes orbitback {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(-360deg);
    }
}

/* ---------- 카드 스포트라이트 — 커서를 따라다니는 빛 ---------- */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    background: radial-gradient(
        240px circle at var(--mx, 50%) var(--my, 0%),
        rgba(124, 140, 255, 0.18),
        transparent 68%
    );
}

.card:hover::after {
    opacity: 1;
}

/* ---------- 잉크 플로우 필드 — 오라 위를 흐르는 잉크 궤적.
   originkit은 압력항까지 푸는 WebGL 유체지만, 배경 장식에 셰이더를 들일 이유가 없다.
   사인 합으로 만든 속도장 위에 입자를 흘리고 궤적을 태운다. 포인터가 소용돌이를 만든다. */
#ink {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* 96x54를 화면 크기로 늘린다. 업스케일 + 블러가 곧 유체의 부드러움 */
    filter: blur(18px) saturate(150%);
    opacity: 0.85;
}

/* ---------- 유리 아이콘 — 앞면 하이라이트 + 뒤로 번지는 빛 ---------- */
.card .ico {
    background: linear-gradient(
        150deg,
        rgba(255, 255, 255, 0.17),
        rgba(255, 255, 255, 0.03) 48%,
        rgba(255, 255, 255, 0.09)
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 6px 18px -10px rgba(124, 140, 255, 0.55);
    transition:
        transform 0.4s var(--ease),
        border-color 0.4s,
        box-shadow 0.4s,
        color 0.4s;
}

.card:hover .ico {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 10px 26px -8px rgba(124, 140, 255, 0.85);
}

/* ---------- 리뷰 카드 샤인 — 호버하면 빛이 한 번 훑고 지나간다 ---------- */
.qcard {
    position: relative;
    overflow: hidden;
}

.qcard::after {
    content: "";
    position: absolute;
    top: 0;
    left: -55%;
    width: 42%;
    height: 100%;
    transform: skewX(-14deg);
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(255, 255, 255, 0.08) 44%,
        rgba(124, 140, 255, 0.16) 56%,
        transparent
    );
}

.quote:hover .qcard::after {
    animation: shine 1.05s var(--ease);
}

@keyframes shine {
    to {
        left: 125%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote:hover .qcard::after {
        animation: none;
    }
}
