:root {
  --bg: #0f1115;
  --bg-elev: #161a22;
  --fg: #e6e8ec;
  --fg-muted: #9aa0ad;
  --accent: #6ee7d4;
  --accent-dim: #2e8f80;
  --border: #232836;
  --link: #8cd9ff;
  --max: 760px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-elev: #ffffff;
    --fg: #1c1f26;
    --fg-muted: #5b6070;
    --accent: #1f8a78;
    --accent-dim: #c7ece5;
    --border: #e5e7ec;
    --link: #0a6cbb;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding: 48px 20px 80px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-image: url("signa-logo-256-light.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .logo { background-image: url("signa-logo-256-dark.png"); }
}

.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background-image: url("signa-logo-256-light.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 0 28px;
}

@media (prefers-color-scheme: dark) {
  .hero-logo { background-image: url("signa-logo-256-dark.png"); }
}

header.site .brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

header.site .brand small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 15px;
}

nav.site a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .15s ease;
}

nav.site a:hover, nav.site a[aria-current="page"] {
  color: var(--fg);
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 24px 0 8px;
  font-weight: 600;
  color: var(--fg);
}

p, ul, ol {
  margin: 0 0 14px;
}

ul, ol { padding-left: 22px; }

li { margin-bottom: 6px; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

a:hover { border-bottom-color: currentColor; }

strong { font-weight: 600; color: var(--fg); }

em { font-style: normal; color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 32px;
  max-width: 580px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.feature .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--fg);
  transition: transform .1s ease, opacity .15s ease;
}

.cta:hover { transform: translateY(-1px); opacity: 0.92; border-bottom-color: transparent; }

.cta.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.legal {
  counter-reset: section;
}

.legal h2::before {
  counter-increment: section;
  content: counter(section) ". ";
  color: var(--fg-muted);
  font-weight: 500;
  margin-right: 2px;
}

.meta {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 28px;
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14px;
  line-height: 1.55;
}

.caps strong { letter-spacing: 0.03em; }

footer.site {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

footer.site .links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

footer.site a { color: var(--fg-muted); }
footer.site a:hover { color: var(--fg); }

hr.soft {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

@media (max-width: 560px) {
  body { padding: 32px 16px 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 20px; }
  .lede { font-size: 17px; }
  header.site { gap: 10px; padding-bottom: 24px; margin-bottom: 28px; }
  nav.site { gap: 12px; font-size: 14px; }
  .card { padding: 20px; }
  footer.site { flex-direction: column; align-items: flex-start; }
  footer.site .links { margin-left: 0; }
}
