:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657083;
  --line: #d9e1ea;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --teal: #1d8f86;
  --coral: #e46c54;
  --amber: #f5b84b;
  --violet: #6b5bd6;
  --shadow: 0 18px 55px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid rgba(217, 225, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.hero-actions,
.quiz-controls,
.result-actions,
.meta-row,
.footer-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.top-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: 70px clamp(22px, 5vw, 82px) 42px;
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.ghost-button,
.tab,
.answer-option,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action {
  background: var(--ink);
  color: white;
}

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

.button-reset {
  appearance: none;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.orbital {
  position: absolute;
  inset: 42px 20px 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(29, 143, 134, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 237, 0.9));
  border: 1px solid rgba(217, 225, 234, 0.9);
  box-shadow: var(--shadow);
}

.orbital::before,
.orbital::after {
  position: absolute;
  inset: 17%;
  content: "";
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 50%;
}

.orbital::after {
  inset: 29%;
  border-color: rgba(29, 143, 134, 0.22);
}

.node,
.center-pulse {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.node {
  width: 58px;
  height: 58px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.18);
}

.node-a {
  top: 16%;
  left: 24%;
  background: var(--coral);
}

.node-b {
  top: 24%;
  right: 16%;
  background: var(--amber);
}

.node-c {
  bottom: 20%;
  left: 17%;
  background: var(--teal);
}

.node-d {
  right: 23%;
  bottom: 16%;
  background: var(--violet);
}

.center-pulse {
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.center-pulse::after {
  position: absolute;
  inset: 34px;
  content: "";
  border-radius: inherit;
  background: white;
}

.score-strip,
.type-strip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(240px, 52vw);
  padding: 16px 18px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.14);
}

.score-strip {
  top: 84px;
  right: 0;
}

.type-strip {
  left: 0;
  bottom: 54px;
}

.score-strip span,
.type-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.score-strip strong,
.type-strip strong {
  font-size: 1.35rem;
}

.ad-slot {
  display: block;
  min-height: 96px;
  padding: 18px;
  border: 1px dashed #b7c4d2;
  border-radius: 8px;
  background: #f3f6f1;
  color: var(--muted);
  text-align: center;
}

.ad-slot .adsbygoogle {
  display: block !important;
  width: 100%;
  min-width: 250px;
  min-height: 90px;
}

.ad-slot span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--ink);
}

.ad-global {
  margin: 22px clamp(22px, 5vw, 82px);
}

.ad-global-bottom {
  margin-top: 0;
}

.ad-content {
  margin: 0 clamp(22px, 5vw, 82px) 52px;
}

.ad-result {
  margin: 0 clamp(22px, 5vw, 82px) 48px;
}

.ad-top {
  margin: 0 clamp(22px, 5vw, 82px) 52px;
}

.test-shell,
.content-band,
.faq {
  padding: 72px clamp(22px, 5vw, 82px);
}

.page-hero {
  padding: 74px clamp(22px, 5vw, 82px) 44px;
}

.page-hero.compact {
  max-width: 920px;
}

.page-hero h1 {
  font-size: clamp(2.15rem, 6vw, 4.4rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row span,
.meta-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.guide-filter a {
  color: var(--ink);
}

.guide-filter a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.feature-card span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card h3 {
  margin: 12px 0 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.compact-card {
  min-height: 190px;
  box-shadow: none;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.faq h2,
.result-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.test-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(520px, 100%);
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.tab {
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.tab.is-active {
  background: var(--ink);
  color: white;
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 20px;
}

.quiz-panel,
.side-panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quiz-panel {
  min-height: 500px;
  padding: clamp(22px, 4vw, 42px);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.progress-track {
  height: 10px;
  margin: 16px 0 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 180ms ease;
}

.quiz-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  line-height: 1.18;
}

.quiz-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  line-height: 1.18;
}

.quiz-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.answer-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 750;
}

.answer-option::before {
  width: 18px;
  height: 18px;
  content: "";
  border: 2px solid #b8c4d1;
  border-radius: 50%;
}

.answer-option.is-selected {
  border-color: var(--teal);
  background: #eef9f5;
}

.answer-option.is-selected::before {
  border-color: var(--teal);
  background: radial-gradient(circle at 50% 50%, var(--teal) 0 45%, transparent 48%);
}

.quiz-controls {
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.icon-button,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.icon-button {
  width: 48px;
  background: var(--ink);
  color: white;
  font-size: 1.55rem;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.ghost-button {
  padding: 0 16px;
  background: #eef2f6;
  color: var(--muted);
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  box-shadow: none;
}

.mini-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.link-card {
  color: inherit;
}

.mini-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #e9f7f4;
  color: var(--teal);
  font-weight: 900;
}

.mini-card strong {
  display: block;
  margin-bottom: 2px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.side-ad {
  min-height: 250px;
}

.side-ad .adsbygoogle {
  min-height: 250px;
}

.result-section {
  padding: 0 clamp(22px, 5vw, 82px) 72px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px clamp(22px, 5vw, 82px) 72px;
}

.result-layout.single {
  grid-template-columns: minmax(0, 860px);
}

.content-article {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.content-article h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article p {
  margin: 0 0 16px;
  color: #3f4a5a;
  font-size: 1.02rem;
}

.lead-answer {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 1.15rem !important;
  font-weight: 750;
}

.notice-box {
  padding: 16px;
  border: 1px solid #cbe4df;
  border-radius: 8px;
  background: #eef9f5;
  color: #23645e;
  font-weight: 750;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #3f4a5a;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.article-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.side-list h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.side-list a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.result-card {
  padding: clamp(24px, 5vw, 48px);
  background: #172033;
  color: white;
}

.result-card .eyebrow,
.result-card p {
  color: #a7dcd4;
}

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

.result-grid div {
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.result-grid span {
  display: block;
  color: #a7dcd4;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.result-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.result-card .primary-action {
  background: white;
  color: var(--ink);
}

.result-card .secondary-action {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
}

.content-band {
  background: #eef3f0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.article-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-grid div {
  padding: 18px;
}

.article-grid article:not(:has(img)) div {
  min-height: 190px;
}

.article-grid span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.article-grid h3 {
  margin: 8px 0;
  font-size: 1.18rem;
  line-height: 1.24;
}

.article-grid p {
  margin: 0;
  color: var(--muted);
}

.faq {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 82px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

.footer-nav {
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 750;
}

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

  .top-nav {
    gap: 14px;
  }

  .hero,
  .test-layout,
  .result-layout,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .test-layout {
    gap: 16px;
  }

  .result-grid,
  .article-grid,
  .card-grid.two,
  .card-grid.four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .orbital {
    inset: 18px 6px;
  }

  .score-strip,
  .type-strip {
    width: 190px;
  }

  .score-strip {
    top: 28px;
  }

  .type-strip {
    bottom: 28px;
  }

  .test-shell,
  .content-band,
  .faq {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  footer {
    flex-direction: column;
  }
}
