:root {
    color-scheme: dark;
    --bg: #080809;
    --surface: #111114;
    --surface-2: #17171b;
    --line: #2a292f;
    --line-strong: #454149;
    --text: #f7f5f7;
    --muted: #aaa5ad;
    --subtle: #757078;
    --red: #ff4d5f;
    --red-soft: #2f161a;
    --violet: #b58aff;
    --rose: #ff829a;
    --cyan: #6cd6c9;
    --focus: #ff9ba5;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before { position: fixed; z-index: 1000; inset: 0 0 auto; height: 2px; background: var(--red); content: ""; }
a, button { font: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #111; text-decoration: none; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #242326;
    background: rgba(8, 8, 9, .92);
    backdrop-filter: blur(16px);
}
.header-inner, main, .site-footer { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: max-content; align-items: center; text-decoration: none; }
.brand img { width: 142px; height: auto; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 140ms ease; }
.desktop-nav a:hover { color: var(--text); }

.auth-shell { position: relative; justify-self: end; }
.auth-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.auth-button:hover { border-color: #69636c; background: var(--surface-2); transform: translateY(-1px); }
.auth-button:active { transform: translateY(0); }
.google-mark { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; background: #f7f7f7; color: #4285f4; font: 800 12px/1 Arial, sans-serif; }
.auth-chevron { color: var(--subtle); font-size: 14px; transition: transform 150ms ease; }
.auth-button[aria-expanded="true"] .auth-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 276px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: #151518; box-shadow: 0 24px 60px rgba(0,0,0,.46); }
.account-summary { display: flex; align-items: center; gap: 11px; padding: 11px 10px 14px; border-bottom: 1px solid var(--line); }
.account-summary > span:last-child { min-width: 0; display: grid; }
.account-summary strong, .account-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary strong { font-size: 13px; }
.account-summary small { margin-top: 2px; color: var(--subtle); font-size: 11px; }
.account-initial { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; }
.account-menu a, .account-menu button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: #202024; color: var(--text); }

.hero { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(410px, .72fr); align-items: center; gap: 82px; padding: 82px 0 94px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: var(--red); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .process h2, .save-panel h2 { margin: 0; font-weight: 770; letter-spacing: -.06em; line-height: .99; }
.hero h1 { max-width: 720px; font-size: clamp(54px, 6.7vw, 84px); }
.hero-lead { max-width: 610px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.72; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 35px; }
.primary-cta { min-width: 248px; min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 19px; border: 1px solid var(--red); border-radius: 9px; background: var(--red); color: #160507; font-size: 15px; font-weight: 820; text-decoration: none; box-shadow: 0 14px 34px rgba(255,77,95,.18); transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.primary-cta:hover { background: #ff6675; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,77,95,.2); }
.primary-cta:active { transform: translateY(0); }
.text-cta { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: #4b484e; text-underline-offset: 6px; }
.text-cta:hover { color: var(--text); text-decoration-color: var(--text); }
.hero-facts { display: flex; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-facts li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.hero-facts strong { color: var(--muted); font-size: 11px; font-weight: 700; }

.featured-start { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 27px; border: 1px solid #763641; border-radius: var(--radius); background: linear-gradient(155deg, #3a191f 0%, #211216 56%, #121114 100%); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.3); text-decoration: none; transition: transform 200ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.featured-start::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--red); content: ""; }
.featured-start:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 36px 90px rgba(255,77,95,.12); }
.featured-head { display: flex; align-items: center; justify-content: space-between; color: #ff9ca7; font-size: 10px; font-weight: 760; }
.featured-head small { color: #9d777d; font-size: 10px; font-weight: 650; }
.featured-hook { margin: 42px 0 36px; font-size: clamp(31px, 3.2vw, 42px); font-weight: 760; letter-spacing: -.055em; line-height: 1.12; }
.featured-title { display: flex; align-items: baseline; gap: 11px; padding-top: 19px; border-top: 1px solid #553037; }
.featured-title > span { color: var(--red); font-size: 10px; font-weight: 800; }
.featured-title h2 { margin: 0; font-size: 21px; font-weight: 740; letter-spacing: -.035em; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.featured-tags span { padding: 5px 7px; border: 1px solid #593139; border-radius: 5px; color: #caa9ae; font-size: 9px; }
.featured-button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; margin: 25px -27px -27px; padding: 0 27px; background: var(--red); color: #190609; font-size: 14px; font-weight: 830; }
.featured-button b { font-size: 19px; transition: transform 170ms ease; }
.featured-start:hover .featured-button b { transform: translateX(4px); }

.assessments { padding: 104px 0 96px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(310px, 430px); align-items: end; gap: 60px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(44px, 5.5vw, 66px); }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.65; word-break: keep-all; }
.assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assessment-card { --tone: var(--red); --tone-soft: var(--red-soft); position: relative; min-height: 278px; display: flex; flex-direction: column; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease; }
.assessment-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone); content: ""; opacity: .55; transition: width 180ms ease, opacity 180ms ease; }
.assessment-card[data-tone="violet"] { --tone: var(--violet); --tone-soft: #271d34; }
.assessment-card[data-tone="rose"] { --tone: var(--rose); --tone-soft: #311a21; }
.assessment-card[data-tone="cyan"] { --tone: var(--cyan); --tone-soft: #142a28; }
.assessment-card[data-tone="gold"] { --tone: #f1c56f; --tone-soft: #302719; }
.assessment-card.saju-card { grid-column: 1 / -1; min-height: 250px; }
.assessment-card:hover { border-color: var(--tone); background: var(--tone-soft); transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0,0,0,.24); }
.assessment-card:hover::before { width: 5px; opacity: 1; }
.card-head, .card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-number { color: var(--tone); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.card-badge, .card-status { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--subtle); font-size: 10px; font-weight: 700; }
.card-badge { border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); background: var(--tone-soft); color: var(--tone); }
.card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 27px 0; }
.card-body > p { margin: 0 0 8px; color: var(--tone); font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
.card-body h3 { margin: 0; color: var(--text); font-size: 28px; font-weight: 750; letter-spacing: -.045em; }
.card-body > span { max-width: 470px; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.6; word-break: keep-all; }
.card-foot { min-height: 44px; display: flex; align-items: center; margin: 0 -25px -25px; padding: 0 25px; border-top: 1px solid var(--line); background: var(--tone-soft); color: var(--subtle); font-size: 10px; }
.card-foot strong { display: inline-flex; align-items: center; gap: 12px; color: var(--tone); font-size: 12px; }
.card-foot b { color: var(--tone); font-size: 16px; font-weight: 400; transition: transform 180ms ease; }
.assessment-card:hover .card-foot b { transform: translate(3px,-3px); }

.process { display: grid; grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); gap: 100px; padding: 108px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.process h2 { font-size: clamp(40px, 5vw, 61px); }
.process-intro > p:last-child { max-width: 480px; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; word-break: keep-all; }
.process-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.process-list strong { display: block; font-size: 17px; font-weight: 720; }
.process-list p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.save-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 28px; padding: 54px; border: 1px solid #61323a; border-radius: var(--radius); background: var(--red-soft); }
.save-panel h2 { font-size: clamp(38px, 4.5vw, 56px); }
.save-copy { align-self: center; }
.save-copy > p { margin: 0; color: #c8b9bc; font-size: 14px; line-height: 1.78; word-break: keep-all; }
.panel-login { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 0 15px; border: 1px solid #fff; border-radius: 8px; background: #fff; color: #171316; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.panel-login b { margin-left: auto; }
.panel-login:hover { background: #f5f1f2; transform: translateY(-2px); }
.panel-login.is-signed-in { border-color: #7b4a52; background: transparent; color: var(--text); }
.save-copy > small { display: block; margin-top: 10px; color: #8f7479; font-size: 10px; }

.safety-note { display: flex; align-items: flex-start; gap: 13px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; color: var(--subtle); }
.safety-note > span { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 700 11px/1 Georgia, serif; }
.safety-note p { margin: 0; font-size: 11px; line-height: 1.75; }
.safety-note strong { color: var(--muted); }

.site-footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 70px; border-top: 1px solid var(--line); }
.footer-brand img { width: 126px; }
.site-footer > div { display: flex; align-items: center; gap: 22px; color: var(--subtle); font-size: 11px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.toast { position: fixed; z-index: 500; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: #1a191d; color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.4); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 520ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .desktop-nav { display: none; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding: 72px 0 80px; }
    .hero-copy { max-width: 780px; }
    .featured-start { width: min(100%, 620px); }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
    .process { grid-template-columns: 1fr; gap: 54px; }
    .save-panel { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
    .header-inner, main, .site-footer { width: min(100% - 32px, 1180px); }
    .header-inner { min-height: 66px; gap: 12px; }
    .brand img { width: 116px; }
    .auth-button { min-height: 38px; padding: 0 11px; }
    .auth-button #authLabel { white-space: nowrap; }
    .auth-chevron { display: none; }
    .account-menu { position: fixed; top: 70px; right: 16px; left: 16px; width: auto; }
    .hero { gap: 38px; padding: 54px 0 62px; }
    .hero h1 { font-size: clamp(45px, 12.5vw, 61px); }
    .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.68; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .primary-cta { width: 100%; }
    .text-cta { width: max-content; }
    .hero-facts { gap: 6px; flex-wrap: wrap; margin-top: 25px; }
    .featured-start { padding: 23px; }
    .featured-hook { margin: 34px 0 31px; font-size: 32px; }
    .featured-button { margin: 22px -23px -23px; padding: 0 23px; }
    .assessments { padding: 78px 0 72px; }
    .section-heading h2, .process h2 { font-size: 44px; }
    .assessment-grid { grid-template-columns: 1fr; }
    .assessment-card { min-height: 260px; padding: 22px; }
    .assessment-card.saju-card { grid-column: auto; }
    .card-body > p { font-size: 14px; }
    .card-body h3 { font-size: 25px; }
    .card-foot { margin: 0 -22px -22px; padding: 0 22px; }
    .process { gap: 42px; padding: 78px 0; }
    .process-list li { grid-template-columns: 38px 1fr; gap: 12px; }
    .save-panel { margin-right: -16px; margin-left: -16px; padding: 34px 24px; border-right: 0; border-left: 0; border-radius: 0; }
    .save-panel h2 { font-size: 42px; }
    .save-title-last { display: block; }
    .site-footer { min-height: 160px; align-items: flex-start; flex-direction: column; justify-content: center; }
    .site-footer > div { flex-wrap: wrap; gap: 12px 18px; }
    .toast { right: 16px; bottom: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
}
