@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg: #0e0e12;
  --surface: #17171d;
  --line: #26262f;
  --text: #f1f1f5;
  --muted: #9a9aa8;
  --accent: #ffb020;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.top-link { margin-left: auto; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; }
a.feature { text-decoration: none; transition: border-color .15s; }
a.feature:hover { border-color: var(--accent); }

/* hero */
.hero { padding: 48px 0 32px; }
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }

/* live demo: the real overlay on a 16:9 virtual stage, scaled to fit */
.demo {
  position: relative;
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 20% 30%, #3b4a7a 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 75%, #8a4f5f 0%, transparent 60%),
    linear-gradient(135deg, #1c2238, #2a1f33);
}
.demo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  /* must match the overlay document, or Chrome paints the iframe opaque */
  color-scheme: normal;
}

/* sections */
section { padding: 56px 0 0; }
section h2 { margin: 0 0 20px; font-size: 22px; letter-spacing: -0.02em; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}
.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

/* footer */
.foot {
  margin-top: 80px;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot .row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--text); }

/* legal page */
.legal { max-width: 760px; padding-top: 24px; }
.legal h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .date { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 18px; margin: 36px 0 10px; }
.legal p, .legal li { color: #d6d6de; }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--surface); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* placeholders the operator must fill before publishing */
mark.fill { background: rgba(255, 90, 90, 0.2); color: #ff9b9b; padding: 0 4px; border-radius: 4px; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  section { padding-top: 44px; }
}
