:root {
  --bg: #08080d;
  --card: #14141c;
  --line: #262633;
  --text: #f4f4f8;
  --muted: #a3a3b5;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --radius: 20px;
  color-scheme: dark;
}

* { 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, Helvetica, Arial, sans-serif;
}

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

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(8, 8, 13, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 64px 0 32px; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 60px rgba(139, 92, 246, 0.45); }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.1; margin: 24px 0 12px; letter-spacing: -0.02em; }
.gradient { background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto; }
.button { display: inline-block; margin-top: 28px; padding: 14px 28px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; font-weight: 600; }
.button:hover { text-decoration: none; filter: brightness(1.1); }
.small-note { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 48px; }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); display: block; }
@media (max-width: 700px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

/* Documents */
.doc { padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #d6d6e0; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
.summary p { margin: 0; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 32px; text-align: center; }
.contact-box p { margin: 0 0 4px; color: var(--muted); }
.contact-box .email { font-size: 20px; font-weight: 600; word-break: break-all; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p, details ol, details ul { margin: 6px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .site-nav { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
}
