:root {
  --ink: #0e1624;
  --ink-soft: #3d4f63;
  --ink-faint: #5a6e82;
  --paper: #e8eef4;
  --paper-deep: #d4e0eb;
  --cyan: #0369a1;
  --cyan-bright: #0284c7;
  --amber: #c2410c;
  --amber-deep: #9a3412;
  --line: rgba(14, 22, 36, 0.11);
  --line-strong: rgba(14, 22, 36, 0.2);
  --surface: rgba(255, 255, 255, 0.88);
  --code-bg: #0e1624;
  --code-fg: #dce8f0;
  --hero-fg: #f4f8fb;
  --hero-muted: rgba(220, 232, 240, 0.88);
  --radius: 0.5rem;
  --nav-h: 4rem;
  --max: 70rem;
  --font-display: "Archivo", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --font-body: "Source Sans 3", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 40;
  --z-skip: 100;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 520px at 8% -5%, rgba(2, 132, 199, 0.14), transparent 58%),
    radial-gradient(700px 480px at 96% 12%, rgba(194, 65, 12, 0.08), transparent 52%),
    linear-gradient(180deg, #f2f6fa 0%, var(--paper) 38%, var(--paper-deep) 100%);
  overflow-wrap: break-word;
}

:lang(ko),
:lang(ja),
:lang(zh-Hans),
:lang(zh) {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header {
      backdrop-filter: blur(8px);
    }
  }
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  color: var(--cyan);
}

.brand-text {
  line-height: 1.1;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.15rem;
  transition: color 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 2.1rem 0 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233d4f63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.lang-select:hover {
  border-color: var(--ink);
  background-color: #fff;
}

.lang-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--amber);
  color: #fff;
}

.btn-primary:hover {
  background: var(--amber-deep);
}

.btn-ghost {
  background: color-mix(in srgb, #fff 55%, transparent);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #1a2740;
}

.btn-nav {
  min-height: 2.75rem;
  padding-inline: 0.95rem;
  font-size: 0.88rem;
}

.nav-icon {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: hero-settle 1.4s var(--ease) both;
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 14, 24, 0.22) 0%,
      rgba(8, 14, 24, 0.08) 32%,
      rgba(8, 14, 24, 0.68) 72%,
      rgba(6, 10, 18, 0.94) 100%
    ),
    linear-gradient(
      105deg,
      rgba(6, 10, 18, 0.62) 0%,
      rgba(6, 10, 18, 0.12) 46%,
      rgba(6, 10, 18, 0.4) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  padding: 5.5rem 0 3.75rem;
  color: var(--hero-fg);
  max-width: 38rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise-in 700ms var(--ease) both;
  }
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-brand::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--cyan-bright);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-brand::after {
    animation: rule-draw 700ms var(--ease) 280ms both;
  }
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(244, 248, 251, 0.94);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 0 0 1.7rem;
  max-width: 32rem;
  color: var(--hero-muted);
  font-size: 1.05rem;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.section {
  padding: 5.75rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.section-head p,
.cta-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.flow {
  display: grid;
  gap: 4.25rem;
}

.flow-step {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.flow-step:nth-child(even) .flow-copy {
  order: 1;
}

.flow-copy {
  max-width: 26rem;
  min-width: 0;
}

.step-index {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.06em;
}

.flow-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.flow-copy p {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.shot {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a1018;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .shot {
    transform: translateY(12px);
    transition: transform 600ms var(--ease);
  }

  html.js .shot.is-in {
    transform: translateY(0);
  }
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.why-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.why-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .why-item {
    transform: translateY(8px);
    transition: transform 500ms var(--ease);
  }

  html.js .why-item.is-in {
    transform: none;
  }

  html.js .why-item:nth-child(2) {
    transition-delay: 60ms;
  }

  html.js .why-item:nth-child(3) {
    transition-delay: 120ms;
  }

  html.js .why-item:nth-child(4) {
    transition-delay: 180ms;
  }
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.why-item p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34rem;
  overflow-wrap: anywhere;
}

.tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 45%, transparent);
  overflow: hidden;
}

.tools-list li {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.tools-list li:last-child {
  border-bottom: 0;
}

.tools-list li:nth-child(even) {
  background: rgba(2, 132, 199, 0.035);
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.tool-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.start-panel {
  display: grid;
  gap: 1.35rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.06), transparent 55%),
    color-mix(in srgb, #fff 50%, transparent);
}

.start-panel .section-head {
  margin-bottom: 0;
}

.code-block {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--code-bg);
  color: var(--code-fg);
  overflow: hidden;
}

.code-block::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-bright), var(--amber));
}

.code-block pre {
  margin: 0;
  padding: 1.4rem 1.25rem 1.55rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.55;
}

.copy-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.65rem;
  min-height: 2.75rem;
  min-width: 4.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 180ms var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.start-note {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cta-band {
  padding-bottom: 5.5rem;
}

.cta-panel {
  padding: 2.75rem 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 280px at 0% 50%, rgba(2, 132, 199, 0.1), transparent 60%),
    color-mix(in srgb, #fff 48%, transparent);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.footer-meta p {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer-copy a,
.footer-row > a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-copy a:hover,
.footer-row > a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

@keyframes hero-settle {
  from {
    transform: scale(1.04);
    opacity: 0.9;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rule-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 900px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .flow-step {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.75rem;
  }

  .flow-step:nth-child(even) {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .flow-step:nth-child(even) .flow-copy {
    order: 0;
    justify-self: end;
    text-align: right;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 0.55rem;
    min-height: auto;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem 1rem;
    padding-bottom: 0.15rem;
  }

  .btn-nav-label {
    display: none;
  }

  .btn-nav {
    padding: 0;
    min-width: 2.75rem;
  }

  .tools-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .hero-copy {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .shot img {
    aspect-ratio: 4 / 3;
  }

  .start-panel,
  .cta-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 580px) {
  .nav-actions {
    gap: 0.45rem;
  }

  .lang-select {
    padding-inline: 0.7rem 1.85rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef4;
    --ink-soft: #a8b8c8;
    --ink-faint: #7a90a4;
    --paper: #0a1018;
    --paper-deep: #070b10;
    --cyan: #38bdf8;
    --cyan-bright: #7dd3fc;
    --amber: #fb923c;
    --amber-deep: #f97316;
    --line: rgba(232, 238, 244, 0.09);
    --line-strong: rgba(232, 238, 244, 0.16);
    --surface: rgba(14, 22, 36, 0.88);
    --code-bg: #0c1420;
  }

  body {
    background-image:
      radial-gradient(900px 520px at 8% -5%, rgba(2, 132, 199, 0.16), transparent 58%),
      radial-gradient(700px 480px at 96% 12%, rgba(194, 65, 12, 0.08), transparent 52%),
      linear-gradient(180deg, #0c1420 0%, var(--paper) 40%, var(--paper-deep) 100%);
  }

  .site-header {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
  }

  .lang-select {
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a8b8c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .lang-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
  }

  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .tools-list {
    background: rgba(14, 22, 36, 0.55);
  }

  .tools-list li:nth-child(even) {
    background: rgba(2, 132, 199, 0.06);
  }

  .start-panel,
  .cta-panel {
    background:
      linear-gradient(135deg, rgba(2, 132, 199, 0.08), transparent 55%),
      rgba(14, 22, 36, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-copy,
  .hero-brand::after,
  .btn,
  html.js .shot,
  html.js .why-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
