/* Local ESS for SigenStor — https://local-ess.app
 * Self-contained stylesheet matching the native macOS SwiftUI palette.
 * Zero external fonts, zero trackers, zero cookies.
 */

:root {
  --bg: #0c0f15;
  --bg-elevated: #141923;
  --bg-card: #161b26;
  --bg-card-hover: #1b2230;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2f8;
  --text-muted: #98a4b8;
  --text-subtle: #6e7b91;

  --emerald: #14b880;
  --emerald-bright: #33d499;
  --emerald-soft: rgba(20, 184, 128, 0.14);
  --teal: #1ab3a8;
  --amber: #f29e14;
  --amber-soft: rgba(242, 158, 20, 0.15);
  --orange: #eb6b1a;
  --crimson: #e64040;
  --solar: #f5bd2e;
  --blue: #38a6f5;
  --violet: #8f5cf2;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 14% -8%, rgba(20, 184, 128, 0.14), transparent 60%),
    radial-gradient(840px 480px at 88% 2%, rgba(242, 158, 20, 0.11), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--emerald-bright);
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}

a:hover {
  color: #5ee7b7;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: #d6e4ff;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 840px;
}

/* Language Selector Dropdown */

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(12, 15, 21, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
  opacity: 0.92;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px 0 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-select-wrap:hover,
.lang-select-wrap:focus-within {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.1);
}

.lang-globe {
  font-size: 13px;
  line-height: 1;
  margin-right: 6px;
  pointer-events: none;
  opacity: 0.85;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px 7px 0;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  background: #141923;
  color: #eef2f8;
}

.lang-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 9px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #041912;
  box-shadow: 0 8px 24px rgba(20, 184, 128, 0.28);
}

.btn-primary:hover {
  color: #03130d;
  filter: brightness(1.07);
  box-shadow: 0 10px 30px rgba(20, 184, 128, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.badge-emerald {
  border-color: rgba(20, 184, 128, 0.35);
  background: var(--emerald-soft);
  color: var(--emerald-bright);
}

.badge-amber {
  border-color: rgba(242, 158, 20, 0.35);
  background: var(--amber-soft);
  color: #ffb938;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Hero Section */
.hero {
  padding: 72px 0 44px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-gradient {
  background: linear-gradient(135deg, #ffffff 10%, var(--emerald-bright) 60%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 30px;
  max-width: 680px;
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.58;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

/* Screenshot Showcase */
.showcase {
  padding: 18px 0 64px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.shot-tab {
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.shot-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.shot-tab.active {
  background: rgba(20, 184, 128, 0.16);
  border-color: rgba(20, 184, 128, 0.45);
  color: var(--emerald-bright);
}

.window-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #14171f;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
}

.window-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 19px;
}

.icon-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.icon-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-bright);
}

.icon-blue {
  background: rgba(56, 166, 245, 0.15);
  color: var(--blue);
}

.icon-solar {
  background: rgba(245, 189, 46, 0.15);
  color: var(--solar);
}

.icon-crimson {
  background: rgba(230, 64, 64, 0.15);
  color: #f87171;
}

.icon-violet {
  background: rgba(143, 92, 242, 0.15);
  color: #b48cf9;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.58;
}

/* Comparison / Tiers */
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-card.featured {
  border-color: rgba(20, 184, 128, 0.42);
  background: linear-gradient(180deg, rgba(20, 184, 128, 0.08), var(--bg-card) 48%);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.check-mark {
  color: var(--emerald-bright);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Privacy Banner */
.trust-panel {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(20, 184, 128, 0.3);
  background: linear-gradient(135deg, rgba(20, 184, 128, 0.1), rgba(26, 179, 168, 0.04) 55%, var(--bg-card));
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  background: rgba(12, 15, 21, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--emerald-bright);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Language Pills */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-pill {
  appearance: none;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.lang-pill.active {
  border-color: rgba(20, 184, 128, 0.48);
  background: var(--emerald-soft);
  color: var(--emerald-bright);
}

/* Documentation / Support / Privacy Prose */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 680px;
  font-size: 16.5px;
}

.prose-section {
  padding: 44px 0 72px;
}

.prose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-bottom: 20px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.prose-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
  font-size: 15px;
}

.prose-card ol,
.prose-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

details.faq-item[open] {
  border-color: var(--border-strong);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}

details.faq-item[open] summary::after {
  content: "−";
  color: var(--emerald-bright);
}

details.faq-item .faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1280px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-subtle);
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 30px;
  }
  .prose-card {
    padding: 20px;
  }
  .trust-panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
