/* =========================================================
   NEXUM SaaS — Design System
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-alt: #090c16;
  --surface: #0e1220;
  --surface-2: #131829;
  --border: #1f2540;
  --border-soft: #191d33;
  --text: #f3f5fa;
  --text-muted: #9099b7;
  --text-dim: #6b7290;

  --brand: #2f6bff;
  --brand-2: #7c3aed;
  --brand-glow: rgba(47, 107, 255, 0.35);

  --bi: #3b82f6;
  --bi-soft: rgba(59, 130, 246, 0.12);
  --rf: #22c55e;
  --rf-soft: rgba(34, 197, 94, 0.12);
  --conc: #a855f7;
  --conc-soft: rgba(168, 85, 247, 0.12);
  --fv: #f97316;
  --fv-soft: rgba(249, 115, 22, 0.12);

  --live: #22c55e;
  --beta: #a855f7;
  --homolog: #f97316;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1240px;

  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Section backdrops */
.bg-glow {
  position: relative;
}
.bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -10%, rgba(47,107,255,0.20), transparent 60%),
    radial-gradient(500px 380px at 90% 0%, rgba(124,58,237,0.16), transparent 55%);
  z-index: 0;
}
.bg-glow > * { position: relative; z-index: 1; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo .logo-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--text-muted);
  flex: 1;
  justify-content: center;
}

.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-cta:hover { border-color: var(--brand); background: rgba(47,107,255,0.08); }
.header-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #1d4fd8);
  color: white;
  box-shadow: 0 10px 30px -8px var(--brand-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px -6px var(--brand-glow); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--brand); background: rgba(47,107,255,0.06); }

.btn-large { padding: 17px 32px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* =========================================================
   Eyebrow / headings
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(47,107,255,0.1);
  border: 1px solid rgba(47,107,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }

.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 56px; text-align: left; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 76px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand), #60a5fa, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 560px;
}
.hero-badge { display: flex; align-items: flex-start; gap: 10px; }
.hero-badge .icon-box {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.hero-badge .icon-box svg { width: 17px; height: 17px; }
.hero-badge strong { display: block; font-size: 13.5px; font-weight: 700; }
.hero-badge span { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-visual .glow-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,0.28), transparent 70%);
  filter: blur(10px);
}
.hero-mark {
  position: relative;
  width: 240px;
  height: 240px;
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat .icon-box {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.stat .icon-box svg { width: 20px; height: 20px; }
.stat strong { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--text-dim); }

/* =========================================================
   Solution cards
   ========================================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.solutions-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.solution-card:hover { transform: translateY(-3px); }
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.solution-card:hover::before { opacity: 1; }

.solution-card[data-accent="bi"] { border-color: rgba(59,130,246,0.35); }
.solution-card[data-accent="bi"]::before { background: radial-gradient(400px 200px at 0% 0%, var(--bi-soft), transparent 70%); }
.solution-card[data-accent="rf"] { border-color: rgba(34,197,94,0.35); }
.solution-card[data-accent="rf"]::before { background: radial-gradient(400px 200px at 0% 0%, var(--rf-soft), transparent 70%); }
.solution-card[data-accent="conc"] { border-color: rgba(168,85,247,0.35); }
.solution-card[data-accent="conc"]::before { background: radial-gradient(400px 200px at 0% 0%, var(--conc-soft), transparent 70%); }
.solution-card[data-accent="fv"] { border-color: rgba(249,115,22,0.35); }
.solution-card[data-accent="fv"]::before { background: radial-gradient(400px 200px at 0% 0%, var(--fv-soft), transparent 70%); }

.solution-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.solution-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.solution-icon svg { width: 24px; height: 24px; }
[data-accent="bi"] .solution-icon { background: var(--bi-soft); color: var(--bi); }
[data-accent="rf"] .solution-icon { background: var(--rf-soft); color: var(--rf); }
[data-accent="conc"] .solution-icon { background: var(--conc-soft); color: var(--conc); }
[data-accent="fv"] .solution-icon { background: var(--fv-soft); color: var(--fv); }

.solution-card h3 { font-size: 18px; font-weight: 800; }
.solution-card h3 .tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
[data-accent="conc"] h3 .tag { background: rgba(168,85,247,0.16); color: var(--conc); }
.solution-tagline { font-size: 13px; font-weight: 600; margin-top: -8px; }
[data-accent="bi"] .solution-tagline { color: var(--bi); }
[data-accent="rf"] .solution-tagline { color: var(--rf); }
[data-accent="conc"] .solution-tagline { color: var(--conc); }
[data-accent="fv"] .solution-tagline { color: var(--fv); }

.solution-card p.desc { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.solution-list { display: flex; flex-direction: column; gap: 9px; margin: 4px 0; }
.solution-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-muted); }
.solution-list li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
[data-accent="bi"] .solution-list li svg { color: var(--bi); }
[data-accent="rf"] .solution-list li svg { color: var(--rf); }
[data-accent="conc"] .solution-list li svg { color: var(--conc); }
[data-accent="fv"] .solution-list li svg { color: var(--fv); }

.solution-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.solution-link { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
[data-accent="bi"] .solution-link { color: var(--bi); }
[data-accent="rf"] .solution-link { color: var(--rf); }
[data-accent="conc"] .solution-link { color: var(--conc); }
[data-accent="fv"] .solution-link { color: var(--fv); }
.solution-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.solution-link:hover svg { transform: translateX(3px); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.status-pill.live { color: var(--live); }
.status-pill.live .dot { background: var(--live); }
.status-pill.beta { color: var(--beta); }
.status-pill.beta .dot { background: var(--beta); }
.status-pill.homolog { color: var(--homolog); }
.status-pill.homolog .dot { background: var(--homolog); }

/* Integration tag (e.g. WinThor) */
.integration-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
}
.integration-tag svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--brand); }

/* =========================================================
   Generic feature / info cards
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card .solution-icon { margin-bottom: 16px; background: var(--surface-2); color: var(--brand); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* =========================================================
   Client badges (Clientes)
   ========================================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.client-card-head { display: flex; flex-direction: column; gap: 4px; }
.client-name { font-size: 16.5px; font-weight: 800; }
.client-location { font-size: 12.5px; color: var(--text-dim); }
.client-products { display: flex; flex-wrap: wrap; gap: 10px 16px; }

/* =========================================================
   Timeline (Sobre nós)
   ========================================================= */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
}
.timeline-item:first-child { border-top: none; }
.timeline-year { font-weight: 800; color: var(--brand); font-size: 15px; }
.timeline-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* =========================================================
   Value / pillar cards (reused)
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pillar .solution-icon { margin-bottom: 14px; background: var(--surface-2); color: var(--brand); }
.pillar h3 { font-size: 17px; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .icon-box {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.contact-row .icon-box svg { width: 19px; height: 19px; }
.contact-row strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-row span, .contact-row a { font-size: 14px; color: var(--text-muted); }
.contact-row a:hover { color: var(--brand); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  background: linear-gradient(135deg, rgba(47,107,255,0.14), rgba(124,58,237,0.14));
  border: 1px solid rgba(47,107,255,0.25);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
.cta-band p { color: var(--text-muted); margin-top: 14px; font-size: 16px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-dim);
}

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero { padding: 64px 0 60px; text-align: center; }
.page-hero .eyebrow { margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; text-transform: uppercase; }
.page-hero p { margin-top: 18px; color: var(--text-muted); font-size: 17px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero-mark { width: 180px; height: 180px; }
}

@media (max-width: 860px) {
  .pillars, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta span { display: none; }
  .section { padding: 72px 0; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { padding: 36px 22px; }
}

.nav-open .nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 76px; left: 0; right: 0;
  background: var(--bg-alt);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border-soft);
  gap: 2px;
}
.nav-open .nav a { padding: 12px 10px; }
