@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #10243e;
  --muted: #5f7085;
  --line: #dbe5ee;
  --paper: #ffffff;
  --surface: #f4f8fb;
  --deep: #073b66;
  --brand: #087ec2;
  --brand-2: #20a6d2;
  --mint: #dff8f3;
  --success: #0b8267;
  --warning: #fff5d9;
  --shadow: 0 22px 60px rgba(23, 62, 95, .12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.68;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(219,229,238,.82);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; box-shadow: 0 7px 18px rgba(8,126,194,.16); }
.brand small { display: block; margin-top: -3px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.language-switch { display: inline-flex; margin-left: auto; padding: 3px; background: #edf4f8; border-radius: 999px; }
.language-switch a { min-width: 34px; padding: 6px 8px; color: #6c8093; border-radius: 999px; text-align: center; text-decoration: none; font-size: 11px; font-weight: 800; }
.language-switch a.active { color: white; background: var(--brand); box-shadow: 0 4px 10px rgba(8,126,194,.2); }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.main-nav a { text-decoration: none; color: #3b526c; }
.main-nav a:hover { color: var(--brand); }
.nav-cta { padding: 10px 16px; color: white !important; background: var(--deep); border-radius: 999px; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 104px;
  background:
    radial-gradient(circle at 84% 20%, rgba(50,189,222,.22), transparent 26%),
    radial-gradient(circle at 13% 82%, rgba(93,209,185,.16), transparent 24%),
    linear-gradient(145deg, #f7fcff 0%, #edf7fb 56%, #f6fbf8 100%);
}
.hero::before, .hero::after { content: ''; position: absolute; border: 1px solid rgba(8,126,194,.11); border-radius: 50%; }
.hero::before { width: 420px; height: 420px; right: -180px; top: -210px; }
.hero::after { width: 300px; height: 300px; left: -170px; bottom: -185px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--brand); font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 99px; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.13; letter-spacing: -.055em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 650px; margin: 25px 0 0; color: #50667e; font-size: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; color: #36556f; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(38,85,119,.06); }
.hero-facts span::before { content: ''; width: 7px; height: 7px; background: var(--brand-2); border-radius: 50%; }

.start-panel { position: relative; padding: 32px; background: rgba(255,255,255,.94); border: 1px solid white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.start-panel::before { content: ''; position: absolute; inset: 12px 12px auto auto; width: 66px; height: 66px; background: linear-gradient(145deg, rgba(32,166,210,.18), rgba(93,209,185,.12)); border-radius: 22px; transform: rotate(12deg); }
.panel-kicker { margin: 0 0 4px; color: var(--brand); font-size: 13px; font-weight: 800; }
.start-panel h2 { margin: 0 0 22px; font-size: 25px; letter-spacing: -.035em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.choice-card { position: relative; display: flex; align-items: center; min-height: 92px; gap: 14px; padding: 17px; overflow: hidden; color: var(--ink); background: #f8fbfd; border: 1px solid #e1eaf1; border-radius: 18px; text-decoration: none; font-weight: 800; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.choice-card:hover { z-index: 2; transform: translateY(-3px); background: white; border-color: #8bcce8; box-shadow: 0 14px 26px rgba(13,95,143,.12); }
.choice-card.is-pressed { transform: scale(.98); }
.choice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; color: var(--brand); background: #e6f5fb; border-radius: 15px; }
.choice-icon svg { width: 25px; height: 25px; }
.choice-arrow { margin-left: auto; color: #8aa0b5; font-size: 20px; }

.trust-section { padding: 84px 0; background: white; }
.trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.section-label { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trust-section h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.24; letter-spacing: -.045em; }
.trust-content p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.credential { padding: 20px; background: var(--surface); border: 1px solid #e4edf3; border-radius: 16px; }
.credential strong { display: block; margin-bottom: 4px; font-size: 15px; }
.credential span { color: var(--muted); font-size: 13px; }

.test-page { min-height: calc(100vh - 76px); padding: 54px 0 92px; background:
  radial-gradient(circle at 90% 10%, rgba(32,166,210,.14), transparent 25%),
  var(--surface);
}
.test-shell { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.test-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.toolbar-button, .restart-link { display: inline-flex; align-items: center; gap: 7px; color: #526b82; background: transparent; border: 0; text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.toolbar-button:hover, .restart-link:hover { color: var(--brand); }
.progress-pill { padding: 7px 11px; color: var(--brand); background: #e5f4fa; border-radius: 999px; font-size: 12px; font-weight: 800; }
.test-card { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 58px); background: white; border: 1px solid #e4edf3; border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(26,70,103,.1); }
.test-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--brand), #47c7c1); }
.question-index { display: inline-flex; margin-bottom: 18px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.test-card h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.28; letter-spacing: -.045em; }
.intro-text { margin: 15px 0 0; color: var(--muted); font-size: 17px; }
.explanation { margin-top: 28px; padding: 22px 24px; color: #496078; background: #f5f9fc; border-left: 4px solid #84cae8; border-radius: 0 15px 15px 0; }
.explanation p { margin: 0; }
.explanation p + p { margin-top: 13px; }
.question-title { margin: 38px 0 18px; font-size: 21px; letter-spacing: -.025em; }
.answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer-grid .choice-card { min-height: 82px; padding: 17px 20px; background: white; border-width: 1.5px; font-size: 16px; }
.answer-grid .choice-card:hover { border-color: var(--brand); }
.answer-grid .choice-icon { width: 42px; height: 42px; border-radius: 14px; }
.answer-grid.options-3, .answer-grid.options-4 { grid-template-columns: repeat(2, 1fr); }

.result-card::before { background: linear-gradient(90deg, var(--success), #47c7c1); }
.result-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 11px; color: var(--success); background: var(--mint); border-radius: 999px; font-size: 12px; font-weight: 800; }
.result-badge svg { width: 16px; height: 16px; }
.result-copy { margin-top: 25px; color: #465e76; font-size: 17px; }
.result-copy p { margin: 0; }
.result-copy p + p { margin-top: 15px; }
.notice-box { display: flex; gap: 13px; margin-top: 28px; padding: 18px 20px; color: #6d571a; background: var(--warning); border-radius: 16px; font-size: 13px; }
.notice-box svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.contact-panel { margin-top: 32px; padding: 25px; background: var(--deep); border-radius: 20px; color: white; }
.contact-panel small { color: #a9d3e9; font-weight: 700; }
.contact-panel h2 { margin: 5px 0 7px; font-size: 23px; }
.contact-panel p { margin: 0 0 19px; color: #c8ddea; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-cta, .secondary-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 800; }
.primary-cta { color: var(--deep); background: white; }
.secondary-cta { color: white; border: 1px solid rgba(255,255,255,.32); }
.result-actions { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.result-actions a { color: #557087; font-size: 14px; font-weight: 700; }

.site-footer { padding: 54px 0 92px; color: #a7bfd0; background: #082f50; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.footer-brand { color: white; font-size: 20px; font-weight: 800; }
.footer-grid p { max-width: 610px; margin: 12px 0 0; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; align-content: start; }
.footer-links a { color: #c4d6e3; text-decoration: none; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.mobile-call { display: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding-top: 62px; }
  .trust-grid { grid-template-columns: 1fr; gap: 30px; }
  .main-nav { display: none; position: absolute; top: 68px; left: 20px; right: 20px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .menu-button { display: grid; place-items: center; }
}

@media (max-width: 620px) {
  .container, .test-shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
  .brand span { font-size: 14px; }
  .brand small { font-size: 9px; }
  .language-switch a { min-width: 31px; padding: 5px 6px; }
  .hero { padding: 52px 0 72px; }
  .hero h1 { font-size: 41px; }
  .hero-copy { font-size: 16px; }
  .hero-facts { gap: 7px; }
  .hero-facts span { font-size: 12px; }
  .start-panel { padding: 22px; border-radius: 24px; }
  .choice-grid, .answer-grid, .answer-grid.options-3, .answer-grid.options-4 { grid-template-columns: 1fr; }
  .start-panel .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .start-panel .choice-card { min-height: 118px; flex-direction: column; align-items: flex-start; gap: 11px; }
  .start-panel .choice-arrow { position: absolute; right: 14px; top: 15px; }
  .trust-section { padding: 64px 0; }
  .credentials { grid-template-columns: 1fr; }
  .test-page { padding: 28px 0 74px; }
  .test-card { padding: 33px 23px; border-radius: 24px; }
  .test-card h1 { font-size: 30px; }
  .intro-text, .result-copy { font-size: 15px; }
  .question-title { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 110px; }
  .mobile-call { position: fixed; z-index: 40; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; min-height: 54px; color: white; background: var(--brand); border-radius: 16px; box-shadow: 0 16px 35px rgba(0,82,132,.28); text-decoration: none; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 420px) {
  .header-inner { gap: 7px; }
  .brand { gap: 7px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .brand span { max-width: 92px; font-size: 11.5px; line-height: 1.2; }
  .brand small { display: none; }
  .language-switch { padding: 2px; }
  .language-switch a { min-width: 28px; padding: 5px 4px; font-size: 10px; }
  .menu-button { width: 38px; height: 38px; }
}
