:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #161a2c;
  --muted: #5d6478;
  --border: #e6e8ef;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0ff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #ec4899 120%); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; font-weight: 800; }
.site-nav { display: flex; gap: 18px; font-size: 0.92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(800px 400px at 15% -10%, rgba(99, 102, 241, 0.16), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(236, 72, 153, 0.10), transparent 60%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 760px; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 10px; font-weight: 600; }
.btn:hover { background: var(--primary-dark); color: #fff; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 12px; }

.contact { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 820px; }
.legal h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 4px; }

/* Footer */
.site-footer { padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .site-nav { gap: 12px; font-size: 0.85rem; }
  .site-nav .hide-sm { display: none; }
  .brand { font-size: 0.95rem; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .legal article { padding: 22px 18px; }
}
