/* Preview Page Styles */
.preview-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #e2e8f0;
  overflow-x: hidden;
}

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

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation Menu */
.top-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  width: calc(100% - 4rem);
  max-width: 1000px;
  margin: 0 auto;
}

.top-navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 2rem;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #60a5fa;
}

.nav-link-button {
  padding: 0.5rem 1.25rem !important;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 0.5rem;
  color: white !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.nav-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  color: white !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4rem 2rem;
  padding-top: 5.5rem;
  overflow: hidden;
}

/* Background Map */
.hero-map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
  animation: mapPulse 20s ease-in-out infinite;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

@keyframes mapPulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.05);
  }
}

/* Animated Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 15s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  width: 6px;
  height: 6px;
}

.particle-2 {
  top: 40%;
  right: 15%;
  animation-delay: 2s;
  width: 5px;
  height: 5px;
}

.particle-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
  width: 4px;
  height: 4px;
}

.particle-4 {
  top: 60%;
  right: 25%;
  animation-delay: 6s;
  width: 5px;
  height: 5px;
}

.particle-5 {
  bottom: 20%;
  right: 10%;
  animation-delay: 8s;
  width: 6px;
  height: 6px;
}

.particle-6 {
  top: 10%;
  left: 50%;
  animation-delay: 10s;
  width: 4px;
  height: 4px;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(-15px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(10px) scale(1.1);
    opacity: 0.7;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  z-index: 2;
  position: relative;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 3s ease infinite;
  background-size: 200% 200%;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  color: white;
}

.btn-primary,
.btn-secondary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #e2e8f0;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease-out;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
  min-width: 120px;
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(96, 165, 250, 0.4);
  border-color: rgba(96, 165, 250, 0.5);
}

.floating-card i {
  font-size: 2.5rem;
  color: #60a5fa;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
  transition: all 0.3s ease;
}

.floating-card:hover i {
  color: #a78bfa;
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(167, 139, 246, 0.7));
}

.floating-card span {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.card-1 {
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 15%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 2s;
}

.card-4 {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  animation-delay: 3s;
}

.card-5 {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

.card-6 {
  top: 35%;
  left: 25%;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-20px) translateX(10px) rotate(2deg); 
  }
  66% { 
    transform: translateY(10px) translateX(-10px) rotate(-2deg); 
  }
}


.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  color: rgba(30, 41, 59, 0.5);
  z-index: 3;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Advantages Section */
.advantages-section {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.5);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(96, 165, 250, 0.2);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.advantage-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.advantage-text {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 1rem;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

.feature-category {
  margin-bottom: 5rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.15);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: #60a5fa;
}

.feature-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.feature-list li i {
  color: #34d399;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Technology Stack Section */
.tech-section {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.5);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.2);
}

.tech-card i {
  font-size: 3rem;
  color: #60a5fa;
}

.tech-card span {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.cta-text {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #60a5fa;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 968px) {
  .top-navbar {
    width: calc(100% - 2rem);
    padding: 0.75rem 1.5rem;
    max-width: 100%;
  }

  .top-navbar.scrolled {
    padding: 0.5rem 1.5rem;
  }

  .nav-container {
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .logo-img {
    height: 30px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-link-button {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    height: 400px;
    margin-top: 2rem;
  }

  .floating-card {
    padding: 1rem;
    min-width: 100px;
  }

  .floating-card i {
    font-size: 2rem;
  }

  .floating-card span {
    font-size: 0.8rem;
  }

  .card-4,
  .card-5,
  .card-6 {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .map-svg {
    opacity: 0.1;
  }

  .particle {
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  .top-navbar {
    width: calc(100% - 1rem);
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.75rem 0.75rem;
  }

  .top-navbar.scrolled {
    padding: 0.5rem 1rem;
  }

  .nav-container {
    gap: 0.5rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .logo-img {
    height: 28px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-link:not(.nav-link-button) {
    display: none;
  }

  .nav-link-button {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem;
  }

  .nav-link-button i {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .advantages-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .container-custom {
    padding: 0 1rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(96, 165, 250, 0.3);
  color: #e2e8f0;
}

/* Simple Fade-in Animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  z-index: 10000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Smooth transitions for interactive elements */
.advantage-card,
.feature-card,
.tech-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-icon,
.feature-icon {
  transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
}

/* Smooth page transitions */
* {
  scroll-margin-top: 80px;
}

/* Telegram Link */
.telegram-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.telegram-link:hover {
  color: #3b82f6;
  transform: translateX(5px);
}

.telegram-link i {
  font-size: 1.25rem;
}

