:root {
    --coral: #FF6B6B;
    --salmon: #FFA07A;
    --indigo: #1A237E;
    --ink: #17203f;
    --muted: #67708e;
    --paper: #fffaf4;
    --warm: #fff4ed;
    --line: rgba(26, 35, 126, 0.12);
    --shadow: 0 24px 70px rgba(26, 35, 126, 0.18);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Noto Serif KR", serif;
    background:
        radial-gradient(circle at 20% 6%, rgba(255, 107, 107, 0.18), transparent 28rem),
        radial-gradient(circle at 82% 16%, rgba(255, 160, 122, 0.22), transparent 26rem),
        linear-gradient(145deg, #fffaf4 0%, #fff5ed 46%, #f6f8ff 100%);
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(26, 35, 126, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 35, 126, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent);
}

button {
    font-family: inherit;
}

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

.page-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: calc(102px + var(--safe-bottom));
    position: relative;
}

.hero-section,
.offer-section,
.system-section,
.lab-section,
.final-section,
.notice-section,
.site-footer {
    position: relative;
    padding: 34px 22px;
}

.hero-section {
    padding-top: 24px;
}

.hero-copy {
    text-align: center;
}

.hero-copy .eyebrow {
    justify-content: center;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--indigo);
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.45;
}

.section-kicker {
    color: var(--coral);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    color: var(--indigo);
    font-size: 2.42rem;
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

h2 {
    margin-bottom: 14px;
    color: var(--indigo);
    font-size: 1.56rem;
    font-weight: 800;
    line-height: 1.36;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.35;
}

p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.hero-lede {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    color: #4c5575;
    font-size: 0.94rem;
    line-height: 1.74;
    word-break: keep-all;
}

.primary-btn,
.secondary-btn,
.fixed-cta {
    position: relative;
    overflow: hidden;
    appearance: none;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--coral), var(--salmon));
    cursor: pointer;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-btn,
.fixed-cta {
    box-shadow: 0 16px 30px rgba(255, 107, 107, 0.34);
    animation: cta-glow 2.8s ease-in-out infinite;
}

/* Sweeping shine — passes left to right across the pill */
.primary-btn::after,
.fixed-cta::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -75%;
    width: 45%;
    height: 140%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
    animation: cta-shine 3.6s ease-in-out infinite;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    padding: 0 22px;
}

.btn-icon,
.primary-btn span,
.fixed-cta span {
    position: relative;
    z-index: 1;
}

.secondary-btn {
    margin-top: 16px;
    color: var(--indigo);
    background: linear-gradient(135deg, #fff, #fff1eb);
    box-shadow: 0 14px 30px rgba(26, 35, 126, 0.12), inset 0 0 0 1px rgba(255, 107, 107, 0.16);
}

.primary-btn:hover,
.fixed-cta:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.5), 0 0 26px rgba(255, 140, 120, 0.5);
}

.primary-btn:hover,
.secondary-btn:hover,
.fixed-cta:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
}

@keyframes cta-glow {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(255, 107, 107, 0.3), 0 0 14px rgba(255, 140, 120, 0.22);
    }
    50% {
        box-shadow: 0 18px 38px rgba(255, 107, 107, 0.46), 0 0 28px rgba(255, 140, 120, 0.5);
    }
}

@keyframes cta-shine {
    0% {
        left: -75%;
    }
    55%, 100% {
        left: 130%;
    }
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.fixed-cta:focus-visible,
.legal-nav a:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid rgba(26, 35, 126, 0.28);
    outline-offset: 4px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.hero-visual,
.lab-visual {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    margin: 10px auto 8px;
    width: min(100%, 340px);
    display: grid;
    place-items: center;
}

.lab-visual {
    margin-top: 2px;
}

/* Transparent PNG renders float on their own — just a soft tilt and shadow. */
.image-tilt {
    position: relative;
    z-index: 1;
    width: 100%;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-1.4deg);
    transform-style: preserve-3d;
    filter: drop-shadow(0 16px 30px rgba(26, 35, 126, 0.16));
    transition: transform 240ms ease;
}

.image-tilt.soft-cut {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(1.2deg);
    filter: drop-shadow(0 14px 26px rgba(26, 35, 126, 0.12));
}

.image-tilt img {
    width: 100%;
}

/* Ambient glow behind the artwork */
.orbit {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(255, 160, 122, 0.03)),
        radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 64%);
    animation: float-orbit 7s ease-in-out infinite;
}

.orbit-one {
    width: 104px;
    height: 104px;
    right: -6px;
    top: 10px;
}

.orbit-two {
    width: 68px;
    height: 68px;
    left: -4px;
    bottom: 4px;
    animation-delay: -2.6s;
}

.quick-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.quick-notes div {
    min-width: 0;
    padding: 12px 6px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(26, 35, 126, 0.06);
}

.quick-notes strong {
    display: block;
    color: var(--coral);
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1.2;
}

.quick-notes span {
    display: block;
    margin-top: 5px;
    color: #59627f;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.offer-section {
    margin: 6px 14px 4px;
    padding: 26px 20px 28px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 237, 0.92));
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(26, 35, 126, 0.08);
}

.benefit-list,
.learning-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list {
    display: grid;
    gap: 12px;
}

.benefit-list li,
.learning-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.62;
}

.benefit-list i,
.learning-list i,
.pillar > i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--indigo);
    background:
        radial-gradient(circle at 35% 28%, #fff 0 24%, transparent 25%),
        linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 160, 122, 0.24));
    box-shadow: 0 12px 28px rgba(255, 107, 107, 0.16);
}

.section-heading {
    margin-bottom: 16px;
    text-align: center;
}

.section-heading .section-kicker {
    justify-content: center;
}

.section-heading h2,
.final-section h2 {
    max-width: 19ch;
    margin-left: auto;
    margin-right: auto;
}

.final-section p {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

.pillar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pillar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px 14px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(26, 35, 126, 0.05);
}

.pillar h3 {
    margin-bottom: 4px;
    font-size: 0.96rem;
    line-height: 1.28;
    word-break: keep-all;
}

.pillar p {
    margin-bottom: 0;
    color: var(--coral);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.learning-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.learning-list li {
    align-items: center;
}

.final-section {
    padding-top: 28px;
    text-align: center;
}

.final-section .section-kicker {
    justify-content: center;
}

.final-section p {
    margin-bottom: 22px;
}

.notice-section {
    padding-top: 26px;
    padding-bottom: 26px;
}

.notice-section p {
    margin-bottom: 0;
    color: #59627f;
    font-size: 0.86rem;
    line-height: 1.75;
}

.site-footer {
    padding-top: 36px;
    padding-bottom: 36px;
    text-align: center;
}

.site-footer h2 {
    margin-bottom: 18px;
    font-size: 1.22rem;
}

.site-footer p {
    margin-bottom: 9px;
    color: #65708e;
    font-size: 0.84rem;
    line-height: 1.65;
}

.privacy-note {
    padding-top: 10px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: rgba(26, 35, 126, 0.35);
}

.legal-nav a {
    padding: 4px 0;
    color: var(--indigo);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-nav i {
    margin-right: 5px;
    color: var(--coral);
}

.fixed-cta {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: calc(14px + var(--safe-bottom));
    width: min(420px, calc(100% - 32px));
    padding: 0 24px;
    transform: translateX(-50%);
}

.fixed-cta:hover {
    transform: translateX(-50%) translateY(-2px);
}

.modal-layer {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.modal-layer.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 19, 54, 0.42);
    backdrop-filter: blur(10px);
}

.modal-panel {
    position: relative;
    width: min(100%, 430px);
    max-height: min(78vh, 640px);
    overflow: auto;
    padding: 30px 24px 26px;
    border-radius: 22px;
    color: var(--ink);
    background: linear-gradient(145deg, rgba(255, 250, 244, 0.98), rgba(255, 244, 237, 0.98));
    box-shadow: 0 30px 80px rgba(10, 14, 48, 0.3);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--indigo);
    background: rgba(255, 107, 107, 0.14);
    cursor: pointer;
}

.modal-panel h2 {
    padding-right: 42px;
    font-size: 1.32rem;
}

.modal-body p,
.modal-body li {
    color: #4f5977;
    font-size: 0.92rem;
    line-height: 1.78;
}

.modal-body ul {
    margin: 0;
    padding-left: 1.1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes float-orbit {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(10px, -14px, 0) scale(1.05);
    }
}

@media (max-width: 360px) {
    .hero-section,
    .offer-section,
    .system-section,
    .lab-section,
    .final-section,
    .notice-section,
    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    h1 {
        font-size: 2.16rem;
    }

    h2 {
        font-size: 1.36rem;
    }

    .hero-visual {
        min-height: 300px;
    }

    .lab-visual {
        min-height: 270px;
    }

    .offer-section {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (min-width: 760px) {
    .page-shell {
        width: 480px;
    }

    .hero-section {
        padding-top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
