/* NetQuiet — премиум лендинг */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a0e14;
  --bg-elevated: #0f1419;
  --bg-card: #151b24;
  --bg-card-hover: #1a2230;
  --surface: #1c2430;
  --text: #e6edf3;
  --text-muted: #7d8a9a;
  --text-soft: #5c6a7a;
  --accent: #00c896;
  --accent-dim: rgba(0, 200, 150, 0.15);
  --accent-hover: #00e0a8;
  --border: #252d3a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --glow: 0 0 60px rgba(0, 200, 150, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 200, 150, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 100, 200, 0.04), transparent);
}

/* Шапка */
.site-header {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header a:hover {
  color: var(--accent);
}

.site-header .brand {
  font-size: 1.35rem;
  font-weight: 700;
  margin-right: auto;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
}

.site-header .brand:hover {
  color: var(--text);
}

/* Hero / главный блок (legacy) */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero .brand-hero {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.65;
}

/* ---------- Hero v2 (лендинг) ---------- */
.hero-v2 {
  padding: 5rem 2rem 6rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-soft);
}

/* ---------- Секции ---------- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}

/* ---------- Локации ---------- */
.locations-section {
  padding: 3rem 0 4rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.location-card:hover {
  border-color: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.location-card.status-active .location-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.location-card.status-error .location-dot {
  background: #f85149;
}

.location-card.status-pending .location-dot {
  background: #d29922;
}

.location-card.status-disabled .location-dot {
  background: var(--text-soft);
}

.location-info {
  flex: 1;
  min-width: 0;
}

.location-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.location-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.location-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  flex-shrink: 0;
}

.location-card.status-active .location-badge {
  background: var(--accent-dim);
  color: var(--accent);
}

.location-card.status-error .location-badge {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

/* ---------- Почему мы ---------- */
.features-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 200, 150, 0.02) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Тарифы v2 ---------- */
.plans-section {
  padding: 3rem 0 4rem;
}

.plans-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.plan-card-v2:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.plan-price {
  margin-bottom: 1rem;
}

.plan-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.plan-currency {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-features li {
  padding: 0.25rem 0;
}

.plan-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 600;
}

.btn-plan {
  margin-top: auto;
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.btn-plan:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* ---------- Футер и дисклеймер ---------- */
.landing-footer {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Статусы нод */
.nodes-status {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.nodes-status h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.nodes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nodes-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}

.node-location {
  color: var(--text);
  font-weight: 500;
}

.node-status {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
}

.node-status.status-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.node-status.status-error {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

/* Тарифы */
main .plans-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.plan-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(-2px);
}

.plan-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.plan-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.plan-card .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.plan-card .btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.plan-card .btn:hover {
  background: var(--accent-hover);
}

/* Формы */
main .form-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.form-card h1.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.form-card .divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.form-card .divider::before,
.form-card .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-card .btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.25rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.form-card .btn:hover {
  background: var(--accent-hover);
}

.form-card .btn-stub {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-card .btn-stub:hover {
  background: var(--surface);
  color: var(--text-muted);
}

.form-card .footer-link {
  margin-top: 1.5rem;
  text-align: center;
}

.form-card .footer-link a {
  color: var(--accent);
  text-decoration: none;
}

.form-card .footer-link a:hover {
  text-decoration: underline;
}

.form-card .errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: #f85149;
  font-size: 0.9rem;
}

.telegram-login-block {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.stub-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* ЛК */
.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-section h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-section li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-section li:last-child {
  border-bottom: none;
}

.dashboard-section .status {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
}

.dashboard-section .status.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.dashboard-section .status.pending {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
}

.user-greeting {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.action-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  color: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.action-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form select {
  padding: 0.35rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.inline-form button {
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.85rem;
}

.empty-state {
  color: var(--text-muted);
  padding: 1rem 0;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stub-notice {
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
  color: #d29922;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .site-header nav { padding: 0 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .hero-v2 { padding: 3rem 1rem 4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .section-inner { padding-left: 1rem; padding-right: 1rem; }
  main .form-wrap,
  main .plans-wrap,
  .nodes-status { padding-left: 1rem; padding-right: 1rem; }
  .form-card { padding: 1.5rem; }
  .locations-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid-v2 { grid-template-columns: 1fr; }
}
