* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #05070b;
  color: #fff;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 180, 255, .25), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 210, .16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(66, 80, 255, .14), transparent 35%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  box-shadow: 0 0 30px rgba(32, 245, 208, .25);
  font-weight: 900;
}

.nav nav {
  display: flex;
  gap: 26px;
  color: rgba(255,255,255,.72);
}

.nav-btn, .primary, .secondary {
  border-radius: 999px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nav-btn, .primary {
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  color: #001018;
  box-shadow: 0 18px 45px rgba(0, 200, 255, .22);
}

.secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 60px;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(32, 245, 208, .28);
  background: rgba(32, 245, 208, .08);
  border-radius: 999px;
  color: #7dfde9;
  font-weight: 700;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(54px, 8vw, 104px);
  line-height: .9;
  margin: 0;
  letter-spacing: -5px;
}

.lead {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  margin: 26px 0;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: rgba(255,255,255,.62);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.phone {
  width: 330px;
  min-height: 620px;
  border-radius: 48px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)),
    #070d18;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 40px 120px rgba(0,0,0,.5),
    0 0 80px rgba(0,180,255,.22);
  position: relative;
}

.phone-top {
  width: 110px;
  height: 28px;
  background: #05070b;
  border-radius: 999px;
  margin: 0 auto 70px;
}

.shield {
  width: 150px;
  height: 150px;
  border-radius: 44px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  font-size: 78px;
  font-weight: 900;
  color: #001018;
}

.status {
  text-align: center;
  margin-top: 34px;
  color: #20f5d0;
  font-weight: 900;
  letter-spacing: 2px;
}

.location {
  text-align: center;
  margin-top: 12px;
  font-size: 32px;
  font-weight: 900;
}

.connect {
  margin: 36px auto 22px;
  width: 100%;
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  color: #001018;
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.stats b { display: block; }
.stats span { color: rgba(255,255,255,.55); font-size: 13px; }

.logos {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.42);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 120px auto;
}

.section-head {
  text-align: center;
  margin-bottom: 38px;
}

.section h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -3px;
  margin: 0;
}

.section-head p, .card p, .price-card p, .download-box p, details p {
  color: rgba(255,255,255,.64);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card, .price-card, .download-box, details {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(14px);
}

.icon {
  font-size: 34px;
}

.card h3, .price-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.price-grid {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.price-card {
  position: relative;
}

.price-card.featured {
  border-color: rgba(32, 245, 208, .45);
  box-shadow: 0 0 70px rgba(32, 245, 208, .12);
}

.popular {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(32,245,208,.16);
  color: #7dfde9;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.price {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 20px 0 10px;
}

.full { width: 100%; margin-top: 20px; }

.download-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-buttons a {
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px 18px;
  border-radius: 16px;
}

.faq {
  max-width: 820px;
}

details {
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small .logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.foot-links {
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .download-box, footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  h1 { letter-spacing: -3px; }
  .cards, .price-grid { grid-template-columns: 1fr; }
  .phone { width: 100%; }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 24px;
  margin: 0 auto;
}

.auth-card {
  width: min(460px, 100%);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 34px;
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  font-size: 52px;
  letter-spacing: -3px;
}

.auth-card input {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}

.auth-card button, .logout-btn, .soft-btn {
  width: 100%;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  color: #001018;
  font-weight: 900;
  cursor: pointer;
}

.auth-link, .muted {
  color: rgba(255,255,255,.6);
}

.auth-link a {
  color: #20f5d0;
}

.form-message {
  margin-top: 14px;
  color: #20f5d0;
}

.form-message.error {
  color: #ff6b8a;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.side {
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  position: sticky;
  top: 0;
  height: 100vh;
}

.side-nav {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.side-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255,255,255,.68);
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.logout-btn {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  width: auto;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}

.dash-main {
  padding: 36px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: 54px;
}

.sub-badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(32,245,208,.14);
  color: #7dfde9;
  font-weight: 900;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  gap: 18px;
}

.dash-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(14px);
  margin-bottom: 18px;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(32,245,208,.18), transparent 40%),
    rgba(255,255,255,.055);
}

.status-dot {
  color: #20f5d0;
  font-weight: 900;
}

.dash-big {
  font-size: 42px;
  font-weight: 900;
}

.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.row-title .soft-btn {
  width: auto;
  margin: 0;
}

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

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.server-flag {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  font-size: 24px;
}

.mini-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.55);
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: relative;
    height: auto;
  }

  .logout-btn {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 24px;
  margin: 0 auto;
}

.auth-card {
  width: min(460px, 100%);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 34px;
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  font-size: 52px;
  letter-spacing: -3px;
}

.auth-card input {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}

.auth-card button, .logout-btn, .soft-btn {
  width: 100%;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #0877ff, #20f5d0);
  color: #001018;
  font-weight: 900;
  cursor: pointer;
}

.auth-link, .muted {
  color: rgba(255,255,255,.6);
}

.auth-link a {
  color: #20f5d0;
}

.form-message {
  margin-top: 14px;
  color: #20f5d0;
}

.form-message.error {
  color: #ff6b8a;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.side {
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  position: sticky;
  top: 0;
  height: 100vh;
}

.side-nav {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.side-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255,255,255,.68);
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.logout-btn {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  width: auto;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}

.dash-main {
  padding: 36px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: 54px;
}

.sub-badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(32,245,208,.14);
  color: #7dfde9;
  font-weight: 900;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  gap: 18px;
}

.dash-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(14px);
  margin-bottom: 18px;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(32,245,208,.18), transparent 40%),
    rgba(255,255,255,.055);
}

.status-dot {
  color: #20f5d0;
  font-weight: 900;
}

.dash-big {
  font-size: 42px;
  font-weight: 900;
}

.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.row-title .soft-btn {
  width: auto;
  margin: 0;
}

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

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.server-flag {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  font-size: 24px;
}

.mini-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.55);
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: relative;
    height: auto;
  }

  .logout-btn {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.device-row {
  align-items: stretch;
}

.device-info {
  flex: 1;
}

.device-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.device-actions button {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.device-actions button:hover {
  background: rgba(32,245,208,.14);
  border-color: rgba(32,245,208,.32);
}

.device-actions .danger-btn {
  background: rgba(255, 60, 90, .14);
  border-color: rgba(255, 60, 90, .35);
  color: #ff9aaa;
}

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

  .device-actions {
    width: 100%;
  }

  .device-actions button {
    flex: 1;
  }
}
