/* Whitepaper Enhanced Section */
.whitepaper-enhanced {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-main), #06120e);
}

/* Animated Background */
.whitepaper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(158, 209, 178, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 209, 178, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(40px) translateY(40px);
  }
}

.bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(158, 209, 178, 0.1) 0%,
    transparent 70%
  );
  filter: blur(50px);
  animation: glowPulse 5s infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-particles .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite linear;
}

.bg-particles .particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.bg-particles .particle:nth-child(2) {
  top: 40%;
  left: 30%;
  animation-delay: 3s;
}
.bg-particles .particle:nth-child(3) {
  top: 60%;
  left: 50%;
  animation-delay: 6s;
}
.bg-particles .particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 9s;
}
.bg-particles .particle:nth-child(5) {
  top: 30%;
  left: 90%;
  animation-delay: 12s;
}
.bg-particles .particle:nth-child(6) {
  top: 70%;
  left: 20%;
  animation-delay: 15s;
}

/* Main Card */
.whitepaper-card {
  position: relative;
  background: rgba(15, 31, 26, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 40px;
  padding: 60px 40px;
  z-index: 10;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
}

.whitepaper-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--accent);
  box-shadow:
    0 40px 60px -20px rgba(158, 209, 178, 0.3),
    0 0 30px rgba(158, 209, 178, 0.2);
}

/* Floating Elements */
.whitepaper-card .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  animation: float 6s infinite ease-in-out;
  backdrop-filter: blur(5px);
}

.float-item:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.float-item:nth-child(2) {
  top: 70%;
  right: 8%;
  animation-delay: -2s;
}
.float-item:nth-child(3) {
  bottom: 15%;
  left: 10%;
  animation-delay: -4s;
}
.float-item:nth-child(4) {
  top: 40%;
  right: 12%;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Content */
.whitepaper-content {
  position: relative;
  z-index: 20;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Badge */
.whitepaper-badge {
  display: inline-block;
  margin-bottom: 30px;
}

.badge-text {
  display: inline-flex;
  align-items: center;
  background: rgba(158, 209, 178, 0.1);
  border: 1px solid rgba(158, 209, 178, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(158, 209, 178, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(158, 209, 178, 0.6);
  }
}

/* Title */
.whitepaper-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.title-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* .title-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
} */

.title-highlight {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  animation: titleGlow 3s infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(158, 209, 178, 0.3);
  }
  50% {
    text-shadow: 0 0 40px rgba(158, 209, 178, 0.6);
  }
}

/* Description */
.whitepaper-description {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Cards */
.whitepaper-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(158, 209, 178, 0.05);
  border: 1px solid rgba(158, 209, 178, 0.15);
  border-radius: 20px;
  padding: 15px 25px;
  transition: all 0.3s ease;
  min-width: 160px;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent);
  background: rgba(158, 209, 178, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: var(--accent);
  color: var(--bg-main);
  transform: rotate(360deg);
}

.stat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action Buttons */
.whitepaper-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-download-primary {
  position: relative;
  background: linear-gradient(135deg, var(--accent), #78a98a);
  border: none;
  border-radius: 60px;
  padding: 20px 50px;
  color: var(--bg-main);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 30px -10px rgba(158, 209, 178, 0.3);
}

.btn-download-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 40px -10px rgba(158, 209, 178, 0.5);
}

.btn-download-primary .btn-content {
  position: relative;
  z-index: 2;
}

.btn-download-primary .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

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

.btn-download-primary .btn-download-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-download-primary:hover .btn-download-icon {
  transform: translateY(-3px);
}

.secondary-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-preview,
.btn-share {
  background: rgba(158, 209, 178, 0.05);
  border: 1px solid rgba(158, 209, 178, 0.2);
  border-radius: 40px;
  padding: 12px 30px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-preview:hover,
.btn-share:hover {
  background: rgba(158, 209, 178, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.tag {
  background: rgba(158, 209, 178, 0.05);
  border: 1px solid rgba(158, 209, 178, 0.15);
  border-radius: 30px;
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(158, 209, 178, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Trust Badges */
.trust-badges-whitepaper {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.trust-badges-whitepaper .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.trust-badges-whitepaper .trust-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.trust-badges-whitepaper .trust-item i {
  color: var(--accent);
  font-size: 1rem;
}

/* Version Info */
.version-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(158, 209, 178, 0.03);
  border: 1px solid rgba(158, 209, 178, 0.1);
  border-radius: 30px;
  padding: 8px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

.version-info i {
  color: var(--accent);
}

/* Decorative Elements */
.whitepaper-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(158, 209, 178, 0.1) 0%,
    transparent 70%
  );
  animation: rotateSlow 20s linear infinite;
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.decoration-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 209, 178, 0.2),
    transparent
  );
  transform: rotate(10deg);
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Related Documents */
.related-documents {
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

.related-title {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(15, 31, 26, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(158, 209, 178, 0.15);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 209, 178, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.doc-card:hover::before {
  left: 100%;
}

.doc-icon {
  width: 50px;
  height: 50px;
  background: rgba(158, 209, 178, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
  background: var(--accent);
  color: var(--bg-main);
  transform: rotate(360deg);
}

.doc-info {
  flex: 1;
}

.doc-info h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.doc-download {
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.doc-card:hover .doc-download {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .whitepaper-card {
    padding: 40px 30px;
  }

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

  .title-highlight {
    font-size: 2.8rem;
  }

  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .whitepaper-card {
    padding: 30px 20px;
  }

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

  .title-highlight {
    font-size: 2.2rem;
  }

  .title-line {
    width: 40px;
  }

  .whitepaper-stats {
    gap: 15px;
  }

  .stat-card {
    min-width: 140px;
    padding: 12px 15px;
  }

  .btn-download-primary {
    min-width: 280px;
    padding: 15px 30px;
    font-size: 1rem;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .float-item {
    display: none;
  }
}

@media (max-width: 576px) {
  .whitepaper-title {
    gap: 10px;
  }

  .title-line {
    width: 30px;
  }

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

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

  .whitepaper-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 250px;
  }

  .secondary-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-preview,
  .btn-share {
    width: 100%;
    justify-content: center;
  }

  .trust-badges-whitepaper {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
