:root {
  --bg: #07150f;
  --panel: rgba(18, 50, 37, 0.82);
  --panel-strong: #123225;
  --text: #f2fff7;
  --muted: #a7c7b4;
  --green: #6ee7a4;
  --green-deep: #1f9d62;
  --line: rgba(160, 224, 187, 0.13);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(56, 189, 120, 0.17), transparent 32rem),
    radial-gradient(circle at 0% 100%, rgba(22, 101, 52, 0.2), transparent 30rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 46px 0 30px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.pea-mark {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(145deg, #163f2d, #0d281d);
  border: 1px solid rgba(134, 239, 172, .24);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}

.pea-mark span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8bf0b5, #34b977);
  box-shadow: 0 0 18px rgba(110, 231, 164, .28);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.subtitle {
  margin: 9px 0 0;
  color: var(--muted);
}

.network-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.wireguard .status-dot { color: #66ef9c; background: #66ef9c; }
.home .status-dot { color: #55d9c0; background: #55d9c0; }
.outside .status-dot { color: #f97f86; background: #f97f86; }

.network-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.network-copy strong { font-size: .95rem; }
.network-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: .79rem;
  white-space: nowrap;
}

#recheck {
  appearance: none;
  border: 1px solid rgba(142, 230, 179, .18);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(110, 231, 164, .08);
  font-weight: 700;
  cursor: pointer;
}

#recheck:hover { background: rgba(110, 231, 164, .14); }
#recheck:disabled { opacity: .6; cursor: wait; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-height: 124px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(29, 73, 53, .80), rgba(12, 37, 27, .88));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -35px;
  bottom: -42px;
  border-radius: 50%;
  background: rgba(95, 214, 145, .07);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 240, 174, .28);
  background:
    linear-gradient(145deg, rgba(35, 86, 63, .9), rgba(14, 44, 31, .94));
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #b7f8d0;
  background: rgba(103, 232, 159, .09);
  border: 1px solid rgba(128, 239, 176, .13);
  font-size: 1.3rem;
  font-weight: 800;
}

.service-copy { min-width: 0; }

.service-copy h2 {
  margin: 0 0 5px;
  font-size: .98rem;
  letter-spacing: -.01em;
}

.service-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.arrow {
  position: relative;
  z-index: 1;
  color: #8edeb0;
  font-size: 1.5rem;
}

.disabled {
  opacity: .52;
  cursor: default;
  filter: saturate(.6);
}

.disabled:hover {
  transform: none;
  border-color: var(--line);
}

footer {
  padding: 23px 4px 0;
  text-align: center;
  color: #678b76;
  font-size: .76rem;
}

.leaf { color: #4dc982; }

@media (max-width: 760px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding-top: 26px;
  }

  .hero {
    align-items: flex-start;
    padding: 0 3px;
  }

  .pea-mark {
    width: 58px;
    height: 58px;
    border-radius: 19px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 92px;
    border-radius: 17px;
  }

  .network-copy span {
    white-space: normal;
    line-height: 1.3;
  }
}
