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

/* ── Design Tokens ── */
:root {
  --surface:           #080B16;
  --surface-low:       #0E1425;
  --surface-container: #161D32;
  --surface-high:      #1C253D;
  --primary:           #adc6ff;
  --primary-container: #4d8eff;
  --tertiary:          #3cd7ff;
  --on-surface:        #dce1fb;
  --on-surface-variant:#c2c6d6;
  --outline:           #8c909f;
  --outline-variant:   #424754;
  --gradient:          linear-gradient(135deg, var(--primary), var(--primary-container));
  --nav-bg:            rgba(8, 11, 22, .9);
}

/* ── Typography ── */
html {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  overflow-y: scroll;
  scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body { min-height: 100dvh; }

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

/* ── Shared Section Layout ── */
.section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 5rem;
  position: relative;
  scroll-snap-align: start;
}

.section__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tertiary);
  margin-bottom: 1rem;
}

.section__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--on-surface);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section__divider {
  width: 0;
  height: 1.5px;
  margin: 1.25rem auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tertiary), var(--primary-container), var(--primary), var(--primary-container), var(--tertiary), transparent);
  background-size: 400% 100%;
  box-shadow: 0 0 12px rgba(60, 215, 255, .4), 0 0 30px rgba(77, 142, 255, .15);
  animation: divider-expand 1.2s cubic-bezier(.22, 1, .36, 1) .3s forwards,
             divider-sweep 4s ease 1.5s infinite;
}

@keyframes divider-expand { to { width: min(85vw, 500px); } }
@keyframes divider-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Utility ── */
.accent-it {
  background: linear-gradient(135deg, var(--tertiary), var(--primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive: Laptop ≤ 1366px ── */
@media (max-width: 1366px) {
  .section { padding: 6rem 4rem; }
  .section__title { font-size: 2.25rem; }
}

/* ── Responsive: Tablet ≤ 768px ── */
@media (max-width: 768px) {
  :root {
    --primary:           #c4d8ff;
    --primary-container: #6aa0ff;
    --tertiary:          #5ee0ff;
  }
  .section { padding: 5rem 2rem; }
  .section__title { font-size: 2rem; }
}

/* ── Responsive: Mobile ≤ 480px ── */
@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }
  .section__title { font-size: 1.75rem; }
}

/* ── Mobile Portrait: no gradients ── */
@media (max-width: 480px) and (orientation: portrait) {
  .section__divider { background: var(--primary); animation: none; width: 80vw; }
  [style*="gradient"],
  .accent-it,
  .hero__it,
  .hero__highlight,
  .solutions .section__title,
  .sol-hub__label,
  .news__title,
  .news__stat-value,
  .popup__gradient-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #4d8eff !important;
    background-clip: unset !important;
  }
  .navbar__glow,
  .who-we-are__title-bar {
    background: var(--primary) !important;
  }
}

/* ── WhatsApp Floating Button ── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.6s, background 1.5s;
  animation: wpp-color 8s infinite alternate, wpp-show 25s infinite;
  animation-delay: 25s;
  opacity: 0;
  pointer-events: none;
}

@keyframes wpp-color {
  0% { background: #25D366; box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
  100% { background: #4d8eff; box-shadow: 0 4px 12px rgba(77,142,255,0.4); }
}

@keyframes wpp-show {
  0%, 28% { opacity: 1; pointer-events: auto; }
  32%, 100% { opacity: 0; pointer-events: none; }
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  animation-play-state: paused;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}
