/* ===== CSS 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: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b1a2e;
  color: #e0e6ed;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

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

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #e94560, #c23152);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e94560, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #8899aa;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Grid Layouts ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ===== Cards ===== */
.card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #f0f4fa;
}

.card p {
  color: #a0b0c0;
  font-size: 0.95rem;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.15);
  color: #e94560;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: #1a2a3e;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #e0e6ed;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-toggle:hover {
  background: #e94560;
  transform: scale(1.1) rotate(15deg);
}

/* ===== Dark Mode Styles ===== */
body.dark {
  background: #0b1a2e;
  color: #e0e6ed;
}

body.dark .glass {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark .card {
  background: rgba(0, 0, 0, 0.2);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 999;
  background: #1a2a3e;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #e0e6ed;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: #e94560;
  transform: translateY(-3px);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav .logo svg {
  width: 36px;
  height: 36px;
}

nav .logo span {
  background: linear-gradient(135deg, #e94560, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #e94560;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: #e0e6ed;
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: #e94560;
}

/* ===== Hero Section ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 138, 92, 0.1) 0%, transparent 50%),
              #0b1a2e;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.08), transparent 70%);
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

#hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

#hero h1 span {
  background: linear-gradient(135deg, #e94560, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1.2rem;
  color: #a0b0c0;
  max-width: 600px;
  margin-bottom: 36px;
}

#hero .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#hero .scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: #8899aa;
  font-size: 1.8rem;
}

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

/* ===== About Section ===== */
#about {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

#about .stats-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

#about .stat-item {
  padding: 20px;
}

#about .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #e94560;
}

#about .stat-label {
  color: #8899aa;
  margin-top: 4px;
}

/* ===== Timeline Section ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
  padding-left: 40px;
  border-left: 2px solid rgba(233, 69, 96, 0.3);
}

.timeline-item {
  margin-bottom: 36px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e94560;
  border: 3px solid #0b1a2e;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  color: #e94560;
  font-weight: 700;
}

.timeline-text {
  margin-top: 4px;
  color: #a0b0c0;
}

/* ===== Products Section ===== */
#products {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Advantages Section ===== */
.advantages-grid .card {
  text-align: center;
}

.advantages-grid .card-icon {
  font-size: 2.8rem;
}

.advantages-grid .card h3 {
  margin-top: 12px;
}

/* ===== Solutions Section ===== */
#solutions {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Services Section ===== */
.services-grid .card h3 {
  font-size: 1.2rem;
}

/* ===== Partners Section ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 60px;
  margin-top: 40px;
  opacity: 0.7;
}

.partner-item {
  font-size: 1.4rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.partner-item:hover {
  opacity: 1;
}

/* ===== Cases Section ===== */
#cases {
  padding: 100px 0;
}

/* ===== Testimonials Section ===== */
.testimonial-card p {
  font-style: italic;
  color: #c0d0e0;
}

.testimonial-author {
  display: block;
  margin-top: 16px;
  color: #e94560;
  font-style: normal;
  font-weight: 600;
}

/* ===== News Section ===== */
.news-card .news-date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #a0b0c0;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-card h3 {
  margin-top: 12px;
}

/* ===== FAQ Section ===== */
#faq {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: #a0b0c0;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

/* ===== HowTo Section ===== */
.howto-list {
  max-width: 700px;
  margin: 40px auto 0;
  counter-reset: step;
}

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.howto-step:last-child {
  margin-bottom: 0;
}

.howto-step-number {
  background: #e94560;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.howto-step h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.howto-step p {
  color: #a0b0c0;
}

/* ===== Contact Section ===== */
#contact {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item strong {
  color: #e94560;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e6ed;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e94560;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #667788;
}

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

.contact-form .btn-primary {
  width: 100%;
}

/* ===== Footer ===== */
footer {
  padding: 60px 0 30px;
  background: #06101e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
}

.footer-brand span {
  background: linear-gradient(135deg, #e94560, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: #8899aa;
  max-width: 300px;
}

.footer-column h4 {
  margin-bottom: 16px;
  color: #e0e6ed;
}

.footer-column ul {
  color: #8899aa;
  line-height: 2.2;
}

.footer-column ul li {
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-column ul li:hover {
  color: #e94560;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  color: #667788;
  font-size: 0.85rem;
}

/* ===== Responsive Design ===== */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  /* Navigation */
  nav .container {
    height: 60px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 26, 46, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hero */
  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  #hero .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  #hero .hero-buttons .btn-primary,
  #hero .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  /* Grid adjustments */
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Stats */
  #about .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -42px;
    width: 12px;
    height: 12px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Partners */
  .partners-grid {
    gap: 24px 32px;
  }

  .partner-item {
    font-size: 1.1rem;
  }

  /* HowTo */
  .howto-step {
    flex-direction: column;
    gap: 12px;
  }

  .howto-step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Dark mode & back to top */
  .dark-mode-toggle,
  .back-to-top {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    right: 16px;
  }

  .back-to-top {
    bottom: 80px;
  }

  .dark-mode-toggle {
    bottom: 24px;
  }

  /* FAQ */
  .faq-question {
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.8rem;
  }

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

  .card {
    padding: 24px 18px;
  }

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

  #about .stat-number {
    font-size: 2.2rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Print Styles ===== */
@media print {
  .dark-mode-toggle,
  .back-to-top,
  .mobile-menu-btn,
  #hero .scroll-indicator {
    display: none !important;
  }

  body {
    background: #fff;
    color: #333;
  }

  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .section-title {
    -webkit-text-fill-color: #e94560;
    color: #e94560;
  }
}
/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b1a2e;
}

::-webkit-scrollbar-thumb {
  background: #1a2a3e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e94560;
}

/* ===== Selection ===== */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: #fff;
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 2px solid #e94560;
  outline-offset: 2px;
}

/* ===== Additional Hover Effects ===== */
.card .card-icon {
  transition: transform 0.3s ease;
}

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

.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.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea,
.card,
.badge {
  transition: all 0.3s ease;
}

/* Extra spacing for sections on mobile */
@media (max-width: 768px) {
  section {
    padding: 60px 0 !important;
  }

  #hero {
    padding-top: 60px !important;
  }
}