/* Daystock Story (회사·서비스 소개) — 소스: daystock_about/. style.css 의 색상 변수(:root)를 그대로 사용 */

.ab {
  --ab-body-font: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ab-head-font: "Noto Sans KR", "Malgun Gothic", sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--ab-body-font);
  color: var(--text);
  word-break: keep-all;      /* 한글이 단어 중간에서 줄바꿈되지 않게 */
  overflow-wrap: break-word; /* 아주 긴 단어는 넘치지 않게 끊음 */
}

/* 섹션 바로가기 (스크롤해도 위에 붙어 있음) */
.ab-subnav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.85));
  border-bottom: 1px solid var(--border);
}

.ab-subnav::-webkit-scrollbar { display: none; }

.ab-subnav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.ab-subnav a:hover { color: var(--text); }
.ab-subnav a.active { color: #041016; background: var(--cyan); }

.ab-section {
  padding: 72px 4px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 64px; /* 바로가기 막대에 가리지 않도록 */
}

/* 스크롤 등장 효과: about.js 가 동작할 때만(.js-reveal) 숨겼다가 화면에 들어오면 .is-visible 로 보여줌 */
.ab.js-reveal .ab-section > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ab.js-reveal .ab-section.is-visible > * { opacity: 1; transform: none; }
.ab.js-reveal .ab-section.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.ab.js-reveal .ab-section.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.ab.js-reveal .ab-section.is-visible > *:nth-child(n + 4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .ab.js-reveal .ab-section > * { opacity: 1; transform: none; transition: none; }
}

.ab-eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ab-title {
  margin: 0 0 28px;
  font-family: var(--ab-head-font);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* HERO */
.ab-hero { padding-top: 56px; }

.ab-hero-title {
  margin: 0 0 22px;
  font-family: var(--ab-head-font);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.ab-hero-title em,
.ab-punch em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

.ab-lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #b8c3d8;
  font-size: 18px;
  line-height: 1.8;
}

.ab-punch {
  margin: 0 0 30px;
  font-family: var(--ab-head-font);
  font-size: 22px;
  font-weight: 700;
}

.ab-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ab-cta-row.center { justify-content: center; }

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 26px;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: rgba(15, 24, 48, 0.6);
  color: var(--text);
  font-family: var(--ab-head-font);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.ab-btn:hover { transform: translateY(-2px); border-color: var(--cyan); }

.ab-btn.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #041016;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.3);
}

.ab-btn.small {
  min-width: 0;
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 15px;
}

.ab-note,
.ab-disclaimer {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.ab-disclaimer { margin-top: 22px; }

.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.ab-stat {
  padding: 22px 18px 4px;
  border-left: 1px solid var(--border);
}

.ab-stat:first-child { border-left: 0; padding-left: 0; }

.ab-stat strong {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.ab-stat span {
  margin-left: 6px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.ab-stat p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* 카드 */
.ab-grid {
  display: grid;
  gap: 18px;
}

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

.ab-card {
  display: block;
  padding: 26px 26px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 24, 48, 0.75), rgba(12, 18, 32, 0.4));
  color: inherit;
  text-decoration: none;
}

.ab-card h3 {
  margin: 0 0 10px;
  font-family: var(--ab-head-font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.ab-card p {
  margin: 0;
  color: #aab5ca;
  font-size: 16px;
  line-height: 1.75;
}

.ab-card .ab-tag {
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--ab-head-font);
  font-size: 14px;
  font-weight: 700;
}

.ab-card .ab-tag.pink { color: #f472b6; }

.ab-service { position: relative; transition: border-color 0.2s, transform 0.15s; }
a.ab-service:hover { border-color: var(--cyan); transform: translateY(-2px); }

.ab-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

/* 분석 원리 단계 */
.ab-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ab-steps li {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  border-radius: 0 0 14px 14px;
  background: rgba(12, 18, 32, 0.6);
}

.ab-step-no {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.ab-steps h3 {
  margin: 0 0 10px;
  font-family: var(--ab-head-font);
  font-size: 19px;
  font-weight: 700;
}

.ab-steps p {
  margin: 0;
  color: #aab5ca;
  font-size: 15px;
  line-height: 1.75;
}

/* 연혁 타임라인 */
.ab-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.ab-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--border));
}

.ab-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
}

.ab-tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.ab-tl-date {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding-top: 2px;
}

.ab-tl-item h3 {
  margin: 0 0 6px;
  font-family: var(--ab-head-font);
  font-size: 19px;
  font-weight: 700;
}

.ab-tl-item p {
  margin: 0;
  color: #aab5ca;
  font-size: 15px;
  line-height: 1.7;
}

/* 아직 채우지 않은 연혁 (입력 안내) */
.ab-tl-item.is-todo { opacity: 0.55; }
.ab-tl-item.is-todo::before { background: transparent; border: 2px dashed var(--text-dim); box-shadow: none; }
.ab-tl-item.is-todo h3 { color: var(--text-dim); }

/* 대표 */
.ab-founder {
  padding: 34px 36px;
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(12, 18, 32, 0.5));
}

.ab-founder blockquote {
  margin: 0 0 22px;
  font-family: var(--ab-head-font);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.6;
}

.ab-founder-name { margin: 0 0 6px; color: var(--text-dim); font-size: 18px; }
.ab-founder-name strong { color: var(--text); font-size: 22px; margin-right: 8px; }
.ab-founder-contact { margin: 0; color: var(--text-dim); font-size: 17px; }
.ab-founder-contact a { color: #cdbb8e; }

.ab-motto {
  margin-top: 40px;
  text-align: center;
}

.ab-motto-han {
  margin: 0;
  color: var(--gold);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ab-motto-sub {
  margin: 8px 0 18px;
  color: var(--text-dim);
  font-size: 15px;
}

.ab-motto p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: #b8c3d8;
  font-size: 17px;
  line-height: 1.8;
}

/* FAQ */
.ab-faq details {
  border-bottom: 1px solid var(--border);
}

.ab-faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ab-head-font);
  font-size: 19px;
  font-weight: 700;
}

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

.ab-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  color: var(--cyan);
  font-size: 26px;
  font-weight: 400;
}

.ab-faq details[open] summary::after { content: "−"; }

.ab-faq details p {
  margin: 0 0 22px;
  color: #aab5ca;
  font-size: 16px;
  line-height: 1.8;
}

/* 마지막 안내 */
.ab-final {
  text-align: center;
  border-bottom: 0;
}

.ab-final .ab-note { margin-top: 18px; }

@media (max-width: 900px) {
  .ab-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .ab-section { padding: 52px 2px; }
  .ab-hero-title { font-size: 31px; }
  .ab-title { font-size: 25px; }
  .ab-grid.two, .ab-grid.three, .ab-steps { grid-template-columns: 1fr; }
  .ab-lead { font-size: 16px; }
  .ab-btn { width: 100%; }
  .ab-tl-item { grid-template-columns: 1fr; gap: 4px; }
  .ab-founder { padding: 24px 20px; }
}

/* ── 대표 섹션: 움직이는 우주(은하) + 중심의 DAYSTOCK (about.js 가 canvas 에 그림) ── */
.ab-cosmos {
  position: relative;
  height: 520px;
  margin: 8px 0 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0b1733 0%, #050814 60%, #02030a 100%);
}

.ab-cosmos canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.ab-cosmos-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.ab-cosmos-name {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.9), 0 0 42px rgba(34, 211, 238, 0.55);
}

.ab-cosmos-slogan {
  margin: 14px 0 4px;
  font-family: var(--ab-head-font);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.6);
}

.ab-cosmos-en {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.ab-power { margin-bottom: 28px; }

@media (max-width: 600px) {
  .ab-cosmos { height: 380px; }
}
