:root {
  --bg: #0b1223;
  --bg2: #0f172a;
  --text: #e6edf6;
  --muted: #9fb0c6;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --acc: #10b981;
  --acc2: #06b6d4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1400px 800px at 85% -10%, color-mix(in oklab, var(--acc) 18%, transparent), transparent),
    radial-gradient(1000px 600px at -10% 110%, color-mix(in oklab, var(--acc2) 16%, transparent), transparent),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 3vw, 32px); }

h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -0.4px; }
p { margin: 0; color: var(--muted); }

section { scroll-margin-top: 92px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 24, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 10px 0;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 60%, #0b1223 40%), color-mix(in oklab, var(--acc2) 50%, #0b1223 50%));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo svg { width: 18px; height: 18px; opacity: 0.95; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}

.nav-links a { padding: 10px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { background: var(--card); outline: none; }

.nav-cta { padding: 10px 16px; border-radius: 999px; background: var(--acc); color: #032b1b; font-weight: 700; border: 1px solid color-mix(in oklab, var(--acc) 50%, white 10%); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25); }
.nav-cta.mobile-only { display: none; justify-content: center; width: 100%; }

.menu-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon { display: grid; gap: 5px; }
.menu-icon span { width: 18px; height: 2px; background: var(--text); display: block; border-radius: 999px; }

.hero {
  padding: clamp(48px, 9vw, 120px) 0 clamp(30px, 6vw, 70px);
  display: grid;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
}

.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }

h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.lead { font-size: clamp(16px, 2vw, 20px); max-width: 820px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--acc) 50%, white 0%);
  background: linear-gradient(135deg, color-mix(in oklab, var(--acc) 70%, #0b1223 30%), color-mix(in oklab, var(--acc2) 40%, #0b1223 60%));
  color: #05291b;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(6, 182, 212, 0.25); outline: none; }
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--tg { border-color: #26A5E4; }

.section-head { margin-bottom: clamp(14px, 3vw, 22px); display: grid; gap: 8px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { max-width: 780px; }

.grid {
  display: grid;
  gap: 18px;
}

.saas-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 20px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.card h3 { font-size: clamp(18px, 2vw, 20px); }
.card p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: #a9bad1; font-size: 12px; }

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

.icon-bullet { display: inline-flex; align-items: center; gap: 8px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.list .check { color: var(--acc); margin-top: 2px; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: rgba(255, 255, 255, 0.04); color: #c9d7ee; }

.contact-panel { display: grid; gap: 16px; }

form { display: grid; gap: 12px; }

.label { font-weight: 600; color: var(--text); font-size: 14px; }

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  transition: border 0.2s, box-shadow 0.2s;
}

textarea { min-height: 120px; resize: vertical; }

input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: color-mix(in oklab, var(--acc) 60%, white 10%);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

input.invalid, textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.input-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.form-message { font-size: 14px; min-height: 22px; }
.form-message.error { color: #fca5a5; }
.form-message.success { color: #86efac; }

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

.notice { font-size: 13px; color: #a5b5cd; }

.footer { border-top: 1px solid var(--border); margin-top: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 0; color: #93a6c2; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
}

.floating-whatsapp a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.floating-whatsapp svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; left: 0; top: 68px; width: 100%; padding: 14px clamp(18px, 3vw, 32px); flex-direction: column; align-items: flex-start; background: rgba(8, 12, 24, 0.92); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-cta.desktop-only { display: none; }
  .nav-cta.mobile-only { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: clamp(38px, 9vw, 70px); }
  .floating-whatsapp { display: block; }
}

@media (max-width: 480px) {
  .nav-bar { gap: 10px; }
  .actions { flex-direction: column; align-items: stretch; }
  .card-actions { flex-direction: column; }
  .hero { gap: 14px; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 0.85fr; align-items: center; }
}

@media (min-width: 1280px) { :root { --container: 1280px; } }
@media (min-width: 1536px) { :root { --container: 1360px; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 2px solid color-mix(in oklab, var(--acc) 60%, white 15%); outline-offset: 2px; }
