/* =========================================================
   SyxCore v3 — Estética Industrial Premium
   Foco em software real, dados e alta precisão.
   ========================================================= */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Neutrals (Industrial Dark) */
  --bg: #06090e;
  --bg-subtle: #0a0f18;
  --surface: #101622;
  --surface-hover: #161e2d;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Brand Colors */
  --brand: #0b5fd4;
  --brand-hover: #1e70e5;
  --accent: #ff6a13;
  --accent-hover: #ff853a;

  /* Modules */
  --mes: #0b5fd4;
  --pcm: #0891b2;
  --qs: #7c3aed;

  /* Status Colors */
  --status-green: #10b981;
  --status-red: #ef4444;
  --status-orange: #f59e0b;

  /* Spacing & Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t: 300ms var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
.mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* -------- Typography -------- */
h1, h2, h3, h4, h5 { color: var(--text-primary); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-subtle);
}
.orange-eyebrow {
  color: var(--bg); background: var(--accent); border-color: var(--accent);
}

.section-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.section-desc { font-size: 18px; max-width: 680px; line-height: 1.6; margin-bottom: 48px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: all var(--t); font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--text-primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text-primary); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }

/* -------- Utilities -------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.green { color: var(--status-green) !important; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 9, 14, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: height var(--t);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height var(--t); }
.site-header.scrolled .nav { height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--text-primary); letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: color var(--t); }
.nav-links a:hover { color: var(--text-primary); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* -------- Hero Section -------- */
.hero { padding: 80px 0 100px; position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 30%, rgba(11,95,212,0.1), transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.hero-visual { min-width: 0; }
.hero-content h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 24px; line-height: 1.1; }
.hero-content .lead { font-size: 18px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* UI Panels (Simulated Software) */
.ui-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
  overflow: hidden; font-size: 14px; color: var(--text-secondary);
}
.ui-header {
  padding: 16px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.ui-title { font-weight: 700; color: var(--text-primary); font-size: 15px; }
.ui-body { padding: 24px; }
.ui-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* UI Carousel System */
.ui-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
}

.ui-carousel-track {
  display: flex;
  width: 100%;
  animation: carousel-slide 10s infinite ease-in-out;
}

.ui-carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 4px;
}

@keyframes carousel-slide {
  0%, 45% { transform: translateX(0); }
  50%, 95% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Indicators */
.ui-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.indicator-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
}

/* Bolinha 1 ativa */
.indicator-dot:nth-child(1)::after {
  animation: dot-active-1 10s infinite ease-in-out;
}
/* Bolinha 2 ativa */
.indicator-dot:nth-child(2)::after {
  animation: dot-active-2 10s infinite ease-in-out;
}

@keyframes dot-active-1 {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes dot-active-2 {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

/* 3-Slide Carousel Support */
.ui-carousel-track-3 {
  display: flex;
  width: 300%;
  animation: carousel-slide-3 15s infinite ease-in-out;
}
.ui-carousel-track-3 .ui-carousel-slide {
  flex: 0 0 33.333333%;
  box-sizing: border-box;
  padding: 4px;
}
@keyframes carousel-slide-3 {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.333333%); }
  66%, 95% { transform: translateX(-66.666666%); }
  100% { transform: translateX(0); }
}

/* Hero Indicators */
.hero-carousel .indicator-dot:nth-child(1)::after {
  animation: dot-active-hero-1 15s infinite ease-in-out;
  background-color: var(--mes);
}
.hero-carousel .indicator-dot:nth-child(2)::after {
  animation: dot-active-hero-2 15s infinite ease-in-out;
  background-color: var(--qs);
}
.hero-carousel .indicator-dot:nth-child(3)::after {
  animation: dot-active-hero-3 15s infinite ease-in-out;
  background-color: var(--pcm);
}
@keyframes dot-active-hero-1 {
  0%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes dot-active-hero-2 {
  0%, 28% { opacity: 0; }
  33%, 61% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes dot-active-hero-3 {
  0%, 61% { opacity: 0; }
  66%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

/* Module Specific Dot Colors */
.mes-carousel .indicator-dot::after { background-color: var(--mes); }
.pcm-carousel .indicator-dot::after { background-color: var(--pcm); }
.qs-carousel .indicator-dot::after { background-color: var(--qs); }
.badge-status {
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.05em;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-secondary);
}
.badge-status.online { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--status-green); }
.badge-status.critical { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--status-red); }
.badge-status.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--status-orange); }
.badge-status.normal { background: rgba(11,95,212,0.1); border-color: rgba(11,95,212,0.3); color: var(--brand); }
.badge-status.pending { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--text-primary); }

.ui-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ui-kpi-row.compact { gap: 12px; }
.ui-kpi { background: var(--bg-subtle); padding: 16px; border-radius: var(--r-sm); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.kpi-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.kpi-value.highlight { color: var(--brand); }

.ui-alerts { display: flex; flex-direction: column; gap: 12px; }
.alert-item { display: flex; gap: 16px; padding: 16px; border-radius: var(--r-sm); background: var(--bg-subtle); border-left: 3px solid var(--border); }
.alert-item.warning { border-left-color: var(--status-orange); }
.alert-item.critical { border-left-color: var(--status-red); }
.alert-icon { font-size: 18px; display: flex; align-items: center; }
.alert-icon svg { width: 20px; height: 20px; }
.alert-item.warning .alert-icon { color: var(--status-orange); }
.alert-item.critical .alert-icon { color: var(--status-red); }
.alert-text strong { display: block; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; }
.alert-text span { font-size: 13px; }

/* -------- Modules Showcase -------- */
.modules-showcase { padding: 100px 0; }
.showcase-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-ui { order: 1; }

.module-id { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; display: inline-block; }
.mes-color { color: var(--mes); }
.pcm-color { color: var(--pcm); }
.qs-color { color: var(--qs); }

.showcase-text h3 { font-size: 32px; margin-bottom: 16px; }
.showcase-text p { font-size: 17px; margin-bottom: 32px; }
.showcase-text .features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 15px; color: var(--text-primary); }
.showcase-text .features svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* Progress Bar */
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.progress-bar { width: 100%; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar .fill { height: 100%; border-radius: 4px; }
.progress-bar .fill.green { background: var(--status-green); }

/* Timeline */
.timeline-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.ui-timeline { display: flex; height: 24px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.ui-timeline .segment { height: 100%; border-right: 1px solid var(--bg); }
.ui-timeline .segment:last-child { border-right: none; }
.segment.green { background: var(--status-green); opacity: 0.8; }
.segment.red { background: var(--status-red); opacity: 0.9; }
.segment.orange { background: var(--status-orange); opacity: 0.9; }

/* Table */
.ui-table { display: flex; flex-direction: column; }
.ui-row { display: grid; grid-template-columns: 80px 1fr 100px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.ui-row:last-child { border-bottom: none; }
.ui-row.header { background: var(--bg-subtle); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.ui-row span { font-size: 14px; color: var(--text-primary); }
.ui-footer-link { padding: 14px 20px; text-align: center; font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; background: rgba(255,255,255,0.02); }
.ui-footer-link:hover { background: rgba(255,255,255,0.05); }

/* Kanban */
.ui-kanban { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 20px; }
.k-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px; border-left-width: 4px; }
.border-left-orange { border-left-color: var(--status-orange); }
.border-left-red { border-left-color: var(--status-red); }
.border-left-green { border-left-color: var(--status-green); }
.k-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* -------- Integration Section -------- */
.integration-section { padding: 100px 0; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.integration-diagram { display: flex; align-items: center; justify-content: center; max-width: 700px; margin: 0 auto; position: relative; }
.diagram-node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; width: 180px; display: flex; flex-direction: column; gap: 4px; z-index: 2; box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.node-title { font-weight: 700; color: var(--text-primary); }
.node-mod { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-muted); }
.mes-border { border-top: 3px solid var(--mes); }
.pcm-border { border-top: 3px solid var(--pcm); }
.qs-border { border-top: 3px solid var(--qs); }
.diagram-core { width: 100px; height: 100px; border-radius: 24px; background: var(--surface); border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 0 40px rgba(11,95,212,0.2); }
.diagram-core img { width: 60px; height: 60px; }
.diagram-line { background: var(--border-strong); position: relative; z-index: 1; }
.diagram-line.horizontal { height: 2px; width: 100px; }
.diagram-line.vertical { width: 2px; height: 60px; margin: 0 auto; }
.integration-bottom { display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.integration-text { max-width: 600px; margin: 0 auto; }
.integration-text h3 { font-size: 24px; margin-bottom: 16px; }

/* -------- Technical Features -------- */
.features-technical { padding: 100px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tech-card { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: transform var(--t); }
.tech-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tech-icon { width: 48px; height: 48px; border-radius: 8px; background: rgba(11,95,212,0.1); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; border: 1px solid rgba(11,95,212,0.2); }
.tech-icon svg { width: 24px; height: 24px; }
.tech-card h4 { font-size: 20px; margin-bottom: 12px; }
.tech-card p { font-size: 15px; }

/* -------- Company -------- */
.company-section { padding: 100px 0; background: var(--bg-subtle); border-top: 1px solid var(--border); }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.company-principles { display: flex; flex-direction: column; gap: 32px; }
.principle { display: flex; gap: 24px; }
.p-num { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1; }
.p-text h4 { font-size: 18px; margin-bottom: 8px; }
.p-text p { font-size: 15px; }

/* -------- CTA -------- */
.cta-section { padding: 100px 0; }
.cta-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(255,106,19,0.05), transparent 60%); pointer-events: none; }
.cta-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.cta-content p { font-size: 18px; margin-bottom: 40px; }
.cta-form { display: flex; gap: 12px; margin-bottom: 16px; }
.cta-form input { flex: 1; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 14px 20px; color: var(--text-primary); font-family: inherit; font-size: 15px; outline: none; transition: border-color var(--t); }
.cta-form input:focus { border-color: var(--brand); }
.cta-form button { padding: 14px 32px; }
.privacy-note { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }
.privacy-note a { text-decoration: underline; }
.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; font-weight: 600; }
.form-status.success { color: var(--status-green); }
.form-status.error { color: var(--status-red); }

/* -------- Footer -------- */
footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px; margin-bottom: 64px; }
.footer-brand p { margin-top: 20px; font-size: 14px; max-width: 320px; }
.mail-link { color: var(--text-primary); font-weight: 600; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.f-col h5 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.f-col ul { display: flex; flex-direction: column; gap: 12px; }
.f-col a { font-size: 14px; transition: color var(--t); }
.f-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }

/* -------- Animations -------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none !important; opacity: 1 !important; transform: none !important; } }

/* -------- Responsive -------- */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .showcase-ui { order: 2; }
  
  .integration-diagram { flex-direction: column; gap: 0; }
  .diagram-line.horizontal { width: 2px; height: 40px; }
  
  .tech-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; gap: 48px; }
  
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 60px; }
  .ui-kpi-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* -------- Toast -------- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.4s var(--ease); pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.toast.success .toast-icon { background: rgba(16, 185, 129, 0.1); color: var(--status-green); }
.toast.error .toast-icon { background: rgba(239, 68, 68, 0.1); color: var(--status-red); }
.toast-message { color: var(--text-primary); font-size: 14px; font-weight: 600; }
