/* Snaplume website. Static, no external resources. Colors follow the app themes (src/Snaplume/Themes). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-soft: #ede9fe;
  --accent-text: #5b21b6;
  --amber: #fbbf24;
  --brand-dark: #1e1b2e;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 12px 32px -12px rgba(30, 27, 46, .25);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --bg-soft: #1b1922;
    --surface: #211f2a;
    --border: #34313f;
    --text: #f3f4f6;
    --muted: #b4b8c2;
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-soft: #2e2543;
    --accent-text: #c4b5fd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd {
  display: inline-block;
  padding: .05em .45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--brand-dark) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: #ddd6fe; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .lang { border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; }
.nav .cta { background: var(--amber); color: var(--brand-dark); font-weight: 650; }
.nav .cta:hover { background: #fde68a; color: var(--brand-dark); }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(167, 139, 250, .45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(251, 191, 36, .12), transparent 60%),
    linear-gradient(160deg, #2e1065 0%, var(--brand-dark) 55%, #0f0b1e 100%);
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; text-align: center; justify-items: center; }
.hero-logo { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.hero h1 {
  margin: 0; max-width: 18ch;
  font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 750;
}
.hero h1 .spark { color: var(--amber); }
.hero .lead { margin: 0; max-width: 60ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #ddd6fe; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin: 0; font-size: .9rem; color: #c4b5fd; }
.hero-meta span + span::before { content: "·"; margin: 0 .6em; color: #8b7fb0; }
.hero-shot { width: 100%; max-width: 1100px; }
.hero-shot img { width: 100%; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, transform .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 58, 237, .8); }
.hero .btn-primary { background: #7c3aed; }
.btn-primary:hover, .hero .btn-primary:hover { background: #8b5cf6; color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.btn-outline { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-outline:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.015em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }

/* Why */
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.why p { margin: 0; color: var(--muted); }

/* Gallery / carousel */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tabs button {
  font: inherit; font-size: .95rem; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 8px; overscroll-behavior-x: contain;
}
.carousel figure { margin: 0; scroll-snap-align: center; }
.carousel img { width: 100%; border-radius: 12px; background: transparent; }
.carousel figcaption { margin-top: 10px; text-align: center; color: var(--muted); }
.carousel figcaption strong { color: var(--text); }
.js .carousel { scrollbar-width: none; }
.js .carousel::-webkit-scrollbar { display: none; }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card .ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-text);
}
.card .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li + li { margin-top: 4px; }
.card li::marker { color: var(--accent); }
@media (max-width: 400px) { .features { grid-template-columns: 1fr; } }

/* Privacy */
.privacy {
  display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr;
  padding: 40px; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(167, 139, 250, .35), transparent 60%), var(--brand-dark);
}
@media (min-width: 860px) { .privacy { grid-template-columns: 1.1fr 1fr; padding: 56px; } }
.privacy h2 { color: #fff; }
.privacy p { color: #ddd6fe; margin: 0; font-size: 1.1rem; }
.privacy .big { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; line-height: 1; color: var(--amber); letter-spacing: -.03em; }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #ede9fe; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #a3e635; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.langs li {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600;
}
.langs li span { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .9em; }
.themes-shot { max-width: 1000px; margin: 0 auto; }

/* Download */
.dl-platform { max-width: 900px; margin: 0 auto 16px; font-size: 1.35rem; }
.note + .dl-platform { margin-top: 48px; }
.downloads { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 900px; margin: 0 auto; }
.downloads .card { display: flex; flex-direction: column; gap: 10px; }
.downloads .card p { margin: 0; color: var(--muted); }
.downloads code { word-break: break-all; }
.downloads .btn { margin-top: auto; align-self: flex-start; }
.note {
  max-width: 900px; margin: 24px auto 0; padding: 16px 20px; border-radius: 12px;
  border: 1px solid var(--border); border-left: 4px solid var(--amber); background: var(--surface); color: var(--muted);
}
.note strong { color: var(--text); }

/* Shortcuts */
.table-wrap { overflow-x: auto; max-width: 760px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
pre {
  max-width: 760px; margin: 24px auto 0; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius);
  background: var(--brand-dark); color: #ede9fe; font-size: .9rem; line-height: 1.55;
}
pre .c { color: #a78bfa; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 8px; }

/* Footer */
.site-footer { padding: 40px 0; background: var(--brand-dark); color: #c4b5fd; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer a { color: #ede9fe; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .brand { font-size: 1rem; }
.site-footer p { margin: 0; }
