:root {
  --bg: #eef1f4;
  --bg-2: #e4e9ee;
  --surface: #f8fafb;
  --ink: #12161c;
  --ink-2: #2a313b;
  --muted: #5f6b78;
  --line: rgba(18, 22, 28, 0.12);
  --accent: #0f766e;
  --accent-2: #0d9488;
  --accent-d: #0b5f59;
  --warn: #b45309;
  --itkey: #2563eb;
  --vm: #111111;
  --display: "Syne", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1040px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #f5f7f9 0%, var(--bg) 42%, #e9eef2 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 22, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
a { color: var(--accent-d); }
img, svg { display: block; }
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(238, 241, 244, 0.82);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
}
.brand small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { background: rgba(18, 22, 28, 0.06); }
.lang-switch {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch:hover { color: var(--ink); border-color: rgba(18, 22, 28, 0.22); }

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}
.hero-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 22px 0 18px;
}
.hero h1 span {
  display: block;
  color: var(--accent-d);
}
.hero-lead {
  max-width: 38rem;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; }

.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.app-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18, 22, 28, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 22px 48px rgba(18, 22, 28, 0.08);
}
.app-shots {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 18px 12px 8px;
  margin: -4px -4px 0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.04), transparent 70%),
    rgba(18, 22, 28, 0.03);
  overflow: hidden;
}
.phone {
  width: min(42%, 148px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  padding: 7px;
  background: #12161c;
  box-shadow:
    0 14px 28px rgba(18, 22, 28, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: none;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #0b0e12;
}
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
.shot-gallery .phone {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 26px;
}
.shot-gallery .phone img { border-radius: 18px; }
.shot-gallery figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.hero-with-shots {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-shot-stack {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-shot-stack .phone {
  width: min(46%, 190px);
  position: absolute;
  bottom: 0;
}
.hero-shot-stack .phone:nth-child(1) {
  left: 4%;
  transform: rotate(-8deg) translateY(8px);
  z-index: 1;
}
.hero-shot-stack .phone:nth-child(2) {
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(52%, 210px);
}
.hero-shot-stack .phone:nth-child(3) {
  right: 4%;
  left: auto;
  transform: rotate(8deg) translateY(8px);
  z-index: 2;
}
.app-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
}
.app-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.app-card .pkg {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.app-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.chip:hover { border-color: rgba(18, 22, 28, 0.28); }
.chip-accent {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--accent-d);
}

.panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.panel-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}
.panel-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.panel-card p {
  margin: 0 0 18px;
  color: var(--ink-2);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-list strong {
  min-width: 4.5rem;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #12161c;
  color: #a8b0ba;
  padding: 36px 0 44px;
  margin-top: 24px;
}
.site-footer a { color: #fff; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: start;
}
.site-footer strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

/* App / privacy pages */
.doc-header {
  padding: 48px 0 20px;
}
.doc-header h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
  line-height: 1.1;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.summary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 36px;
}
.summary p { margin: 0; color: var(--ink-2); }
.doc {
  padding-bottom: 72px;
}
.doc h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}
.doc h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  overflow: hidden;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  background: rgba(18, 22, 28, 0.04);
  font-weight: 600;
}
.doc code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(18, 22, 28, 0.05);
  padding: 1px 5px;
  border-radius: 5px;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.feature-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .nav .hide-sm { display: none; }
  .app-grid,
  .panel,
  .hero-with-shots,
  .shot-gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-shot-stack {
    min-height: 320px;
    margin-top: 12px;
  }
  .shot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .shot-gallery figure {
    flex: 0 0 58%;
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app-card { transition: none; }
  .btn:hover, .app-card:hover { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > .wrap,
.section > .wrap,
.doc-header > .wrap,
.doc > .wrap {
  animation: rise 0.55s ease both;
}
.section > .wrap { animation-delay: 0.08s; }
