:root {
  color-scheme: dark;
  --bg: #08111f;
  --card: rgba(15, 23, 42, 0.82);
  --card-border: rgba(148, 163, 184, 0.22);
  --text: #e5edf8;
  --muted: #9fb0c7;
  --primary: #5eead4;
  --primary-strong: #14b8a6;
  --secondary: #93c5fd;
  --danger: #fca5a5;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(20, 184, 166, 0.24), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.24), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f172a 58%, #111827 100%);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.sub {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 24px;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.status-pill.online { color: var(--primary); border-color: rgba(94, 234, 212, 0.42); }
.status-pill.offline { color: var(--danger); border-color: rgba(252, 165, 165, 0.42); }

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

.mode-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.16), transparent 44%);
  pointer-events: none;
}

.primary-card::before {
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.18), transparent 44%);
}

.card-top,
.mode-card p,
.mode-card ul,
.mode-card .action { position: relative; }

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #052e2b;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.badge.secondary {
  color: #0b2447;
  background: var(--secondary);
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.mode-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.mode-card ul {
  margin: 24px 0 34px;
  padding-left: 20px;
  color: #cbd5e1;
  line-height: 2;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(147, 197, 253, 0.36);
  border-radius: 16px;
  color: #eaf3ff;
  background: rgba(59, 130, 246, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.action.primary {
  color: #042f2e;
  border-color: rgba(94, 234, 212, 0.6);
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
}

.action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.action.disabled {
  pointer-events: none;
  opacity: 0.58;
}

@media (max-width: 820px) {
  .shell { padding: 42px 0; }
  .cards { grid-template-columns: 1fr; }
  .mode-card { min-height: auto; }
}
