:root {
  --canvas: #f4f1e8;
  --surface: #fffdf8;
  --ink: #17212b;
  --muted: #66727e;
  --brand: #1f5c49;
  --brand-dark: #163f32;
  --up: #c83345;
  --down: #275fb8;
  --warning: #8a570f;
  --line: #ccd3d8;
  --radius: 14px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans KR", "Noto Sans SC",
    "Noto Sans JP", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--brand);
}

.language-nav {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.language-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 999px;
}

.language-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 46ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.hero-shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(23, 33, 43, 0.35);
  justify-self: center;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
}

section h2 {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

section > p.section-lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

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

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

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

/* Screenshot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.shot-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  display: block;
}

.shot-grid figcaption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Status banner */
.status-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.status-banner strong {
  color: var(--warning);
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Support form */
.support-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.support-form input,
.support-form select,
.support-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.support-form button {
  justify-self: start;
  cursor: pointer;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

#form-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}

#form-status[data-state="ok"] {
  color: var(--brand);
}

#form-status[data-state="error"] {
  color: var(--up);
}

/* Legal text */
.legal h2 {
  font-size: 1.2rem;
  margin-top: 32px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  margin-right: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    order: -1;
    max-width: 220px;
  }
}
