:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-strong: #edf3f5;
  --ink: #172026;
  --muted: #66737c;
  --line: #dce5e8;
  --brand: #0f8b8d;
  --brand-dark: #0a6364;
  --accent: #e9b44c;
  --coral: #e76f51;
  --dark: #162126;
  --dark-soft: #24333a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 32, 38, 0.14);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

html:lang(ko) body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

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

p,
h1,
h2,
h3,
pre {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(247, 249, 251, 0.88);
  border-bottom: 1px solid rgba(220, 229, 232, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #40515a;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.document-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #40515a;
  font-size: 0.95rem;
  font-weight: 700;
}

.document-nav a:hover {
  color: var(--brand-dark);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66737c;
  font-size: 0.85rem;
  font-weight: 850;
}

.language-switch a {
  padding: 6px 0;
}

.language-switch a[aria-current="page"] {
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 96px 0;
}

.language-banner {
  border-bottom: 1px solid var(--line);
  background: #fff9ea;
}

.language-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.language-banner p {
  margin: 0;
  color: #4f3d13;
  font-size: 0.93rem;
  font-weight: 700;
}

.language-banner div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-banner a,
.language-banner button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.language-banner a {
  background: var(--brand);
  color: var(--white);
}

.language-banner button {
  border: 1px solid rgba(79, 61, 19, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #4f3d13;
  cursor: pointer;
}

.section-band {
  padding: 86px 0 72px;
}

.section-tint {
  background: var(--surface-strong);
}

.hero {
  overflow: hidden;
}

.hero-grid,
.two-column,
.examples-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6.4vw, 5.15rem);
  max-width: 820px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 32px;
  font-size: 1.18rem;
}

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

.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(15, 139, 141, 0.22);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.play-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease;
}

.play-store-badge:hover {
  transform: translateY(-2px);
}

.play-store-badge img {
  display: block;
  width: auto;
  height: 52px;
}

.product-shot {
  position: relative;
  display: flex;
  min-height: 700px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.product-shot::before {
  position: absolute;
  inset: 18% -12% 6% 10%;
  content: "";
  background:
    radial-gradient(circle at 30% 30%, rgba(233, 180, 76, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(15, 139, 141, 0.24), rgba(231, 111, 81, 0.18));
  border-radius: 28px;
  transform: rotate(-8deg);
}

.product-shot:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.45);
  outline-offset: 10px;
}

.carousel-viewport {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  margin-left: auto;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-track.is-dragging {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 16px 20px 24px;
}

.phone-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 8px solid #101820;
  border-radius: 36px;
  background: #101820;
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: contain;
  border-radius: 27px;
  background: #f5f7fb;
  pointer-events: none;
}

.carousel-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 300px);
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.1);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.carousel-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b9c7cc;
  cursor: pointer;
  transition:
    width 220ms ease,
    border-radius 220ms ease,
    background 220ms ease;
}

.carousel-dot[aria-current="true"] {
  width: 24px;
  border-radius: 8px;
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-button,
  .carousel-dot {
    transition: none;
  }
}

pre {
  margin-bottom: 0;
  overflow-x: auto;
  color: #26343b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.text-stack p {
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.steps,
.feature-grid,
.use-case-grid {
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.use-case-grid article,
.feature-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 900;
}

.use-case-grid,
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: #bdc9ce;
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-dark .feature-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--dark-soft);
}

.document-main {
  padding: 72px 0 88px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
  align-items: start;
}

.document-hero {
  position: sticky;
  top: 104px;
}

.document-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.document-meta {
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-weight: 850;
}

.document-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(23, 32, 38, 0.08);
}

.document-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.document-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.document-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.document-card p,
.document-card li {
  color: #4e5d66;
}

.document-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.document-card li + li {
  margin-top: 8px;
}

.document-note {
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #fff9ea;
}

.document-note p:last-child,
.document-card p:last-child {
  margin-bottom: 0;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.examples-grid {
  align-items: start;
}

.code-tabs {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111b20;
  box-shadow: var(--shadow);
}

.tab-list {
  display: flex;
  padding: 8px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8d5da;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: #223138;
  color: var(--white);
}

.code-panel {
  display: none;
  padding: 22px;
  color: #d9e6eb;
}

.code-panel.active {
  display: block;
}

.cta-section {
  padding-top: 42px;
}

.cta-panel {
  padding: 48px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.08), rgba(233, 180, 76, 0.12)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 720px;
}

.cta-panel p {
  max-width: 680px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner div {
  display: flex;
  gap: 18px;
  color: #40515a;
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 4px;
  }

  .document-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .document-hero {
    position: static;
  }

  .language-switch {
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .language-switch a {
    padding: 10px 4px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-grid,
  .two-column,
  .examples-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-shot {
    min-height: 700px;
    align-items: center;
  }

  .carousel-viewport,
  .carousel-toolbar {
    margin: 0 auto;
  }

  .carousel-toolbar {
    margin-top: 16px;
  }

  .steps,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
    right: 14px;
    left: 14px;
  }

  .section,
  .section-band {
    padding: 64px 0;
  }

  .document-main {
    padding: 52px 0 68px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .hero-lede {
    font-size: 1.03rem;
  }

  .hero-actions,
  .footer-inner,
  .language-banner-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .language-banner div {
    width: 100%;
  }

  .language-banner a,
  .language-banner button {
    flex: 1 1 150px;
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .play-store-badge {
    width: 100%;
    align-items: center;
  }

  .product-shot {
    min-height: auto;
  }

  .product-shot::before {
    inset: 16% 2% 0;
  }

  .carousel-viewport {
    width: min(92vw, 340px);
  }

  .carousel-toolbar {
    width: min(82vw, 300px);
  }

  .steps,
  .feature-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .use-case-grid article,
  .feature-grid article,
  .cta-panel,
  .document-card {
    padding: 22px;
  }

  .document-nav {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .code-panel {
    padding: 18px;
    font-size: 0.78rem;
  }
}
