/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0f14;
  --bg2: #131720;
  --bg3: #1a1f2e;
  --border: rgba(255,255,255,0.07);
  --accent: #6c63ff;
  --accent2: #9d97ff;
  --text: #e8eaf6;
  --muted: #6b7280;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { cursor: pointer; color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ── */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(108,99,255,0.08); }

.btn-full { width: 100%; padding: 0.75rem; font-size: 15px; }

.btn-copy {
  background: rgba(108,99,255,0.12);
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copy:hover { background: rgba(108,99,255,0.22); }

/* ── Hero ── */
.hero {
  max-width: 760px;
  margin: 6rem auto 5rem;
  padding: 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

h1 span { color: var(--accent2); }

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

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

.hero-stat { color: var(--muted); font-size: 14px; }
.hero-stat strong { color: var(--text); }

/* ── Sections ── */
.section {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 2rem;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s;
}
.feature:hover { border-color: rgba(108,99,255,0.3); }

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(108,99,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Price ── */
.price-block {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.price-main {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-main sub { font-size: 1.5rem; font-weight: 400; }

.price-period { color: var(--muted); font-size: 14px; margin-bottom: 0.8rem; }

.price-includes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.price-includes li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-includes li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}

/* ── Auth ── */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 2rem;
}

.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.auth-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.auth-box p { color: var(--muted); font-size: 14px; margin-bottom: 1.8rem; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus { border-color: var(--accent); }

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ── Cabinet ── */
.cabinet {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.cabinet-header { margin-bottom: 2rem; }
.cabinet-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.cabinet-header p { color: var(--muted); font-size: 14px; }

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.cabinet-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cabinet-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot.off { background: var(--muted); }

.status-label { font-size: 14px; flex: 1; }
.status-val { font-size: 12px; color: var(--muted); font-family: monospace; }

.stat-big { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.stat-sub { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }

.traffic-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.traffic-fill {
  height: 100%;
  width: 34%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.config-row:last-of-type { border-bottom: none; }
.config-label { font-size: 13px; color: var(--muted); }
.config-val { font-size: 13px; font-family: monospace; }

.cabinet-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.devices-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* ── Footer ── */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 13px;
}

/* ══════════════════════════════════════════
   MOBILE  (≤ 600px)
══════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Nav */
  nav { padding: 0.75rem 1.2rem; }
  .nav-links { gap: 0.5rem; }
  .nav-text { display: none !important; }

  /* Hero */
  .hero {
    margin: 2.5rem auto 3rem;
    padding: 0 1.2rem;
  }

  .hero-tag {
    font-size: 10px;
    padding: 0.25rem 0.65rem;
    letter-spacing: 0.02em;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 1.6rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stat { text-align: center; }

  /* Sections */
  .section {
    padding: 0 1.2rem;
    margin-bottom: 3rem;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .feature { padding: 1.3rem; }

  /* Price */
  .price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
  }

  .price-main { font-size: 3rem; }

  .price-cta .btn {
    width: 100%;
    text-align: center;
    display: block !important;
  }

  /* Auth */
  .auth-wrap {
    align-items: flex-start;
    padding: 1.2rem 1rem;
    min-height: calc(100vh - 55px);
  }

  .auth-box {
    padding: 1.6rem 1.2rem;
    border-radius: 12px;
  }

  /* Cabinet */
  .cabinet { padding: 1.2rem 1rem; }
  .cabinet-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .cabinet-card { padding: 1.2rem; }

  .cabinet-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cabinet-actions .btn,
  .cabinet-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.5rem 1.2rem;
  }
}