:root {
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Default (dark) */
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.35);

  --accent: #6ee7ff;
  --accent2: #8b5cf6;

  --radius: 18px;
  --container: 1120px;
}

html[data-theme="light"] {
  --bg: #f7f8fb;
  --surface: rgba(10, 18, 32, 0.04);
  --surface2: rgba(10, 18, 32, 0.06);
  --text: rgba(10,18,32,0.92);
  --muted: rgba(10,18,32,0.62);
  --border: rgba(10,18,32,0.10);
  --shadow: 0 18px 60px rgba(10,18,32,0.12);

  --accent: #2563eb;
  --accent2: #7c3aed;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 75% 20%, rgba(139,92,246,0.25), transparent 60%),
    radial-gradient(900px 500px at 20% 10%, rgba(110,231,255,0.18), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.main { padding-top: 76px; }
img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.maxw { max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent2) 22%, transparent);
}
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-group { position: relative; }
.nav-trigger { cursor: pointer; background: none; border: 0; }

.nav-panel {
  position: absolute; top: 46px; left: 0;
  width: 360px;
  padding: 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 78%, white 6%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
}
.nav-panel.open { display: block; }

.panel-item {
  display: block;
  padding: 12px;
  border-radius: 14px;
}
.panel-item:hover { background: var(--surface); }
.panel-title { font-weight: 700; font-size: 14px; }
.panel-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-left: 8px;
}
.panel-item.muted { opacity: 0.7; }

/* Theme dropdown */
.theme-switcher { position: relative; margin-left: 6px; }
.theme-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.theme-menu {
  position: absolute; right: 0; top: 52px;
  width: 160px;
  padding: 8px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 78%, white 6%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
}
.theme-menu.open { display: block; }
.theme-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.theme-item:hover { background: var(--surface); }

.chev { opacity: 0.75; }

/* Mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.burger {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}
.burger::before, .burger::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--text);
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    padding: 14px 20px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav.open { display: flex; }
  .nav-panel {
    position: static;
    width: 100%;
    margin-top: 6px;
  }
  .theme-menu { position: static; width: 100%; margin-top: 6px; }
}

/* Sections */
.hero { padding: 70px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 62ch;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: rgba(10,18,32,0.92);
}
.btn.ghost { background: var(--surface); }
.btn.small { padding: 10px 14px; border-radius: 14px; margin-top: 14px; }
.text-link { color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-weight: 800; display: inline-block; margin-top: 8px; }

.trust-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.trust-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.trust-num { font-weight: 900; }
.trust-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, white 6%);
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.glow {
  position: absolute; inset: -50px;
  background:
    radial-gradient(420px 320px at 30% 20%, rgba(110,231,255,0.22), transparent 60%),
    radial-gradient(420px 320px at 70% 40%, rgba(139,92,246,0.18), transparent 62%);
  pointer-events: none;
}
.card-title { position: relative; font-weight: 900; font-size: 16px; }

.dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-block;
}

.feature-mini { position: relative; color: var(--muted); margin-top: 10px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; }

.section { padding: 56px 0; }
.section.alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.01em; }
h3 { margin: 10px 0 6px; font-size: 18px; }

.cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.card {
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
}
.card-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.card.muted { opacity: 0.82; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.stack { display: grid; gap: 10px; }
.stack-item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, white 6%);
  color: var(--muted);
  font-weight: 700;
  display: flex; gap: 10px; align-items: center;
}

.cta-banner {
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(110,231,255,0.16), transparent 55%),
    radial-gradient(900px 400px at 80% 30%, rgba(139,92,246,0.14), transparent 60%),
    var(--surface);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Pages */
.page-hero { padding: 44px 0 10px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 14px;
}
.bullets { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-weight: 600; }
.bullets li { margin: 8px 0; }

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.faq-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.faq-q { font-weight: 900; }
.faq-a { margin-top: 8px; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* Footer */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 16px;
}
.footer-brand { font-weight: 900; margin-bottom: 8px; }
.footer-title { font-weight: 900; margin-bottom: 10px; }
.footer-link { display: block; padding: 6px 0; color: var(--muted); font-weight: 700; }
.footer-link:hover { color: var(--text); }

.tiny { font-size: 12px; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================
   Bug report form layout
   ========================= */
.bug-form { max-width: 980px; margin: 0 auto; }

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

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}

.field textarea { resize: vertical; min-height: 120px; }

.hint { margin: 8px 0 0; font-size: 0.9rem; opacity: 0.8; }

.span-2 { grid-column: 1 / -1; }

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .actions { flex-direction: column; align-items: stretch; }
}
.success-message {
  padding: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 78%, white 6%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* =========================
   End bug report form layout
   ========================= */
