.top-section {
  position: relative;
  background: radial-gradient(circle at 50% 15%, rgba(60,120,255,0.85), rgba(0,0,0,0) 32%), linear-gradient(180deg, #061634 0%, #0a1840 72%, #0d1d48 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  padding: 18px 0 30px;
  overflow: hidden;
}

.top-section::before,
.top-section::after {
  content: "";
  position: absolute;
  inset: auto auto 120px 50%;
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(68,113,255,0.38), rgba(68,113,255,0) 60%);
  pointer-events: none;
}

.top-section > .container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.top-section .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 18px;
}

.top-section .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.top-section .brand > a { display: inline-flex; }
.top-section .brand img { display: block; max-width: none; }

.top-section .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
}

.top-section .nav-links a {
  color: inherit;
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.top-section .nav-links a:hover { opacity: 1; }
.top-section .nav-links a.active,
.top-section .nav-links a[aria-current="page"] { color: #fff !important; }
.top-section .nav-links a.active::after,
.top-section .nav-links a[aria-current="page"]::after {
  content: "";
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: #fff !important;
  border-radius: 999px;
  z-index: 3;
}

.top-section .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.top-section .nav-actions .btn-primary,
.top-section .hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, #1a8ef6 0%, #0d78f0 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(36,121,255,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-section .nav-actions .btn-primary:hover,
.top-section .hero-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(36,121,255,0.48);
}

.top-section .nav-actions .btn-secondary {
  color: #fff;
  opacity: 0.9;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 0;
}

.top-section .hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  align-items: center;
  gap: 32px;
  padding: 26px 0 30px;
  min-height: 620px;
  background: transparent;
}

.top-section .hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 10px;
  align-self: center;
  text-align: left;
}
.top-section .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #dfeeff;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  margin-bottom: 26px;
  font-size: 0.9rem;
  line-height: 1;
  backdrop-filter: blur(2px);
}

.top-section .badge-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fe5ff 0%, #2ea5ff 100%);
  box-shadow: 0 0 0 5px rgba(109, 193, 255, 0.18);
  flex-shrink: 0;
}

.top-section .badge-dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  margin: 5px auto;
}

.top-section .hero h1 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.7rem, 4vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
  max-width: 630px;
  text-wrap: balance;
}

.top-section .gradient {
  background: linear-gradient(180deg, #8fe3ff 0%, #c7efff 30%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-section .hero-copy p {
  margin: 28px 0 30px;
  max-width: 560px;
  color: rgba(234,244,255,0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.top-section .hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.top-section .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.top-section .btn-outline:hover { background: rgba(255,255,255,0.12); }
.top-section .hero-visual { position: relative; min-height: 520px; pointer-events: none; }
.top-section .visual-bg {
  position: absolute;
  inset: 50% 0 auto auto;
  width: 720px;
  height: 700px;
  transform: translate(8%, -50%) rotate(-8deg);
  background: radial-gradient(circle at 50% 35%, rgba(103,175,255,0.58), rgba(15,69,171,0.24) 30%, transparent 62%);
  filter: blur(8px);
  opacity: 0.8;
  animation: headerVisualSway 12s ease-in-out infinite alternate;
}

@keyframes headerVisualSway {
  0% { transform: translate(8%, -50%) rotate(-10deg) scale(0.98); opacity: .7; }
  50% { transform: translate(8%, -50%) rotate(0deg) scale(1.04); opacity: .9; }
  100% { transform: translate(8%, -50%) rotate(8deg) scale(.99); opacity: .8; }
}

.top-section .float-device { position: absolute; will-change: transform; }
.top-section .screen-laptop {
  width: 520px;
  max-width: min(90vw, 520px);
  height: auto;
  right: 110px;
  top: 80px;
  transform: rotate(-1.5deg);
  animation: headerLaptopFloat 11s ease-in-out infinite;
  filter: drop-shadow(0 28px 30px rgba(7, 27, 66, 0.2));
  z-index: 1;
}

.top-section .phone.left,
.top-section .phone.right { width: 170px; height: auto; filter: drop-shadow(0 28px 30px rgba(7, 27, 66, 0.2)); }
.top-section .phone.left { left: 0; bottom: 70px; transform: rotate(-13deg); animation: headerPhoneLeftFloat 9.5s ease-in-out infinite; z-index: 3; }
.top-section .phone.right { right: 0; bottom: 66px; transform: rotate(8deg); animation: headerPhoneRightFloat 10.5s ease-in-out infinite; z-index: 2; }
.top-section .phone img { width: 100%; height: auto; }
.top-section .mini-banner { position: absolute; left: 50%; top: 190px; width: 300px; height: 122px; transform: translateX(-50%); animation: headerBannerFloat 8.5s ease-in-out infinite; z-index: 0; }
.top-section .mini-banner img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(42,78,149,0.18)); }

@keyframes headerLaptopFloat { 0%,100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-18px); } }
@keyframes headerPhoneLeftFloat { 0%,100% { transform: rotate(-13deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-18px); } }
@keyframes headerPhoneRightFloat { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-16px); } }
@keyframes headerBannerFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }

@media (max-width: 1100px) {
  .top-section .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .top-section .hero-visual { min-height: 420px; }
}

@media (max-width: 760px) {
  .top-section { padding-top: 10px; }
  .top-section .navbar { flex-wrap: wrap; justify-content: center; }
  .top-section .nav-actions { order: 2; width: 100%; justify-content: center; }
  .top-section .nav-links { order: 3; width: 100%; }
  .top-section .hero { gap: 12px; padding-bottom: 0; }
  .top-section .hero-visual { min-height: 290px; margin: 0; }
  .top-section .phone.left,
  .top-section .phone.right { width: 120px; }
  .top-section .screen-laptop { width: 330px; right: 80px; }
  .top-section .mini-banner { width: 220px; top: 170px; }
}
