/* ==========================================================================
   Sistemaria — Institutional Site
   ========================================================================== */

:root {
  --bg: #080b17;
  --bg-alt: #0b0f20;
  --surface: #10152a;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-muted: #a6adc4;
  --text-faint: #6b7290;
  --accent: #4f8cff;
  --accent-2: #38d9d9;
  --accent-3: #8b7cf6;
  --accent-grad: linear-gradient(135deg, #4f8cff 0%, #38d9d9 100%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

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

/* ---------- Background glows ---------- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.bg-glow-1 {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, #4f8cff 0%, transparent 70%);
}
.bg-glow-2 {
  width: 600px; height: 600px;
  bottom: 10%; left: -250px;
  background: radial-gradient(circle, #8b7cf6 0%, transparent 70%);
  opacity: 0.25;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.body-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 54ch;
  margin: 0 0 16px;
}
.body-text.highlight {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #050810;
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 140, 255, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-ghost:hover { border-color: var(--surface-border-hover); background: rgba(255,255,255,0.03); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 23, 0.75);
  border-bottom: 1px solid var(--surface-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { height: 26px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  z-index: 1;
}
.hero-inner { position: relative; }

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 8px;
}
.hero-logo-mark { height: 64px; width: auto; }
.hero-logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.01em;
}
.hero-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 0 0 40px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 24px;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 40px;
}
.hero-lead strong { color: var(--text); }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
  max-width: 640px;
  margin: 0 auto;
}
.hero-footer .dot { opacity: 0.5; }

.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.scroll-cue span {
  width: 22px;
  height: 36px;
  border: 2px solid var(--surface-border-hover);
  border-radius: 20px;
  position: relative;
}
.scroll-cue span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent-2);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  border-top: 1px solid var(--surface-border);
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 20%, rgba(255,255,255,0.015) 80%, transparent); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .body-text { margin-left: auto; margin-right: auto; }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-grid-reverse .section-text { order: 2; }

.section-note {
  text-align: center;
  max-width: 680px;
  margin: 56px auto 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Data card (Quem Somos) ---------- */
.data-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.data-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--surface-border);
}
.status-badge {
  background: rgba(56, 217, 217, 0.14);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.data-list { display: flex; flex-direction: column; gap: 16px; }
.data-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-size: 0.92rem;
}
.data-row dt { color: var(--text-faint); font-weight: 600; }
.data-row dd { margin: 0; color: var(--text); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.timeline-track {
  position: absolute;
  top: 14px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  opacity: 0.35;
}
.timeline-item { position: relative; }
.timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 16px;
  position: relative;
  padding-left: 22px;
}
.timeline-year::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-2);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.timeline-card:hover { border-color: var(--surface-border-hover); transform: translateY(-3px); }
.timeline-card h3 { margin-bottom: 10px; font-size: 1rem; }
.timeline-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stat-card:hover { border-color: var(--surface-border-hover); transform: translateY(-4px); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.team-card:hover { border-color: var(--surface-border-hover); transform: translateY(-4px); }
.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #050810;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.team-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.team-card p { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.pillar h4 { margin-bottom: 8px; color: var(--accent-2); }
.pillar p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Feature / service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.02);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.1);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Check list (Capacidade Tecnica) ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-right: 2px solid #050810;
  border-bottom: 2px solid #050810;
}

/* ---------- Process (Como Entregamos) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.process-card:hover { border-color: var(--surface-border-hover); transform: translateY(-4px); }
.process-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-2);
  margin-bottom: 18px;
}
.process-card h3 { margin-bottom: 8px; }
.process-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ---------- List cards (Capacidade de Entrega) ---------- */
.list-cards { display: flex; flex-direction: column; gap: 16px; }
.list-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--surface);
  transition: border-color 0.25s ease;
}
.list-card:hover { border-color: var(--surface-border-hover); }
.list-card h4 { margin-bottom: 6px; color: var(--text); }
.list-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Diferenciais ---------- */
.diff-list { display: flex; flex-direction: column; gap: 4px; max-width: 820px; margin: 0 auto; }
.diff-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 8px;
  border-bottom: 1px solid var(--surface-border);
}
.diff-item:last-child { border-bottom: none; }
.diff-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-3);
  flex-shrink: 0;
  width: 48px;
}
.diff-item h3 { margin-bottom: 6px; font-size: 1.08rem; }
.diff-item p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* ---------- CTA / Contato ---------- */
.cta-section {
  text-align: center;
  padding: 120px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,140,255,0.08), transparent 60%);
}
.cta-logo { height: 56px; margin: 0 auto 28px; }
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 20ch;
  margin: 0 auto 40px;
}
.contact-card {
  display: flex;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto 36px;
  background: var(--surface);
}
.contact-item {
  flex: 1;
  padding: 22px 24px;
  text-align: left;
  border-right: 1px solid var(--surface-border);
}
.contact-item:last-child { border-right: none; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.contact-value { font-weight: 600; font-size: 0.95rem; }
.contact-link { color: var(--accent-2); }
.contact-link:hover { text-decoration: underline; }

.cta-footer { margin-top: 28px; color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-footer .brand-mark { height: 22px; }
.brand-footer .brand-word { font-size: 0.95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: 0.78rem; margin: 0; width: 100%; text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: rgba(16, 21, 42, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--surface-border-hover); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 11, 23, 0.98);
    border-bottom: 1px solid var(--surface-border);
    padding: 20px 32px 28px;
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-grid-reverse .section-text { order: 0; }
  .section-text, .section-head { text-align: left; margin-left: 0; margin-right: 0; }
  .section-head .body-text { margin-left: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-logo { flex-direction: column; gap: 12px; }
  .hero-logo-mark { height: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { flex-direction: column; }
  .contact-item { border-right: none; border-bottom: 1px solid var(--surface-border); }
  .contact-item:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .diff-item { gap: 16px; }
  .hero-footer { flex-direction: column; gap: 4px; }
  .hero-footer .dot { display: none; }
}
