/* Nexus Rede — landing viva, fundo suave, redes/conexões */
:root {
  --bg-primary: #12161f;
  --bg-secondary: #181e2a;
  --bg-card: #1e2533;
  --bg-card-hover: #252e40;
  --blue: #4aa8ff;
  --blue-dark: #2b7fff;
  --teal: #7c6cff;
  --orange: #a78bfa;
  --cyan: #60a5fa;
  --text-primary: #f1f5f9;
  --text-secondary: #a8b4c8;
  --text-muted: #7b879c;
  --border: rgba(148, 183, 220, 0.14);
  --gradient: linear-gradient(125deg, #3b82f6 0%, #6366f1 45%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.16) 100%);
  --shadow-glow: 0 0 48px rgba(99, 102, 241, 0.28);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.2);
  --card-bg: rgba(30, 37, 51, 0.72);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 108px;
  --logo-size: 108px;
  --danger: #fb7185;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 600px at 95% 10%, rgba(45, 212, 191, 0.12), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(56, 189, 248, 0.08), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.25));
}

.net-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(34, 211, 238, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(45, 212, 191, 0.07), transparent 70%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 78%);
  opacity: 0.55;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(18, 22, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: none;
  overflow: visible;
}

.header__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  overflow: visible;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  margin-left: auto;
}
.header__nav-links {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
}
.header-nav-select-wrap,
.header-more-wrap {
  display: none;
}
.header-more-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.header-more-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.header-more-sheet.is-open {
  display: flex;
}
.header-more-sheet[hidden] {
  display: none !important;
}
.header-more-sheet a {
  color: #e2e8f0 !important;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
}
.header-more-sheet a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9 !important;
}
.menu-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
}
.menu-dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.header__nav a {
  color: var(--text-secondary);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 2px;
  transition: color var(--transition);
  white-space: nowrap;
}
.header__nav a:hover {
  color: var(--cyan);
}

.logo {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
  height: var(--header-height);
  flex-shrink: 0;
}
.logo img {
  height: var(--logo-size);
  width: auto;
  object-fit: contain;
  background: transparent;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 28px;
  overflow: visible;
  background: transparent;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}
.hero::before {
  top: -15%;
  right: -8%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28) 0%, transparent 70%);
  animation: orb 14s ease-in-out infinite;
}
.hero::after {
  bottom: -20%;
  left: -12%;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22) 0%, transparent 70%);
  animation: orb 14s ease-in-out infinite reverse;
}

@keyframes orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 24px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
  padding: 28px 24px 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content { max-width: 560px; animation: rise 0.8s ease both; }
.hero__visual { display: flex; justify-content: center; animation: rise 0.9s 0.1s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary {
  background: linear-gradient(125deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
}
.btn--primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}
.btn--full { width: 100%; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  width: 100%;
  max-width: 520px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* ---------- Login panel ---------- */
.login-panel {
  width: min(400px, 100%);
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 16px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.login-panel.is-focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14), var(--shadow-glow);
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-subtle);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel__tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.login-panel h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.login-panel input,
.login-panel select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 10, 15, 0.65);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: var(--transition);
}
.login-panel input:focus,
.login-panel select:focus {
  border-color: rgba(0, 180, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12);
}
.login-panel input::placeholder {
  color: var(--text-muted);
}
.login-panel select {
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(10, 10, 15, 0.55);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.is-active {
  color: #fff;
  background: var(--gradient);
}

.login-links {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: #fff;
}
.login-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
}
.login-ok {
  margin: 0;
  color: var(--cyan);
  font-size: 0.85rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  position: relative;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card--featured {
  border-color: rgba(0, 180, 255, 0.35);
  box-shadow: var(--shadow-glow);
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 255, 0.25);
}
.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0;
}
.plan-perks {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.plan-perks li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.plan-card .btn { margin-top: auto; }

.plan-module-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
}
.plan-card--scanner {
  border-color: rgba(34, 211, 238, 0.28);
}
.plan-perks .perk-module {
  color: #a5f3fc;
}
.plan-perks .perk-muted {
  color: var(--text-dim, #64748b);
  opacity: 0.85;
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.scanner-feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--card-bg);
}
.scanner-feature h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.scanner-feature ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.scanner-feature p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.scanner-note {
  font-size: 0.88rem;
  color: var(--text-dim, #94a3b8) !important;
}
.scanner-feature .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .scanner-grid { grid-template-columns: 1fr; }
}

/* ---------- Divider (barra de conexão limpa) ---------- */
.section-divider {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
}
.section-divider__rail {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.2) 12%,
    rgba(99, 102, 241, 0.55) 50%,
    rgba(139, 92, 246, 0.2) 88%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
}
.section-divider__glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 181, 253, 0.95),
    transparent
  );
  transform: translateY(-50%);
  animation: rail-flow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rail-flow {
  0% { left: -10%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 85%; opacity: 0; }
}
.section-divider .node {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 0 12px rgba(99, 102, 241, 0.45);
  flex-shrink: 0;
}
.section-divider .node--md {
  width: 9px;
  height: 9px;
  background: #a5b4fc;
}
.section-divider .node--lg {
  width: 11px;
  height: 11px;
  background: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), 0 0 16px rgba(139, 92, 246, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .section-divider__glow { animation: none; opacity: 0.35; left: 36%; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  overflow: hidden;
}
.section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.section__header { margin-bottom: 28px; max-width: 640px; }

.section__tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 52ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 255, 0.25);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card__tag {
  position: relative;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 14px;
}

.card h3 {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section--cta { padding-top: 24px; padding-bottom: 56px; }

.tutorial-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.tutorial-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tutorial-step__num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--gradient);
  color: #fff;
}
.tutorial-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.tutorial-step p,
.tutorial-step li {
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.tutorial-step ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
}
.tutorial-code {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #060a17;
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.tutorial-cta { margin-top: 22px; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(37, 211, 102, 0.12), transparent 60%),
    var(--card-bg);
}
.contact-card__label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #25d366;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card__phone {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.contact-card p {
  margin: 0;
  color: var(--text-secondary);
}

.cta-box {
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(45, 212, 191, 0.12), transparent 55%),
    var(--card-bg);
  box-shadow: var(--shadow-glow);
}
.cta-box .btn { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(18, 22, 31, 0.88);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.footer__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links a,
.footer__links .link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.footer__links a:hover,
.footer__links .link-btn:hover {
  color: var(--text, #e8eefc);
}
.reg-terms {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}
.reg-terms input {
  width: auto !important;
  margin-top: 3px;
  flex-shrink: 0;
}
.reg-terms a,
.reg-terms .link-btn {
  color: #818cf8;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  display: inline;
}
.reg-terms a:hover,
.reg-terms .link-btn:hover {
  color: #a5b4fc;
}

/* Modal legal */
.legal-modal {
  border: 0;
  padding: 16px;
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}
.legal-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal::backdrop {
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}
.legal-modal__panel {
  background: #12161f;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.legal-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.legal-modal__head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.legal-modal__updated {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}
.legal-modal__close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.legal-modal__close:hover {
  color: #e2e8f0;
}
.legal-modal__body {
  padding: 8px 20px 20px;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.legal-modal__body h2 {
  font-size: 1rem;
  margin: 22px 0 8px;
  color: #c7d2fe;
}
.legal-modal__body p {
  margin: 0 0 12px;
}
.legal-modal__body ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}
.legal-modal__body li {
  margin: 5px 0;
}
.legal-modal__foot {
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  :root {
    --header-height: 88px;
    --logo-size: 72px;
  }
  .header__inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
  }
  .logo {
    flex: 0 0 auto;
  }
  .header__nav {
    gap: 0;
    margin-left: auto;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    position: relative;
  }
  .header__nav-links {
    display: none;
  }
  .header-nav-select-wrap {
    display: none;
  }
  .header-more-wrap {
    display: block;
    position: relative;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 18px 16px 8px;
    gap: 22px;
    justify-items: center;
  }
  .hero__content {
    max-width: none;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__title {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
    max-width: 36ch;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-bottom: 22px;
  }
  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .stat {
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.35);
    min-width: 0;
  }
  .stat__number {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
  }
  .stat__label {
    font-size: 0.68rem;
    margin-top: 3px;
    line-height: 1.25;
  }

  .hero__visual {
    width: 100%;
  }
  .login-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 18px;
  }
  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .auth-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .login-panel .btn--full,
  .login-panel .btn {
    min-height: 46px;
    border-radius: 12px;
  }
  .login-links {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .cards { grid-template-columns: 1fr; }
  .cta-box {
    padding: 28px 18px;
    text-align: center;
  }
  .cta-box .btn {
    width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
    min-height: 46px;
  }

  .plans {
    gap: 14px;
  }
  .plan-card .btn {
    width: 100%;
    min-height: 46px;
  }

  .tutorial-step {
    grid-template-columns: 36px 1fr;
    padding: 14px;
    gap: 12px;
    overflow: hidden;
  }
  .tutorial-step > div {
    min-width: 0;
  }
  .tutorial-code {
    font-size: 0.72rem;
    padding: 10px 12px;
  }
  .tutorial-cta {
    display: flex;
    justify-content: center;
  }
  .tutorial-cta .btn {
    width: min(100%, 320px);
    min-height: 46px;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .contact-card .btn {
    width: min(100%, 280px);
    min-height: 46px;
  }

  .scanner-feature .btn {
    width: 100%;
    min-height: 46px;
  }
}
