:root {
  --bg: #f5f5f8;
  --card: #ffffff;
  --fg: #18181f;
  --muted: #6f6f89;
  --border: rgba(0, 0, 0, 0.08);
  --primary: #2c4e86;
  --primary-alt: #3a5ea0;
  --primary-fg: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto',
    'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }

a { color: inherit; }

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

/* ----- Header ----- */
.home-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.home-brand { display: flex; align-items: center; gap: 10px; }
.home-brand img { width: 30px; height: 30px; }
.home-brand span {
  font-weight: 700; font-size: 19px; letter-spacing: 0.2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-alt), var(--primary));
  color: #fff; box-shadow: 0 6px 18px rgba(44, 78, 134, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.03); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ----- Hero ----- */
.hero {
  display: flex; align-items: center; gap: 56px;
  padding: 56px 0 84px;
}
.hero-art { flex: 0 0 auto; width: 320px; max-width: 40vw; }
.hero-art img { width: 100%; height: auto; display: block; }
.hero-copy { flex: 1; min-width: 0; }
.hero-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: 48px; font-weight: 700; line-height: 1.12; letter-spacing: 0.1px;
  margin-bottom: 18px;
}
.hero-copy p {
  font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 30px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-actions .btn-ghost-link { font-size: 14.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.hero-actions .btn-ghost-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .hero { flex-direction: column; gap: 32px; padding-top: 24px; text-align: center; }
  .hero-art { width: 220px; max-width: 60vw; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ----- Features ----- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  background: rgba(44, 78, 134, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ----- How it works ----- */
.steps { background: #16161d; color: #f0f0f5; }
.steps .section-head p { color: #8b8ba7; }
.steps .section-head h2 { color: #fff; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .step-grid { grid-template-columns: 1fr; } }
.step {
  text-align: center; padding: 0 12px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-alt), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: #b3b3c8; }

/* ----- Closing CTA ----- */
.cta { text-align: center; padding: 84px 0; }
.cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

/* ----- Footer ----- */
.home-footer {
  border-top: 1px solid var(--border); padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px;
}
.home-footer a { text-decoration: none; font-weight: 600; color: var(--primary); }
