:root {
  --bg: #0b1020;
  --card: #131b33;
  --card-border: #25335a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #38bdf8;
  --success: #22c55e;
  --text: #f8fafc;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top, #172554 0%, var(--bg) 65%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar {
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.85rem 0;
}

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

.shield-badge {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-right: 0.75rem;
}

.domain-pill {
  font-size: 0.85rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.security-indicator {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot-online {
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.hero-card {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.mode-switcher {
  display: inline-flex;
  background: #0b1020;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.primary-cta-box {
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: #fff;
  text-decoration: none;
  padding: 1.15rem 2.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

.btn-icon {
  font-size: 1.9rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-text strong {
  font-size: 1.25rem;
}

.btn-text small {
  font-size: 0.82rem;
  opacity: 0.9;
}

.os-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.os-pill {
  background: #0b1020;
  color: var(--muted);
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}

.os-pill.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  text-align: left;
}

.step-card {
  background: rgba(11, 16, 32, 0.65);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.15rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1020;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.drawers-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.drawer-summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.drawer-body {
  padding: 1.25rem;
  border-top: 1px solid var(--card-border);
  background: rgba(11, 16, 32, 0.5);
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.diag-item {
  background: var(--card);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.diag-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

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

.secondary-btn {
  background: #1e293b;
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.permission-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.perm-box h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.perm-box ol {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}
