@font-face {
    font-family: "MuseumClassic";
    src: local("MuseumClassic"), local("Museum Classic");
    font-display: swap;
}

:root {
    --bg-top: #5d6066;
    --bg-bottom: #333336;
    --panel: rgba(73, 74, 79, 0.7);
    --panel-soft: rgba(73, 74, 79, 0.42);
    --panel-solid: #494a4f;
    --line: rgba(125, 115, 91, 0.9);
    --line-soft: rgba(125, 115, 91, 0.35);
    --paper: #eae3d5;
    --paper-soft: #efe5d2;
    --muted: #c9c0b1;
    --muted-strong: #9c9487;
    --accent: #e05353;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.12);
    --font-display: "MuseumClassic", "Noto Serif KR", serif;
    --font-body: "MuseumClassic", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(180deg, var(--bg-top) 0%, #4f5257 24%, var(--bg-bottom) 100%);
    color: var(--paper);
    scroll-behavior: smooth;
}

body {
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 0;
    left: 0;
    right: 0;
    height: 22rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

body::after {
    right: 2rem;
    bottom: 2rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(234, 227, 213, 0.08);
    border-radius: 999px;
}

#app {
    position: relative;
    z-index: 1;
}

h1:focus,
h2:focus,
h3:focus {
    outline: none;
}

a {
    color: inherit;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 620ms ease,
        transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-panel {
    min-height: calc(100vh - 7rem);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(2rem, 3.5vw, 4rem);
    align-items: center;
    padding: 2.75rem 0 4rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-mark {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
    display: block;
}

.eyebrow,
.section-label,
.note-label,
.screen-meta {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.78rem;
}

.hero-copy h1,
.section-heading h2,
.contact-banner h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025rem;
    text-wrap: balance;
}

.hero-copy h1 {
    font-size: clamp(4rem, 3rem + 4vw, 6.6rem);
}

.hero-subtitle {
    margin: -0.15rem 0 0;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
    letter-spacing: 0.18rem;
}

.hero-text,
.contact-banner h2,
.main-copy-block p,
.hero-caption,
.screen-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-text {
    max-width: 32rem;
}

.hero-caption {
    max-width: 28rem;
    color: var(--paper);
    opacity: 0.88;
}

.screen-points {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    max-width: 30rem;
    color: var(--muted);
}

.screen-points li {
    position: relative;
    padding-left: 1rem;
}

.screen-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 999px;
    background: var(--paper);
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.3rem;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button-primary {
    background: rgba(55, 54, 58, 0.15);
    color: var(--paper);
    box-shadow: var(--shadow-soft);
}

.button-secondary {
    background: transparent;
    color: var(--muted);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.feature-tags {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.58rem 0.9rem;
    background: var(--panel-solid);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--paper);
    font-size: 0.88rem;
}

.feature-tag-active {
    background: var(--accent);
}

.device-showcase {
    position: relative;
    min-height: 42rem;
    display: grid;
    place-items: center;
}

.phone-frame {
    background: rgba(31, 31, 34, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    padding: 0.9rem;
}

.phone-screen {
    width: min(100%, 23rem);
    border-radius: 1.45rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    position: relative;
}

.splash-preview {
    width: min(100%, 24rem);
}

.splash-screen {
    min-height: 33rem;
    display: grid;
    place-items: center;
    gap: 1.25rem;
    padding: 2.4rem;
}

.splash-icon {
    width: min(100%, 12.5rem);
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.splash-copy {
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.splash-copy strong {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.8rem + 1.2vw, 2.8rem);
    letter-spacing: -0.02rem;
}

.splash-copy span {
    color: var(--paper);
    font-size: 1rem;
    letter-spacing: 0.1rem;
}

.flow-section {
    margin-top: 4.25rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 42rem;
}

.section-heading h2,
.contact-banner h2 {
    font-size: clamp(2.2rem, 1.6rem + 1.9vw, 3.9rem);
}

.screen-grid {
    display: grid;
    gap: 1.5rem;
}

.screen-grid {
    margin-top: 1.35rem;
    grid-template-columns: minmax(0, 1fr);
    max-width: 58rem;
}

.screen-card,
.contact-banner {
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow: var(--shadow);
}

.screen-card {
    padding: 1.2rem;
}

.screen-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.screen-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.screen-summary {
    margin-top: 1rem;
    max-width: 28rem;
}

.main-preview .phone-screen {
    width: 100%;
}

.main-screen {
    min-height: 42rem;
    padding: 1.45rem;
    display: grid;
    gap: 1.15rem;
}

.art-frame {
    background: var(--paper-soft);
    box-shadow: 0 5px 5px rgba(39, 39, 37, 0.15);
    padding: 0.55rem;
}

.large-art-frame {
    padding: 1.15rem 0.7rem 0.7rem;
}

.thumb-frame {
    padding: 0.4rem;
}

.portrait-frame {
    padding-inline: 1.2rem;
}

.artwork {
    border: 2px solid #cfc5b8;
    background-color: var(--paper-soft);
    position: relative;
    overflow: hidden;
}

.artwork::before {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.large-art-frame .artwork {
    aspect-ratio: 1.75;
}

.thumb-frame .artwork {
    aspect-ratio: 1;
}

.portrait-frame .artwork {
    aspect-ratio: 0.68;
}

.artwork-ink {
    background:
        radial-gradient(circle at 20% 72%, rgba(23, 23, 23, 0.18), transparent 12%),
        radial-gradient(circle at 64% 28%, rgba(33, 33, 33, 0.35), transparent 16%),
        linear-gradient(180deg, rgba(26, 26, 24, 0.1), transparent 24%),
        linear-gradient(135deg, #dcd4c6 0%, #f3ecdf 35%, #d1cabd 100%);
}

.artwork-ink::after {
    content: "";
    position: absolute;
    inset: 14% 8% 18% 8%;
    background:
        radial-gradient(circle at 30% 45%, rgba(34, 34, 32, 0.55), transparent 23%),
        radial-gradient(circle at 54% 30%, rgba(24, 24, 24, 0.45), transparent 20%),
        radial-gradient(circle at 76% 44%, rgba(30, 30, 28, 0.4), transparent 18%),
        radial-gradient(circle at 50% 62%, rgba(38, 38, 38, 0.22), transparent 32%);
    filter: blur(3px);
    opacity: 0.95;
}

.artwork-tiger {
    background:
        radial-gradient(circle at 68% 72%, rgba(33, 28, 22, 0.25), transparent 22%),
        linear-gradient(180deg, rgba(60, 49, 36, 0.22), transparent 28%),
        linear-gradient(135deg, #f0dfba 0%, #f4e7c8 45%, #d6b77d 100%);
}

.artwork-tiger::after {
    content: "";
    position: absolute;
    inset: 10% 18% 8% 22%;
    background:
        repeating-linear-gradient(110deg, rgba(50, 38, 24, 0.75) 0 6%, transparent 6% 12%),
        radial-gradient(circle at 52% 70%, rgba(32, 26, 19, 0.82), transparent 22%),
        radial-gradient(circle at 50% 40%, rgba(201, 144, 58, 0.85), transparent 38%);
    clip-path: ellipse(40% 48% at 52% 52%);
}

.main-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    gap: 1.25rem;
    align-items: end;
}

.main-copy-block {
    display: grid;
    gap: 0.7rem;
}

.main-copy-block strong,
.thumb-meta span:first-child {
    font-family: var(--font-display);
    font-size: 1.28rem;
    color: var(--paper);
}

.main-copy-block span {
    color: var(--paper);
    font-size: 0.92rem;
}

.vertical-label {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    gap: 0.6rem;
}

.vertical-label span {
    width: 1px;
    background: var(--paper-soft);
    opacity: 0.7;
}

.vertical-label strong {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.1rem;
}

.action-stack {
    display: grid;
    gap: 0.9rem;
}

.app-outline-button {
    min-height: 3.25rem;
    border: 1px solid var(--line);
    background: rgba(55, 54, 58, 0.15);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.3rem;
    cursor: default;
}

.app-outline-button-alt {
    position: relative;
}

.app-outline-button-alt::before,
.app-outline-button::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: rgba(234, 227, 213, 0.6);
}

.app-outline-button::after {
    right: 1.5rem;
}

.app-outline-button-alt::before {
    left: 1.5rem;
}

.contact-banner {
    margin-top: 4.25rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-banner h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.7;
}

#flow,
#contact {
    scroll-margin-top: 7rem;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #3e2d13;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(247, 238, 220, 0.18);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    inset: calc(20vh + 3.25rem) 0 auto 0;
    color: var(--paper);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatDown {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 960px) {
    .hero-panel,
    .screen-grid,
    .contact-banner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 3.25rem;
    }

    .contact-banner {
        display: grid;
        justify-content: stretch;
    }

    .device-showcase {
        min-height: auto;
        justify-items: start;
    }

}

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: clamp(2.45rem, 9vw, 4rem);
    }

    .hero-panel {
        gap: 1.5rem;
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-mark {
        width: 4.5rem;
        height: 4.5rem;
    }

    .hero-text,
    .contact-banner h2 {
        line-height: 1.65;
    }

    .screen-card,
    .contact-banner,
    .main-screen {
        padding: 1.25rem;
    }

    .flow-section,
    .contact-banner {
        margin-top: 3.5rem;
    }

    .hero-actions,
    .feature-tags {
        grid-template-columns: 1fr;
    }

    .main-content-row {
        grid-template-columns: 1fr;
    }

    .screen-points {
        gap: 0.45rem;
    }

    .vertical-label {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
    }

    .vertical-label strong {
        writing-mode: initial;
    }

    .vertical-label span {
        width: auto;
        height: 1px;
    }

    .app-outline-button::after,
    .app-outline-button-alt::before {
        display: none;
    }
}

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

    .reveal-on-scroll,
    .reveal-on-scroll.is-visible,
    .button-primary,
    .button-secondary,
    .art-card-large,
    .art-card-small {
        transition: none;
        animation: none;
        transform: none;
        opacity: 1;
    }
}