@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 80px) clamp(32px, 6vw, 96px);
  background: #fff;
  color: #000;
}

body::after {
  content: "";
  position: fixed;
  bottom: -18%;
  left: -18%;
  width: clamp(280px, 45vw, 620px);
  height: clamp(280px, 45vw, 620px);
  background: radial-gradient(circle at center, rgba(74, 86, 255, 0.28), rgba(74, 86, 255, 0.08) 45%, rgba(74, 86, 255, 0) 75%);
  pointer-events: none;
  z-index: -1;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  gap: clamp(40px, 6vw, 80px);
}

.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}

.logo {
  width: 140px;
}

h1 {
  font-size: clamp(1.6rem, calc(1.1rem + 3vw), 3.5rem);
  line-height: 1.1;
  font-weight: 900;
}

h1 span.text-color {
  color: #4a56ff;
}

.headline-line {
  display: inline-block;
}

.headline-line--nowrap {
  white-space: nowrap;
}

p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #222;
}

button {
  width: fit-content;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #4a56ff, #6a4cff);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
}

.right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mockup {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  text-align: center;
}

.newsletter-form button {
  background: linear-gradient(135deg, #4a56ff, #6a4cff);
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.newsletter-form button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.newsletter-form button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.newsletter-form button:disabled {
  cursor: not-allowed;
}

.feedback-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 150;
  padding: 24px;
}

.feedback-popup.visible {
  display: flex;
}

.feedback-card {
  position: relative;
  background: #ffffff;
  padding: 42px 36px;
  border-radius: 24px;
  text-align: center;
  width: min(420px, 90vw);
  box-shadow: 0 18px 45px rgba(41, 20, 80, 0.18);
  animation: popIn 0.4s ease;
}

.feedback-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.18), rgba(177, 75, 255, 0.32));
  animation: iconPop 0.5s ease;
}

.feedback-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #7c52ff, #b14bff, #7c52ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
}

.feedback-check.is-error {
  font-size: 0;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  animation: none;
}

.feedback-check.is-error::before,
.feedback-check.is-error::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b5b, #ff8a7a, #ff5b5b);
}

.feedback-check.is-error::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.feedback-check.is-error::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.feedback-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feedback-card p {
  font-size: 1rem;
  color: #4a4a4a;
}

.feedback-button {
  display: none;
  margin: 24px auto 0;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a56ff, #6a4cff);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feedback-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.feedback-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  color: #777;
  transition: color 0.2s ease;
}

.feedback-close:hover {
  color: #333;
}

.feedback-popup.error .feedback-icon {
  background: linear-gradient(135deg, rgba(255, 91, 91, 0.18), rgba(255, 138, 122, 0.32));
}

.feedback-popup.error .feedback-check {
  color: transparent;
}

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

@keyframes popIn {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes iconPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .mockup {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  body {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(40px, 12vw, 72px) clamp(20px, 8vw, 40px);
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .left {
    align-items: center;
  }

  .right {
    width: 100%;
    justify-content: center;
  }

  p {
    font-size: 1rem;
  }

  body::after {
    top: auto;
    bottom: -25%;
    right: -30%;
    width: clamp(260px, 70vw, 520px);
    height: clamp(260px, 70vw, 520px);
  }
}

@media (max-width: 480px) {
  .logo {
    width: 110px;
  }

  .mockup {
    max-width: min(280px, 80vw);
  }

  button {
    width: 100%;
  }
}

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