:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.78);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(96, 165, 250, 0.35);
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --green: #10b981;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --red: #ef4444;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.22), transparent 36%),
    radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.14), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

.container {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

.pill-green {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.3vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1.85rem;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Interactive Phone Mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(370px, 100%);
  background: #0b1120;
  border-radius: 34px;
  padding: 14px;
  border: 2px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.75),
    0 0 0 1px rgba(96, 165, 250, 0.12);
}

.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.mock-app-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
}

.mock-app-title img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.mock-code-chip {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.26rem 0.6rem;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.mock-status-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.9rem;
}

.mock-status-head {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 0.35rem;
}

.mock-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mock-status-tags span {
  font-size: 0.67rem;
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.mock-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.mock-member {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.2s ease;
}

.mock-member.pinging {
  border-color: var(--primary-light);
}

.mock-member.siren-active {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.mock-member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.mock-avatar-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.avatar-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.avatar-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.mock-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.mock-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.mock-bat {
  font-size: 0.73rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.mock-coords {
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.42rem 0.55rem;
  border-radius: 9px;
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
}

.mock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.mock-btn {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 9px;
  padding: 0.42rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mock-btn:hover {
  border-color: var(--primary-light);
}

.mock-btn-refresh {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.35);
  color: #dbeafe;
}

.mock-btn-siren {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.mock-hint {
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Sections */
section {
  padding: 4.2rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.6rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.04rem;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--primary);
  color: #fff;
  margin-bottom: 0.9rem;
}

/* Permissions Box */
.trust-panel {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 2.2rem;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.perm-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.perm-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #e2e8f0;
}

.perm-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.55);
}

th.highlight-col,
td.highlight-col {
  background: rgba(37, 99, 235, 0.11);
}

tr:last-child td {
  border-bottom: 0;
}

.good {
  color: #6ee7b7;
  font-weight: 600;
}

.muted-cell {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

details.faq-item summary::after {
  content: "+";
  color: var(--primary-light);
  font-size: 1.25rem;
  font-weight: 700;
}

details[open].faq-item summary::after {
  content: "−";
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(30, 41, 59, 0.88));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 3rem 1.5rem;
}

.cta-banner img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.cta-banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

/* Privacy Page */
.prose-card {
  max-width: 820px;
  margin: 3rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}

.prose-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.prose-card h2 {
  margin-top: 1.8rem;
  font-size: 1.25rem;
  color: #e2e8f0;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .cards-grid,
  .steps-grid,
  .perm-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }
}
