:root {
  --primary: #1a3765;
  --secondary: #f26824;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section with animated gradient */
header {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 200% 200%;
  animation: gradientMove 10s ease infinite;
  color: white;
  text-align: center;
  padding: 100px 20px 20px;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary, .btn-outline {
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #ff7b3a;
  transform: translateY(-3px);
}

.btn-outline {
  color: white;
  border: 2px solid white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Divider between hero and next section */
.divider {
  display: block;
  width: 100%;
  height: auto;
}


/* Features Section */
section.features {
  background: #f9f9f9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 30px;
}

.feature {
  flex: 1 1 280px;
  max-width: 320px;
  padding: 25px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

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

.feature img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.feature h3 {
  color: var(--primary);
  margin-top: 10px;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* About Section */
section.about {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f6f7fb 100%);
}

.about h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.about p {
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: justify;
}

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* Fade-in animations */
.fade-in, .fade-in-delay, .fade-in-delay2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
.fade-in-delay { animation-delay: 0.5s; }
.fade-in-delay2 { animation-delay: 1s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Simulation Section */
.simulation {
  background: white;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.sim-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
}

.phone, .gateway {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}

.phone .screen {
  width: 80px;
  height: 140px;
  background: linear-gradient(180deg, #eaeaea, #ffffff);
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  position: relative;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.signal-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  margin: 3px;
  animation: blink 1.2s infinite ease-in-out;
}
.signal-dot:nth-child(2) { animation-delay: 0.2s; }
.signal-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.gateway img {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  margin-bottom: 8px;
}

/* Signal animation path */
.signal-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  animation: movePulse 2s linear infinite;
}

.pulse:nth-child(1) { animation-delay: 0s; }
.pulse:nth-child(2) { animation-delay: 0.4s; }
.pulse:nth-child(3) { animation-delay: 0.8s; }

@keyframes movePulse {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateX(40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(80px) scale(0.5);
  }
}
.phone-svg {
  width: 80px;
  height: 80px;
}

.gateway-svg {
  width: 90px;
  height: 80px;
}

.phone-body p,
.gateway-body p {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}