/* Art direction: editorial + engineered
   Palette: Ink Navy + Seafoam (완전 다른 톤 — 빨강/노랑/형광펜 금지) */
:root {
  --bg: #0c1220;
  --bg-elev: #101828;
  --surface: #141b2d;
  --surface-2: #1a2338;
  --border: rgba(232, 228, 220, 0.1);
  --border-strong: rgba(232, 228, 220, 0.22);
  --text: #e8e4dc;
  --muted: #9a958c;
  --dim: #6e6a62;
  --accent: #3ddc97;
  --accent-ink: #06261a;
  --accent-dim: rgba(61, 220, 151, 0.14);
  --warn: #e8a85c;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --font-display: "Fraunces", "Newsreader", Georgia, serif;
  --font-body: "Pretendard", "Noto Sans KR", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70% 50% at 85% -5%, rgba(61, 220, 151, 0.12), transparent 55%),
    radial-gradient(50% 40% at 0% 20%, rgba(126, 184, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #0e1526 0%, var(--bg) 40%, #0a1018 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.88);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ——— Hero ——— */
.hero {
  padding: var(--space-4) 0 var(--space-3);
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: none;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.hero-meta div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-meta strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* Right-side product visual: browser mock */
.hero-visual {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(61, 220, 151, 0.12), rgba(232, 168, 92, 0.06)),
    #151c2e;
  border: 1px solid rgba(61, 220, 151, 0.22);
}

.device {
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 14px;
  background: #1a2236;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(61, 220, 151, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(61, 220, 151, 0.08);
  animation: deviceFloat 5.5s var(--ease) infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(232, 228, 220, 0.14);
  background: #0f1524;
}

.device-dots {
  display: flex;
  gap: 5px;
}

.device-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  display: block;
}

.device-dots i:nth-child(1) { background: #e07a6a; }
.device-dots i:nth-child(2) { background: #e8a85c; }
.device-dots i:nth-child(3) { background: #3ddc97; }

.device-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #c8c3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 228, 220, 0.16);
  border-radius: 4px;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-screen {
  padding: 16px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(61, 220, 151, 0.18), transparent 55%),
    linear-gradient(180deg, #182133 0%, #121a2b 100%);
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.mock-links {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #b7b2a8;
}

.mock-hero-band {
  border: 1px solid rgba(61, 220, 151, 0.28);
  border-radius: 8px;
  padding: 18px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(61, 220, 151, 0.2), rgba(232, 168, 92, 0.1));
}

.mock-hero-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #f2efe8;
}

.mock-hero-band p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #c5c0b6;
  line-height: 1.45;
}

.mock-cta {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 4px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-card {
  border: 1px solid rgba(232, 228, 220, 0.16);
  border-radius: 6px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.05);
}

.mock-card b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #f0ebe3;
}

.mock-card span {
  display: block;
  font-size: 11px;
  color: #a9a49a;
  line-height: 1.35;
}

.mock-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.mock-tier {
  border: 1px solid rgba(232, 228, 220, 0.16);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.mock-tier:nth-child(2) {
  border-color: rgba(61, 220, 151, 0.55);
  background: rgba(61, 220, 151, 0.14);
}

.mock-tier:nth-child(3) {
  border-color: rgba(232, 168, 92, 0.55);
}

.mock-tier em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #a9a49a;
  margin-bottom: 2px;
}

.mock-tier strong {
  font-size: 12px;
  color: #f0ebe3;
}

@media (max-width: 719px) {
  .mock-links {
    display: none;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta strong {
    font-size: 0.85rem;
  }

  .device-screen {
    padding: 12px;
  }

  .mock-hero-band strong {
    font-size: 1.05rem;
  }

  .mock-grid {
    gap: 6px;
  }

  .mock-card {
    padding: 8px 6px;
  }

  .mock-card b {
    font-size: 11px;
  }

  .mock-card span {
    font-size: 10px;
  }

  .plans {
    gap: 10px;
  }

  .plan {
    padding: 16px 14px;
  }

  .plan-price {
    font-size: 1.45rem;
  }

  .compare {
    min-width: 540px;
    font-size: 0.8rem;
  }

  .process {
    padding: 14px 8px;
    overflow-x: auto;
  }

  .process svg {
    min-width: 480px;
  }

  .btn-row {
    max-width: 100%;
  }

  .btn-row .btn {
    max-width: none;
  }
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 28px 36px;
    padding: var(--space-5) 0 var(--space-4);
  }

  .hero h1 {
    font-size: clamp(2.25rem, 3.4vw, 3.2rem);
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--space-4) 0;
  scroll-margin-top: 72px;
}

#pricing,
#compare,
#contact {
  scroll-margin-top: 72px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: var(--space-3);
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section .lead {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* ——— Plan cards (asymmetric) ——— */
.plans {
  display: grid;
  gap: 12px;
}

.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px 18px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.plan:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.plan.is-featured {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: rgba(61, 220, 151, 0.35);
}

.plan.is-featured::before {
  content: "추천";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.plan-pages {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.plan-price {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.plan-price.is-consult {
  font-size: 1.25rem;
  color: var(--warn);
}

.plan-days {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan li {
  list-style: none;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--text);
}

.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
}

.plan-cta {
  display: inline-flex;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}

.plan-cta:hover {
  color: var(--accent);
}

/* ——— Comparison table ——— */
.compare-hint {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.compare-hint span {
  color: var(--warn);
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compare caption {
  caption-side: bottom;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  color: var(--dim);
  border-top: 1px solid var(--border);
}

.compare th,
.compare td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare thead th:last-child,
.compare td:last-child {
  min-width: 108px;
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
}

.compare thead th:nth-child(3) {
  color: var(--accent);
  background: rgba(61, 220, 151, 0.08);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  background: #12192a;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.18);
}

.compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.compare td {
  color: var(--muted);
}

.compare td.yes {
  color: var(--accent);
  font-weight: 600;
}

.compare td.feat {
  background: rgba(61, 220, 151, 0.04);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare .price-cell {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
}

/* ——— Process timeline SVG ——— */
.process {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px 16px;
}

.process svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ——— CTA block ——— */
.cta-block {
  margin: 8px 0 var(--space-4);
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(61, 220, 151, 0.28);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(61, 220, 151, 0.12), transparent 55%),
    var(--surface-2);
  text-align: center;
}

.cta-block h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cta-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.btn-row .btn {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-note {
  padding: 0 0 var(--space-4);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dim);
}

.footer-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

/* ——— Sticky ——— */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.94);
  backdrop-filter: blur(14px);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}

.sticky-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 340px;
  padding: 0 12px;
}

.sticky-inner .btn {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: 1fr 1.08fr 1fr;
    align-items: stretch;
  }

  .plan.is-featured {
    transform: translateY(-6px);
  }

  .plan.is-featured:hover {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav-cta,
  .plan {
    transition: none;
  }

  .device {
    animation: none;
  }
}
