/* about.css — 서비스 소개 페이지 전용 스타일
   index.css의 색상 변수(--brand, --positive, --negative 등)와
   .gauge / .confidence-badge / .tag 컴포넌트를 그대로 재사용합니다.
   이 파일은 index.css 뒤에 로드되어야 합니다. */

/* ---------- 소개 페이지 헤더 ---------- */

.about-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}

.about-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 4px;
}

.about-nav__back:hover {
  color: var(--text);
}

.about-nav__back svg {
  transform: rotate(180deg);
}

/* ---------- 히어로 ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  background: var(--positive-bg);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__title {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
}

.hero__desc {
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  color: #fff;
  background: var(--brand);
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: #d3d6db;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* 히어로 옆 미니 프리뷰 카드 (실제 종목 행 디자인을 축약해 재사용) */

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 44px rgba(20, 22, 30, 0.06);
}

.preview-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.preview-card__head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--brand);
  flex-shrink: 0;
}

.preview-card__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.preview-card__code {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-card__index {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--positive);
  margin-bottom: 14px;
}

.preview-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.preview-card__quote {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 공통 섹션 헤더 ---------- */

.section {
  margin-bottom: 96px;
}

.section__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 620px;
}

/* ---------- 기능 카드 3열 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--positive-bg);
  color: var(--brand);
  margin-bottom: 18px;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.feature-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 처리 흐름 (파이프라인) ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  position: relative;
}

.process__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 20px;
}

.process__step:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.process__step:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.process__step + .process__step {
  border-left: none;
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.process__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.process__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.process__arrow {
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 2;
}

/* ---------- 심리지수 설명 패널 ---------- */

.explainer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 32px;
}

.explainer__gauge-demo {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.explainer__gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.explainer__gauge-label {
  width: 70px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.explainer .gauge {
  flex: 1;
}

.explainer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explainer__list li {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.explainer__list strong {
  flex: 0 0 92px;
  width: 92px;
  color: var(--text);
}

/* ---------- 유의사항 ---------- */

.disclaimer {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 32px;
}

.disclaimer__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.disclaimer__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- 하단 CTA ---------- */

.cta {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.cta__desc {
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- 반응형 ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process__step {
    border-radius: 0 !important;
    border-left: 1px solid var(--border) !important;
    border-top: none;
  }

  .process__step:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  .process__step:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  }

  .process__arrow {
    top: auto;
    bottom: -13px;
    right: 50%;
    transform: translateX(50%) rotate(90deg);
  }

  .explainer {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero__title {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ---------- Toss-inspired presentation about ---------- */

.page {
  max-width: none;
  padding: 0 0 64px;
  background: #f2f4f6;
}

.about-hero-shell {
  overflow: hidden;
  min-height: 720px;
  background:
    radial-gradient(circle at 78% 43%, rgb(49 130 246 / 24%), transparent 28%),
    radial-gradient(circle at 96% 3%, rgb(126 87 255 / 14%), transparent 24%),
    #151d29;
  color: #ffffff;
}

.about-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0;
}

.about-nav .brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(49 130 246 / 16%);
  color: #5ca5ff;
}

.about-nav .brand__title {
  color: #ffffff;
  font-size: 21px;
}

.about-nav .brand__visibility {
  border-color: rgb(255 255 255 / 18%);
  color: #b6c2d2;
}

.about-nav .brand__subtitle {
  color: #8f9caf;
  font-size: 11.5px;
}

.about-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-nav__links a {
  position: relative;
  padding: 8px 0;
  color: #c7d0dc;
  font-size: 14px;
  font-weight: 700;
}

.about-nav__links a:hover,
.about-nav__links .about-nav__active {
  color: #ffffff;
}

.about-nav__active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #5ca5ff;
  content: "";
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  gap: 76px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 0 94px;
}

.about-hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #5ca5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.about-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.18;
  word-break: keep-all;
}

.about-hero__desc {
  max-width: 620px;
  margin: 28px 0 34px;
  color: #aeb9c8;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  word-break: keep-all;
}

.about-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-hero .btn {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
}

.about-hero .btn--primary {
  background: #3182f6;
  color: #ffffff;
  box-shadow: 0 14px 34px rgb(49 130 246 / 24%);
}

.about-hero .btn--primary:hover {
  background: #1b64da;
  opacity: 1;
}

.about-hero .btn--ghost {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 8%);
  color: #d7dee8;
}

.about-hero .btn--ghost:hover {
  border-color: rgb(92 165 255 / 50%);
  background: rgb(49 130 246 / 14%);
  color: #ffffff;
}

.about-hero__note {
  margin: 16px 0 0;
  color: #7f8c9e;
  font-size: 12px;
}

.preview-card {
  position: relative;
  overflow: hidden;
  padding: 38px 34px 32px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 30px;
  background: linear-gradient(145deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
  box-shadow: 0 28px 70px rgb(0 0 0 / 30%);
  backdrop-filter: blur(18px);
  transform: rotate(1.5deg);
}

.preview-card::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgb(49 130 246 / 20%);
  filter: blur(10px);
  content: "";
}

.preview-card__eyebrow {
  position: relative;
  color: #8fc2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.preview-card__question {
  position: relative;
  display: block;
  margin: 18px 0 30px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.preview-card__formula {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  background: rgb(8 14 24 / 30%);
}

.preview-card__formula span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-card__formula small {
  color: #8f9caf;
  font-size: 10px;
  font-weight: 700;
}

.preview-card__formula strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.preview-card__formula b {
  color: #5ca5ff;
  font-size: 24px;
}

.preview-card__quote {
  position: relative;
  margin: 24px 0 0;
  padding-top: 22px;
  border-color: rgb(255 255 255 / 10%);
  color: #9dabbd;
  font-size: 13px;
  line-height: 1.7;
}

.about-main {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 92px;
}

.section {
  margin-bottom: 112px;
}

.section__eyebrow {
  margin-bottom: 10px;
  color: #3182f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.section__title {
  margin-bottom: 16px;
  color: #191f28;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.section__desc {
  max-width: 760px;
  color: #6b7684;
  font-size: 17px;
  line-height: 1.75;
}

.features {
  gap: 20px;
  margin-top: 38px;
}

.feature-card {
  min-height: 260px;
  padding: 30px;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgb(25 31 40 / 6%);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: #e8f3ff;
  color: #3182f6;
}

.feature-card__title {
  margin-bottom: 12px;
  color: #191f28;
  font-size: 20px;
  font-weight: 800;
}

.feature-card__desc {
  color: #6b7684;
  font-size: 14.5px;
  line-height: 1.75;
}

.process {
  gap: 14px;
  margin-top: 38px;
}

.process__step,
.process__step:first-child,
.process__step:last-child {
  min-height: 210px;
  padding: 28px 24px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgb(25 31 40 / 5%);
}

.process__num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e8f3ff;
  color: #3182f6;
  font-size: 13px;
}

.process__title {
  margin-top: 20px;
  color: #191f28;
  font-size: 18px;
  font-weight: 800;
}

.process__desc {
  color: #6b7684;
  font-size: 13.5px;
  line-height: 1.65;
}

.process__arrow {
  right: -20px;
  width: 28px;
  height: 28px;
  border: 0;
  background: #3182f6;
  color: #ffffff;
  box-shadow: 0 5px 14px rgb(49 130 246 / 22%);
}

.explainer {
  gap: 52px;
  margin-top: 38px;
  padding: 42px;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgb(25 31 40 / 6%);
}

.explainer__gauge-label {
  color: #4e5968;
  font-size: 13px;
}

.signal-reading {
  padding: 26px;
  border-radius: 22px;
  background: #f7f9fc;
}

.signal-reading__direction,
.signal-reading__score {
  padding: 20px;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgb(25 31 40 / 5%);
}

.signal-reading__direction span,
.signal-reading__score > span {
  display: block;
  margin-bottom: 8px;
  color: #6b7684;
  font-size: 12px;
  font-weight: 800;
}

.signal-reading__direction strong {
  color: #f04452;
  font-size: 26px;
}

.signal-reading__arrow {
  padding: 9px 0;
  color: #3182f6;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.signal-reading__score > div:first-of-type {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.signal-reading__score strong {
  color: #191f28;
  font-size: 34px;
  letter-spacing: -.04em;
}

.signal-reading__score strong small {
  color: #8b95a1;
  font-size: 15px;
}

.signal-reading__score em {
  color: #3182f6;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.signal-reading__track {
  overflow: hidden;
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  background: #e5e8eb;
}

.signal-reading__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ecbff, #3182f6);
}

.signal-reading__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #8b95a1;
  font-size: 10px;
  font-weight: 700;
}

.signal-reading__score p {
  margin: 13px 0 0;
  color: #6b7684;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.explainer__list li {
  color: #6b7684;
  font-size: 14px;
  line-height: 1.7;
}

.explainer__list strong {
  color: #191f28;
}

.disclaimer {
  margin-top: 24px;
  padding: 28px 32px;
  border: 0;
  border-radius: 20px;
  background: #e8f3ff;
}

.disclaimer__title {
  color: #1b64da;
  font-size: 15px;
  font-weight: 800;
}

.disclaimer__body {
  color: #4e5968;
  font-size: 13.5px;
}

.cta {
  padding: 70px 32px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 30%, rgb(49 130 246 / 22%), transparent 32%),
    #151d29;
  box-shadow: 0 16px 42px rgb(25 31 40 / 14%);
}

.cta__title {
  color: #ffffff;
  font-size: 32px;
  letter-spacing: -.03em;
}

.cta__desc {
  color: #aeb9c8;
  font-size: 15px;
}

.cta .btn--primary {
  min-height: 50px;
  border-radius: 15px;
  background: #3182f6;
}

.footer {
  max-width: 1180px;
  margin: 72px auto 0 !important;
  padding: 28px 0;
  border-color: #dfe3e8;
  color: #8b95a1;
}

.footer__link {
  color: #3182f6;
}

@media (prefers-reduced-motion: reduce) {
  .about-nav__links a,
  .about-hero .btn,
  .feature-card,
  .process__step,
  .cta .btn {
    transition: none;
  }
}
