:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: rgba(12, 23, 38, 0.78);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f8fb;
  --muted: #93a4b8;
  --accent: #6fffd6;
  --accent-2: #67a7ff;
  --danger: #ff7d8c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(42, 89, 130, 0.18), transparent 34rem),
    var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.glow {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.glow-a {
  top: 9rem;
  right: -12rem;
  background: var(--accent);
}

.glow-b {
  bottom: 4rem;
  left: -16rem;
  background: var(--accent-2);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: -0.07em;
}

.brand-product {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health,
.subscription-state,
.support {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8290a1;
  box-shadow: 0 0 0 4px rgba(130, 144, 161, 0.1);
}

.health.ok .health-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 255, 214, 0.1);
}

.health.bad .health-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 125, 140, 0.1);
}

.hero {
  max-width: 820px;
  padding: 112px 0 96px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent), #bfe7ff 72%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero > p {
  max-width: 650px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(111, 255, 214, 0.28);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  justify-content: space-between;
  color: #04120e;
  background: var(--accent);
}

.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.panel {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.panel-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 38px;
}

.panel-heading .eyebrow {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.subscription-state {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.subscription-state.active {
  color: var(--accent);
  border-color: rgba(111, 255, 214, 0.25);
  background: rgba(111, 255, 214, 0.07);
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: grid;
  gap: 9px;
}

label:nth-child(2) {
  grid-row: span 2;
}

label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 9, 17, 0.62);
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.send {
  align-self: end;
  color: var(--text);
  border-color: rgba(103, 167, 255, 0.28);
  background: linear-gradient(120deg, rgba(103, 167, 255, 0.22), rgba(111, 255, 214, 0.13));
}

.event-log {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.event-log-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#events {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#events li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  color: #c9d4e1;
  font-size: 0.88rem;
}

#events time {
  color: #617186;
  font-variant-numeric: tabular-nums;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 72px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.features article {
  min-height: 230px;
  padding: 30px;
  background: #07101c;
}

.feature-number {
  margin-bottom: 44px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 42px;
  color: #59697d;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    min-height: 76px;
  }

  .health span:last-child {
    display: none;
  }

  .hero {
    padding: 80px 0 68px;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .panel-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  form,
  .features {
    grid-template-columns: 1fr;
  }

  label:nth-child(2) {
    grid-row: auto;
  }

  .features article {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
