:root {
  color-scheme: dark;
  --bg: #010203;
  --surface: #070908;
  --surface-strong: #0b0f0d;
  --surface-alt: #111815;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(42, 252, 152, 0.36);
  --text: #f4f7f4;
  --muted: #9ca7a1;
  --subtle: #65716b;
  --primary: #2afc98;
  --primary-dark: #13d979;
  --primary-ink: #021209;
  --accent: #37c8ff;
  --danger: #ff6b5d;
  --danger-bg: rgba(255, 107, 93, 0.1);
  --success-bg: rgba(42, 252, 152, 0.12);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.62);
  --glow: 0 0 0 1px rgba(42, 252, 152, 0.3), 0 18px 54px rgba(42, 252, 152, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #050706 0%, #010203 46%, #000 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(42, 252, 152, 0.95), rgba(55, 200, 255, 0.55)),
    #07110c;
  box-shadow: 0 0 28px rgba(42, 252, 152, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.link-button,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.nav a,
.link-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.nav-strong,
.nav a:hover,
.link-button:hover,
.text-link:hover {
  color: var(--text);
}

.nav-strong {
  padding: 0 13px;
  border: 1px solid rgba(42, 252, 152, 0.45);
  border-radius: 8px;
  background: rgba(42, 252, 152, 0.08);
  box-shadow: 0 0 28px rgba(42, 252, 152, 0.08);
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.page {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 430px);
  align-items: center;
  gap: 48px;
  padding: 68px 0 50px;
  border-bottom: 1px solid var(--line);
}

.hero-copy,
.section-head,
.auth-panel,
.panel,
.empty-state,
.tariff-card {
  position: relative;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(42, 252, 152, 0.34);
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(42, 252, 152, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.hero h1,
.section-head h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head h1 {
  font-size: 48px;
}

.hero p,
.section-head p,
.empty-state p,
.panel p,
.tariff-card p,
.auth-panel p,
.security-point span {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.hero p {
  max-width: 680px;
  font-size: 18px;
}

.hero-actions,
.auth-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.security-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.security-point {
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 8, 0.74);
}

.security-point strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.security-point span {
  display: block;
  font-size: 13px;
}

.privacy-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(42, 252, 152, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(42, 252, 152, 0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px),
    #030504;
  box-shadow: var(--shadow);
}

.privacy-visual::before,
.privacy-visual::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-visual::after {
  inset: 54px 42px;
  border-color: rgba(42, 252, 152, 0.28);
  box-shadow: inset 0 0 36px rgba(42, 252, 152, 0.08);
}

.secure-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(42, 252, 152, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 252, 152, 0.42), transparent 52%),
    linear-gradient(135deg, rgba(42, 252, 152, 0.2), rgba(55, 200, 255, 0.08)),
    #06100b;
  box-shadow: var(--glow);
}

.secure-core::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(42, 252, 152, 0.5);
  border-radius: 18px;
}

.secure-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 28px rgba(42, 252, 152, 0.62);
}

.secure-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(42, 252, 152, 0.24);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: 210px;
  height: 210px;
}

.ring-two {
  width: 300px;
  height: 300px;
  border-color: rgba(55, 200, 255, 0.18);
}

.signal-line {
  position: absolute;
  left: 46px;
  right: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(55, 200, 255, 0.72), transparent);
}

.signal-line.one {
  top: 76px;
}

.signal-line.two {
  bottom: 74px;
}

.signal-line.three {
  top: 50%;
  left: 28px;
  right: 28px;
  background: linear-gradient(90deg, transparent, rgba(42, 252, 152, 0.74), transparent);
}

.section-head {
  display: grid;
  gap: 10px;
  margin: 38px 0 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tariff-card,
.panel,
.empty-state,
.metric,
.auth-panel,
.device-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tariff-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.tariff-card::before,
.panel::before,
.auth-panel::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 252, 152, 0.7), transparent);
}

.tariff-card h3,
.panel h2,
.empty-state h2,
.device-row h2,
.auth-panel h1 {
  margin: 0;
}

.price {
  color: var(--text);
  font-size: 34px;
  font-weight: 850;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 0 0 1px rgba(42, 252, 152, 0.44), 0 18px 42px rgba(42, 252, 152, 0.26);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(42, 252, 152, 0.42);
  background: rgba(42, 252, 152, 0.08);
}

.button.disabled,
.button:disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--subtle);
  cursor: not-allowed;
  box-shadow: none;
}

.button.danger {
  border-color: rgba(255, 107, 93, 0.38);
  background: var(--danger-bg);
  color: #ffb2aa;
}

.button.danger:hover {
  border-color: rgba(255, 107, 93, 0.62);
  background: rgba(255, 107, 93, 0.16);
}

.button:focus-visible,
.text-link:focus-visible,
.link-button:focus-visible,
.nav a:focus-visible,
.auth-panel input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.auth-layout {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.auth-panel {
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  padding: 28px;
}

.auth-panel h1 {
  font-size: 34px;
  line-height: 1.05;
}

.auth-note {
  padding: 12px 13px;
  border: 1px solid rgba(42, 252, 152, 0.2);
  border-radius: 8px;
  background: rgba(42, 252, 152, 0.06);
  font-size: 14px;
}

.auth-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020403;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.auth-panel input:focus {
  border-color: rgba(42, 252, 152, 0.6);
}

.divider {
  height: 1px;
  background: var(--line);
}

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

.metric {
  display: grid;
  gap: 8px;
  padding: 18px;
}

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

.metric strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.panel,
.empty-state {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.device-list {
  display: grid;
  gap: 12px;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.device-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mono {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  padding: 11px 12px;
  color: #b7ffd9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.alert,
.notice {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
}

.alert {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 107, 93, 0.26);
  color: #ffc3bd;
}

.notice {
  background: var(--success-bg);
  border: 1px solid rgba(42, 252, 152, 0.26);
  color: #b7ffd9;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

.footer-inner {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.8fr);
  gap: 24px;
  padding: 28px 0;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  align-content: start;
}

.footer-links a,
.legal-card {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.legal-card:hover {
  color: var(--text);
}

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

.legal-card,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  box-shadow: var(--shadow);
}

.legal-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
}

.legal-card strong {
  color: var(--text);
  font-size: 18px;
}

.legal-card span {
  line-height: 1.5;
}

.legal-section {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 22px;
}

.legal-section h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.legal-section p,
.legal-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.legal-section a {
  color: var(--primary);
}

.legal-list {
  padding-left: 20px;
}

.legal-list li + li {
  margin-top: 8px;
}

.contact-list {
  gap: 12px;
}

.contact-list div {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.contact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list dt {
  min-width: 150px;
}

.contact-list dd {
  text-align: right;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .privacy-visual {
    min-height: 270px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 22px;
  }

  .hero h1,
  .section-head h1 {
    font-size: 42px;
  }

  .security-points,
  .device-row,
  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .device-row form,
  .device-row .button {
    width: 100%;
  }

  .contact-list div {
    display: grid;
    gap: 6px;
  }

  .contact-list dd {
    text-align: left;
  }
}
