:root {
  --bg: #070b14;
  --surface: #0d1524;
  --line: #1b2840;
  --text: #e9eef8;
  --muted: #8794ab;
  --accent: #3ea4ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--text);
  color: var(--bg);
  padding: 6px 10px;
}

.skip:focus { top: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

nav.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.primary,
.langs { display: flex; align-items: center; gap: 22px; }

.primary a,
.langs a,
.drawer a { color: var(--muted); font-size: 14px; }

.primary a:hover,
.langs a:hover,
.drawer a:hover,
footer a:hover { color: var(--text); }

.primary a[aria-current="page"],
.langs a[aria-current="true"] {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}

.btn:hover { border-color: var(--accent); }

.btn.solid {
  background: var(--text);
  color: #070b14;
  border-color: var(--text);
}

.drawer { display: none; }

.drawer summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.drawer summary::-webkit-details-marker { display: none; }

.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 560px;
  height: 660px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0, rgba(110, 170, 255, 0.3), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

h1 {
  position: relative;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
}

html[lang="ko"] h1 { line-height: 1.2; letter-spacing: -0.03em; }

h1 span { color: #5c6a82; }

h1 em { font-style: normal; color: var(--accent); }

.lead {
  position: relative;
  max-width: 560px;
  margin: 28px auto 20px;
  color: var(--muted);
  font-size: 18px;
}

.note {
  position: relative;
  max-width: 640px;
  margin: 0 auto 28px;
  border: 1px dashed var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.cta {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.win {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 40px 120px -40px rgba(62, 164, 255, 0.3);
}

.bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.row:last-child { border: 0; }

.row small { color: var(--muted); }

.ok { color: var(--accent); }

section { padding: 88px 0; }

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
}

.sub { color: var(--muted); max-width: 520px; margin: 0; }

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.feat div { padding: 28px 28px 0 0; }

.feat div + div { padding-left: 28px; border-left: 1px solid var(--line); }

.feat h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }

.feat p { color: var(--muted); font-size: 15px; margin: 0; }

.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
}

.card.featured { border-color: var(--accent); }

.card .kind,
.card .tag {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}

.card h3 {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card .more { margin-top: 14px; }

.card .more a { color: var(--text); text-decoration: underline; text-underline-offset: 0.18em; }

.group { margin-top: 40px; }

.group > h2,
.page .group > h2 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

html[lang="ko"] .group > h2,
html[lang="ko"] .page .group > h2 { letter-spacing: 0; text-transform: none; }

.kicker { margin: 0 0 8px; color: var(--accent); font-size: 14px; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  max-width: 760px;
}

.plans.three {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

.plan {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.plan.pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(62, 164, 255, 0.09), transparent);
}

.plan h2,
.plan h3 { font-size: 17px; margin: 0; letter-spacing: 0; }

.price {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
}

.price small { font-size: 15px; color: var(--muted); }

.plan ul,
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.plan li,
.prose li { padding: 8px 0; border-top: 1px solid var(--line); }

.page,
.legal { margin: 0 auto; padding: 72px 24px 96px; }

.page { max-width: 1080px; }

.legal { max-width: 720px; }

.page h1,
.legal h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.page h2,
.legal h2 {
  font-size: 20px;
  margin: 36px 0 8px;
  letter-spacing: 0;
}

.lede,
.prose { max-width: 68ch; }

.lede { color: var(--muted); font-size: 18px; }

.prose p,
.legal p,
.page > p { color: var(--muted); }

.prose a,
.note a,
.lede a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

.table-scroll {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table { width: 100%; border-collapse: collapse; min-width: 44rem; }

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th { background: #10192b; font-weight: 500; }

tr:last-child td,
tr:last-child th { border-bottom: 0; }

.todo {
  background: rgba(62, 164, 255, 0.16);
  padding: 0 0.25em;
  border-radius: 4px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

footer .copy { margin-right: auto; }

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

@media (max-width: 800px) {
  .primary,
  .langs { display: none; }

  .drawer { display: block; }

  header { position: sticky; }

  nav.bar { position: relative; }

  .drawer[open] nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 24px 20px;
    background: rgba(7, 11, 20, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .feat,
  .plans,
  .plans.three,
  .work { grid-template-columns: 1fr; }

  .feat div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 28px;
  }

  .hero { padding-top: 80px; }

  .page h1,
  .legal h1 { font-size: 32px; }
}

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