/* ============================================================
   Toyple — company home (dark)
   자체 제작 스타일시트 (Bootstrap 미사용)
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --surface: #15171e;
  --surface-raised: #1a1d25;
  --ink: #f1f2f5;
  --ink-soft: #c9ccd4;
  --muted: #898e99;
  --line: #23262f;
  --line-strong: #333744;
  --accent: #8b85f5;
  --accent-deep: #6c65e8;
  --accent-tint: rgba(139, 133, 245, 0.12);
  --radius: 14px;
  --container: 1120px;
  --header-h: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* 한국어: 단어 중간에서 잘리지 않게 */
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
}

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

::selection {
  background: var(--accent);
  color: #0e0f13;
}

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

/* ---------- 공통 타이포 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 560px;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(14, 15, 19, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #0e0f13 !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
}

/* ---------- 히어로 ---------- */

.hero {
  padding: calc(var(--header-h) + clamp(64px, 12vh, 130px)) 0 clamp(72px, 11vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* 은은한 배경 포인트 — 과하지 않게 */
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 133, 245, 0.13), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(34px, 6.2vw, 62px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

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

.hero-lead {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 620px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #0e0f13;
}

.btn-primary:hover {
  background: var(--accent);
  color: #0e0f13;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero-meta {
  margin-top: clamp(48px, 8vh, 76px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
}

.hero-meta div strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-meta div span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 섹션 공통 ---------- */

.section {
  padding: clamp(72px, 11vh, 120px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(40px, 6vh, 64px);
}

/* ---------- 원칙 (지향점) ---------- */

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

.principle {
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.principle .num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.principle h3 {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- 장기 목표 ---------- */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.goal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.goal-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.goal-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.goal-card h3 i {
  font-size: 15px;
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.goal-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 프로젝트 ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mark-lansly,
.mark-deepquant {
  background: var(--accent-tint);
  color: var(--accent);
}

.mark-kakao {
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 16px;
}

.mark-next {
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px dashed rgba(139, 133, 245, 0.45);
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live {
  background: var(--accent-tint);
  color: var(--accent);
}

.badge-open {
  background: var(--accent-tint);
  color: var(--accent);
}

.project-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-card .tagline {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.project-card p.desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.project-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.project-link i {
  font-size: 12px;
  transition: transform 0.18s ease;
}

.project-card:hover .project-link i {
  transform: translateX(4px);
}

/* ---------- 팀 ---------- */

#team .section-desc {
  max-width: none; /* PC에서 한 줄로 */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.member {
  text-align: left;
}

.member .photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.member .photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.35s ease;
}

.member:hover .photo img {
  transform: scale(1.03);
}

.member h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.member p {
  margin-top: 3px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 컨택트 (라이트 반전 밴드) ---------- */

.contact-band {
  background: #f1f2f5;
  color: #14151a;
  border-radius: 20px;
  padding: clamp(44px, 7vw, 72px) clamp(28px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-band h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.contact-band .sub {
  margin-top: 14px;
  font-size: 15.5px;
  color: rgba(20, 21, 26, 0.6);
  max-width: 420px;
}

.contact-side {
  justify-self: end;
  text-align: right;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: #14151a;
  border-bottom: 1px solid rgba(20, 21, 26, 0.35);
  padding-bottom: 6px;
  transition: border-color 0.2s ease;
}

.mail-link:hover {
  border-color: #14151a;
}

.mail-link i {
  font-size: 0.85em;
  color: rgba(20, 21, 26, 0.5);
}

.contact-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.contact-tags span {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(20, 21, 26, 0.72);
  border: 1px solid rgba(20, 21, 26, 0.22);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .brand {
  font-size: 18px;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.sns-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sns-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sns-row .sns-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  width: 58px;
  flex: none;
}

.sns-row a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}

.sns-row a:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- 스크롤 리빌 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 반응형 ---------- */

@media (max-width: 960px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .contact-band {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-side {
    justify-self: start;
    text-align: left;
  }

  .contact-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 40px);
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .goals-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .member {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 18px;
    align-items: center;
  }

  .member .photo {
    border-radius: 12px;
  }

  .member h3 {
    margin-top: 0;
  }

  .hero-meta {
    gap: 20px 36px;
  }

  .sns-row .sns-label {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}
