:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-deep: #e8eef8;
  --border: #d4deee;
  --text: #0f172a;
  --muted: #5b6b82;
  --accent: #0b5fff;
  --accent-soft: rgba(11, 95, 255, 0.12);
  --accent-strong: #0847c7;
  --link: #0b5fff;
  --hero-mid: #eef3fb;
  --btn-hover-bg: #e8eef8;
  --btn-hover-border: #9bb8d8;
  --copyright: #7a8799;
  --modal-overlay: rgba(15, 23, 42, 0.55);
  --modal-close-bg: #e8eef8;
  --modal-close-hover-bg: #d4deee;
  --dropdown-shadow: rgba(15, 23, 42, 0.14);
  --focus-outline: rgba(11, 95, 255, 0.45);
  --demo-chrome: #dbe4f3;
  --demo-page: #f8fafc;
  --demo-sidebar: #e2e8f0;
  --bubble-bg: #1c2434;
  --bubble-text: #f8fafc;
  --highlight: rgba(11, 95, 255, 0.35);
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Outfit", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111827;
  --surface-deep: #0a101c;
  --border: #243044;
  --text: #e8eef8;
  --muted: #9aa8bd;
  --accent: #4d8dff;
  --accent-soft: rgba(77, 141, 255, 0.16);
  --accent-strong: #6ea2ff;
  --link: #8ab4ff;
  --hero-mid: #0e1626;
  --btn-hover-bg: #1a2436;
  --btn-hover-border: #3a4b66;
  --copyright: #6b7a90;
  --modal-overlay: rgba(0, 0, 0, 0.72);
  --modal-close-bg: #1a2436;
  --modal-close-hover-bg: #243044;
  --dropdown-shadow: rgba(0, 0, 0, 0.45);
  --focus-outline: rgba(77, 141, 255, 0.55);
  --demo-chrome: #1a2436;
  --demo-page: #0f172a;
  --demo-sidebar: #162033;
  --bubble-bg: #1c2434;
  --bubble-text: #f8fafc;
  --highlight: rgba(77, 141, 255, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111827;
    --surface-deep: #0a101c;
    --border: #243044;
    --text: #e8eef8;
    --muted: #9aa8bd;
    --accent: #4d8dff;
    --accent-soft: rgba(77, 141, 255, 0.16);
    --accent-strong: #6ea2ff;
    --link: #8ab4ff;
    --hero-mid: #0e1626;
    --btn-hover-bg: #1a2436;
    --btn-hover-border: #3a4b66;
    --copyright: #6b7a90;
    --modal-overlay: rgba(0, 0, 0, 0.72);
    --modal-close-bg: #1a2436;
    --modal-close-hover-bg: #243044;
    --dropdown-shadow: rgba(0, 0, 0, 0.45);
    --focus-outline: rgba(77, 141, 255, 0.55);
    --demo-chrome: #1a2436;
    --demo-page: #0f172a;
    --demo-sidebar: #162033;
    --bubble-bg: #1c2434;
    --bubble-text: #f8fafc;
    --highlight: rgba(77, 141, 255, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-home {
  color: inherit;
  text-decoration: none;
}

.brand-home:hover {
  color: inherit;
  text-decoration: none;
}

.brand-sep {
  color: var(--accent);
  margin: 0 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pg-icon-btn:hover {
  border-color: var(--btn-hover-border);
  background: var(--btn-hover-bg);
}

.pg-icon-btn:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

.pg-theme-btn .pg-theme-icon {
  width: 18px;
  height: 18px;
}

.pg-theme-btn .pg-theme-icon-moon {
  display: none;
}

.pg-theme-btn.is-dark-active .pg-theme-icon-sun {
  display: block;
}

.pg-theme-btn.is-dark-active .pg-theme-icon-moon {
  display: none;
}

.pg-theme-btn:not(.is-dark-active) .pg-theme-icon-sun {
  display: none;
}

.pg-theme-btn:not(.is-dark-active) .pg-theme-icon-moon {
  display: block;
}

.pg-lang-switcher {
  position: relative;
}

.pg-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.pg-lang-switcher.is-open .pg-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pg-lang-option {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.pg-lang-option:hover,
.pg-lang-option.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(11, 95, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--hero-mid) 55%, var(--surface-deep) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }
}

.hero-copy {
  text-align: left;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-strong);
  text-decoration: none;
  color: #fff;
}

.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* Demo visual */
.hero-visual {
  position: relative;
  min-height: 320px;
}

.demo-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--demo-chrome);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  animation: pg-rise 0.9s ease 0.15s forwards;
}

.demo-topbar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--demo-chrome) 80%, #000 8%);
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.demo-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 260px;
  background: var(--demo-page);
}

.demo-side {
  background: var(--demo-sidebar);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-side-line {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 25%, transparent);
}

.demo-main {
  position: relative;
  padding: 28px 24px 36px;
}

.demo-heading {
  width: 46%;
  height: 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  margin-bottom: 18px;
}

.demo-para {
  width: 78%;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  margin-bottom: 10px;
}

.demo-para.short {
  width: 54%;
}

.demo-target {
  position: relative;
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}

.demo-target::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--highlight);
  animation: pg-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.demo-bubble {
  position: absolute;
  left: 150px;
  top: 118px;
  max-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bubble-bg);
  color: var(--bubble-text);
  font-size: 13px;
  line-height: 1.45;
  z-index: 3;
  transform-origin: center left;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: pg-bubble 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.demo-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--bubble-bg);
  transform: translateY(-50%) rotate(45deg);
}

.demo-footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bubble-bg) 92%, transparent);
  color: var(--bubble-text);
  font-size: 12px;
}

.demo-footer-bar span {
  opacity: 0.85;
}

@keyframes pg-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pg-bubble {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pg-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--highlight);
  }
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--highlight) 40%, transparent);
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-deep);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Problem compare */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-col {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-col h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 14px;
}

.compare-col.old h3 {
  color: var(--muted);
}

.compare-col.new {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.compare-col.new h3 {
  color: var(--accent);
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-col li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.compare-col li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--copyright);
}

.compare-col.new li::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
}

/* How: set / page / step */
.layers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .layers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.layer {
  padding: 22px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}

.layer-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layer h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.layer p {
  font-size: 14px;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 8px 4px 16px;
  border-bottom: 1px solid var(--border);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.plan.featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-soft) 70%, var(--surface)),
    var(--surface) 48%
  );
}

.plan-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan li {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Steps flow */
.flow {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: flow;
}

.flow-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  counter-increment: flow;
}

.flow-item::before {
  content: counter(flow);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.flow-item p {
  font-size: 15px;
  color: var(--muted);
  padding-top: 3px;
}

/* Install */
.install {
  text-align: center;
  padding: 64px 0 80px;
}

.install-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.install-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 10px;
}

.install-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.install-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--copyright);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.btn-legal {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.btn-legal:hover {
  color: var(--text);
  text-decoration: underline;
}

.copyright {
  font-size: 13px;
  color: var(--copyright);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
  padding-right: 36px;
}

.modal-body {
  font-size: 14px;
  color: var(--muted);
}

.modal-body h3 {
  color: var(--text);
  font-size: 15px;
  margin: 18px 0 8px;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-body ul {
  margin: 0 0 12px 18px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--modal-close-bg);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  background: var(--modal-close-hover-bg);
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 0 44px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .demo-bubble {
    left: 92px;
    top: 132px;
    max-width: 160px;
    font-size: 12px;
  }

  .demo-body {
    grid-template-columns: 56px 1fr;
  }
}
