:root {
  --water: #0077b6;
  --water-2: #00b4d8;
  --ink: #0b1220;
  --slate: #1e293b;
  --muted: #526174;
  --line: rgba(15, 23, 42, 0.12);
  --paper: #f4f8fb;
  --white: #ffffff;
  --danger: #e63946;
  --warn: #f48c06;
  --ok: #1ca243;
  --deep: #061018;
  --header: 72px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--water);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1280px, calc(100% - 40px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  color: var(--ink);
}
.brand-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-bar {
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--water);
  flex: none;
}
.brand-kyma,
.brand-tag {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand-kyma span,
.brand-tag span { line-height: 1.1; }
.brand-kyma {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.brand-kyma span {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.25rem;
  color: var(--water);
}
.brand-tag {
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.brand-tag span {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand.on-dark { color: #fff; }
.brand.on-dark .brand-kyma,
.brand.on-dark .brand-tag { border-left-color: rgba(255, 255, 255, 0.28); }
.brand.on-dark .brand-kyma span { color: #48cae4; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--water); }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--water); color: #fff; }
.btn-primary:hover { background: #005f8e; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-line {
  background: #fff;
  color: var(--water);
  border-color: rgba(0, 119, 182, 0.35);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  color: #fff;
  background: var(--deep);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.88) 0%, rgba(6, 16, 24, 0.55) 46%, rgba(6, 16, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 16, 24, 0.15), rgba(6, 16, 24, 0.55));
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
.kicker {
  margin: 0 0 14px;
  color: #90e0ef;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lead {
  max-width: 38rem;
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 46rem;
}
.hero-meta strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.hero-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

section { padding: 88px 0; }
.section-h {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: end;
}
.section-h .idx {
  color: var(--water);
  font-family: "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}
.section-h h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.section-h p { margin: 10px 0 0; color: var(--muted); max-width: 42rem; }

.paper { background: var(--paper); }
.deep { background: var(--deep); color: #fff; }
.deep .section-h p { color: rgba(255, 255, 255, 0.72); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0b1c28;
  box-shadow: 0 24px 60px rgba(6, 16, 24, 0.18);
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.caption {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.deep .caption { color: rgba(255, 255, 255, 0.6); }

.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps b {
  font-family: "Segoe UI", sans-serif;
  color: var(--water);
  letter-spacing: 0.08em;
}
.steps strong { display: block; letter-spacing: -0.02em; }
.steps span { color: var(--muted); }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.compare th, .compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th { background: #e8f4fa; font-size: 0.92rem; }
.compare td:first-child { font-weight: 700; width: 22%; color: var(--slate); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 18px;
}
.card i {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--water);
  border-radius: 2px;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.deep .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.deep .card p { color: rgba(255, 255, 255, 0.72); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.chip.risk { border-color: rgba(230, 57, 70, 0.35); color: #9d1c2b; }
.chip.warn { border-color: rgba(244, 140, 6, 0.45); color: #8a4b00; }
.chip.ok { border-color: rgba(28, 162, 67, 0.35); color: #146b30; }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}
.gallery .stack { display: grid; gap: 16px; }
.note {
  font-size: 0.95rem;
  color: var(--muted);
}

.host-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.host {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.host code {
  display: block;
  margin-bottom: 8px;
  color: #90e0ef;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.host p { margin: 0; color: rgba(255, 255, 255, 0.75); }

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, #023e8a, #0077b6 55%, #00b4d8);
  color: #fff;
}
.cta h2 { margin: 0 0 6px; letter-spacing: -0.03em; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.cta .btn-primary { background: #fff; color: #023e8a; }

footer.site {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
footer.site a { color: var(--water); font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
  .brand-tag { display: none; }
  .section-h, .split, .cards, .gallery, .host-row { grid-template-columns: 1fr; }
  .compare td:first-child { width: auto; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px;
    gap: 12px;
  }
  .nav-links.is-open { display: flex; }
  .brand-kyma span { font-size: 1.05rem; }
  section { padding: 64px 0; }
  .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
