:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #171717;
  --text-soft: #6f6b65;
  --text-muted: #9a958e;
  --border: #e5e1db;
  --accent: #e86a4a;
  --accent-soft: #fbe7e1;
  --black: #171717;

  --container: 1120px;
}


/* ================================
   RESET
================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hidden {
  display: none !important;
}


/* ================================
   HEADER
================================ */

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 245, 241, 0.94);

  position: relative;
  z-index: 10;
}

.header-inner {
  width: min(calc(100% - 48px), var(--container));
  min-height: 76px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--black);
  color: #fff;

  font-size: 11px;
  font-weight: 800;
}

.brand-name {
  white-space: nowrap;
}


/* ================================
   TOP NAV
================================ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav-link {
  border: 0;
  padding: 8px 0;

  background: transparent;
  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.main-nav-link:hover {
  color: var(--text);
}


/* ================================
   HERO
================================ */

.hero {
  min-height: 670px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-bottom: 1px solid var(--border);
}

.hero-inner {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;

  text-align: center;
}

.eyebrow {
  margin: 0 0 26px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.hero h1 {
  margin: 0;

  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.hero-description {
  margin: 30px auto 0;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.9;
}


/* ================================
   SELECTOR
================================ */

.selector-area {
  width: min(100%, 700px);
  margin: 54px auto 0;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.selector-box {
  flex: 1;
  min-width: 0;

  text-align: left;
}

.selector-box label {
  display: block;

  margin: 0 0 9px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.selector-box select {
  width: 100%;
  height: 58px;

  padding: 0 18px;

  border: 1px solid var(--border);
  border-radius: 2px;

  background: var(--surface);
  color: var(--text);

  outline: none;

  font-size: 14px;
  font-weight: 700;

  appearance: auto;
}

.selector-box select:focus {
  border-color: var(--text);
}

.selector-x {
  width: 28px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  font-size: 20px;
  font-weight: 400;
}


/* ================================
   BUTTONS
================================ */

.primary-button {
  width: min(100%, 700px);
  height: 58px;

  margin-top: 18px;

  border: 0;
  border-radius: 2px;

  background: var(--black);
  color: #fff;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.primary-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-note {
  margin: 17px 0 0;

  color: var(--text-muted);

  font-size: 10px;
}


/* ================================
   ABOUT
================================ */

.about-section {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 110px 0 120px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-bottom: 78px;

  border-bottom: 1px solid var(--border);

  text-align: center;
}

.about-label {
  margin-bottom: 24px;
}

.about-label span {
  color: var(--accent);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.about-heading-wrap {
  width: 100%;
  max-width: 760px;
}

.about-heading-wrap h2 {
  margin: 0;

  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;

  font-weight: 850;
  letter-spacing: -0.055em;
}

.about-heading-wrap p {
  max-width: 600px;

  margin: 25px auto 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.85;
}


/* ================================
   METHOD GRID
================================ */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-bottom: 1px solid var(--border);
}

.method-item {
  padding: 54px 42px 60px;
}

.method-item + .method-item {
  border-left: 1px solid var(--border);
}

.method-number {
  display: block;

  margin-bottom: 34px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.method-item h3 {
  margin: 0 0 15px;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.method-item p {
  margin: 0;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.85;
}


/* ================================
   INFORMATION WIDGETS
================================ */

.info-widget-section {
  padding-top: 78px;
}

.section-label {
  margin-bottom: 20px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.info-widget {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 0;

  border: 0;
  border-top: 1px solid var(--border);

  background: transparent;

  text-align: left;
}

.info-widget:last-child {
  border-bottom: 1px solid var(--border);
}

.info-widget > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.widget-title {
  color: var(--text);

  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.widget-description {
  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.6;
}

.widget-arrow {
  color: var(--text-muted);

  font-size: 18px;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.info-widget:hover .widget-arrow {
  color: var(--accent);
  transform: translateX(5px);
}


/* ================================
   DISCLAIMER
================================ */

.about-disclaimer {
  max-width: 780px;

  margin: 58px auto 0;
  padding: 24px 26px;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.5);
}

.about-disclaimer strong {
  display: block;

  margin-bottom: 9px;

  font-size: 11px;
  font-weight: 800;
}

.about-disclaimer p {
  margin: 0;

  color: var(--text-soft);

  font-size: 10px;
  line-height: 1.8;
}


/* ================================
   RESULT
================================ */

.result-section {
  padding: 70px 0 110px;
}

.result-inner {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
}

.back-button {
  border: 0;
  background: transparent;

  padding: 0;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;
}

.back-button:hover {
  color: var(--text);
}

.result-header {
  padding: 95px 0 90px;

  text-align: center;

  border-bottom: 1px solid var(--border);
}

.result-types {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 10px;

  font-size: 18px;
  font-weight: 800;
}

.result-types span:nth-child(2) {
  color: var(--text-muted);
  font-weight: 400;
}

.score-wrap {
  margin-top: 25px;

  display: flex;
  align-items: baseline;
  justify-content: center;
}

.score-wrap #total-score {
  font-size: clamp(80px, 13vw, 150px);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.score-unit {
  margin-left: 10px;

  color: var(--text-soft);

  font-size: 18px;
  font-weight: 700;
}

.score-description {
  max-width: 500px;

  margin: 28px auto 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.8;
}


/* ================================
   RESULT BLOCK
================================ */

.result-block {
  padding: 75px 0;

  border-bottom: 1px solid var(--border);
}

.result-block-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;

  margin-bottom: 45px;
}

.result-block-heading > span {
  color: var(--accent);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.result-block-heading h2 {
  margin: 0;

  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.04em;
}


/* ================================
   SCORE BARS
================================ */

.score-item + .score-item {
  margin-top: 30px;
}

.score-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  font-size: 12px;
  font-weight: 700;
}

.score-item-header strong {
  font-size: 11px;
}

.score-bar {
  width: 100%;
  height: 7px;

  overflow: hidden;

  background: var(--border);
}

.score-bar > div {
  width: 0;
  height: 100%;

  background: var(--accent);

  transition: width 0.7s ease;
}


/* ================================
   TYPE COMPARISON
================================ */

.type-comparison {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 30px;
  align-items: start;
}

.type-column-title {
  margin-bottom: 20px;

  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-bottom: 24px;
}

.tag {
  padding: 6px 9px;

  background: var(--accent-soft);
  color: var(--accent);

  font-size: 9px;
  font-weight: 800;
}

.trait-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.trait-list li {
  position: relative;

  padding-left: 15px;

  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.7;
}

.trait-list li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 8px;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--accent);
}


/* ================================
   ANALYSIS
================================ */

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.analysis-item {
  padding: 32px 28px 38px;
}

.analysis-item + .analysis-item {
  border-left: 1px solid var(--border);
}

.analysis-label {
  display: block;

  margin-bottom: 15px;

  color: var(--accent);

  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.analysis-item h3 {
  margin: 0 0 20px;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.analysis-item ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.analysis-item li {
  position: relative;

  padding-left: 13px;

  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.7;
}

.analysis-item li::before {
  content: "·";

  position: absolute;
  left: 0;

  color: var(--accent);
  font-weight: 800;
}


/* ================================
   RESULT DISCLAIMER
================================ */

.result-disclaimer {
  margin-top: 55px;
  padding: 25px;

  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.5);
}

.result-disclaimer strong {
  display: block;

  margin-bottom: 8px;

  font-size: 11px;
}

.result-disclaimer p {
  margin: 0;

  color: var(--text-soft);

  font-size: 10px;
  line-height: 1.8;
}

.secondary-button {
  width: 100%;
  height: 56px;

  margin-top: 22px;

  border: 1px solid var(--black);
  border-radius: 2px;

  background: transparent;
  color: var(--black);

  font-size: 12px;
  font-weight: 800;
}

.secondary-button:hover {
  background: var(--black);
  color: #fff;
}


/* ================================
   MODAL
================================ */

.modal {
  position: fixed;
  inset: 0;

  z-index: 100;
}

.modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(23, 23, 23, 0.5);
}

.modal-container {
  position: relative;

  width: min(calc(100% - 32px), 760px);
  max-height: calc(100vh - 48px);

  margin: 24px auto;

  overflow-y: auto;

  background: var(--surface);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 34px;
  height: 34px;

  border: 0;

  background: transparent;

  color: var(--text-muted);

  font-size: 26px;
  font-weight: 300;

  z-index: 2;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content {
  padding: 70px 65px 65px;
}

.modal-eyebrow {
  margin: 0 0 18px;

  color: var(--accent);

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.modal-content h2 {
  margin: 0 0 30px;

  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 850;
}

.modal-content h3 {
  margin: 38px 0 13px;

  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal-content p {
  margin: 0;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.95;
}

.modal-content p + p {
  margin-top: 15px;
}

.modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 15px;
}

.modal-content li {
  position: relative;

  padding-left: 15px;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.8;
}

.modal-content li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 9px;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: var(--accent);
}


/* ================================
   TYPE GRID IN MODAL
================================ */

.modal-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin-top: 25px;

  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.modal-type-item {
  padding: 22px;

  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modal-type-code {
  display: block;

  margin-bottom: 9px;

  font-size: 18px;
  font-weight: 850;
}

.modal-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modal-type-tags span {
  padding: 4px 6px;

  background: var(--accent-soft);
  color: var(--accent);

  font-size: 8px;
  font-weight: 800;
}


/* ================================
   FOOTER
================================ */

.site-footer {
  border-top: 1px solid var(--border);

  background: #f1eee8;
}

.footer-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;

  padding: 55px 0 35px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-inner > p {
  margin: 18px 0 35px;

  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  padding: 22px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-link {
  border: 0;
  padding: 0;

  background: transparent;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 700;
}

.footer-link:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 24px;

  color: var(--text-muted);

  font-size: 9px;
}

.footer-bottom > div {
  display: flex;
  gap: 15px;
}


/* FOOTER POLICY BUTTONS */

.footer-policy-link {
  border: 0;
  padding: 0;

  background: transparent;
  color: inherit;

  font-size: inherit;
  font-weight: inherit;

  cursor: pointer;
}

.footer-policy-link:hover {
  color: var(--text);
}


/* ================================
   TABLET
================================ */

@media (max-width: 800px) {

  .header-inner,
  .hero-inner,
  .about-section,
  .footer-inner {
    width: min(calc(100% - 40px), var(--container));
  }

  .hero {
    min-height: 620px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-item {
    padding: 42px 0;
  }

  .method-item + .method-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-item + .analysis-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .analysis-item {
    padding: 30px 0 35px;
  }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

  .header-inner {
    min-height: 66px;
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 10px;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav-link {
    font-size: 9px;
  }


  .hero {
    min-height: auto;
    padding: 85px 0 90px;
  }

  .hero-inner {
    width: calc(100% - 32px);
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-description {
    margin-top: 24px;
    font-size: 12px;
  }


  .selector-area {
    margin-top: 42px;

    flex-direction: column;
    align-items: stretch;

    gap: 10px;
  }

  .selector-box {
    width: 100%;
  }

  .selector-box select {
    height: 54px;
  }

  .selector-x {
    width: 100%;
    height: 18px;

    font-size: 16px;
  }

  .primary-button {
    height: 54px;
    margin-top: 15px;
  }


  .about-section {
    width: calc(100% - 32px);

    padding: 80px 0 90px;
  }

  .about-intro {
    padding-bottom: 55px;
  }

  .about-heading-wrap h2 {
    font-size: 32px;
  }

  .about-heading-wrap p {
    font-size: 11px;
  }

  .method-item {
    padding: 35px 0;
  }

  .method-number {
    margin-bottom: 24px;
  }

  .method-item h3 {
    font-size: 18px;
  }

  .method-item p {
    font-size: 11px;
  }


  .info-widget-section {
    padding-top: 60px;
  }

  .widget-title {
    font-size: 13px;
  }

  .widget-description {
    max-width: 270px;
    font-size: 10px;
  }


  .about-disclaimer {
    margin-top: 45px;
    padding: 20px;
  }


  /* RESULT */

  .result-section {
    padding: 45px 0 80px;
  }

  .result-inner {
    width: calc(100% - 32px);
  }

  .result-header {
    padding: 70px 0 65px;
  }

  .result-types {
    font-size: 16px;
  }

  .score-wrap #total-score {
    font-size: 100px;
  }

  .result-block {
    padding: 55px 0;
  }

  .result-block-heading {
    margin-bottom: 35px;
  }

  .result-block-heading h2 {
    font-size: 21px;
  }

  .type-comparison {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .comparison-divider {
    height: 1px;
    width: 100%;

    border-top: 1px solid var(--border);

    font-size: 0;
  }

  .comparison-divider::after {
    content: "×";

    position: absolute;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--bg);

    color: var(--text-muted);

    font-size: 15px;
  }


  /* MODAL */

  .modal-container {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);

    margin: 10px auto;
  }

  .modal-content {
    padding: 60px 25px 40px;
  }

  .modal-content h2 {
    font-size: 29px;
  }

  .modal-content p,
  .modal-content li {
    font-size: 11px;
  }

  .modal-type-grid {
    grid-template-columns: 1fr;
  }


  /* FOOTER */

  .footer-inner {
    width: calc(100% - 32px);
    padding: 45px 0 30px;
  }

  .footer-links {
    gap: 14px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

}