/* Presale Page Styles */

/* Global animation fixes */
.presale-section img {
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for animation jittering */
.protocol-feature-card, 
.feature-block__image, 
.feature-block__image-right,
.buy-crypto-btn, 
.refer-friend-btn {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* Hero Section */
.presale-hero__content {
  padding: 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.presale-hero__title {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--pro-vers);
}

.presale-hero__subtitle {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 30px;
  max-width: 600px;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #3694ff 0%, #af55ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Banner */
.presale-banner {
  background: linear-gradient(90deg, rgba(54, 148, 255, 0.1) 0%, rgba(175, 85, 255, 0.1) 100%);
  border: 1px solid rgba(54, 148, 255, 0.2);
  border-radius: 12px;
  padding: 20px 30px;
  margin-bottom: 30px;
  max-width: 600px;
  width: 100%;
}

.presale-banner__title {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 700;
  color: var(--pro-vers);
}

.presale-banner__subtitle {
  font-family: var(--font-family);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
}

/* Presale Card */
.presale-card {
  background-color: var(--osnovnoy);
  border-radius: 16px;
  padding: 30px;
  padding-bottom: 20px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.presale-card__title {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 700;
  color: var(--pro-vers);
}

.presale-card__subtitle {
  font-family: var(--font-family);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 25px;
}

/* Raised Section */
.presale-card__raised {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
  text-align: center;
}

.presale-card__raised span {
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 5px;
}

.raised-amount {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  color: var(--pro-vers);
  margin-top: 2px;
}

/* Progress */
.presale-card__progress-container {
  margin-bottom: 25px;
}

.progress {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3694ff 0%, #af55ff 100%);
  border-radius: 20px;
}

/* Price */
.text-with-lines {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}

.text-with-lines span {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--pro-vers);
  padding: 0 15px;
  background-color: var(--osnovnoy);
  position: relative;
  z-index: 1;
}

.text-with-lines::before,
.text-with-lines::after {
  content: "";
  height: 1px;
  width: 25%;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
}

.text-with-lines::before {
  left: 0;
}

.text-with-lines::after {
  right: 0;
}

/* Buttons */
.buy-crypto-btn, 
.refer-friend-btn {
  width: 100%;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center center;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.buy-crypto-btn::before,
.refer-friend-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 12px;
}

.buy-crypto-btn {
  background: linear-gradient(90deg, #3694ff 0%, #af55ff 100%);
  color: white;
  border: none;
  margin-bottom: 15px;
}

.buy-crypto-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.refer-friend-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pro-vers);
  margin-bottom: 15px;
}

.refer-friend-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Countdown */
.countdown-timer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  margin-top: 10px;
}

.countdown-item {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 5px;
}

.countdown-value {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 700;
  color: var(--pro-vers);
}

.countdown-label {
  font-family: var(--font-family);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Spacer */
.spacer {
  display: block;
  flex-grow: 1;
  min-height: 20px;
}

/* Powered by */
.powered-by {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

.powered-by a {
  color: #3694ff;
  text-decoration: none;
}

/* Feature blocks */
.info-section {
  margin: 60px 0;
}

.feature-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-block__image,
.feature-block__image-right {
  flex: 0 0 auto;
  max-width: 200px;
  width: 100%;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
  z-index: 1;
}

.feature-block__image:hover,
.feature-block__image-right:hover {
  transform: scale(1.05);
}

.feature-block__content,
.feature-block__content-left {
  flex: 1;
}

.feature-block__title {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--pro-vers);
}

.feature-block__description {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--vtorostepennyy);
}

/* Protocol features section */
.protocol-section {
  margin-top: 60px;
}

.protocol-section__subtitle {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 500;
  margin: 15px 0;
  color: #3694ff;
}

.protocol-features {
  margin-top: 40px;
}

.protocol-features__row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.protocol-feature-card {
  background-color: var(--osnovnoy);
  border-radius: 12px;
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center center;
  will-change: transform;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.protocol-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: var(--osnovnoy);
  border-radius: 12px;
}

.protocol-feature-card:hover {
  transform: translateY(-5px);
}

.protocol-feature-card__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.protocol-feature-card__icon svg {
  stroke: #3694ff;
}

.protocol-feature-card__title {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--pro-vers);
}

.protocol-feature-card__description {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--vtorostepennyy);
}

/* Responsive styles */
@media (max-width: 768px) {
  .presale-hero__title {
    font-size: 36px;
  }

  .protocol-features__row {
    flex-direction: column;
  }
  
  .feature-block {
    flex-direction: column;
  }
  
  .feature-block__image,
  .feature-block__image-right {
    max-width: 150px;
    margin: 0 auto 20px;
  }
}

@media (max-width: 480px) {
  .presale-hero__title {
    font-size: 28px;
  }
  
  .presale-card {
    padding: 20px 15px;
  }
}

/* Wallet Modal */
.wallet-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}

.wallet-modal.active {
  display: block;
}

.wallet-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.wallet-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--osnovnoy);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(115, 103, 240, 0.15);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}

.wallet-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-modal__title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  color: var(--pro-vers);
}

.wallet-modal__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.wallet-modal__close:hover {
  color: var(--pro-vers);
}

.wallet-modal__body {
  padding: 20px;
}

.wallet-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}

.wallet-option:hover {
  background-color: rgba(115, 103, 240, 0.1);
  transform: translateY(-2px);
}

.wallet-option__icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.wallet-option__name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--pro-vers);
}

/* Send ETH Form */
.send-eth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.input-with-copy {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.input-with-copy input {
  flex: 1;
  padding: 12px 15px;
  background: transparent;
  border: none;
  color: var(--pro-vers);
  font-family: var(--font-family);
  font-size: 14px;
}

.copy-btn {
  padding: 0 15px;
  height: 100%;
  background-color: rgba(115, 103, 240, 0.2);
  border: none;
  color: var(--pro-vers);
  font-family: var(--font-family);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: rgba(115, 103, 240, 0.3);
}

.form-group input[type="number"] {
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  color: var(--pro-vers);
  font-family: var(--font-family);
  font-size: 16px;
}

.form-note {
  font-family: var(--font-family);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.send-eth-btn {
  padding: 15px;
  background: linear-gradient(90deg, #3694ff 0%, #af55ff 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.send-eth-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
} 