/* Wavemaker marketing + guide + demo shared */
:root {
  --bg: #070a0f;
  --surface: #111820;
  --surface-2: #161f2a;
  --text: #eef3f9;
  --muted: #8fa3b8;
  --accent: #4d9fff;
  --accent-soft: rgba(77, 159, 255, 0.14);
  --ok: #3ecf8e;
  --warn: #f5b942;
  --danger: #f07178;
  --radius: 14px;
  --font: "Pretendard", "Segoe UI", system-ui, sans-serif;
  --border: #1e2a38;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1040px;
}

html[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #fff;
  --surface-2: #f0f3f8;
  --text: #0f172a;
  --muted: #5b6b7c;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --border: #dde4ee;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav .btn-nav-primary {
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff !important;
}

.btn-icon {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

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

.chart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}

.chart-panel canvas {
  max-height: 280px;
  width: 100% !important;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.metric-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  min-width: 120px;
}

.metric-pill strong {
  display: block;
  font-size: 1.1rem;
}

.metric-pill span {
  font-size: 0.78rem;
  color: var(--muted);
}

.guide-prose h2 {
  margin-top: 2rem;
}
.guide-prose p,
.guide-prose li {
  color: var(--muted);
}
.guide-prose ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-flow {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .demo-flow {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
