/* =====================================================
   TALOS — Editorial Light System (design.md 기준)
   canvas #f5f5f5 · ink #0c0a09 · pill CTA · pastel orbs
   ===================================================== */
:root {
  /* brand & accent */
  --primary: #292524;
  --primary-active: #0c0a09;
  /* surface */
  --canvas: #f5f5f5;
  --canvas-soft: #fafafa;
  --surface-card: #ffffff;
  --surface-strong: #f0efed;
  --surface-dark: #0c0a09;
  --surface-dark-elevated: #1c1917;
  /* hairline */
  --hairline: #e7e5e4;
  --hairline-soft: #f0efed;
  --hairline-strong: #d6d3d1;
  /* text */
  --ink: #0c0a09;
  --body: #4e4e4e;
  --body-strong: #292524;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #a8a29e;
  /* atmospheric gradient stops — 장식 전용 */
  --g-mint: #a7e5d3;
  --g-peach: #f4c5a8;
  --g-lavender: #c8b8e0;
  --g-sky: #a8c8e8;
  --g-rose: #e8b8c4;
  /* semantic */
  --success: #16a34a;
  --error: #dc2626;
  /* type — Pretendard 단일 패밀리, 웨이트 대비(300 vs 600)로 위계 */
  --font-display: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  /* shape */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-pill: 9999px;
  /* layout */
  --max-w: 1200px;
  --section: 96px;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ============ typography ============ */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  word-break: keep-all;
}
h1 {
  font-size: clamp(2.25rem, 6.6vw, 4.25rem);  /* 36 → 68 */
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h1 strong, h2 strong { font-weight: 600; }
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);   /* 28 → 40 */
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}
.dim { color: var(--muted); }

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.section-body {
  color: var(--body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  max-width: 40rem;
  word-break: keep-all;
}

.footnote {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
  word-break: keep-all;
}
.footnote strong { color: var(--body-strong); font-weight: 500; }

.desktop-br { display: none; }
@media (min-width: 768px) { .desktop-br { display: inline; } }

/* ============ layout ============ */
.section { padding: clamp(4rem, 9vw, 6rem) 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-narrow { max-width: 680px; }
.section-soft { background: var(--canvas-soft); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }

/* ============ S1 nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: 0.9375rem; /* 15px nav-link */
  font-weight: 500;
  letter-spacing: 0;
  color: var(--body);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ============ buttons — ink pill only ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem; /* 15px */
  letter-spacing: 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  word-break: keep-all;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-primary:active { background: var(--primary-active); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 0.55rem 1.15rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* on-dark variant (featured card 내부) */
.btn-on-dark { background: var(--on-dark); color: var(--ink); }
.btn-on-dark:hover { background: var(--surface-strong); }

/* ============ S2 hero ============ */
.hero {
  position: relative;
  padding: 10.5rem 1.5rem 0;
  overflow: hidden;
  text-align: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 46rem; height: 46rem;
  left: 50%; top: -14rem;
  transform: translateX(-58%);
  background: radial-gradient(circle, var(--g-peach) 0%, transparent 65%);
  opacity: 0.75;
}
.hero::after {
  width: 34rem; height: 34rem;
  right: -10rem; top: 4rem;
  background: radial-gradient(circle, var(--g-mint) 0%, transparent 65%);
  opacity: 0.5;
}
#graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.hero-sub {
  margin: 1.5rem auto 0;
  color: var(--body);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  word-break: keep-all;
  max-width: 40rem;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.trust-strip {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 4.5rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--hairline);
}
.trust-anon {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  text-align: center;
}

/* hero visual card */
.hero-visual {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xxl) var(--r-xxl) 0 0;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

/* ============ S3 silo diagram ============ */
.silo-diagram {
  margin-top: 3rem;
  max-width: 780px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.silo-diagram svg { width: 100%; height: auto; display: block; }
.silo-box rect { fill: var(--canvas-soft); stroke: var(--hairline-strong); stroke-width: 1; }
.silo-box text {
  fill: var(--body);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
}
.silo-lines { stroke: var(--muted-soft) !important; }
.silo-breaks { stroke: var(--error) !important; opacity: 0.55; }

/* ============ split layout (S4) ============ */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xxl);
  border: 1px solid var(--hairline);
}

/* ============ cards ============ */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.card p { color: var(--body); font-size: 0.9375rem; word-break: keep-all; }
.card-num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--muted-soft);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.card-en {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-soft);
  letter-spacing: 0.08em;
  margin-left: 0.4rem;
  text-transform: uppercase;
}

/* orb card 변형 — 장식 오브 배경 */
.card-orb { position: relative; overflow: hidden; border-radius: var(--r-xxl); }
.card-orb::before {
  content: "";
  position: absolute;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  top: -6rem; right: -5rem;
  pointer-events: none;
}
.card-orb-mint::before { background: radial-gradient(circle, var(--g-mint), transparent 70%); }
.card-orb-sky::before { background: radial-gradient(circle, var(--g-sky), transparent 70%); }
.card-orb-lavender::before { background: radial-gradient(circle, var(--g-lavender), transparent 70%); }
.card-orb > * { position: relative; }

/* featured — 다크 인버전 (pricing-tier-featured) */
.card-featured {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--on-dark-soft);
}
.card-featured h3 { color: var(--on-dark); }
.card-featured p { color: var(--on-dark-soft); }
.card-featured:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-strong);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.1rem;
}
.card-featured .badge { background: var(--surface-dark-elevated); color: var(--on-dark); }
.card-meta {
  font-size: 0.8125rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: 0.6rem;
}
.card-featured .card-meta { color: var(--on-dark-soft) !important; }

/* ============ S6 stats ============ */
.stats { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 6vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--body); margin-top: 0.6rem; word-break: keep-all; font-size: 0.9375rem; }

/* ============ S7 timeline ============ */
.timeline {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li {
  border-top: 1px solid var(--hairline-strong);
  padding-top: 1.25rem;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 0.6rem;
}
.timeline h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.step-time { color: var(--muted); font-size: 0.875rem; }

/* ============ S8 why + faq ============ */
.why-grid { display: grid; gap: 1.75rem; margin: 2.25rem 0 3.5rem; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.why-item p { color: var(--body); font-size: 0.9375rem; word-break: keep-all; }

.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  padding: 1.25rem 2.25rem 1.25rem 0.25rem;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  word-break: keep-all;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 300;
  font-size: 1.35rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 0.25rem 1.35rem;
  color: var(--body);
  font-size: 0.9375rem;
  max-width: 44rem;
  word-break: keep-all;
}

/* ============ S9 form ============ */
.lead {
  position: relative;
  overflow: hidden;
}
.lead::before {
  content: "";
  position: absolute;
  width: 36rem; height: 36rem;
  border-radius: 50%;
  filter: blur(70px);
  left: -12rem; bottom: -16rem;
  background: radial-gradient(circle, var(--g-sky) 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.lead .section-inner { position: relative; }
.lead-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.field-row { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { flex-direction: row; } }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--body-strong); }
.req { color: var(--muted); font-weight: 400; }
.opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.16px;
  padding: 0.7rem 1rem;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-soft); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.field textarea { resize: vertical; }
.field input.invalid,
.field textarea.invalid { border-color: var(--error); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--body);
  cursor: pointer;
  word-break: keep-all;
}
.consent input { margin-top: 0.2rem; accent-color: var(--ink); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--body-strong); }

.form-msg { font-size: 0.9rem; min-height: 1.4em; word-break: keep-all; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--error); }
.form-msg a { color: var(--error); }

/* ============ S10 footer ============ */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 3rem 1.5rem 7rem;
}
@media (min-width: 768px) { .footer { padding-bottom: 3rem; } }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; color: var(--body); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.footer a:hover { color: var(--ink); }

/* ============ mobile sticky CTA ============ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(245, 245, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  z-index: 40;
}
.sticky-cta.visible { transform: translateY(0); }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============ scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============ privacy page ============ */
.legal { max-width: 720px; margin: 0 auto; padding: 8rem 1.5rem 5rem; }
.legal h1 { font-size: 2rem; margin-bottom: 2rem; }
.legal h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 2.25rem 0 0.7rem;
  letter-spacing: 0;
}
.legal p, .legal li { color: var(--body); font-size: 0.9375rem; word-break: keep-all; }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.legal a { color: var(--body-strong); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-top: 3rem; color: var(--ink); font-weight: 500; text-decoration: none; }
