*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #070b14;
  --bg2:      #0d1425;
  --blue:     #2563eb;
  --blue-l:   #3b82f6;
  --violet:   #7c3aed;
  --violet-l: #8b5cf6;
  --cyan:     #06b6d4;
  --grad:     linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --white:    #f8fafc;
  --muted:    #64748b;
  --muted2:   #94a3b8;
  --border:   rgba(255,255,255,0.07);
  --card:     rgba(255,255,255,0.03);
  --radius:   16px;
  --green:    #22c55e;
  --red:      #ef4444;
  --yellow:   #eab308;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(7,11,20,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-svg {
  filter: drop-shadow(0 0 10px rgba(37,99,235,0.6));
  transition: filter 0.3s;
}
.logo:hover .logo-svg { filter: drop-shadow(0 0 16px rgba(124,58,237,0.7)); }
.logo-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 8px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.12); }
.btn-outline {
  background: transparent;
  color: var(--blue-l);
  border: 1px solid rgba(37,99,235,0.4);
}
.btn-outline:hover { background: rgba(37,99,235,0.1); border-color: var(--blue); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 28px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ab {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
.ab1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.7) 0%, transparent 70%);
  top: -250px; right: -150px;
  animation: abFloat1 9s ease-in-out infinite;
}
.ab2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.6) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: abFloat2 11s ease-in-out infinite;
}
.ab3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6,182,212,0.35) 0%, transparent 70%);
  top: 45%; right: 28%;
  animation: abFloat1 13s ease-in-out infinite 2s reverse;
}
@keyframes abFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(40px,-40px) scale(1.05); }
}
@keyframes abFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(-30px,30px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-l);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }
.hero-title {
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── ORB ─── */
.orb-wrap {
  position: relative;
  width: 380px; height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  animation: orbSpin linear infinite;
}
.r1 { width: 360px; height: 360px; border: 1px solid rgba(37,99,235,0.18); animation-duration: 22s; }
.r2 { width: 270px; height: 270px; border: 1px solid rgba(124,58,237,0.22); animation-duration: 15s; animation-direction: reverse; }
.r3 { width: 190px; height: 190px; border: 1px solid rgba(6,182,212,0.18); animation-duration: 10s; }
@keyframes orbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orb-dot {
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
}
.r1 .orb-dot { background: var(--blue); box-shadow: 0 0 12px var(--blue), 0 0 24px rgba(37,99,235,0.5); }
.r2 .orb-dot { background: var(--violet-l); box-shadow: 0 0 12px var(--violet); top: auto; bottom: -4px; }
.r3 .orb-dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.orb-core {
  position: relative;
  z-index: 2;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(37,99,235,0.3), rgba(124,58,237,0.2));
  border: 1px solid rgba(37,99,235,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(37,99,235,0.4), 0 0 100px rgba(124,58,237,0.2), inset 0 0 30px rgba(37,99,235,0.1);
  backdrop-filter: blur(10px);
  animation: coreGlow 4s ease-in-out infinite;
}
@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 50px rgba(37,99,235,0.4), 0 0 100px rgba(124,58,237,0.2); }
  50%       { box-shadow: 0 0 80px rgba(37,99,235,0.6), 0 0 160px rgba(124,58,237,0.35); }
}

/* ─── SECTIONS ─── */
.section { padding: 110px 28px; }
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.section-sub {
  font-size: 16px;
  color: var(--muted2);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 0.04; }
.step-card:hover { border-color: rgba(37,99,235,0.35); transform: translateY(-6px); }
.step-card > * { position: relative; z-index: 1; }
.step-num {
  font-size: 56px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}
.step-icon { font-size: 34px; margin-bottom: 14px; display: block; }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.step-desc { font-size: 14px; color: var(--muted2); line-height: 1.65; }

/* ─── DEVICES ─── */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.device-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s;
}
.device-card:hover {
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.06);
  transform: translateY(-4px);
}
.device-icon { display: block; margin: 0 auto 14px; width: 48px; height: 48px; }
.device-name { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.device-sub { font-size: 11px; color: var(--muted); }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 740px;
  margin: 64px auto 0;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 36px;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.06);
  box-shadow: 0 0 60px rgba(37,99,235,0.12);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-plan {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.price-name { font-size: 28px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.5px; }
.price-name.grad-text { font-size: 32px; }
.price-desc { font-size: 14px; color: var(--muted2); margin-bottom: 32px; line-height: 1.6; }
.price-feats { list-style: none; margin-bottom: 36px; }
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.price-feats li:last-child { border-bottom: none; }
.price-feats li::before { content: '✓'; color: var(--blue-l); font-weight: 900; flex-shrink: 0; margin-top: 1px; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: var(--muted2); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer { padding: 40px 28px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── AUTH PAGES ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 60px;
  position: relative;
  overflow: hidden;
}
.auth-card {
  width: 100%;
  max-width: 500px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 44px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.auth-logo { margin-bottom: 32px; }
.auth-title { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--muted2); margin-bottom: 32px; line-height: 1.6; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Courier New', 'Consolas', monospace;
  letter-spacing: 1.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input:focus {
  border-color: var(--blue);
  background: rgba(37,99,235,0.05);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-input::placeholder {
  color: rgba(255,255,255,0.18);
  font-family: -apple-system, sans-serif;
  letter-spacing: 0; font-size: 13px;
}
.form-hint {
  font-size: 12px; color: var(--muted);
  margin-top: 6px; line-height: 1.5;
}

/* Alert */
.alert { border-radius: 10px; padding: 12px 16px; font-size: 13.5px; margin-top: 16px; line-height: 1.5; }
.alert-error  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert-success{ background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }

/* Result */
.result-box { display: none; text-align: center; padding: 32px 20px; }
.result-box.show { display: block; }
.result-icon { font-size: 52px; margin-bottom: 12px; display: block; }
.result-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.result-msg { font-size: 14px; color: var(--muted2); line-height: 1.6; }

/* Status table */
.status-info {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.status-row:last-child { border-bottom: none; }
.status-key { color: var(--muted); font-size: 13px; }
.status-val { font-weight: 600; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-green  { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-yellow { background: rgba(234,179,8,0.12);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.badge-blue   { background: rgba(37,99,235,0.12);  color: #60a5fa; border: 1px solid rgba(37,99,235,0.25); }

/* Divider */
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; text-decoration: none;
  margin-bottom: 24px; transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

/* Loading */
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: orbSpin 0.7s linear infinite;
  display: none;
}
.btn.loading .btn-text { display: none; }
.btn.loading .spinner { display: block; }

/* Status result container */
.status-result { display: none; margin-top: 24px; }
.status-result.show { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .auth-card { padding: 32px 20px; }
  .hero-title { letter-spacing: -1.5px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
