/* ============================================================
   Atomo Studio — Design System
   Light mode by default · Dark mode via [data-theme="dark"]
   ============================================================ */

/* ===== LIGHT (default) ===== */
:root {
  /* Surface */
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f0;
  --bg-tinted: #f2f2ec;

  /* Border */
  --border: #e6e6df;
  --border-soft: #efefe9;
  --border-strong: #c8c8c0;

  /* Text */
  --text: #0a0a0a;
  --text-dim: #5e5e5a;
  --text-faint: #9a9a96;

  /* Brand / Accent — light mode uses mono + red dot */
  --accent: #0a0a0a;
  --accent-strong: #1f1f24;
  --accent-soft: #f0eef3;
  --accent-border: #d4d4cf;
  --accent-text: #0a0a0a;
  --dot: #ef4444;

  /* Status (shared) */
  --green: #16a34a;
  --orange: #ea580c;
  --red: #dc2626;
  --blue: #2563eb;
  --yellow: #ca8a04;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,0.18);

  /* Hero gradient (light) */
  --hero-glow-1: rgba(239, 68, 68, 0.05);
  --hero-glow-2: rgba(10, 10, 10, 0.04);

  /* Layout */
  --max-w: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Type */
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* ===== DARK overrides ===== */
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-elev: #131316;
  --bg-card: #18181c;
  --bg-card-hover: #1c1c22;
  --bg-tinted: #1a1a20;

  --border: #26262c;
  --border-soft: #1e1e23;
  --border-strong: #353540;

  --text: #f5f5f7;
  --text-dim: #9a9aa3;
  --text-faint: #5a5a63;

  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --accent-border: rgba(167, 139, 250, 0.28);
  --accent-text: #c4b5fd;
  --dot: #ef4444;

  --green: #34d399;
  --orange: #fb923c;
  --red: #f87171;
  --blue: #60a5fa;
  --yellow: #fbbf24;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow:    0 8px 28px rgba(0,0,0,0.4);
  --shadow-lg: 0 30px 60px -30px rgba(0,0,0,0.6);

  --hero-glow-1: rgba(167, 139, 250, 0.10);
  --hero-glow-2: rgba(96, 165, 250, 0.06);
}

/* 폰트: 시스템 폰트 fallback만 사용 — Pretendard CDN 제거 (네트워크 + 메모리 절약).
   macOS/iOS는 Apple SD Gothic Neo, Android는 Noto Sans KR로 자연스럽게 렌더 */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .25s, color .25s;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }

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

::selection { background: var(--text); color: var(--bg); }

body::before {
  /* hero 부근에만 그라데이션 (fixed → absolute로 변경: 스크롤 시 GPU 재합성 회피) */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 700px;
  background:
    radial-gradient(500px 360px at 15% 0%, var(--hero-glow-1), transparent 60%),
    radial-gradient(400px 300px at 95% 8%, var(--hero-glow-2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: 16px;
  color: var(--text);
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--text);
}
.brand-logo .bg-fill { fill: var(--bg); }
.brand-logo .dot-fill { fill: var(--dot); }

.brand-text { letter-spacing: -0.3px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--text); opacity: 0.85; }

/* Theme toggle button */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s;
  padding: 0;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   Containers / Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dot);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  line-height: 1.22;
  color: var(--text);
}
.section-lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 120px 0 80px;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dot);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 20%, transparent);
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 880px;
  color: var(--text);
}
.hero h1 .accent {
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  right: -0.35em;
  top: 0.15em;
  width: 0.18em;
  height: 0.18em;
  border-radius: 999px;
  background: var(--dot);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 0.92;
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}

/* ============================================================
   Stat strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 64px;
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  color: var(--text);
}
.stat-num .accent { color: var(--text); }
.stat-num .dot-mark { color: var(--dot); }
.stat-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   Project Grid
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.project-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--text);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  grid-column: 1 / -1;
  padding: 40px;
  background:
    radial-gradient(900px 240px at 100% 0%, color-mix(in srgb, var(--dot) 5%, transparent), transparent 60%),
    var(--bg-card);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.project-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg);
}
.project-badge.live {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 8%, var(--bg));
}
.project-badge.beta {
  color: var(--orange);
  border-color: color-mix(in srgb, var(--orange) 35%, transparent);
  background: color-mix(in srgb, var(--orange) 8%, var(--bg));
}
.project-badge.dev {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
  background: color-mix(in srgb, var(--blue) 8%, var(--bg));
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
  overflow: hidden;
}
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Larger app-icon (detail hero) */
.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 520px) {
  .app-icon { width: 72px; height: 72px; border-radius: 16px; }
}

.project-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.project-desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.stack-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  letter-spacing: 0.2px;
  font-weight: 500;
}

.project-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}
.project-link .arrow { transition: transform .2s; }
.project-card:hover .arrow { transform: translateX(4px); }

/* Coming soon card */
.project-card.coming {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  min-height: 220px;
  text-align: center;
  color: var(--text-dim);
  box-shadow: none;
}
.project-card.coming:hover {
  transform: none;
  background: var(--bg-card);
  border-color: var(--text);
}

/* ============================================================
   About / Founder
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.founder-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}
.founder-role {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 18px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
}
.about-bullets {
  list-style: none;
  display: grid;
  gap: 22px;
}
.about-bullets li {
  padding-left: 30px;
  position: relative;
  color: var(--text-dim);
  line-height: 1.75;
}
.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.about-bullets strong { color: var(--text); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 56px 0 40px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-company {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.85;
}
.footer-company strong { color: var(--text); font-weight: 700; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   Project / Detail page
   ============================================================ */
.detail-hero { padding: 80px 0 40px; }

.breadcrumbs {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border-strong); }

.detail-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--text);
}
.detail-hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
.detail-meta-item .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-faint);
  margin-bottom: 4px;
  font-weight: 600;
}
.detail-meta-item .v {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* Feature blocks */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: -0.2px; }
.feature p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* Section heading row */
.s-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.s-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); }
.s-head p { color: var(--text-dim); font-size: 14px; max-width: 460px; }

/* List of links (legal pages) */
.link-list { display: grid; gap: 10px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .18s;
  box-shadow: var(--shadow-sm);
}
.link-list a:hover {
  border-color: var(--text);
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateX(2px);
}
.link-list a .title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.link-list a .meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.link-list a .arrow { color: var(--text-faint); }

/* ============================================================
   Channel cards (유튜브 채널 자동화 등)
   ============================================================ */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--text);
  box-shadow: var(--shadow-lg);
}
.channel-card.coming {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}
.channel-card.coming:hover {
  background: var(--bg-card);
  transform: translateY(-3px);
}
.channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.channel-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.channel-tagline {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 14px;
}
.channel-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
}
.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 880px) {
  .channel-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Origin · Vision (이름 어원 + 비전)
   ============================================================ */
.origin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.origin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, color-mix(in srgb, var(--dot) 6%, transparent), transparent 60%);
  pointer-events: none;
}
.origin-card > * { position: relative; }

.origin-formula {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
  font-family: var(--font-sans);
}
.origin-formula .part {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.origin-formula .part-kr em {
  font-style: normal;
  font-size: 0.65em;
  color: var(--text-faint);
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: -0.3px;
}
.origin-formula .op {
  font-size: clamp(22px, 3.6vw, 32px);
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.origin-formula .result {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.6px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--dot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* 어원 강조: A와 O를 빨간 점 컬러로 살려서 합성어임을 시각적으로 보여줌 */
.origin-formula .hl {
  color: var(--dot);
  font-weight: 900;
}
.origin-formula .part-kr em .hl {
  color: var(--dot);
}

.origin-tagline {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.origin-tagline strong {
  position: relative;
  display: inline-block;
}
.origin-tagline strong::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: color-mix(in srgb, var(--dot) 22%, transparent);
  z-index: -1;
  border-radius: 4px;
}

.origin-body {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.vision-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.vision-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.vision-num {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--dot);
  margin-bottom: 12px;
  font-family: var(--font-mono, monospace);
}
.vision-item h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.35;
}
.vision-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}
.vision-item p strong { color: var(--text); font-weight: 700; }

@media (max-width: 880px) {
  .origin-card { padding: 36px 24px; }
  .vision-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Pricing cards (오토큐브 등)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
  border-color: var(--text);
  background: linear-gradient(180deg, var(--bg-card), color-mix(in srgb, var(--text) 3%, var(--bg-card)));
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-tagline {
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 10px;
}
.pricing-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.pricing-price .currency {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 600;
}
.pricing-price .amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pricing-price .period {
  font-size: 14px;
  color: var(--text-faint);
  margin-left: 4px;
}
.pricing-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.pricing-features li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.pricing-features li.ok::before {
  content: "✓";
  background: color-mix(in srgb, var(--green) 14%, var(--bg));
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.pricing-features li.no::before {
  content: "✕";
  background: var(--bg-tinted);
  color: var(--text-faint);
  border: 1px solid var(--border-soft);
}
.pricing-features li.no { color: var(--text-faint); }
.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  transition: all .18s;
}
.pricing-cta:hover {
  background: var(--bg-card-hover);
  border-color: var(--text);
  color: var(--text);
}
.pricing-cta.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.pricing-cta.primary:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 0.9;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Install / Follow cards (혼술의 온도 등)
   ============================================================ */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.install-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  overflow: hidden;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  min-height: 240px;
}
.install-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 220px at 110% -10%, var(--install-glow, transparent), transparent 60%);
  z-index: -1;
  opacity: 0.6;
  transition: opacity .25s;
}
.install-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.install-card:hover::before { opacity: 1; }

.install-card.play   { --install-glow: rgba(52, 168, 83, 0.12); }
.install-card.appstore { --install-glow: rgba(10, 10, 10, 0.08); }
.install-card.insta  { --install-glow: rgba(238, 42, 123, 0.12); }

[data-theme="dark"] .install-card.play   { --install-glow: rgba(52, 168, 83, 0.18); }
[data-theme="dark"] .install-card.appstore { --install-glow: rgba(245, 245, 247, 0.08); }
[data-theme="dark"] .install-card.insta  { --install-glow: rgba(238, 42, 123, 0.20); }

.install-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.install-badge .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
}
.install-badge.live { background: color-mix(in srgb, var(--green) 12%, var(--bg)); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.install-badge.live .dot { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.install-badge.soon { background: color-mix(in srgb, var(--text-faint) 8%, var(--bg)); color: var(--text-dim); border: 1px solid var(--border); }
.install-badge.soon .dot { background: var(--text-faint); }
.install-badge.insta { background: color-mix(in srgb, #ee2a7b 10%, var(--bg)); color: #ee2a7b; border: 1px solid color-mix(in srgb, #ee2a7b 30%, transparent); }
.install-badge.insta .dot { background: #ee2a7b; box-shadow: 0 0 0 3px color-mix(in srgb, #ee2a7b 25%, transparent); }

.install-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-tinted);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--text);
}
.install-card.appstore .install-icon {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.install-platform {
  font-size: 10.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.install-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.15;
}
.install-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.55;
  flex-grow: 1;
}
.install-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.install-cta .arrow { transition: transform .2s; }
.install-card:hover .install-cta .arrow { transform: translateX(4px); }

/* Bottom info strip */
.install-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 22px;
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.meta-strip-item {
  border-right: 1px solid var(--border);
  padding-right: 18px;
}
.meta-strip-item:last-child { border-right: none; }
.meta-strip-item .k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-faint);
  margin-bottom: 4px;
  font-weight: 700;
}
.meta-strip-item .v {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 880px) {
  .install-grid { grid-template-columns: 1fr; }
  .install-card { min-height: auto; padding: 24px; }
  .install-meta-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .meta-strip-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; padding-right: 0; }
  .meta-strip-item:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 14px; }
  .meta-strip-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* ============================================================
   Legal / Policy content
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.legal h1 { font-size: 34px; letter-spacing: -0.8px; margin-bottom: 12px; font-weight: 800; color: var(--text); }
.legal .effective {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.legal h2 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.2px; color: var(--text); }
.legal h3 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; color: var(--text); }
.legal p { color: var(--text-dim); margin-bottom: 12px; font-size: 14.5px; line-height: 1.85; }
.legal ul, .legal ol {
  margin: 8px 0 16px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.9;
}
.legal li { margin-bottom: 4px; }
.legal strong { color: var(--text); font-weight: 700; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 13.5px;
}
.legal table th, .legal table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-dim);
}
.legal table th { background: var(--bg-tinted); color: var(--text); font-weight: 700; }
.legal a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.legal a:hover { border-color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .project-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 56px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-right { gap: 12px; }
}

@media (max-width: 520px) {
  .project-card.featured, .project-card { padding: 24px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .brand-text { display: none; }
}
