/* 올비전 v2 — LightWeight API */

.preview-note {
    padding: 10px var(--gutter);
    background: #0a1530;
    font-size: 13px;
    color: #cfe0ff;
    text-align: center;
}

code {
    font-family: var(--f-mono);
    font-size: 0.9em;
}

/* ─────────── 히어로 ─────────── */
.lw-hero {
    padding-top: 20px;
}

.lw-hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(40px, 6vw, 80px) clamp(22px, 4.5vw, 64px) clamp(120px, 14vw, 170px);
    border-radius: 28px;
    background: #02040c;
    box-shadow: 0 50px 120px -50px rgba(16, 60, 160, 0.55);
}

.lw-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(1px 1px at 8% 16%, #ffffff, transparent),
        radial-gradient(1px 1px at 20% 64%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.2px 1.2px at 36% 10%, #ffffff, transparent),
        radial-gradient(1px 1px at 52% 46%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 68% 8%, #ffffff, transparent),
        radial-gradient(1.4px 1.4px at 84% 26%, #ffffff, transparent),
        radial-gradient(1px 1px at 95% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(60, 120, 255, 0.16), transparent 70%);
}

.lw-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.runtime {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--star-soft);
}

.runtime b {
    padding-left: 10px;
    border-left: 1px solid var(--line-strong);
    font-weight: 600;
    color: var(--star);
}

.status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--caution);
}

.status-dot.ready {
    background: var(--clear);
}

.status-dot.ready::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulse 1.8s infinite;
}

.status-dot.down {
    background: var(--verdict);
}

.lw-copy h1 {
    margin-top: 24px;
    font-size: clamp(34px, 4.2vw, 50px);
    line-height: 1.08;
}

.lw-copy .lede {
    max-width: 32em;
    margin-top: 20px;
    font-size: clamp(15.5px, 1.4vw, 17.5px);
    line-height: 1.75;
    color: var(--star-soft);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.meta-chips li {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--star-soft);
}

/* 터미널 */
.term {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(10, 13, 22, 0.92);
    box-shadow:
        0 40px 100px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 0 80px -20px rgba(80, 150, 255, 0.35);
    backdrop-filter: blur(8px);
}

.term::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dots {
    display: flex;
    gap: 7px;
}

.dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.dots i:nth-child(1) {
    background: #ff5f57;
}

.dots i:nth-child(2) {
    background: #febc2e;
}

.dots i:nth-child(3) {
    background: #28c840;
}

.term-title {
    font-family: var(--f-mono);
    font-size: 12px;
    color: #6d768b;
}

.term-body {
    height: 360px;
    margin: 0;
    padding: 18px 20px;
    overflow: hidden;
    font-family: var(--f-mono);
    font-size: 12.8px;
    line-height: 1.7;
    color: #c9d3e6;
    white-space: pre-wrap;
    word-break: break-all;
}

.term-body .pr {
    color: #4ade9b;
}

.term-body .s {
    color: #9fd0ff;
}

.term-body .p {
    color: #c3a6ff;
}

.term-body .n {
    color: #ffcf7a;
}

.term-body .ok {
    color: #4ade9b;
}

.term-body .bad {
    color: #ff7b93;
}

.term-body .dim {
    color: #6d768b;
}

.caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    margin-bottom: -3px;
    background: #9fd0ff;
    animation: blink 1s steps(1) infinite;
}

.lw-earth {
    --er: 1500px;
    position: absolute;
    left: 50%;
    bottom: calc(80px - var(--er) * 2);
    z-index: -1;
    width: calc(var(--er) * 2);
    height: calc(var(--er) * 2);
    border-radius: 50%;
    background:
        radial-gradient(ellipse 20% 4% at 50% 1%, rgba(255, 255, 255, 0.45), transparent 70%),
        radial-gradient(ellipse 16% 3% at 36% 3%, rgba(255, 255, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 30% 6% at 64% 7%, rgba(60, 120, 80, 0.35), transparent 70%),
        linear-gradient(180deg, #4a9af0 0%, #1a5bbf 2.2%, #0b3278 8%, #061c48 18%);
    box-shadow:
        0 0 0 2px rgba(190, 230, 255, 0.85),
        0 0 40px 8px rgba(120, 200, 255, 0.7),
        0 0 160px 40px rgba(60, 140, 255, 0.35);
    transform: translateX(-50%);
}

.lw-sun {
    position: absolute;
    left: 50%;
    top: -4px;
    width: 520px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.85),
        rgba(190, 225, 255, 0.35) 25%,
        transparent 65%
    );
    filter: blur(2px);
    transform: translate(-50%, -50%);
}

@media (max-width: 960px) {
    .lw-hero-grid {
        grid-template-columns: 1fr;
    }

    .term-body {
        height: 300px;
        font-size: 12px;
    }
}

/* ─────────── 공통 섹션 ─────────── */
.sec {
    padding-block: clamp(88px, 11vw, 150px);
}

.sec-tight {
    padding-top: 0;
}

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px 56px;
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.sec-head h2 {
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 50px);
}

.sec-head p {
    max-width: 30em;
    color: var(--star-soft);
}

.ep {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(42, 111, 240, 0.25);
    border-radius: 8px;
    background: rgba(42, 111, 240, 0.07);
    font-size: 13px;
    color: var(--signal);
}

@media (max-width: 820px) {
    .sec-head {
        grid-template-columns: 1fr;
    }
}

/* ─────────── 작동 구조 ─────────── */
.flow {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 0;
}

.node {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}

.node strong {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.node small {
    font-size: 13.5px;
    color: var(--star-soft);
}

.node-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(135deg, #9ccbff, #2a6ff0);
    box-shadow: 0 10px 22px -10px rgba(42, 111, 240, 0.8);
}

.node-ico svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-host {
    background:
        radial-gradient(ellipse 90% 60% at 50% 130%, rgba(60, 140, 255, 0.4), transparent 70%),
        #02040c;
    border-color: rgba(120, 180, 255, 0.25);
    box-shadow:
        0 30px 80px -30px rgba(16, 60, 160, 0.7),
        0 0 0 1px rgba(120, 180, 255, 0.1);
}

.node-host .node-ico {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(120, 190, 255, 0.5);
}

.seal {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 3px 9px;
    border: 1px solid rgba(74, 222, 155, 0.35);
    border-radius: 999px;
    background: rgba(74, 222, 155, 0.08);
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--clear);
}

.wire {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 0 18px;
}

.wire-label {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--signal);
    text-align: center;
}

.wire-label.back {
    order: 4;
    color: var(--clear);
}

.wire-line {
    position: relative;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(42, 111, 240, 0.15), rgba(42, 111, 240, 0.45));
}

.wire-line.back {
    order: 3;
    background: linear-gradient(270deg, rgba(15, 155, 102, 0.15), rgba(15, 155, 102, 0.45));
}

.wire-line i {
    position: absolute;
    top: -3px;
    left: -12px;
    width: 12px;
    height: 8px;
    border-radius: 4px;
    background: var(--signal);
    box-shadow: 0 0 12px var(--signal);
    animation: packet 2.4s linear infinite;
}

.wire-line i:nth-child(2) {
    animation-delay: 0.8s;
}

.wire-line i:nth-child(3) {
    animation-delay: 1.6s;
}

.wire-line.back i {
    left: auto;
    right: -12px;
    background: var(--clear);
    box-shadow: 0 0 12px var(--clear);
    animation-name: packet-back;
    animation-delay: 1.2s;
}

.wire-line.back i:nth-child(2) {
    animation-delay: 2.4s;
}

.guarantees {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.guarantees li {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
}

.guarantees b {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.guarantees b::before {
    content: '✓';
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15, 155, 102, 0.12);
    font-size: 10px;
    color: var(--clear);
}

.guarantees span {
    font-size: 13.5px;
    color: var(--star-soft);
}

@media (max-width: 900px) {
    .flow {
        grid-template-columns: 1fr;
    }

    .wire {
        padding: 18px 0;
    }

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

@media (max-width: 520px) {
    .guarantees {
        grid-template-columns: 1fr;
    }
}

/* ─────────── 계정과 키 ─────────── */
.access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.acard {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}

.acard-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
}

.step {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9ccbff, #2a6ff0);
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 10px 22px -10px rgba(42, 111, 240, 0.8);
}

.acard h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.acard-head p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--star-soft);
}

.astate {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.astate strong {
    font-size: 15.5px;
    font-weight: 600;
}

.astate p {
    font-size: 14px;
    color: var(--star-soft);
}

.astate .btn {
    justify-content: center;
    margin-top: 4px;
}

.full {
    width: 100%;
}

.astate.done {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    border-color: rgba(15, 155, 102, 0.25);
    background: rgba(15, 155, 102, 0.06);
}

.done-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--clear);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(15, 155, 102, 0.8);
}

.astate.locked {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--haze);
}

.lock {
    position: relative;
    flex: none;
    width: 16px;
    height: 12px;
    margin-top: 6px;
    border-radius: 3px;
    background: var(--haze);
}

.lock::before {
    content: '';
    position: absolute;
    left: 3px;
    top: -7px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--haze);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
}

.turnstile-widget:empty {
    display: none;
}

.inline-msg {
    min-height: 1em;
    font-size: 13px;
    color: var(--verdict);
}

.inline-msg:empty {
    display: none;
}

.key-row > div {
    min-width: 0;
}

.key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink);
}

.key-row div span {
    display: block;
    font-size: 12px;
    color: var(--haze);
}

.key-row div strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-family: var(--f-mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.perm {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(42, 111, 240, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: var(--signal);
}

.reissue {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(224, 67, 92, 0.3);
    border-radius: 12px;
    background: rgba(224, 67, 92, 0.05);
}

.reissue strong {
    color: var(--verdict);
}

.btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 820px) {
    .access-grid {
        grid-template-columns: 1fr;
    }
}

/* 발급된 키 */
.token-box {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    margin-top: 16px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 60% 120% at 0% 0%, rgba(60, 140, 255, 0.3), transparent 60%),
        #02040c;
    box-shadow: 0 40px 100px -40px rgba(16, 60, 160, 0.6);
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-box h3 {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.token-box p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--star-soft);
}

.token-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--star-soft);
}

.secret {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.secret input {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--star);
    font-family: var(--f-mono);
    font-size: 14px;
    outline: none;
}

.secret button {
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--star);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.secret button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.text-btn {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--haze);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 820px) {
    .token-box {
        grid-template-columns: 1fr;
    }
}

/* ─────────── 실시간 테스트 ─────────── */
.tester {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
}

.tcard,
.rcard {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}

.tcard {
    display: grid;
    gap: 12px;
}

.tcard label {
    font-size: 15px;
    font-weight: 600;
}

.samples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.samples button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--panel);
    color: var(--star-soft);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition:
        border-color 0.2s,
        color 0.2s;
}

.samples button:hover {
    border-color: var(--signal);
    color: var(--signal);
}

.tcard textarea {
    width: 100%;
    min-height: 170px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--panel);
    color: var(--star);
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.tcard textarea:focus {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(42, 111, 240, 0.12);
}

.tmeta {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--haze);
    font-variant-numeric: tabular-nums;
}

.tcard .btn {
    justify-self: start;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.thint {
    font-size: 13px;
    color: var(--haze);
}

.thint:empty {
    display: none;
}

.rcard {
    display: flex;
    flex-direction: column;
}

.rempty {
    display: grid;
    flex: 1;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 30px 10px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    text-align: center;
}

.rempty-ico {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 13px;
    background:
        linear-gradient(var(--ink), var(--ink)) padding-box,
        linear-gradient(135deg, #9ccbff, #2a6ff0) border-box;
    border: 2px solid transparent;
    position: relative;
}

.rempty-ico::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid #2a6ff0;
    border-bottom: 2.5px solid #2a6ff0;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.rempty strong {
    font-size: 15px;
}

.rempty p {
    max-width: 22em;
    font-size: 13.5px;
    color: var(--haze);
}

.result {
    display: grid;
    gap: 8px;
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rtop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.verdict {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 155, 102, 0.1);
    font-size: 15px;
    font-weight: 700;
    color: var(--clear);
}

.verdict::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.verdict.violation {
    background: rgba(224, 67, 92, 0.1);
    color: var(--verdict);
}

.conf {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--star-soft);
    font-variant-numeric: tabular-nums;
}

.meter {
    height: 6px;
    margin: 6px 0 10px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--raise);
}

.meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7fe0b4, var(--clear));
    transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meter.violation i {
    background: linear-gradient(90deg, #ff9aaa, var(--verdict));
}

.rlabel {
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--haze);
}

.reason {
    font-size: 15px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips span {
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--panel);
    font-size: 13px;
    color: var(--star-soft);
}

.chips:empty::after {
    content: '해당 없음';
    font-size: 13px;
    color: var(--haze);
}

.rid {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--haze);
    word-break: break-all;
}

@media (max-width: 860px) {
    .tester {
        grid-template-columns: 1fr;
    }
}

/* ─────────── 빠른 시작 ─────────── */
.docs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 16px;
}

.code-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0b0e17;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 40px 90px -40px rgba(16, 60, 160, 0.55);
}

.code-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 46px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-tabs button[role='tab'] {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--haze);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.code-tabs button[aria-selected='true'] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--star);
}

.code-name {
    padding-left: 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--haze);
}

.code-copy {
    height: 30px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: transparent;
    color: var(--star-soft);
    font: 500 12px var(--f-mono);
    cursor: pointer;
}

.code-copy:hover {
    color: var(--star);
}

.code {
    margin: 0;
    padding: 20px 22px;
    overflow-x: auto;
    font-family: var(--f-mono);
    font-size: 13px;
    line-height: 1.75;
    color: #c9d3e6;
}

.code code {
    font-size: inherit;
}

.code .k {
    color: #c3a6ff;
}

.code .s {
    color: #9fd0ff;
}

.code .f {
    color: #7fe0b4;
}

.code .c {
    color: #6d768b;
    font-style: italic;
}

.code .n {
    color: #ffcf7a;
}

.code .p {
    color: #c3a6ff;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.spec {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}

.spec h3 {
    font-size: 16px;
    font-weight: 700;
}

.spec dl {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
}

.spec dl div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.spec dt {
    color: var(--haze);
}

.spec dd {
    margin: 0;
    color: var(--star-soft);
}

.spec code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--raise);
    color: var(--star);
}

.code-pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
}

.code-pill.c4 {
    background: rgba(196, 122, 8, 0.1);
    color: var(--caution);
}

.code-pill.c5 {
    background: rgba(224, 67, 92, 0.1);
    color: var(--verdict);
}

@media (max-width: 960px) {
    .docs-grid,
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────── 마무리 ─────────── */
.lw-end {
    padding-bottom: clamp(64px, 9vw, 112px);
}

.lw-end-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 70% 140% at 0% 120%, rgba(60, 140, 255, 0.45), transparent 60%),
        radial-gradient(ellipse 40% 80% at 100% 0%, rgba(135, 206, 235, 0.18), transparent 60%),
        #02040c;
    box-shadow: 0 40px 100px -50px rgba(16, 60, 160, 0.6);
}

.lw-end-card h2 {
    font-size: clamp(26px, 3.4vw, 40px);
}

.lw-end-card p {
    margin-top: 8px;
    color: var(--star-soft);
}

.lw-end-card .hero-cta {
    margin-top: 0;
}

/* ─────────── 키프레임 ─────────── */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 155, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 155, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 155, 0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes packet {
    from {
        left: -12px;
    }

    to {
        left: 100%;
    }
}

@keyframes packet-back {
    from {
        right: -12px;
    }

    to {
        right: 100%;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}
