/* ===== LastSeen — static site styles ===== */

:root {
  --accent: #5729d9;
  --accent-dark: #4620ad;
  --accent-soft: #f2eefc;
  --ink: #1d2327;
  --body: #5c6169;
  --muted: #8a9099;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(29, 35, 39, 0.06);
  --shadow-hover: 0 14px 40px rgba(87, 41, 217, 0.14);
  --wrap: 1080px;
  --font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  border: 1.5px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 400; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a.navlink {
  color: var(--body); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px;
}
.nav a.navlink:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav a.navlink.active { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background-color: #0e0f1a;
  background-image:
    linear-gradient(90deg,
      rgba(14, 15, 26, 0.94) 0%,
      rgba(14, 15, 26, 0.80) 42%,
      rgba(14, 15, 26, 0.30) 70%,
      rgba(14, 15, 26, 0.05) 100%),
    url("../img/hero-bg.webp");
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  padding: 104px 0 88px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: .5em;
}
.hero .lead { font-size: 1.12rem; max-width: 58ch; color: rgba(255, 255, 255, 0.82); }
.hero .lead code { background: rgba(255, 255, 255, 0.12); color: #d7c9ff; padding: 1px 6px; border-radius: 5px; font-size: .9em; }

.privacy-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 10px; }
.privacy-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #ffffff; }
.privacy-list li svg { flex: none; width: 20px; height: 20px; color: #a98bff; }

/* Ghost button variant for use on the dark hero */
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Features ===== */
.features { padding: 72px 0; background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .thumb {
  width: 64px; height: 64px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.card .thumb img { width: 70%; height: 70%; object-fit: contain; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card p { font-size: .95rem; margin: 0; }
.card code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

.lang-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lang-tags span {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 6px;
}

/* ===== CTA band ===== */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { color: var(--muted); max-width: 48ch; margin: 0 auto 28px; }

/* ===== Legal / content pages ===== */
.page { padding: 64px 0 72px; }
.page-header { margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .2em; }
.page-header .meta { color: var(--muted); font-size: .9rem; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin: 2em 0 .5em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--body); }
.prose ol { padding-left: 0; list-style: none; counter-reset: item; }
.prose ol > li { counter-increment: item; margin-bottom: 1.1em; padding-left: 2.4em; position: relative; }
.prose ol > li::before {
  content: counter(item); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.prose strong { color: var(--ink); }
.prose code { background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 5px; font-size: .88em; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; justify-content: space-between; }
.site-footer .copyright { color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--body); font-size: .9rem; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .brand-sub { display: none; }
  .nav { gap: 2px; }
  .nav a.navlink { padding: 8px 10px; }
  .hero {
    padding: 64px 0 52px;
    background-image:
      linear-gradient(180deg, rgba(14, 15, 26, 0.82) 0%, rgba(14, 15, 26, 0.88) 100%),
      url("../img/hero-bg.webp");
  }
  .grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .nav .btn { padding: 9px 14px; font-size: .85rem; }
}
