:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #17161c;
  --muted: #5f5d68;
  --line: #e7e3dc;
  --brand: #403dc4;
  --brand-soft: #ecebfb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111015;
    --surface: #1b1a21;
    --text: #f3f1f7;
    --muted: #a8a5b3;
    --line: #2c2a34;
    --brand: #8d8af0;
    --brand-soft: #24224a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 14px 24px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.small { font-size: 14px; color: var(--muted); margin-top: 12px; }

.stack { position: relative; height: 440px; }
.stack img { position: absolute; width: 48%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); border: 6px solid var(--surface); }
.stack img:nth-child(1) { left: 2%; top: 30px; transform: rotate(-7deg); }
.stack img:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); z-index: 2; }
.stack img:nth-child(3) { right: 0; top: 50px; transform: rotate(8deg); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.doc { padding: 48px 0 80px; }
.doc h1 { font-size: 38px; letter-spacing: -0.01em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.note { background: var(--brand-soft); border-radius: 14px; padding: 16px 18px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 24px; gap: 28px; }
  .stack { height: 340px; }
  .features { grid-template-columns: 1fr; padding-bottom: 56px; }
  nav a { margin-left: 14px; }
  nav a.hide-sm { display: none; }
}
