@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('./font/NotoSansKR-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(18px, 1.45vw, 20px);
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
h4,
p,
li,
label,
summary,
a,
button,
span {
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.34),
        0 2px 8px rgba(5, 13, 26, 0.08);
}

.bg-primary,
.hero-gradient,
.bg-primary *,
.hero-gradient *,
footer,
footer * {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.62),
        0 4px 16px rgba(0, 0, 0, 0.38);
}

button,
input,
select,
textarea {
    font: inherit;
}

p,
li,
label,
summary {
    word-break: keep-all;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

p {
    margin-block: 0;
}

.reveal-text {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.96);
    filter: blur(10px);
    transition:
        opacity 420ms ease,
        transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 420ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-text:nth-child(3n + 1) {
    transform: translate3d(-24px, 44px, 0) scale(0.96);
}

.reveal-text:nth-child(3n + 2) {
    transform: translate3d(24px, 44px, 0) scale(0.96);
}

.reveal-text.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

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

.font-display-lg {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(46px, 6.4vw, 76px);
    line-height: 1.14;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.font-headline-lg {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.28;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.font-headline-md {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(24px, 2.25vw, 31px);
    line-height: 1.38;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.font-body-lg {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.78;
    font-weight: 400;
}

.font-body-md {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(18px, 1.45vw, 20px);
    line-height: 1.8;
    font-weight: 400;
}

.font-label-lg {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.55;
    letter-spacing: 0.035em;
    font-weight: 700;
}

.font-label-md {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.rounded-xl .font-display-lg {
    font-size: clamp(40px, 4vw, 58px);
}

.hero-copy {
    max-width: 760px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-profile-wrap {
    pointer-events: none;
    z-index: 1;
}

.hero-profile-image {
    max-width: none;
    transform-origin: bottom center;
}

.hero-red-gradient {
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    color: #ff4d4d;
    -webkit-text-fill-color: currentColor;
    border-right: 0;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16),
        0 2px 6px rgba(0, 0, 0, 0.68),
        0 0 18px rgba(255, 42, 42, 0.42);
    animation: hero-typewriter 1.25s steps(6, end) 0.7s forwards;
}

@media (min-width: 1024px) {
    .hero-profile-wrap {
        opacity: 0;
        animation: hero-profile-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    }

    .hero-copy .font-display-lg {
        font-size: clamp(44px, 4.4vw, 58px);
        line-height: 1.18;
        letter-spacing: -0.035em;
    }

    .hero-copy .font-body-lg {
        max-width: 620px;
        color: rgba(255, 255, 255, 0.92);
        font-size: clamp(18px, 1.35vw, 21px);
        line-height: 1.85;
    }

    .hero-copy .font-label-lg {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-profile-image {
        height: 760px !important;
        right: -420px;
        bottom: 0;
        animation: hero-profile-float 4.2s ease-in-out 1.25s infinite;
    }
}

@keyframes hero-typewriter {
    from {
        width: 0;
    }

    to {
        width: 4.82em;
    }
}

@keyframes hero-profile-enter {
    from {
        opacity: 0;
        transform: translateX(180px);
    }

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

@keyframes hero-profile-float {
    0%,
    100% {
        transform: translateY(0);
    }

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

.text-sm {
    font-size: clamp(16px, 1.15vw, 17px);
    line-height: 1.75;
}

.text-xs {
    font-size: 15px;
    line-height: 1.6;
}

.text-\[11px\] {
    font-size: 14px;
    line-height: 1.7;
}

.text-\[10px\] {
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    html,
    body {
        position: relative;
        width: 100%;
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }

    body {
        font-size: 17px;
        line-height: 1.75;
        text-align: center;
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
        touch-action: pan-y;
    }

    header img[src="./images/logo.png"] {
        height: 40px;
    }

    body,
    p,
    li,
    label,
    summary,
    a,
    button,
    input,
    select,
    textarea,
    h1,
    h2,
    h3,
    h4,
    span {
        word-break: keep-all;
        overflow-wrap: normal;
    }

    h1,
    h2,
    h3,
    h4,
    p {
        text-wrap: balance;
    }

    .font-display-lg {
        font-size: clamp(38px, 10vw, 50px);
        line-height: 1.18;
    }

    .font-headline-lg {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.3;
    }

    .font-headline-md {
        font-size: clamp(22px, 6vw, 27px);
        line-height: 1.42;
    }

    .font-body-lg {
        font-size: 19px;
        line-height: 1.75;
    }

    .font-label-lg {
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-gradient {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 0;
        align-items: flex-start;
    }

    .hero-gradient > div {
        height: auto;
        min-height: auto;
        position: relative;
        padding-bottom: 0;
    }

    .hero-gradient .grid {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        gap: 28px;
    }

    .hero-copy {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
        position: relative;
        z-index: 2;
        padding-top: 8px;
    }

    .hero-copy .font-display-lg {
        margin-inline: auto;
        max-width: 10em;
    }

    .hero-copy .font-body-lg {
        margin-inline: auto;
        max-width: 18em;
    }

    .hero-profile-wrap {
        position: relative;
        inset-inline: 0;
        bottom: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        height: auto;
        min-height: 360px;
        z-index: 1;
        overflow: visible;
        flex: 0 0 auto;
        align-self: stretch;
        margin-top: 8px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-profile-image {
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        width: auto;
        height: clamp(340px, 86vw, 430px) !important;
        max-width: none;
        opacity: 1;
        object-position: center bottom;
        transform: translateX(calc(-50% + 4vw));
    }

    .hero-actions,
    .hero-trust,
    body > section .flex,
    footer .flex {
        justify-content: center;
    }

    .hero-trust > div,
    body > section .flex.items-center,
    body > section .flex.items-start {
        justify-content: center;
        text-align: center;
    }

    .grid > div,
    section,
    footer,
    footer div,
    form,
    form div,
    ul,
    li {
        text-align: center;
    }

    ul {
        padding-left: 0;
    }

    img {
        margin-left: auto;
        margin-right: auto;
    }

    .border-l-4 {
        border-left-width: 0;
        border-top-width: 4px;
        padding-left: 0;
        padding-top: 24px;
    }

    button,
    input,
    select {
        min-height: 48px;
        text-align: center;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .bg-parchment-white .w-12.h-12 {
        margin-left: auto;
        margin-right: auto;
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.mobile-bottom-cta {
    display: none;
}

.mobile-bottom-cta__link {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

.privacy-agreement {
    padding: 8px 0 2px;
    text-align: left;
}

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

.privacy-agreement__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #44474d;
    cursor: pointer;
    text-align: left;
}

.privacy-agreement__box {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 2px solid rgba(117, 119, 126, 0.58);
    border-radius: 6px;
    background: #ffffff;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.privacy-agreement__box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 7px;
    height: 12px;
    border: solid #050d1a;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.privacy-agreement__input:checked + .privacy-agreement__label .privacy-agreement__box {
    border-color: #c8a951;
    background: #c8a951;
    box-shadow: 0 0 0 4px rgba(200, 169, 81, 0.16);
}

.privacy-agreement__input:checked + .privacy-agreement__label .privacy-agreement__box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.privacy-agreement__input:focus-visible + .privacy-agreement__label .privacy-agreement__box {
    outline: 2px solid #050d1a;
    outline-offset: 3px;
}

.privacy-agreement__text {
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .mobile-bottom-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: 50% 50%;
        width: 100%;
        height: calc(68px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #050d1a;
        box-shadow: 0 -12px 32px rgba(5, 13, 26, 0.24);
    }

    .mobile-bottom-cta__link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 68px;
        min-height: 68px;
        padding: 0;
        font-size: 17px;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
        appearance: none;
        -webkit-appearance: none;
    }

    .mobile-bottom-cta__link::before {
        content: none;
    }

    .mobile-bottom-cta__phone {
        background: #050d1a;
        color: #ffffff;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
    }

    .mobile-bottom-cta__consult {
        background: linear-gradient(135deg, #f0d987 0%, #c8a951 45%, #9d7d2a 100%);
        color: #050d1a;
    }

    .mobile-bottom-cta__link:hover {
        transform: none;
        box-shadow: none;
    }
}

.hero-gradient {
    background:
        linear-gradient(rgba(5, 13, 26, 0.92), rgba(5, 13, 26, 0.98)),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.border-gold {
    border-color: #c8a951;
}

.text-gold {
    color: #c8a951;
}

.bg-gold {
    background-color: #c8a951;
}

.step-number {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    opacity: 0.1;
    font-size: clamp(76px, 7vw, 96px);
    line-height: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.hero-image-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.case-slider {
    --case-card-width: clamp(360px, 34vw, 560px);
    --case-card-gap: clamp(20px, 2.8vw, 36px);
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 12px 0 28px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.case-slider__track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: case-slider-scroll 28s linear infinite;
    will-change: transform;
}

.case-slider:hover .case-slider__track {
    animation-play-state: paused;
}

.case-slider__card {
    flex: 0 0 var(--case-card-width);
    width: var(--case-card-width);
    margin: 0 var(--case-card-gap) 0 0;
    padding: clamp(12px, 1.4vw, 18px);
    border: 1px solid rgba(200, 169, 81, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 231, 0.94)),
        linear-gradient(135deg, rgba(200, 169, 81, 0.18), transparent);
    box-shadow: 0 24px 70px rgba(5, 13, 26, 0.18);
}

.case-slider__card img {
    display: block;
    width: 100%;
    height: clamp(520px, 58vw, 760px);
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(5, 13, 26, 0.06);
}

.profile-logo-above {
    width: min(260px, 70%);
    margin: 0 auto 24px;
    padding: 14px 18px;
    border: 1px solid rgba(200, 169, 81, 0.36);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(5, 13, 26, 0.18);
    backdrop-filter: blur(8px);
}

.profile-logo-above img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes case-slider-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .case-slider {
        --case-card-width: min(82vw, 340px);
        --case-card-gap: 16px;
        padding: 8px 0 22px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .case-slider__track {
        animation-duration: 26s;
    }

    .case-slider__card {
        padding: 10px;
        border-radius: 18px;
    }

    .case-slider__card img {
        height: clamp(420px, 118vw, 560px);
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-slider__track {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* Premium color treatment */
.hero-gradient {
    background:
        radial-gradient(circle at 78% 24%, rgba(200, 169, 81, 0.16), transparent 28%),
        radial-gradient(circle at 12% 12%, rgba(181, 199, 234, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(3, 9, 19, 0.94) 0%, rgba(5, 13, 26, 0.92) 42%, rgba(10, 22, 42, 0.98) 100%),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.bg-primary {
    background-image: linear-gradient(135deg, #020814 0%, #050d1a 45%, #10223f 100%);
    background-color: #050d1a;
}

.bg-primary\/50 {
    background-image: linear-gradient(135deg, rgba(2, 8, 20, 0.86), rgba(12, 29, 54, 0.74));
    background-color: rgba(5, 13, 26, 0.72);
}

.bg-gold {
    background-image: linear-gradient(135deg, #f0d987 0%, #c8a951 45%, #9d7d2a 100%);
    background-color: #c8a951;
}

.bg-surface-container-low {
    background-image:
        radial-gradient(circle at top left, rgba(200, 169, 81, 0.12), transparent 34%),
        linear-gradient(180deg, #fbfaf8 0%, #f1efed 100%);
}

.bg-parchment-white {
    background-image:
        radial-gradient(circle at 85% 12%, rgba(200, 169, 81, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f6f0e5 100%);
}

.bg-surface-container-lowest,
.bg-white.rounded-xl,
.bg-white.p-8,
.glass-card,
details {
    box-shadow: 0 18px 48px rgba(5, 13, 26, 0.08);
}

.bg-surface-container-lowest,
.bg-white.p-8,
.glass-card {
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.92));
}

header {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 243, 0.94));
    box-shadow: 0 10px 30px rgba(5, 13, 26, 0.06);
}

button,
a.bg-primary,
button.bg-gold {
    box-shadow: 0 14px 28px rgba(5, 13, 26, 0.14);
}

button,
a.bg-primary {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        filter 220ms ease,
        background-color 220ms ease;
}

button::before,
a.bg-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 620ms ease;
}

button:hover,
a.bg-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(5, 13, 26, 0.22),
        0 0 24px rgba(200, 169, 81, 0.28);
}

button.reveal-text.is-visible:hover,
a.bg-primary.reveal-text.is-visible:hover {
    transform: translateY(-3px);
}

button:hover::before,
a.bg-primary:hover::before {
    transform: translateX(130%);
}

button.bg-gold:hover,
.bg-gold:hover {
    filter: saturate(1.12) brightness(1.08);
    box-shadow:
        0 18px 42px rgba(5, 13, 26, 0.2),
        0 0 32px rgba(240, 217, 135, 0.52);
}
