* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0E101A;
  --accent: #00C9A7;
  --text-primary: #FFFFFF;
  --text-secondary: #7B7F8E;
  --section-bg: #14161F;
  --card-bg: #1A1C26;
  --hover-glow: rgba(0, 201, 167, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.logo-animation {
  text-align: center;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border: 4px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0E101A 0%, #1A1C26 100%);
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particles::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: particlesMove 20s linear infinite;
  opacity: 0.1;
}

@keyframes particlesMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-main {
  margin-bottom: 30px;
}

.logo-glow {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  background: var(--card-bg);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent),
              0 0 80px rgba(0, 201, 167, 0.5);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 40px var(--accent),
                0 0 80px rgba(0, 201, 167, 0.5);
  }
  50% {
    box-shadow: 0 0 60px var(--accent),
                0 0 120px rgba(0, 201, 167, 0.7);
  }
}

.hero-title {
  font-size: 56px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-button {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 201, 167, 0.6);
}

.cta-button span {
  display: inline-block;
}

.section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-dark {
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 15px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--hover-glow);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.metric-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--hover-glow);
}

.metric-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.table-section {
  margin-bottom: 60px;
}

.table-title {
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 15px;
  background: var(--card-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
}

.finance-table thead {
  background: linear-gradient(135deg, #1A1C26 0%, #14161F 100%);
}

.finance-table th,
.finance-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(123, 127, 142, 0.2);
}

.finance-table th {
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.finance-table tbody tr {
  transition: background 0.3s ease;
}

.finance-table tbody tr:hover {
  background: rgba(0, 201, 167, 0.05);
}

.finance-table tbody tr.total-row {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.1) 0%, rgba(0, 201, 167, 0.05) 100%);
  font-weight: 600;
}

.finance-table tbody tr.total-row:hover {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.15) 0%, rgba(0, 201, 167, 0.08) 100%);
}

.btn-chart {
  display: block;
  margin: 25px auto 0;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-chart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 201, 167, 0.4);
}

.btn-chart.btn-close {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.chart-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  background: var(--card-bg);
  border-radius: 15px;
  padding: 0;
  margin-bottom: 0;
}

.chart-container.active {
  max-height: 600px;
  opacity: 1;
  padding: 30px;
  margin-bottom: 60px;
}

#profitChart {
  max-width: 100%;
  height: 400px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--hover-glow);
}

.benefit-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px var(--hover-glow);
}

.contact-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--accent);
}

.contact-item p {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-content {
  text-align: center;
  padding: 60px 20px;
}

.final-title {
  font-size: 38px;
  margin-bottom: 40px;
  line-height: 1.3;
}

.final-button {
  display: inline-block;
  padding: 20px 50px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--accent);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 201, 167, 0.5);
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(0, 201, 167, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 201, 167, 0.7);
  }
}

.final-button:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 50px rgba(0, 201, 167, 0.8);
  animation: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-content h3 {
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  background: var(--section-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.submit-button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 201, 167, 0.4);
}

.success-message {
  display: none;
  text-align: center;
  padding: 30px 0;
}

.success-message.active {
  display: block;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 15px;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-message p {
  font-size: 18px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .table-title {
    font-size: 24px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .final-title {
    font-size: 28px;
  }

  .final-button {
    padding: 16px 35px;
    font-size: 18px;
  }

  .finance-table th,
  .finance-table td {
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .stat-number {
    font-size: 36px;
  }

  .metric-value {
    font-size: 28px;
  }

  .finance-table {
    font-size: 12px;
  }

  .finance-table th,
  .finance-table td {
    padding: 8px;
  }
}
