:root {
  --bg: #071a2f;
  --panel: #0d2946;
  --panel-2: #12395c;
  --line: rgba(126, 245, 255, .28);
  --text: #f8fbff;
  --muted: #bed2e8;
  --blue: #0b73ff;
  --cyan: #19e2d3;
  --green: #19c782;
  --danger: #ef4444;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #0c2c4c 0%, #081a2e 48%, #07121f 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
button, input { font: inherit; }
button, .secondary, .small-button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #03101d;
  box-shadow: 0 16px 36px rgba(25,226,211,.22);
}
.full { width: 100%; }
.hidden { display: none !important; }
.eyebrow {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.topbar, .app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 28, 49, .9);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; }
.brand img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.topbar nav, .top-actions { display: flex; align-items: center; gap: 14px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 800; }

.hero {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 48px;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 74px);
  background:
    radial-gradient(circle at 72% 8%, rgba(25,226,211,.34), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(11,115,255,.34), transparent 34%),
    linear-gradient(135deg, #0d3153 0%, #0a223c 50%, #092f42 100%);
}
.hero h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p { max-width: 740px; margin: 0; color: #f1f8ff; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions, .trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions button, .hero-actions a { min-height: 46px; padding: 0 18px; }
.secondary.highlight { border-color: rgba(25,226,211,.55); color: #bffdfa; background: rgba(25,226,211,.1); }
.trust-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(126,245,255,.42);
  border-radius: 8px;
  color: #f4fdff;
  background: rgba(255,255,255,.12);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.trust-row a:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.trust-row img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}
.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
}
.hero-card img { width: 100%; border-radius: 8px; display: block; }
.hero-card div { margin-top: 18px; display: grid; gap: 4px; }
.hero-card strong { font-size: 1.25rem; }
.hero-card span { color: var(--muted); }

.section, .portal-band, .contact {
  padding: 74px clamp(18px, 5vw, 74px);
}
.section-head { max-width: 820px; margin-bottom: 28px; }
.section h2, .portal-band h2, .contact h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}
.solution-grid, .portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.solution-grid article, .system-card, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.solution-grid article, .system-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}
.solution-grid article::before, .system-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.solution-logo, .system-logo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #fff;
}
.solution-grid h3, .system-card h3 { margin: 10px 0; font-size: 1.55rem; }
.solution-grid p, .portal-band p, .contact p, .panel-title p, .system-card p { color: var(--muted); }
.tag {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.solution-grid a, .system-card a, .whatsapp {
  margin-top: 16px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: #061120;
  text-decoration: none;
  font-weight: 900;
}
.portal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(11,115,255,.26), rgba(25,226,211,.18));
}
.contact { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
}
.login-card {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07101f;
}
.login-card img { width: 100%; border-radius: 8px; }
.login-card h2 { margin: 0; }
.login-card label, .admin-form label { display: grid; gap: 6px; color: #d8e8f7; font-weight: 800; }
input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(255,255,255,.07);
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.app-body { min-height: 100vh; background: linear-gradient(180deg, #0c2c4c 0%, #071827 100%); }
.workspace { padding: 28px clamp(18px, 4vw, 54px); }
.panel-title { margin-bottom: 22px; }
.panel-title h1 { margin: 6px 0 4px; font-size: clamp(2rem, 4vw, 3.4rem); }
.system-card.locked { opacity: .42; }
.system-card.locked a { pointer-events: none; background: rgba(255,255,255,.12); color: var(--muted); }
.admin-layout { display: grid; gap: 18px; }
.admin-panel { padding: 20px; }
.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.client-list { display: grid; gap: 12px; }
.client-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, auto));
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.client-row strong, .client-row span { display: block; }
.client-row span { color: var(--muted); font-size: .9rem; }
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8e8f7;
  font-weight: 800;
}
.toggle input { width: auto; }
.toggle img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 980px) {
  .hero, .solution-grid, .portal-grid, .admin-form, .client-row { grid-template-columns: 1fr; }
  .portal-band, .contact, .topbar, .app-topbar { align-items: flex-start; flex-direction: column; }
  .topbar nav, .top-actions { flex-wrap: wrap; }
}
