/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent: #3660af;      /* SOFTOPIA 명함 로고 블루 */
  --accent-soft: #eaf0fa;
  --accent-ink: #234680;
  --accent-2: #6f93d4;    /* 그라데이션용 밝은 블루 */
  --navy: #16264a;
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --font-ko: "Noto Sans KR", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ko);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 17px;
}

.brand-logo { display: block; height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-links a span {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  align-items: center !important;
  flex-direction: row !important;
  gap: 6px;
}
.nav-cta span { color: rgba(255, 255, 255, .8) !important; }
.nav-cta:hover { background: var(--accent-ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, var(--accent-soft) 0%, #ffffff 55%);
  border-bottom: 1px solid var(--line);
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 130px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}
.hero-title .accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn span { font-family: var(--font-en); font-weight: 500; opacity: .7; font-size: 12px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== Section base ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-kicker {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 10px 0 0;
}
.section-title em {
  font-style: normal;
  font-family: var(--font-en);
  font-weight: 500;
  color: #94a3b8;
  font-size: .6em;
  margin-left: 8px;
}
.section-desc { color: var(--ink-soft); font-size: 17px; margin: 16px 0 0; }

.sub-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink);
}
.sub-title em {
  font-style: normal;
  font-family: var(--font-en);
  font-weight: 500;
  color: #94a3b8;
  font-size: .85em;
  margin-left: 6px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-lead { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.55; margin: 0; }
.about-lead strong { color: var(--accent); }
.about-body { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 64px 0 0;
  padding: 0;
}
.stats li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
}
.stats strong {
  display: block;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stats span { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 500; }
.stats em { font-style: normal; font-family: var(--font-en); display: block; font-size: 12px; color: #94a3b8; }

/* ===== Cards (R&D) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcccea; }
.card-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.card-icon svg { stroke: var(--accent); stroke-width: 2.2; fill: none; }
.card-icon circle:not([r="4"]):not([r="3"]) { fill: var(--accent); stroke: none; }
.card h3 { font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.card-en { font-family: var(--font-en); font-size: 12.5px; letter-spacing: .04em; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.card p:last-child { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ===== People ===== */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: #fff;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.person::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 0 0 3px 3px;
}
.person:hover { box-shadow: var(--shadow); border-color: #bcccea; }
.person h3 { font-size: 22px; margin: 6px 0 4px; }
.role { font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.role span { font-family: var(--font-en); font-weight: 500; color: #94a3b8; font-size: 13px; margin-left: 4px; }
.person-bio { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; min-height: 66px; }
.person-link { font-weight: 600; font-size: 14px; color: var(--accent); }
.person-link:hover { color: var(--accent-ink); }
.person-link.is-soon { color: #94a3b8; }

/* ===== History ===== */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
}
.partner {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin-bottom: 22px;
}
.partner h4 { margin: 0 0 4px; font-size: 16px; }
.partner-note { font-size: 12px; font-weight: 500; color: #94a3b8; margin-left: 6px; }
.partner p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.tag-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.timeline ol { list-style: none; padding: 0; margin: 0 0 20px; position: relative; }
.timeline ol::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 34px;
  display: flex;
  flex-direction: column;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.timeline .year {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .05em;
}
.timeline p { margin: 2px 0 0; font-weight: 500; }
.history-more { color: var(--ink-soft); font-size: 15px; }
.history-more a { color: var(--accent); font-weight: 600; }

/* ===== Contact (명함 복제) ===== */
.contact-lead { font-size: 19px; font-weight: 500; color: var(--ink-soft); margin: 0 0 32px; }

.namecard {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(35, 70, 128, .35);
  padding: 44px 48px;
  max-width: 460px;
  /* 표준 명함 비율(91:55) 느낌 */
}
.nc-logo-top { display: block; height: 40px; width: auto; margin-bottom: 24px; }
.nc-company {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-ink);
  letter-spacing: .01em;
}
.nc-email {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.nc-email:hover { color: var(--accent-ink); border-bottom-color: currentColor; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { height: 26px; width: auto; display: block; }
.footer-inner p { margin: 0; color: #94a3b8; font-size: 13.5px; }

/* ===== Reveal animation ===== */
.section-head, .card, .person, .stats li, .partner, .timeline li { opacity: 0; transform: translateY(16px); }
.reveal-on { opacity: 1 !important; transform: none !important; transition: opacity .6s ease, transform .6s ease; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .history-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards, .people { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 8px; align-items: baseline; }
  .nav-cta { justify-content: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .cards, .people, .stats { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 24px 90px; }
  .section { padding: 72px 0; }
  .namecard { padding: 34px 28px; }
  .nc-email { font-size: 16px; }
}
