/* Umtri marketing landing — single-page static.
   Brand source: www/src/theme/brand.js (#014131 deep teal). 변경 시 양쪽 동기화.
   i18n: html.lang-en | html.lang-ko 토글로 [data-en]/[data-ko] 형제 중 하나만 표시. */

:root {
  --brand-bg: #014131;
  --brand-bg-soft: #0a5a47;
  --brand-fg: #ffffff;
  --brand-fg-muted: rgba(255, 255, 255, 0.72);
  --brand-fg-subtle: rgba(255, 255, 255, 0.48);

  --text: #1c160e;
  --text-muted: #5f5648;
  --text-subtle: #8a8273;

  --surface: #fffdfa;
  --surface-muted: #f6f3ec;
  --surface-tint: #ecefe9;

  --border: rgba(28, 22, 14, 0.08);
  --border-strong: rgba(28, 22, 14, 0.16);

  --sprout: #3a7d5f;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               'Pretendard', 'Noto Sans KR', sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── i18n 가시성 ─────────────────────────────────────────────────── */
html.lang-en [data-ko],
html.lang-ko [data-en] { display: none; }
/* [data-en]/[data-ko] 자체는 흐름 안에서 자연스럽게 보임 (inline by default). */

/* ── Language toggle (nav 안) ────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--brand-fg-muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--brand-fg); }
.lang-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-fg);
  cursor: default;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--brand-fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--brand-fg); }
.nav-links .nav-cta {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--brand-fg);
}
.nav-links .nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-bg-soft) 0%, transparent 60%),
    var(--brand-bg);
  color: var(--brand-fg);
  padding: 140px 32px 120px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-fg-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lede {
  margin: 0 0 36px;
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--brand-fg-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-foot {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--brand-fg-subtle);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--brand-fg);
  color: var(--brand-bg);
}
.btn-primary:hover {
  background: #f0ece4;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-fg);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  padding: 120px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-tint {
  max-width: none;
  margin: 0;
  background: var(--surface-muted);
}
.section-tint > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sprout);
  font-weight: 600;
}
.section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}
.section-sub {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Metaphor ────────────────────────────────────────────────────── */
.metaphor-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 36px;
}
.m-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.m-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sprout);
  font-weight: 600;
}
.m-gloss {
  font-size: 14px;
  color: var(--text-muted);
}
.m-arrow {
  align-self: center;
  color: var(--text-subtle);
  font-size: 14px;
  user-select: none;
}
.metaphor-tail {
  margin: 0;
  padding: 22px 28px;
  border-left: 3px solid var(--sprout);
  background: rgba(58, 125, 95, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.metaphor-tail strong {
  color: var(--sprout);
  font-weight: 600;
}
@media (max-width: 720px) {
  .metaphor-flow { flex-direction: column; gap: 8px; }
  .m-step { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 18px; }
  .m-arrow { display: none; }
}

/* ── Why grid ────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Features ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sprout);
  background: rgba(58, 125, 95, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Footer CTA ──────────────────────────────────────────────────── */
.cta {
  background: var(--brand-bg);
  color: var(--brand-fg);
  padding: 100px 32px;
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cta p {
  margin: 0 0 32px;
  color: var(--brand-fg-muted);
  font-size: 17px;
  line-height: 1.6;
}
.cta-foot {
  margin: 24px 0 0 !important;
  font-size: 13px;
  color: var(--brand-fg-subtle);
}

/* "Try UMTRI<sup>BETA</sup>" — primary 버튼 안 윗첨자 배지. */
.beta {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: super;
  line-height: 1;
  color: var(--brand-fg);
  background: var(--sprout);
  border-radius: 4px;
}

/* ── Foot ────────────────────────────────────────────────────────── */
.foot {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.foot-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}
.foot-copy a { color: var(--text-muted); }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 120px 20px 80px; }
  .section { padding: 80px 20px; }
  .cta { padding: 72px 20px; }

  .metaphor-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
