:root {
  --bg-base: 250 250 250;
  --bg-surface: 255 255 255;
  --bg-subtle: 245 245 245;
  --text-primary: 23 23 23;
  --text-secondary: 64 64 64;
  --text-muted: 100 100 100;
  --border: 229 229 229;
  --accent: 37 99 235;
  --accent-strong: 29 78 216;
  --success: 22 163 74;
  --danger: 220 38 38;
  --glow: 217 119 6; /* amber lantern */
  --radius: 12px;
  --maxw: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: 23 23 23;
    --bg-surface: 38 38 38;
    --bg-subtle: 64 64 64;
    --text-primary: 245 245 245;
    --text-secondary: 212 212 212;
    --text-muted: 163 163 163;
    --border: 64 64 64;
    --accent: 59 130 246;
    --accent-strong: 96 165 250;
    --success: 34 197 94;
    --danger: 239 68 68;
    --glow: 251 191 36;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgb(var(--bg-base));
  color: rgb(var(--text-primary));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: rgb(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 4px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: rgb(var(--text-primary)); }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.site-nav a { color: rgb(var(--text-secondary)); }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 120ms ease, background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: rgb(var(--accent)); color: #fff; }
.btn-primary:hover { background: rgb(var(--accent-strong)); }
.btn-secondary { background: rgb(var(--bg-surface)); color: rgb(var(--text-primary)); border-color: rgb(var(--border)); }
.btn-secondary:hover { border-color: rgb(var(--accent)); }
.beta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgb(var(--text-muted)); }

.hero { position: relative; text-align: center; padding: 4rem 1rem 3rem; }
.hero-logo-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 1rem; }
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 320px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(var(--glow) / 0.35), transparent 70%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-logo, .hero h1, .hero-tagline, .hero-actions, .hero-meta { position: relative; z-index: 1; }
.hero-logo { display: block; width: 96px; height: 96px; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.hero-tagline { max-width: 40rem; margin: 0 auto 1.75rem; color: rgb(var(--text-secondary)); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 1rem; color: rgb(var(--text-muted)); font-size: 0.9rem; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 4rem; }
.shots figure { margin: 0; border: 1px solid rgb(var(--border)); border-radius: var(--radius); overflow: hidden; background: rgb(var(--bg-surface)); aspect-ratio: 16 / 10; }
.shots figure img { width: 100%; height: 100%; object-fit: cover; }

section h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); text-align: center; margin: 0 0 2rem; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: rgb(var(--bg-surface)); border: 1px solid rgb(var(--border));
  border-radius: var(--radius); padding: 1.5rem;
}
.card-wide { grid-column: span 2; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: rgb(var(--text-secondary)); }
.card code { background: rgb(var(--bg-subtle)); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.trust { text-align: center; padding: 4rem 0; }
.trust-points { list-style: none; padding: 0; max-width: 42rem; margin: 0 auto 1.5rem; text-align: left; display: grid; gap: 0.9rem; }
.trust-points li { color: rgb(var(--text-secondary)); }
.trust-links { display: flex; gap: 1.5rem; justify-content: center; }

.download { text-align: center; padding: 2rem 0 4rem; }
.download-version { color: rgb(var(--text-muted)); margin-bottom: 1.5rem; }
.download-grid { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.download-note { max-width: 40rem; margin: 1.5rem auto 0; color: rgb(var(--text-muted)); font-size: 0.9rem; }

.site-footer { border-top: 1px solid rgb(var(--border)); margin-top: 3rem; padding: 2rem 1.25rem; text-align: center; }
.site-footer nav { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer nav a { color: rgb(var(--text-secondary)); font-size: 0.9rem; }
.disclaimer { font-size: 0.75rem; color: rgb(var(--text-muted)); letter-spacing: 0.02em; max-width: 40rem; margin: 0 auto 0.5rem; }
.copyright { font-size: 0.8rem; color: rgb(var(--text-muted)); margin: 0; }

.feedback { max-width: 640px; margin: 0 auto; padding: 2rem 1.25rem 4rem; text-align: center; }
.feedback-note { color: rgb(var(--text-muted)); font-size: 0.9rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.feedback-form { display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.fb-cats { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.fb-cat { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border: 1px solid rgb(var(--border)); border-radius: 999px; cursor: pointer; font-size: 0.9rem; background: rgb(var(--bg-surface)); transition: border-color 150ms, color 150ms; }
.fb-cat:has(input:checked) { border-color: rgb(var(--accent)); color: rgb(var(--accent)); }
.fb-cat input { accent-color: rgb(var(--accent)); margin: 0; }
.feedback-form textarea,
.feedback-form input[type="email"],
.feedback-form input[type="text"] {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid rgb(var(--border)); border-radius: 8px;
  background: rgb(var(--bg-surface)); color: rgb(var(--text-primary)); font: inherit; resize: vertical;
}
.feedback-form textarea:focus,
.feedback-form input:focus { outline: 2px solid rgb(var(--accent)); outline-offset: 1px; border-color: transparent; }
.fb-row { display: flex; gap: 0.75rem; }
.fb-row input { flex: 1; min-width: 0; }
.feedback-form .btn { align-self: center; margin-top: 0.25rem; }
.fb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb-status { text-align: center; font-size: 0.9rem; min-height: 1.2em; margin: 0.25rem 0 0; }
.fb-success { color: rgb(var(--success)); }
.fb-error { color: rgb(var(--danger)); }
@media (max-width: 820px) { .fb-row { flex-direction: column; } }

@media (max-width: 820px) {
  .shots, .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .site-nav { gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}
