:root {
  --blue: #2d8cff;
  --blue-dark: #1b6fd6;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6676;
  --line: #e2e8f0;
  --navy: #111827;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: #1a2438;
    --text: #f1f5f9;
    --muted: #a3afc2;
    --line: #2a364d;
    --blue: #4a9dff;
    --blue-dark: #6db1ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 32px 0 48px; }
.hero .app-icon { width: 96px; height: 96px; margin: 0 auto 16px; filter: drop-shadow(0 8px 18px rgba(45, 140, 255, .35)); }
.hero .name { margin: 0; color: var(--muted); font-weight: 600; font-size: 1rem; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); line-height: 1.1; margin: 8px 0 12px; letter-spacing: -0.02em; }
.lede { max-width: 34rem; margin: 0 auto 24px; color: var(--muted); font-size: 1.1rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  text-decoration: none; min-width: 11rem; text-align: center; border: 2px solid var(--blue);
}
.btn small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue-dark); }
.btn-outline:hover { background: rgba(45, 140, 255, .1); }
.fine { color: var(--muted); font-size: .95rem; margin: 16px 0 0; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-intro { color: var(--muted); margin: 0 0 24px; }

/* Features */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* Screenshots */
.shots { display: grid; gap: 28px; grid-template-columns: 1fr; justify-items: center; }
.shot { margin: 0; width: min(100%, 300px); text-align: center; }
.shot img {
  border-radius: 28px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .18);
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.shot.wide { align-self: center; }

/* Notes */
.notes { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.notes p { margin: 0 0 10px; color: var(--muted); }
.notes p:last-child { margin-bottom: 0; }

/* Support page */
.page { padding: 24px 0 48px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0 32px; }
.contact-card a.mail { font-weight: 700; font-size: 1.15rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p, details ol, details ul { margin: 0 0 14px; color: var(--muted); }
details ol, details ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0 0 8px; }

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .hero { padding: 56px 0 64px; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .15s, border-color .15s; }
}
