/* ============================================
   TECHNOCEL GR — Design System CSS
   Dark-mode premium + Logística & Rastreamento
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Backgrounds */
  --bg-primary:       #0a0e17;
  --bg-secondary:     #111827;
  --bg-tertiary:      #1a2332;
  --bg-surface:       #243044;
  --bg-card:          #0f1520;

  /* Text */
  --text-primary:     #ffffff;
  --text-secondary:   #8a9bb5;
  --text-muted:       #4a5568;

  /* Brand — matching logo gradient (blue → cyan) */
  --accent-blue:      #2563eb;
  --accent-cyan:      #06b6d4;
  --accent-gradient:  linear-gradient(135deg, #2563eb, #06b6d4);
  --accent-glow:      rgba(6, 182, 212, 0.15);

  /* Glassmorphism */
  --glass-bg:         rgba(10, 14, 23, 0.75);
  --glass-border:     rgba(255, 255, 255, 0.06);
  --glass-blur:       blur(20px);

  /* Spacing */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    32px;
  --space-xl:    48px;
  --space-2xl:   64px;
  --space-3xl:   96px;
  --space-4xl:   128px;
  --space-section: 140px;

  /* Layout */
  --max-width:       1360px;
  --padding-x:       clamp(20px, 5vw, 80px);

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --duration-slower: 800ms;

  /* Fonts */
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow: visible;
}

h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 800; }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(20px, 2vw, 28px); }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  padding: 0 0.05em;
  display: inline-block;
  line-height: 1.2;
  overflow: visible;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

/* --- Navigation (Floating Pill) --- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  z-index: 1000;
  transition: all var(--duration-normal) ease;
}

.nav__logo {
  height: 32px;
  width: auto;
  margin-right: 8px;
  padding: 0 12px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--duration-normal) ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.active {
  color: var(--bg-primary);
  background: var(--text-primary);
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  margin-left: 4px;
  white-space: nowrap;
  transition: all var(--duration-normal) ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-4xl) 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

.hero__grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__label {
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero__desc {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

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

/* Particles canvas */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn__icon {
  font-size: 18px;
  transition: transform var(--duration-normal) ease;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-slow) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Service List (Accordion style) --- */
.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.service-item:hover {
  padding-left: var(--space-sm);
}

.service-item:hover .service-item__title {
  color: var(--accent-cyan);
}

.service-item__number {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.service-item__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  transition: color var(--duration-normal) ease;
}

.service-item__arrow {
  font-size: 20px;
  color: var(--text-muted);
  transition: all var(--duration-normal) ease;
}

.service-item:hover .service-item__arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all var(--duration-normal) ease;
}

.stat:hover {
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.1);
}

.stat__number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- About / Feature Split --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.split__visual {
  position: relative;
}

.split__img {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
}

.split__img-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: var(--accent-gradient);
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

/* Pill tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

/* Feature checks list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
}

.feature-list__icon {
  color: var(--accent-cyan);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- System / Tech Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration-normal) ease;
}

.tech-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.tech-card__icon {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
}

.tech-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tech-card__text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Logo Grid (Clients) --- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl) var(--space-lg);
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: all var(--duration-normal) ease;
}

.logo-grid img:hover {
  transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-form {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all var(--duration-normal) ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 320px;
}

.footer__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--duration-normal) ease;
}

.footer__link:hover {
  color: var(--accent-cyan);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.footer__contact-icon {
  color: var(--accent-cyan);
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 16px;
  transition: all var(--duration-normal) ease;
}

.footer__social a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-muted);
}

/* --- CTA Banner (Footer) --- */
.cta-banner {
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-banner h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--bg-primary);
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--duration-normal) ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 100ms; }
.stagger > *:nth-child(3) { transition-delay: 200ms; }
.stagger > *:nth-child(4) { transition-delay: 300ms; }
.stagger > *:nth-child(5) { transition-delay: 400ms; }
.stagger > *:nth-child(6) { transition-delay: 500ms; }

/* --- Radar animation (decorative) --- */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.1);
  animation: radar-pulse 4s ease-out infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* --- Section divider glow --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(6, 182, 212, 0.2), transparent);
}

/* ============================================
   EFEITOS TECNOLOGICOS AVANCADOS
   ============================================ */

/* --- Page Load Animation --- */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  animation: page-fade-in 0.6s ease-out;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 50ms linear;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}


/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.015;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Scan Lines (subtle) --- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(6, 182, 212, 0.008) 2px,
    rgba(6, 182, 212, 0.008) 4px
  );
}

/* --- Hero title glow --- */
.hero__title {
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

/* --- Typing Cursor --- */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent-cyan);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.7s step-end infinite;
  box-shadow: 0 0 8px var(--accent-cyan);
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* --- Morphing Blob (hero decoration) --- */
.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 10%;
  right: -10%;
  z-index: 0;
  opacity: 0.07;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(80px);
  animation: morph-blob 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob--2 {
  width: 350px;
  height: 350px;
  top: auto;
  bottom: 5%;
  left: -8%;
  right: auto;
  animation-delay: -6s;
  animation-direction: reverse;
}
@keyframes morph-blob {
  0%, 100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: translate(30px, -30px) scale(1.05); }
  66% { border-radius: 30% 60% 70% 40% / 50% 30% 60% 50%; transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Enhanced Card Glow (mouse follow) --- */
.card {
  --glow-x: 50%;
  --glow-y: 50%;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(6, 182, 212, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}

/* --- Animated gradient border on card hover --- */
.card {
  background-clip: padding-box;
}
.card:hover {
  border-color: transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-blue)) border-box;
  border: 1px solid transparent;
}

/* --- Card icon pulse on hover --- */
.card:hover .card__icon {
  animation: icon-pulse 0.6s ease;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
@keyframes icon-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- 3D Tilt on cards via CSS (enhanced by JS) --- */
.card.tilt-active {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* --- Stat number glow on count --- */
.stat__number.counting {
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  filter: brightness(1.2);
  transition: filter 0.3s ease;
}

/* --- Glitch effect on hover --- */
.glitch-hover {
  position: relative;
}
.glitch-hover:hover {
  animation: glitch-text 0.3s ease;
}
@keyframes glitch-text {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* --- Text Scramble labels --- */
.label {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* --- Enhanced Button Shine --- */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}
.btn--primary:hover::before {
  left: 100%;
}

/* --- Ghost button glow --- */
.btn--ghost:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* --- Magnetic button visual --- */
.btn.magnetic {
  transition: transform 80ms ease-out;
}

/* --- Nav glow ring effect on active --- */
.nav__link.active {
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.1);
}

/* --- Circuit / Data lines between sections --- */
.circuit-line {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
}
.circuit-line svg {
  width: 100%;
  height: 100%;
}
.circuit-line .circuit-path {
  stroke: rgba(6, 182, 212, 0.15);
  stroke-width: 1;
  fill: none;
}
.circuit-line .circuit-pulse {
  stroke: var(--accent-cyan);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 60 500;
  animation: circuit-flow 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.6));
}
@keyframes circuit-flow {
  0% { stroke-dashoffset: 560; }
  100% { stroke-dashoffset: 0; }
}

/* --- Data Stream Background (for stats) --- */
.data-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
}
.data-stream span {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
  animation: data-fall linear infinite;
  white-space: nowrap;
}
@keyframes data-fall {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* --- Enhanced Feature List hover --- */
.feature-list__item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.feature-list__item:hover {
  background: rgba(6, 182, 212, 0.03);
  border-color: rgba(6, 182, 212, 0.08);
  transform: translateX(4px);
}

/* --- Split image float animation --- */
.split__img {
  animation: img-float 6s ease-in-out infinite;
}
@keyframes img-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* --- Logo grid enhanced --- */
.logo-grid img {
  filter: grayscale(100%) brightness(0.5);
  transition: all 0.4s ease;
}
.logo-grid img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

/* --- Form input glow animation --- */
.form-input:focus,
.form-textarea:focus {
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.05);
}

/* --- WhatsApp pulse --- */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wpp-pulse 2s ease-out infinite;
}
@keyframes wpp-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Footer gradient line --- */
.footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

/* --- Footer social glow --- */
.footer__social a:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* --- CTA Banner animated bg --- */
.cta-banner {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Radar ring enhanced --- */
.radar-ring {
  box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.02);
}

/* --- Stagger enhanced delays --- */
.stagger > *:nth-child(7) { transition-delay: 600ms; }
.stagger > *:nth-child(8) { transition-delay: 700ms; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .nav__link { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }

  .nav.open .nav__link,
  .nav.open .nav__cta { display: block; }

  .nav.open {
    flex-direction: column;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .nav.open .nav__link {
    display: block;
    text-align: center;
    padding: 14px;
  }

  .nav.open .nav__cta {
    display: block;
    text-align: center;
    margin: 8px 0 0;
  }
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
