/* ═══════════════════════════════════════════════════════════════
   YNUL — Software Solutions
   main.css — Global Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* Brand */
  --lss-cyan:    #00D4FF;
  --lss-cyan-dim:#0099CC;
  --lss-dark:    #0A0A0F;
  --lss-darker:  #050508;
  --lss-surface: #111118;
  --lss-border:  rgba(255,255,255,0.08);
  --lss-border-bright: rgba(0,212,255,0.25);

  /* Products */
  --gastro-color:  #FF6B35;
  --gastro-dim:    #CC4400;
  --gastro-glow:   rgba(255,107,53,0.15);
  --juridico-color:#4A90D9;
  --juridico-dim:  #1E3A5F;
  --juridico-glow: rgba(74,144,217,0.15);
  --vendas-color:  #7C3AED;
  --vendas-dim:    #4C1D95;
  --vendas-glow:   rgba(124,58,237,0.15);

  /* Text */
  --text-primary:   #F0F0FF;
  --text-secondary: #9090B0;
  --text-muted:     #5A5A75;

  /* Typography */
  --font-body:   'Inter', sans-serif;
  --font-display:'Space Grotesk', sans-serif;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 48px;
  --gap-2xl:80px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full:9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--lss-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Selection ─── */
::selection {
  background: rgba(0,212,255,0.3);
  color: #fff;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--lss-darker); }
::-webkit-scrollbar-thumb {
  background: rgba(0,212,255,0.3);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--lss-cyan); }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-secondary); }
a  { color: var(--lss-cyan); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.8; }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.section {
  padding: var(--gap-2xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lss-cyan);
  margin-bottom: var(--gap-md);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--lss-cyan);
}

.section-title {
  margin-bottom: var(--gap-sm);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--gap-xl);
}

/* ─── Glass Cards ─── */
.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--lss-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-normal);
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--lss-cyan), var(--lss-cyan-dim));
  color: #000;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--lss-border);
}
.btn-outline:hover {
  border-color: var(--lss-cyan);
  color: var(--lss-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--lss-cyan), #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gastro {
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-juridico {
  background: linear-gradient(135deg, #4A90D9, #00D4FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-vendas {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Grid ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--gap-md); }
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0,212,255,0.15);
  color: var(--lss-cyan);
  border: 1px solid rgba(0,212,255,0.3);
}

.badge-success {
  background: rgba(34,197,94,0.15);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,0.3);
}

.badge-hot {
  background: linear-gradient(135deg, #FF6B35, #FF4500);
  color: #fff;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lss-border), transparent);
  border: none;
  margin: var(--gap-xl) 0;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-spin { animation: spin-slow 8s linear infinite; }

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Noise texture overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Tooltip ─── */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--lss-surface);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--lss-border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.tooltip:hover::after { opacity: 1; }

/* ─── Number Counter ─── */
.counter-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.counter-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
}
.counter-suffix {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Tag ─── */
.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ─── Glow effects ─── */
.glow-cyan   { box-shadow: 0 0 40px rgba(0,212,255,0.2); }
.glow-gastro { box-shadow: 0 0 40px rgba(255,107,53,0.2); }
.glow-juridico { box-shadow: 0 0 40px rgba(74,144,217,0.2); }
.glow-vendas { box-shadow: 0 0 40px rgba(124,58,237,0.2); }
