/* ═══════════════════════════════════════════════
   SyncTech Hub — Design System
   Dark Premium · Glassmorphism · Gradient Accents
   ═══════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:              #0a0a12;
  --bg-card:         rgba(255, 255, 255, 0.05);
  --accent-primary:  linear-gradient(135deg, #f97316, #ec4899);
  --accent-secondary:linear-gradient(135deg, #a855f7, #6366f1);
  --color-orange:    #f97316;
  --color-pink:      #ec4899;
  --color-purple:    #a855f7;
  --color-indigo:    #6366f1;
  --text:            #ffffff;
  --text-muted:      #9ca3af;
  --border:          rgba(255, 255, 255, 0.08);
  --border-hover:    rgba(255, 255, 255, 0.16);
  --radius-card:     16px;
  --radius-btn:      100px;
  --blur:            12px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-orb:      0 0 120px 40px;
  --font:            'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --nav-h:           68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text Utilities ── */
.gradient-text {
  background: var(--accent-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-secondary {
  background: var(--accent-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════
   ORBS — Ambient Background Spheres
══════════════════════════════════════════ */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orb-float 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 14s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 10%; right: -180px;
  animation-duration: 10s;
  animation-delay: -3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: 30%; left: 10%;
  animation-duration: 16s;
  animation-delay: -6s;
}
.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: -100px; right: 10%;
  animation-duration: 11s;
  animation-delay: -1s;
}
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 32px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px rgba(249, 115, 22, 0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(0px);
  transition: backdrop-filter var(--transition), background var(--transition), box-shadow var(--transition);
}
.navbar.nav-scrolled {
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 18, 0.85);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { background: var(--accent-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* Real logo image in navbar/footer */
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
/* System card logo images */
.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.card-icon-wrap.has-logo {
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  width: 52px;
  height: 52px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}
.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;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  z-index: 1;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--color-orange);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-stats.stats-visible { opacity: 1; transform: translateY(0); }
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual — card previews */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
  width: 100%;
}
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--blur));
  animation: preview-float 4s ease-in-out infinite alternate;
}
.preview-card-2 { animation-delay: -1s; }
.preview-card-3 { animation-delay: -2s; }
.preview-card-4 { animation-delay: -3s; }
@keyframes preview-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.preview-card-icon { font-size: 1.6rem; }
.preview-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.preview-card-name { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.preview-card-status { font-size: 0.72rem; font-weight: 500; }
.preview-card-status.active { color: #22c55e; }
.preview-card-status.soon   { color: var(--text-muted); }

/* Hero divider */
.hero-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ══════════════════════════════════════════
   SYSTEMS SECTION
══════════════════════════════════════════ */
.section-sistemas {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; font-weight: 300; max-width: 600px; margin: 0 auto; }

/* ── Tabs ── */
.tabs-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.tab-btn:hover { color: #fff; border-color: var(--border-hover); }
.tab-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

/* ── Systems Grid ── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── System Card ── */
.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--blur));
  padding: 28px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: card-in 0.4s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.system-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.system-card:hover .card-glow { opacity: 1; }
.system-card.card-featured {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1) inset;
}
.system-card.card-soon { opacity: 0.75; }
.system-card.card-soon:hover { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon { font-size: 1.5rem; line-height: 1; }

.card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  letter-spacing: 0.01em;
}
.badge-destaque { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.badge-active   { background: rgba(34, 197, 94, 0.12);  color: #22c55e; }
.badge-soon     { background: rgba(156, 163, 175, 0.12); color: var(--text-muted); }

.card-body { flex: 1; margin-bottom: 24px; }
.card-category { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.card-desc { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; line-height: 1.6; }

.card-footer { margin-top: auto; }
.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}
.btn-primary-card {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}
.btn-primary-card:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(249, 115, 22, 0.35); }
.btn-disabled-card {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  cursor: not-allowed;
}
.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

/* ══════════════════════════════════════════
   SOBRE SECTION
══════════════════════════════════════════ */
.section-sobre {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}
.about-divider, .footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 80px;
}
.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-text .section-title { text-align: left; margin-bottom: 20px; }
.sobre-desc { color: var(--text-muted); font-size: 1rem; font-weight: 300; line-height: 1.8; margin-bottom: 40px; }
.sobre-desc strong { color: var(--text); font-weight: 700; }
.sobre-pillars { display: flex; flex-direction: column; gap: 20px; }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pillar-icon {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.pillar strong { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.pillar p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* Ecosystem Hub Diagram */
.sobre-visual { display: flex; justify-content: center; align-items: center; }

.hub-diagram {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  align-items: center;
  justify-items: center;
  width: 340px;
  position: relative;
}

/* SVG connector lines drawn via center pseudo-element */
.hub-diagram::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 2px;
  height: calc(100% - 120px);
  background: linear-gradient(to bottom, transparent, rgba(249,115,22,0.4), transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 2px;
}
.hub-diagram::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: calc(100% - 120px);
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(249,115,22,0.4), transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 2px;
}

/* Center hub — SyncTech logo */
.hub-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100px; height: 100px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(249,115,22,0.12),
    0 0 40px rgba(249,115,22,0.35);
  z-index: 2;
  position: relative;
  animation: hub-pulse 3s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(249,115,22,0.12), 0 0 40px rgba(249,115,22,0.35); }
  50%       { box-shadow: 0 0 0 14px rgba(249,115,22,0.08), 0 0 60px rgba(249,115,22,0.5); }
}
.hub-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.hub-center-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Category nodes */
.hub-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 100px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 2;
}
.hub-node:hover {
  transform: scale(1.06);
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}
.hub-node-icon { font-size: 1.2rem; }
.hub-node-label { font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.hub-empty { display: block; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-top: 0;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; max-width: 240px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}
.footer-bottom a { color: var(--color-orange); }
.footer-bottom a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-subtitle, .hero-content p { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .sobre-inner { grid-template-columns: 1fr; gap: 48px; }
  .sobre-text .section-title { text-align: center; }
  .sobre-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,18,0.97); padding: 24px; gap: 20px; text-align: center; border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar .btn-primary { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .systems-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .tabs-wrapper { gap: 6px; }
  .tab-btn { font-size: 0.8rem; padding: 7px 16px; }
  .sobre-pillars { gap: 16px; }
}

/* ══════════════════════════════════════════
   SCROLLBAR (WebKit)
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
