:root {
  --ink: #111426;
  --muted: #697087;
  --paper: #f7f8fc;
  --white: #fff;
  --line: #e1e4ed;
  --blue: #3157f6;
  --blue-dark: #203fc5;
  --blue-soft: #e8edff;
  --violet: #704bd7;
  --green: #1fa278;
  --nav: 76px;
  --shadow: 0 25px 65px rgba(28, 43, 108, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.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;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav);
  background: rgba(247, 248, 252, 0.88);
  border-bottom: 1px solid rgba(220, 224, 235, 0.85);
  backdrop-filter: blur(18px);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(49, 87, 246, 0.24);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -2px;
  transform: rotate(-4deg);
}

.nav-links {
  display: flex;
  gap: 29px;
  margin-left: auto;
}

.nav-links a,
.login-link {
  position: relative;
  color: #4a5066;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links .active,
.login-link:hover {
  color: var(--blue);
}

.nav-links .active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.button-large {
  min-height: 57px;
  padding: 0 26px;
  font-size: 15px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(49, 87, 246, 0.23);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-white {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 73, 0.2);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 87, 246, 0.28);
  outline-offset: 3px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  height: 2px;
  background: var(--ink);
}

.mobile-menu > div {
  position: absolute;
  top: 50px;
  right: 0;
  width: 210px;
  display: grid;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(28, 35, 76, 0.1);
}

.mobile-menu > div a {
  padding: 12px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
}

.mobile-menu > div a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 125px;
  background: linear-gradient(145deg, #fafbff, #eef2ff);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(53, 68, 131, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 68, 131, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 65% 75% at center, #000, transparent 82%);
}

.hero-symbol {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dfe3ef;
  box-shadow: 0 18px 45px rgba(30, 42, 100, 0.1);
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-weight: 800;
}

.symbol-one {
  top: 24%;
  left: 8%;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 35px;
  transform: rotate(-8deg);
}

.symbol-two {
  right: 9%;
  bottom: 18%;
  width: 62px;
  height: 62px;
  color: var(--violet);
  border-radius: 50%;
  font-size: 27px;
  transform: rotate(7deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 8px 12px;
  color: #4d598b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(49, 87, 246, 0.11);
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.14;
  letter-spacing: -4px;
}

.hero-inner h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-inner > p:not(.eyebrow, .search-hint) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.faq-search {
  position: relative;
  width: min(650px, 100%);
  margin-top: 34px;
}

.faq-search input {
  width: 100%;
  height: 64px;
  padding: 0 95px 0 58px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce1ed;
  border-radius: 17px;
  box-shadow: 0 20px 45px rgba(30, 42, 100, 0.12);
  font-size: 15px;
}

.faq-search input::placeholder {
  color: #9ba1b3;
}

.search-icon {
  position: absolute;
  top: 21px;
  left: 24px;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: var(--blue);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-clear {
  position: absolute;
  top: 17px;
  right: 17px;
  height: 30px;
  padding: 0 11px;
  color: #697087;
  background: #f0f2f7;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.search-hint {
  margin: 15px 0 0;
  color: #8a91a6;
  font-size: 10px;
}

.popular-section {
  padding: 72px 0 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.popular-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.popular-heading p,
.section-kicker,
.category-panel > p,
.contact-card p {
  margin: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.6px;
}

.popular-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -1.2px;
}

.popular-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.popular-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: 0.23s ease;
}

.popular-card:hover {
  border-color: #aebbf7;
  box-shadow: 0 15px 35px rgba(28, 43, 108, 0.09);
  transform: translateY(-4px);
}

.popular-card > span {
  color: var(--blue);
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 11px;
}

.popular-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popular-card small {
  color: #8b92a6;
  font-size: 9px;
}

.popular-card strong {
  font-size: 13px;
  line-height: 1.55;
}

.popular-card > b {
  color: var(--blue);
  font-size: 18px;
}

.faq-section {
  padding: 115px 0 125px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  gap: 75px;
}

.category-panel {
  position: sticky;
  top: calc(var(--nav) + 35px);
}

.category-panel > p {
  margin-bottom: 18px;
}

.category-buttons {
  display: grid;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(28, 35, 76, 0.06);
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 13px;
  color: #6e758a;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.category-button b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #969daf;
  background: #f1f3f8;
  border-radius: 7px;
  font-size: 9px;
}

.category-button:hover {
  color: var(--blue);
  background: #f6f7fc;
}

.category-button.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(49, 87, 246, 0.2);
}

.category-button.active b {
  color: var(--blue);
  background: #fff;
}

.faq-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 31px;
}

.section-kicker {
  margin-bottom: 11px;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -2.5px;
}

.faq-heading > p {
  margin: 0 0 8px;
  color: #858ca1;
  font-size: 10px;
}

.faq-items {
  border-top: 1px solid #cfd4e1;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 22px;
  padding: 18px 8px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.question-meta b {
  padding: 6px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
  font-size: 9px;
}

.question-meta i {
  color: #9aa1b3;
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 9px;
  font-style: normal;
}

.faq-item summary > strong {
  font-size: 16px;
  letter-spacing: -0.45px;
}

.toggle-icon {
  position: relative;
  width: 30px;
  height: 30px;
  background: #f0f2f7;
  border-radius: 9px;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 9px;
  width: 12px;
  height: 2px;
  background: #747c92;
  transition: transform 0.2s ease;
}

.toggle-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.72);
}

.faq-item[open] summary > strong {
  color: var(--blue);
}

.faq-item[open] .toggle-icon {
  background: var(--blue);
}

.faq-item[open] .toggle-icon::before,
.faq-item[open] .toggle-icon::after {
  background: #fff;
}

.faq-item[open] .toggle-icon::after {
  transform: rotate(0);
}

.faq-answer {
  padding: 0 72px 29px 118px;
  animation: answer-in 0.28s ease both;
}

.faq-answer p {
  max-width: 720px;
  margin: 0;
  color: #626a80;
  font-size: 13px;
  line-height: 1.9;
}

.empty-state {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.empty-state > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 17px;
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 25px;
  font-weight: 800;
}

.empty-state h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state button {
  margin-top: 22px;
  padding: 11px 15px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.contact-section {
  padding: 0 0 110px;
}

.contact-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 45px 55px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5940d0);
  border-radius: 27px;
  box-shadow: 0 28px 60px rgba(49, 69, 168, 0.2);
}

.contact-card p {
  color: #c9d2ff;
}

.contact-card h2 {
  margin: 10px 0 11px;
  font-size: 33px;
  letter-spacing: -1.5px;
}

.contact-card div > span {
  color: #d6dcff;
  font-size: 12px;
}

.site-footer {
  color: #8a90a4;
  background: #0e1120;
}

.footer-inner {
  min-height: 85px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  color: #fff;
}

.footer-inner p {
  margin: 0;
  font-size: 10px;
}

.footer-inner > div {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  font-size: 9px;
}

.footer-inner a:hover {
  color: #fff;
}

@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .nav-links {
    gap: 18px;
  }

  .popular-card {
    grid-template-columns: 30px 1fr;
  }

  .popular-card > b {
    display: none;
  }

  .faq-layout {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  :root {
    --nav: 68px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .nav-actions {
    margin-left: auto;
  }

  .faq-hero {
    padding: 85px 0 105px;
  }

  .hero-symbol {
    opacity: 0.45;
  }

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

  .popular-card {
    min-height: 105px;
    grid-template-columns: 37px 1fr auto;
  }

  .popular-card > b {
    display: block;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .category-panel {
    position: static;
  }

  .category-buttons {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  .category-button {
    flex: 0 0 auto;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }

  .login-link {
    display: none;
  }

  .button-small {
    min-height: 39px;
    padding: 0 13px;
    font-size: 12px;
  }

  .faq-hero {
    padding: 65px 0 82px;
  }

  .hero-symbol {
    display: none;
  }

  .hero-inner h1 {
    font-size: 40px;
    letter-spacing: -2.5px;
  }

  .hero-inner > p:not(.eyebrow, .search-hint) {
    font-size: 14px;
    line-height: 1.7;
  }

  .faq-search input {
    height: 58px;
    padding-left: 51px;
    font-size: 13px;
  }

  .search-icon {
    top: 19px;
    left: 21px;
  }

  .search-clear {
    top: 14px;
  }

  .popular-section {
    padding: 58px 0 62px;
  }

  .popular-heading {
    display: block;
  }

  .popular-heading p {
    margin-bottom: 10px;
  }

  .popular-heading h2 {
    font-size: 24px;
  }

  .popular-card {
    grid-template-columns: 30px 1fr;
    padding: 19px;
  }

  .popular-card > b {
    display: none;
  }

  .faq-section {
    padding: 80px 0 90px;
  }

  .faq-heading h2 {
    font-size: 35px;
    letter-spacing: -1.8px;
  }

  .faq-item summary {
    min-height: 92px;
    grid-template-columns: 1fr 31px;
    gap: 14px;
    padding: 17px 5px;
  }

  .question-meta {
    grid-column: 1;
    justify-content: flex-start;
  }

  .faq-item summary > strong {
    grid-column: 1;
    font-size: 14px;
    line-height: 1.55;
  }

  .toggle-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .faq-answer {
    padding: 0 46px 25px 5px;
  }

  .faq-answer p {
    font-size: 12px;
  }

  .contact-section {
    padding-bottom: 75px;
  }

  .contact-card {
    min-height: 280px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 35px 27px;
  }

  .contact-card h2 {
    font-size: 29px;
  }

  .contact-card .button {
    width: 100%;
  }

  .footer-inner > div a:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
