:root {
    color-scheme: dark;
    --bg: #07070b;
    --bg-2: #0d0d13;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f7f6fb;
    --muted: rgba(247, 246, 251, 0.72);
    --faint: rgba(247, 246, 251, 0.46);
    --mint: #82e7d4;
    --violet: #b896ff;
    --coral: #ff9a8b;
    --gold: #ffd48a;
    --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    --market-width: 176px;
    --market-height: 52px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "Noto Sans KR", "Noto Sans JP", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::selection {
    background: rgba(130, 231, 212, 0.28);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 30px;
    background: rgba(7, 7, 11, 0.64);
    border-bottom: 0.5px solid var(--line-soft);
    backdrop-filter: blur(22px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.language-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 0.5px solid transparent;
    border-radius: 999px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-nav a:hover,
.language-nav a:focus-visible {
    transform: translateY(-2px);
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}

.language-nav a[aria-current="page"] {
    color: var(--text);
    background: var(--surface-strong);
    border-color: var(--line);
}

.hero {
    position: relative;
    min-height: 820px;
    padding: 126px 30px 64px;
    overflow: hidden;
    background: #06060a;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(6, 6, 10, 0.97) 0%, rgba(6, 6, 10, 0.82) 40%, rgba(6, 6, 10, 0.3) 100%),
        linear-gradient(180deg, rgba(6, 6, 10, 0.08) 0%, rgba(6, 6, 10, 0.4) 68%, #07070b 100%),
        url("/ooparts/assets/landing/hero-portal-bg.png") center right / cover no-repeat;
}

.hero::after {
    background:
        linear-gradient(180deg, transparent 0%, transparent 72%, var(--bg) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 132px);
    opacity: 0.52;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
    align-items: center;
    gap: 52px;
    width: min(100%, 1200px);
    min-height: clamp(1100px, 64vw, 1240px);
    margin: 0 auto;
}

.hero__text {
    position: relative;
    z-index: 3;
    align-self: center;
    max-width: 560px;
    padding-bottom: 12px;
}

.section-kicker {
    margin: 0;
    color: var(--mint);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--text);
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 760;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero h1[data-enter] {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero__copy {
    max-width: 530px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
    font-weight: 500;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.market-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.market-button {
    width: var(--market-width);
    height: var(--market-height);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.market-button--google-play {
    border: 1px solid rgba(255, 255, 255, 0.68);
}

.market-button:hover,
.market-button:focus-visible {
    transform: translateY(-3px);
}

.market-button:active,
.language-nav a:active {
    transform: translateY(0) scale(0.99);
}

.market-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.78);
    outline-offset: 4px;
}

.market-badge {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
}

.market-badge--app-store {
    width: var(--market-width);
    height: var(--market-height);
    object-fit: fill;
}

.market-badge--google-play {
    width: var(--market-width);
    height: auto;
    margin: -8px 0;
}

.hero__visual {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    min-height: 0;
    margin: 0;
    margin-left: -50vw;
    overflow: visible;
    pointer-events: none;
    transform: none;
}

@media (min-width: 1721px) {
    .hero__visual {
        width: 1720px;
        margin-left: -860px;
    }
}

.hero__visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero__visual::after {
    right: clamp(190px, 18vw, 330px);
    bottom: clamp(2px, 1.4vw, 16px);
    width: min(34vw, 520px);
    height: clamp(34px, 4vw, 56px);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0) 72%);
    transform: none;
    filter: blur(4px);
    z-index: 1;
}

.hero__visual img {
    --hero-character-x: 0;
    position: absolute;
    right: clamp(18px, 2vw, 42px);
    bottom: clamp(-132px, -7vw, -104px);
    width: clamp(780px, 58vw, 880px);
    max-width: none;
    transform: none;
    z-index: 2;
    filter: drop-shadow(0 30px 64px rgba(0, 0, 0, 0.64));
    animation: portraitFloat 8s ease-in-out infinite alternate;
}

[data-enter] {
    opacity: 1;
    transform: none;
    animation: enterUp 760ms ease forwards;
    animation-delay: var(--enter-delay, 0ms);
}

.showcase,
.final-cta {
    position: relative;
    padding: 116px 30px;
}

.showcase {
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, #0d0d13 100%);
    border-top: 0.5px solid var(--line-soft);
}

.showcase__inner,
.final-cta__inner {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.showcase__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(470px, 1fr);
    align-items: center;
    gap: 86px;
}

.section-copy h2,
.final-cta h2 {
    margin: 16px 0 0;
    color: var(--text);
    font-size: clamp(30px, 3.35vw, 46px);
    line-height: 1.12;
    font-weight: 720;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.section-copy p:not(.section-kicker),
.final-cta p {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.78;
    font-weight: 500;
}

.showcase-points {
    display: grid;
    gap: 1px;
    margin-top: 34px;
    overflow: hidden;
    border: 0.5px solid var(--line);
    border-radius: 12px;
    background: var(--line);
}

.showcase-point {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.036);
}

.showcase-point span {
    color: var(--faint);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.showcase-point strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
}

.device-stage {
    position: relative;
    min-height: 620px;
    --shot-side-x: clamp(180px, 15vw, 220px);
    --shot-side-bottom: 44px;
    --shot-side-scale: 0.82;
    --shot-side-opacity: 0.74;
}

.device-shot {
    position: absolute;
    width: min(39vw, 258px);
    aspect-ratio: 1284 / 2778;
    margin: 0;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 34px 86px rgba(0, 0, 0, 0.42);
    z-index: var(--shot-z, 1);
    bottom: var(--shot-bottom, var(--shot-side-bottom));
    left: 50%;
    opacity: var(--shot-opacity, var(--shot-side-opacity));
    transform: translateX(calc(-50% + var(--shot-x, 0px))) translateY(var(--shot-lift, 0)) rotate(var(--shot-rotate, 0deg)) scale(var(--shot-scale, 1));
    transform-origin: center bottom;
    transition: transform 260ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.device-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.device-shot--main {
    --shot-z: 3;
    --shot-bottom: 0;
    --shot-opacity: 1;
    --shot-rotate: 1deg;
    --shot-scale: 1;
    --shot-x: 0px;
}

.device-shot--left {
    --shot-z: 2;
    --shot-rotate: -7deg;
    --shot-scale: var(--shot-side-scale);
    --shot-x: calc(var(--shot-side-x) * -1);
}

.device-shot--right {
    --shot-z: 2;
    --shot-rotate: 7deg;
    --shot-scale: var(--shot-side-scale);
    --shot-x: var(--shot-side-x);
}

.device-stage.is-shot-left-active .device-shot--left,
.device-stage.is-shot-main-active .device-shot--main,
.device-stage.is-shot-right-active .device-shot--right {
    --shot-z: 4;
    --shot-bottom: 0;
    --shot-opacity: 1;
    --shot-rotate: 1deg;
    --shot-scale: 1;
    --shot-x: 0px;
}

.device-stage.is-shot-left-active .device-shot--right,
.device-stage.is-shot-main-active .device-shot--left,
.device-stage.is-shot-right-active .device-shot--main {
    --shot-z: 2;
    --shot-bottom: var(--shot-side-bottom);
    --shot-opacity: var(--shot-side-opacity);
    --shot-rotate: -7deg;
    --shot-scale: var(--shot-side-scale);
    --shot-x: calc(var(--shot-side-x) * -1);
}

.device-stage.is-shot-left-active .device-shot--main,
.device-stage.is-shot-main-active .device-shot--right,
.device-stage.is-shot-right-active .device-shot--left {
    --shot-z: 2;
    --shot-bottom: var(--shot-side-bottom);
    --shot-opacity: var(--shot-side-opacity);
    --shot-rotate: 7deg;
    --shot-scale: var(--shot-side-scale);
    --shot-x: var(--shot-side-x);
}

.js-enabled .device-shot {
    cursor: pointer;
}

.device-shot.is-active {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 38px 96px rgba(0, 0, 0, 0.5);
}

.js-enabled .device-shot:not(.is-active):hover,
.js-enabled .device-shot:not(.is-active):focus-visible {
    --shot-lift: -10px;
    border-color: rgba(255, 255, 255, 0.34);
    opacity: 0.9;
}

.js-enabled .device-shot:focus-visible {
    outline: 2px solid rgba(130, 231, 212, 0.72);
    outline-offset: 4px;
}

.final-cta {
    background:
        linear-gradient(180deg, var(--bg) 0%, #101016 100%);
}

.final-cta__inner {
    padding: 60px;
    border: 0.5px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.034)),
        rgba(255, 255, 255, 0.04);
    text-align: center;
}

.final-cta p {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
}

.final-cta .hero__actions {
    justify-content: center;
}

.footer {
    padding: 28px 30px;
    color: var(--faint);
    border-top: 0.5px solid var(--line-soft);
    background: #08080c;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    width: min(100%, 1080px);
    margin: 0 auto;
    font-size: 13px;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--text);
}

.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 680ms ease, transform 680ms ease;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes enterUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portraitFloat {
    from {
        transform: translateX(var(--hero-character-x, 0)) translate3d(0, 0, 0);
    }

    to {
        transform: translateX(var(--hero-character-x, 0)) translate3d(0, -10px, 0);
    }
}

@media (max-width: 1360px) {
    .hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(6, 6, 10, 0.18) 0%, rgba(6, 6, 10, 0.9) 56%, #07070b 100%),
            url("/ooparts/assets/landing/hero-portal-bg.png") center top / cover no-repeat;
    }

    .hero__content,
    .showcase__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        min-width: 0;
    }

    .hero__visual {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 0;
        min-width: 0;
        margin-left: 0;
        order: -1;
        overflow: visible;
        transform: none;
    }

    .hero__visual img {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        --hero-character-x: 0;
        width: min(88vw, 560px);
        transform: none;
        animation: none;
    }

    .hero__text {
        max-width: 760px;
        min-width: 0;
        padding-bottom: 0;
    }

    .device-stage {
        min-height: 580px;
    }

}

@media (min-width: 981px) and (max-width: 1360px) {
    .hero__visual img {
        width: min(68vw, 680px);
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }

    .language-nav {
        justify-content: flex-start;
    }

    .language-nav a {
        min-height: 31px;
        padding: 0 9px;
        font-size: 12px;
    }

    .hero {
        padding: 170px 20px 56px;
    }

    .hero__text {
        width: 100%;
        max-width: 100%;
    }

    .hero__visual {
        min-height: 0;
    }

    .hero__visual img {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(94vw, 520px);
        max-width: none;
        transform: none;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.1;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .hero__copy,
    .section-copy p:not(.section-kicker),
    .final-cta p {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .final-cta .hero__actions {
        align-items: center;
    }

    .showcase,
    .final-cta {
        padding: 72px 20px;
    }

    .showcase__inner {
        gap: 68px;
    }

    .showcase-point {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .device-stage {
        min-height: clamp(390px, 118vw, 470px);
        width: min(100%, 360px);
        margin: 0 auto;
        overflow: visible;
        --shot-side-x: clamp(86px, 27vw, 108px);
        --shot-side-bottom: 30px;
        --shot-side-scale: 0.76;
        --shot-side-opacity: 0.72;
    }

    .device-shot {
        width: clamp(180px, 58vw, 222px);
        border-radius: 26px;
    }

    .final-cta__inner {
        padding: 34px 20px;
    }

    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-enter],
    .js-enabled [data-reveal],
    .js-enabled [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}
