/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
    /* Colors */
    --clr-purple: #4b329d;
    --clr-purple-mid: #634cb6;
    --clr-purple-dark: #4c1d95;
    --clr-purple-20: rgba(75, 50, 157, 0.2);
    --clr-purple-40: rgba(75, 50, 157, 0.4);
    --clr-purple-60: rgba(75, 50, 157, 0.6);
    --clr-purple-05: rgba(75, 50, 157, 0.05);

    --clr-text: #1b1c1c;
    --clr-text-body: #484552;
    --clr-text-muted: #78716c;
    --clr-text-nav: #57534e;
    --clr-text-active: #4c1d95;
    --clr-text-accent: #7b5800;
    --clr-text-number: rgba(202, 196, 212, 0.3);
    --clr-text-stat: #797583;

    --clr-bg: #faf9f8;
    --clr-bg-warm: #f6f3f2;
    --clr-bg-card: #fbf9f8;
    --clr-bg-footer: #f5f5f4;
    --clr-bg-archive: #e4e2e1;

    --clr-border-subtle: rgba(202, 196, 212, 0.3);
    --clr-border-footer: rgba(231, 229, 228, 0.3);

    /* Typography */
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

    /* Layout */
    --nav-height: 84px;
    --container-max: 1280px;
    --container-pad: 48px;
    --section-gap: 112px;
    --feature-col-gap: 96px;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ja);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ===========================
   TYPOGRAPHY UTILITIES
   =========================== */
.label {
    font-family: var(--font-ja);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    line-height: 24px;
}

.label--accent {
    color: var(--clr-text-accent);
}

.label--muted {
    color: var(--clr-text-stat);
    font-size: 12px;
    letter-spacing: 1.2px;
}

.body-text {
    font-family: var(--font-ja);
    font-size: 18px;
    font-weight: 400;
    color: var(--clr-text-body);
    line-height: 1.625;
}

.feature-number {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 72px;
    color: var(--clr-text-number);
    line-height: 72px;
    display: block;
}

.feature-heading {
    font-family: var(--font-ja);
    font-size: 48px;
    font-weight: 500;
    color: var(--clr-text);
    letter-spacing: -1.2px;
    line-height: 48px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ja);
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.85;
}

.btn--gradient {
    background: linear-gradient(166.6deg, #4b329d 0%, #634cb6 100%);
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.35px;
    padding: 8px 32px;
    height: 36px;
}

.btn--primary {
    background-color: var(--clr-purple);
    color: #ffffff;
    font-size: 16px;
    padding: 17px 48px;
}

.btn--secondary {
    background-color: var(--clr-bg-warm);
    color: var(--clr-text);
    font-size: 16px;
    padding: 17px 49px;
    border: 1px solid rgba(202, 196, 212, 0.1);
}

/* ===========================
   TOP NAVIGATION
   =========================== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--nav-height);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(250, 250, 249, 0.8);
    display: flex;
    align-items: center;
}

.topnav__inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topnav__logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--clr-text);
    letter-spacing: -1.2px;
    line-height: 32px;
    flex-shrink: 0;
}

.topnav__links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.topnav__link {
    font-family: var(--font-ja);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.45px;
    color: var(--clr-text-nav);
    line-height: 28px;
    transition: color 0.2s;
    white-space: nowrap;
}

.topnav__link:hover {
    color: var(--clr-text-active);
}

.topnav__link--active {
    color: var(--clr-text-active);
    border-bottom: 1px solid rgba(76, 29, 149, 0.2);
    padding-bottom: 1px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    padding-top: 76px;
    padding-bottom: var(--section-gap);
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 48px;
    min-height: 208px;
    align-items: end;
}

.hero__left {
    grid-column: 1 / span 8;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__right {
    grid-column: 9 / span 4;
    align-self: end;
}

.hero__heading {
    display: flex;
    flex-direction: column;
    font-family: var(--font-ja);
    font-weight: 500;
    color: var(--clr-text);
    letter-spacing: -3.6px;
}

.hero__heading-line--sm {
    font-size: 72px;
    line-height: 72px;
}

.hero__heading-line--lg {
    font-size: 96px;
    line-height: 96px;
}

/* ===========================
   FEATURE 1: ISSUANCE
   =========================== */
.feature-issuance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--feature-col-gap);
    align-items: center;
    margin-bottom: var(--section-gap);
}

.feature-issuance__image-wrap {
    position: relative;
    background: var(--clr-bg-warm);
    border-radius: 8px;
    padding: 4px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.feature-issuance__img-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
}

.feature-issuance__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-issuance__desaturate {
    position: absolute;
    inset: 0;
    background: #ffffff;
    mix-blend-mode: saturation;
    pointer-events: none;
}

.feature-issuance__tint {
    position: absolute;
    inset: 0;
    background: rgba(75, 50, 157, 0.05);
    pointer-events: none;
    border-radius: 8px;
}

.feature-issuance__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-ja);
    font-size: 16px;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 24px;
}

.feature-list__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===========================
   FEATURE 2: VERIFICATION
   =========================== */
.feature-verification {
    background-color: var(--clr-bg-warm);
    padding-top: 128px;
    padding-bottom: 128px;
    margin-bottom: var(--section-gap);
}

.feature-verification__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 48px;
    align-items: center;
}

.feature-verification__content {
    grid-column: 1 / span 5;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-verification__image-col {
    grid-column: 6 / span 7;
    display: flex;
    justify-content: flex-end;
}

.feature-verification__image-wrap {
    position: relative;
    width: 100%;
    max-width: 671px;
    height: 500px;
}

.feature-verification__img-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.feature-verification__image {
    width: 100%;
    height: 134%;
    object-fit: cover;
    display: block;
    margin-top: -17%;
    opacity: 0.8;
}

.feature-verification__desaturate {
    position: absolute;
    inset: 0;
    background: #ffffff;
    mix-blend-mode: saturation;
    pointer-events: none;
}

.verification-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: fit-content;
}

.verification-card__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.verification-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.verification-card__status {
    font-family: var(--font-ja);
    font-size: 20px;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 28px;
}

.verification-float-card {
    position: absolute;
    bottom: -48px;
    left: -48px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(251, 249, 248, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 33px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.verification-float-card__text {
    font-family: var(--font-ja);
    font-size: 18px;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 28px;
    max-width: 236px;
}

/* ===========================
   FEATURE 3: ARCHIVING
   =========================== */
.feature-archiving {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--feature-col-gap);
    align-items: start;
    margin-bottom: var(--section-gap);
}

.feature-archiving__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.archiving-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--clr-bg-warm);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card__value {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--clr-purple);
    line-height: 36px;
}

.stat-card__label {
    font-family: var(--font-ja);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--clr-text-body);
    line-height: 16px;
}

.feature-archiving__mockup {
    padding-top: 48px;
}

.ledger-card {
    background: var(--clr-bg-archive);
    border-radius: 8px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding-bottom: 137px;
}

.ledger-card__inner {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ledger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--clr-border-subtle);
}

.ledger-header__title {
    font-family: var(--font-ja);
    font-size: 18px;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 28px;
}

.ledger-header__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.ledger-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ledger-row {
    background: var(--clr-bg-card);
    border-radius: 4px;
    padding: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ledger-row--selected {
    background: var(--clr-bg-warm);
    border: 1px solid var(--clr-purple-20);
    height: 42px;
    padding: 17px;
}

.ledger-row__bar {
    height: 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ledger-row__bar--gray    { background: var(--clr-bg-archive); }
.ledger-row__bar--purple-20 { background: var(--clr-purple-20); }
.ledger-row__bar--purple-40 { background: var(--clr-purple-40); }
.ledger-row__bar--purple-60 { background: var(--clr-purple-60); }

.ledger-image-section {
    border-radius: 4px;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(to top, rgba(75, 50, 157, 0.05), rgba(75, 50, 157, 0));
    position: relative;
}

.ledger-image-section__img {
    position: absolute;
    width: 100%;
    height: 300%;
    top: -100%;
    left: 0;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.3;
    pointer-events: none;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta {
    max-width: 1024px;
    margin: 0 auto;
    padding: 96px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.cta__heading {
    font-family: var(--font-ja);
    font-size: 36px;
    font-weight: 500;
    color: var(--clr-text);
    line-height: 40px;
    text-align: center;
}

.cta__buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--clr-bg-footer);
    border-top: 1px solid var(--clr-border-footer);
    padding-top: 97px;
    padding-bottom: 48px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: var(--clr-text-muted);
    line-height: 28px;
}

.footer__links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer__link {
    font-family: var(--font-ja);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    line-height: 16px;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--clr-text);
}

.footer__copy {
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    line-height: 16px;
}

/* ===========================
   RESPONSIVE: TABLET (≤1023px)
   — 768px ~ 1023px 대응
   =========================== */
@media (max-width: 1023px) {
    :root {
        --container-pad: 32px;
        --section-gap: 80px;
        --feature-col-gap: 48px;
    }

    /* Nav: 링크 간격·폰트 축소 */
    .topnav__links {
        gap: 32px;
    }

    .topnav__link {
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding-top: 56px;
    }

    .hero__heading {
        letter-spacing: -2.4px;
    }

    .hero__heading-line--sm {
        font-size: 56px;
        line-height: 58px;
    }

    .hero__heading-line--lg {
        font-size: 72px;
        line-height: 74px;
    }

    .body-text {
        font-size: 16px;
    }

    /* Feature headings */
    .feature-number {
        font-size: 56px;
        line-height: 56px;
    }

    .feature-heading {
        font-size: 40px;
        line-height: 42px;
    }

    /* Verification image & float card */
    .feature-verification__image-wrap {
        height: 380px;
    }

    .verification-float-card {
        left: -24px;
        bottom: -28px;
        padding: 20px 24px;
        max-width: 280px;
    }

    .verification-float-card__text {
        font-size: 16px;
        max-width: 100%;
    }
}

/* ===========================
   RESPONSIVE: MOBILE (≤767px)
   — 375px 기준 전면 재배치
   =========================== */
@media (max-width: 767px) {
    :root {
        --nav-height: 60px;
        --container-pad: 20px;
        --section-gap: 60px;
    }

    /* --- Navigation ---
       로고 + CTA 버튼만 남기고 링크 숨김 */
    .topnav__links {
        display: none;
    }

    .topnav__logo {
        font-size: 20px;
        letter-spacing: -0.8px;
    }

    .btn--gradient {
        font-size: 13px;
        padding: 8px 18px;
        height: 34px;
    }

    /* --- Hero ---
       단일 컬럼, 헤딩 크기 375px 기준 안전값
       "超越する核心。" 7글자 × 36px = 252px < (375-40)px = 335px ✓ */
    .hero {
        padding-top: 40px;
        padding-bottom: var(--section-gap);
    }

    .hero__grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: unset;
    }

    .hero__left,
    .hero__right {
        align-self: unset;
    }

    .hero__heading {
        letter-spacing: -1.2px;
    }

    .hero__heading-line--sm {
        font-size: 34px;
        line-height: 38px;
    }

    .hero__heading-line--lg {
        font-size: 36px;
        line-height: 42px;
    }

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

    /* --- Feature 공통 --- */
    .feature-number {
        font-size: 48px;
        line-height: 48px;
    }

    .feature-heading {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: -0.6px;
    }

    /* --- Feature 1: Issuance ---
       이미지 위, 텍스트 아래 */
    .feature-issuance {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .feature-issuance__image-wrap {
        aspect-ratio: 4 / 3;
    }

    .feature-issuance__img-inner {
        aspect-ratio: 4 / 3;
    }

    .feature-issuance__content {
        gap: 20px;
    }

    /* --- Feature 2: Verification ---
       텍스트 위, 이미지 아래, 플로팅 카드 → 일반 블록 */
    .feature-verification {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .feature-verification__container {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .feature-verification__content {
        gap: 20px;
    }

    .feature-verification__image-col {
        justify-content: stretch;
    }

    .feature-verification__image-wrap {
        height: 240px;
        max-width: 100%;
    }

    .verification-float-card {
        position: static;
        margin-top: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--clr-bg-card);
        border: 1px solid var(--clr-border-subtle);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        padding: 20px;
        max-width: 100%;
        border-radius: 8px;
    }

    .verification-float-card__text {
        font-size: 15px;
        max-width: 100%;
    }

    /* --- Feature 3: Archiving ---
       텍스트 위, 목업 아래 */
    .feature-archiving {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .feature-archiving__mockup {
        padding-top: 0;
    }

    .ledger-card {
        padding-bottom: 80px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card__value {
        font-size: 24px;
        line-height: 28px;
    }

    /* --- CTA --- */
    .cta {
        padding: 60px 20px;
        gap: 20px;
    }

    .cta__heading {
        font-size: 26px;
        line-height: 34px;
    }

    .cta__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .btn--primary,
    .btn--secondary {
        width: 100%;
        padding: 16px 24px;
    }

    /* --- Footer --- */
    .footer {
        padding-top: 48px;
        padding-bottom: 36px;
    }

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

    .footer__links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .footer__copy {
        font-size: 11px;
    }
}
