/* ═══════════════════════════════════════════════════════
   MICROWEST TECHNOLOGIES — GLOBAL STYLES
   Variables · Reset · Typography · Buttons · Utilities
   ═══════════════════════════════════════════════════════ */

:root {
  --primary:        #00AEEF;
  --primary-hover:  #3DC5FF;
  --background:     #0F172A;
  --surface:        #1E293B;
  --text-primary:   #FFFFFF;
  --text-secondary: #CBD5E1;
  --border:         #334155;
  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: 'Lato', sans-serif; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }

/* ── Layout Helpers ─────────────────────────────────── */
section    { padding: 6rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: #0F172A;
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  font-family: 'Lato', sans-serif;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 174, 239, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  font-family: 'Lato', sans-serif;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Section Labels ─────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section-badge::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
}

/* ── Scroll-to-top ──────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.4);
}
#scrollTop.vis { opacity: 1; pointer-events: all; }
#scrollTop:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ── Fade-up Animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.vis { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.10s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.30s; }
.fade-up:nth-child(5) { transition-delay: 0.15s; }
.fade-up:nth-child(6) { transition-delay: 0.25s; }

/* ── Page Transitions ─────────────────────────────── */
main {
  animation: pageEnter 0.28s ease both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-exit main {
  animation: none !important;
}
body.page-exit {
  animation: pageExit 0.15s ease-in both !important;
  pointer-events: none;
}
@keyframes pageExit {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none !important; }
  body.page-exit { animation: none !important; }
}

/* ── Utilities ─────────────────────────────────────── */
.text-primary    { color: var(--primary); }
.bg-surface      { background: var(--surface); }
.section-cta-link { text-align: center; margin-top: 2.5rem; }
