:root {
  --bg: #05080c;
  --card: #0e141b;
  --line: #1c2733;
  --text: #f2f6fa;
  --muted: #7c8b99;
  --dim: #5b6b7a;
  --accent: #19c8ff;
  --accent-deep: #0a4dff;
  --warn: #ff4d5e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0 auto;
  max-width: 680px;
  padding: 48px 20px 64px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  text-align: center;
  margin-bottom: 36px;
}

.orb {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
}

.orb i {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.orb i:nth-child(1) {
  width: 132px;
  height: 132px;
  border: 2px solid rgba(25, 200, 255, 0.25);
  animation: pulse 3.2s ease-in-out infinite;
}

.orb i:nth-child(2) {
  width: 98px;
  height: 98px;
  border: 3px solid rgba(25, 200, 255, 0.55);
  animation: pulse 3.2s ease-in-out 0.25s infinite;
}

.orb i:nth-child(3) {
  width: 64px;
  height: 64px;
  background: linear-gradient(var(--accent), var(--accent-deep));
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb i {
    animation: none;
  }
}

.brand {
  margin: 0 0 6px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 auto;
  max-width: 480px;
  color: var(--muted);
}

.meta {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.card {
  margin-bottom: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.card.quiet {
  background: transparent;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 500;
}

.num {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

li:last-child,
.card > :last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 7px;
  background: #0b2a3a;
  border-radius: 6px;
  color: var(--accent);
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

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

a:hover {
  text-decoration: underline;
}

label {
  display: block;
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

input[type="text"],
input[type="password"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 84px;
  font-size: 14px;
  word-break: break-all;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

details {
  margin-top: 18px;
}

summary {
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
}

.card > .hint:last-child {
  margin-top: 16px;
}

esp-web-install-button {
  display: block;
  margin: 14px 0;
}

esp-web-install-button[hidden] {
  display: none;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(var(--accent), #12a6e0);
  border: 0;
  border-radius: 16px;
  color: #04121c;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.btn.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.99);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.warn {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--warn);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

tr:first-child td {
  border-top: 0;
}

td:first-child {
  width: 52%;
  padding-right: 16px;
}

td:last-child {
  color: var(--muted);
}

table + .hint {
  margin-top: 16px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--dim);
  font-size: 13px;
}

@media (max-width: 520px) {
  body {
    padding-top: 32px;
  }

  h1 {
    font-size: 28px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  td {
    display: block;
    width: auto;
    padding: 2px 0;
    border: 0;
  }

  td:first-child {
    width: auto;
    padding-top: 12px;
  }
}
