:root {
    --ink: #23202e;
    --muted: #706a7c;
    --paper: #f8f7fa;
    --white: #ffffff;
    --line: #ded9e7;
    --purple: #7354bd;
    --purple-dark: #553a99;
    --purple-pale: #e9e0fa;
    --pink: #ef97bb;
    --pink-pale: #fbe3ed;
    --blue-pale: #deedf4;
    --green-pale: #e3f2e5;
    --shadow: 0 30px 70px rgba(47, 34, 72, 0.14);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
    line-height: 1.6;
    word-break: keep-all;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
    border-radius: 10px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 78px;
    padding: 0 clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(222, 217, 231, 0.8);
    background: rgba(248, 247, 250, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

nav {
    display: flex;
    gap: 32px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

nav a,
.footer-links a {
    transition: color 180ms ease;
}

nav a:hover,
.footer-links a:hover {
    color: var(--purple);
}

.header-cta {
    padding: 10px 18px;
    color: var(--white);
    background: var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.78fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: 80px clamp(24px, 8vw, 128px) 100px;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--purple-dark);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.eyebrow span {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid rgba(115, 84, 189, 0.25);
    background: var(--purple-pale);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

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

h1 {
    margin-bottom: 28px;
    font-size: clamp(56px, 6.4vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

h1 em {
    color: var(--purple);
    font-style: normal;
}

.hero-description {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.75;
    letter-spacing: -0.025em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 760;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: var(--white);
    background: var(--purple);
    box-shadow: 0 16px 30px rgba(115, 84, 189, 0.25);
}

.button-primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 20px 36px rgba(85, 58, 153, 0.3);
}

.button-text {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--white);
}

.play-mark {
    font-size: 12px;
}

.hero-stats {
    display: flex;
    gap: clamp(26px, 4vw, 58px);
    margin: 52px 0 0;
}

.hero-stats div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hero-stats dt {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    justify-self: center;
    width: min(100%, 460px);
}

.phone {
    position: relative;
    width: min(78vw, 390px);
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
    border: 2px solid var(--ink);
    background: var(--ink);
    border-radius: 46px;
    box-shadow: var(--shadow);
    transform: rotate(2.4deg);
}

.phone img {
    width: 100%;
    border-radius: 36px;
}

.specimen-tag {
    position: absolute;
    z-index: 3;
    top: 10%;
    left: -7%;
    padding: 10px 14px;
    color: var(--purple-dark);
    border: 1px solid rgba(115, 84, 189, 0.24);
    background: var(--purple-pale);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transform: rotate(-6deg);
}

.floating-card {
    position: absolute;
    right: -8%;
    bottom: 11%;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 235px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(35, 32, 46, 0.18);
    backdrop-filter: blur(14px);
    transform: rotate(-3deg);
}

.floating-card img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.floating-card span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.hero-orb-one {
    top: 11%;
    right: 30%;
    width: 160px;
    height: 160px;
    background: var(--pink-pale);
}

.hero-orb-two {
    right: -60px;
    bottom: 10%;
    width: 260px;
    height: 260px;
    background: var(--purple-pale);
}

.feature-art {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(47, 34, 72, 0.1);
}

.feature-art img {
    width: 100%;
    border-radius: 21px;
}

.section {
    padding: 150px clamp(24px, 8vw, 128px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
    gap: 50px;
    align-items: end;
    max-width: 1180px;
    margin: 0 auto 64px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -20px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.section-heading > p:last-child {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}

.test-card {
    position: relative;
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(35, 32, 46, 0.08);
    border-radius: var(--radius);
    transition: transform 220ms ease;
}

.test-card:hover {
    transform: translateY(-8px) rotate(-0.8deg);
}

.test-card h3 {
    margin-top: 115px;
    margin-bottom: 18px;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.test-card p {
    color: rgba(35, 32, 46, 0.68);
    font-size: 14px;
}

.test-number {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.test-symbol {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 68px;
    line-height: 1;
}

.card-pink { background: var(--pink-pale); }
.card-blue { background: var(--blue-pale); }
.card-green { background: var(--green-pale); }
.card-purple { color: var(--white); background: var(--purple); }
.card-purple p { color: rgba(255, 255, 255, 0.72); }

.process {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
    gap: clamp(60px, 10vw, 160px);
    max-width: 1436px;
    margin: 0 auto;
    background: var(--white);
}

.section-heading.compact {
    display: block;
    margin: 0;
}

.section-heading.compact .eyebrow {
    margin-bottom: 30px;
}

.process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.process-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.process-list > li > span {
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
}

.process-list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.process-list p {
    margin: 0;
    color: var(--muted);
}

.notice-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
    gap: 80px;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 80px);
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 36px;
}

.notice-card h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.notice-copy {
    align-self: end;
    color: var(--muted);
    font-size: 15px;
}

.notice-copy p:last-child {
    margin-bottom: 0;
}

.download {
    padding-top: 20px;
}

.download-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 30px;
    color: var(--white);
    text-align: center;
    background: var(--purple);
    border-radius: 38px;
}

.download-inner > img {
    width: 92px;
    height: 92px;
    margin: 0 auto 28px;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(39, 24, 77, 0.28);
}

.download-inner > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.download-inner h2 {
    margin-bottom: 34px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.button-light {
    color: var(--purple-dark);
    background: var(--white);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.button-outline-light {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 38px 60px;
    align-items: center;
    padding: 70px clamp(24px, 8vw, 128px) 38px;
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    font-size: 15px;
}

.footer-brand span {
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    color: #97919f;
    font-size: 11px;
}

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

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

/* Legal pages */
.legal-page {
    background: #f5f3f8;
}

.legal-header {
    position: static;
}

.legal-shell {
    width: min(900px, calc(100% - 40px));
    margin: 70px auto 110px;
}

.legal-intro {
    margin-bottom: 36px;
    padding: clamp(32px, 6vw, 64px);
    color: var(--white);
    background: var(--purple);
    border-radius: 30px;
}

.legal-intro .eyebrow {
    color: #e1d7ff;
}

.legal-intro .eyebrow span {
    color: #e1d7ff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.legal-intro h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 6vw, 62px);
}

.legal-intro p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.legal-content {
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 30px;
}

.legal-content section + section {
    margin-top: 46px;
    padding-top: 46px;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin-bottom: 18px;
    font-size: 23px;
    letter-spacing: -0.04em;
}

.legal-content h3 {
    margin: 28px 0 10px;
    font-size: 17px;
}

.legal-content p,
.legal-content li {
    color: #5f5969;
    font-size: 15px;
    line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
    padding-left: 22px;
}

.legal-content a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.policy-table th,
.policy-table td {
    padding: 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    background: #f2eef9;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-visual {
        margin-top: 30px;
    }

    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process {
        grid-template-columns: 1fr;
    }

    .notice-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: 68px;
        padding: 0 18px;
    }

    nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .hero {
        min-height: auto;
        padding: 64px 22px 90px;
    }

    h1 {
        font-size: clamp(50px, 15vw, 72px);
    }

    .hero-stats {
        gap: 20px;
        justify-content: space-between;
    }

    .hero-stats div {
        display: block;
    }

    .hero-stats dd {
        margin-top: 2px;
    }

    .hero-visual {
        width: 100%;
    }

    .floating-card {
        right: 0;
        min-width: 210px;
    }

    .specimen-tag {
        left: 0;
    }

    .feature-art {
        width: calc(100% - 30px);
        padding: 6px;
        border-radius: 19px;
    }

    .feature-art img {
        border-radius: 13px;
    }

    .section {
        padding: 100px 20px;
    }

    .section-heading {
        display: block;
        margin-bottom: 44px;
    }

    .section-heading .eyebrow {
        margin-bottom: 28px;
    }

    .section-heading h2 {
        margin-bottom: 24px;
    }

    .test-grid {
        grid-template-columns: 1fr;
    }

    .test-card {
        min-height: 280px;
    }

    .test-card h3 {
        margin-top: 75px;
    }

    .notice-card {
        padding: 32px 24px;
        border-radius: 26px;
    }

    .download {
        padding: 10px 14px 90px;
    }

    .download-inner {
        padding: 70px 20px;
        border-radius: 28px;
    }

    footer {
        grid-template-columns: 1fr;
        padding: 55px 22px 32px;
    }

    .legal-shell {
        margin-top: 40px;
    }

    .legal-intro,
    .legal-content {
        border-radius: 22px;
    }

    .policy-table {
        display: block;
        overflow-x: auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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