:root {
  --bg: #050711;
  --panel: rgba(18, 22, 40, 0.2);
  --muted: #b0adcc;
  --text: #fff;
  --accent: #7f58f1;
  --accent-2: #9d7fff;
  --accent-3: #c192f2;
  --danger: #ef4444;
  --radius: 0.5rem;
  --site-pad: 2rem;
  --container: 75rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url('/bg_hero.webp');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

.container { width: min(100%, 920px); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: fixed; 
  top: 0; 
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 7, 17, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 217px; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  background-image: radial-gradient(circle closest-side, #7f58f180, #3d1cef80 400%);
  box-shadow: 0px 0 16px 2px rgba(61, 28, 239, 0.5);
  border: 1px solid #b7a5f0;
  box-shadow: inset 0 0 3px 1px #7f58f1;
  transition: transform 0.1s ease;
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-back:hover,
.btn-back:focus-visible {
  transform: scale(1.05);
}

.btn-back:active {
  transform: scale(1);
}

.btn-back .arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


.hero { padding: 128px 0 80px; }


.hero h1 { 
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(32px, 5vw, 3.5rem); 
  margin: 32px 0 16px; 
  color: #ebe6fa;
  font-weight: 700;
  line-height: 1.1em;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subtitle { 
  font-size: 1.25rem;
  background: linear-gradient(90deg, #c192f2 0%, #ddcdfc 25%, #99afff 50%, #ddcdfc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 32px; 
  font-weight: 400;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marketing-content {
  max-width: 100%;
  margin: 0 auto 32px;
  text-align: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marketing-content .lead {
  font-size: 1.125rem;
  color: #d4d1e8;
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: center;
}

.benefits {
  background: rgba(18, 22, 40, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 12px 0px rgba(127, 88, 241, 0.15) inset;
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.benefits h3 {
  color: #ebe6fa;
  font-size: 1.25rem;
  margin: 0 0 16px;
  font-weight: 600;
}

.benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #b0adcc;
  line-height: 1.6;
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7f58f1;
  font-weight: bold;
  font-size: 1.2rem;
}

.benefits li strong {
  color: #d4d1e8;
  font-weight: 500;
}


.card {
  margin-top: 24px;
  background: rgba(18, 22, 40, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 0px 12px 0px rgba(127, 88, 241, 0.15) inset;
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 16px;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.field { display: grid; gap: 8px; }
label { font-weight: 500; color: #ebe6fa; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(183, 165, 240, 0.2);
  background: rgba(28, 17, 57, 0.3);
  color: var(--text);
  transition: border-color 0.2s ease;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: rgba(183, 165, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(127, 88, 241, 0.1);
}
input::placeholder { color: rgba(176, 173, 204, 0.5); }
.error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0; }

.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 48px;
  border-radius: var(--radius); 
  color: #fff; font-weight: 500; cursor: pointer;
  text-decoration: none;
  background-image: radial-gradient(circle closest-side, #7f58f180, #3d1cef80 400%);
  border: 1px solid #b7a5f0;
  box-shadow: inset 0 0 3px 1px #7f58f1, 0px 0 16px 2px rgba(61, 28, 239, 0.3);
  transition: transform 0.1s ease;
}
.btn-primary:hover:not([disabled]) { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled],
.btn-primary.disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  filter: grayscale(1);
  background-image: radial-gradient(circle closest-side, #666, #444 400%);
  border-color: #555;
  box-shadow: none;
}
.btn-primary.disabled:hover { transform: none; }
.btn-label { pointer-events: none; }
.btn-spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid rgba(11,18,32,0.5);
  border-top-color: #0b1220;
  animation: spin 1s linear infinite;
  display: none;
}
.btn-primary.loading .btn-spinner { display: inline-block; }
.btn-primary.loading .btn-label { opacity: 0.8; }

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

@keyframes celebrate {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 88, 241, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(127, 88, 241, 0); }
}

.success-state {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon.celebrate {
  animation: celebrate 0.6s ease-out;
}

.success-icon svg {
  filter: drop-shadow(0 4px 20px rgba(127, 88, 241, 0.4));
  animation: pulse 2s infinite;
  border-radius: 50%;
}

.success-state h3 {
  color: #ebe6fa;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 16px;
  font-family: "Instrument Sans", sans-serif;
}

.success-message {
  color: #d4d1e8;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.success-actions {
  margin-top: 24px;
}

.next-steps {
  color: #b0adcc;
  font-size: 1rem;
  margin: 0 0 16px;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  border: 1px solid rgba(157, 127, 255, 0.3);
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 127, 255, 0.3);
}

.form-message { color: var(--muted); min-height: 22px; margin: 4px 2px 0; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--accent-2); }

.site-footer { 
  margin-top: 80px;
  padding-top: 0;
  color: var(--muted); 
  position: relative;
}

.footer-content {
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(180deg, rgba(127, 88, 241, 0.1) 0%, rgba(61, 28, 239, 0.1) 100%);
  box-shadow: 0px 40px 133px 2px rgba(45, 16, 123, 0.2) inset,
              0px 2px 2px 0px rgba(221, 205, 252, 0.2) inset;
  backdrop-filter: blur(14px);
  padding: 3rem;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer-nav > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2em;
  color: #ebe6fa;
  position: relative;
  white-space: nowrap;
}

.footer-nav h2::before {
  content: "/ ";
}

.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0.8rem;
}

.footer-nav a {
  font-size: 1rem;
  text-decoration: none;
  color: #b0adcc;
  display: inline-block;
  line-height: 1.2em;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ebe6fa;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 4rem;
}

.footer-logo {
  width: 100%;
  max-width: 21rem;
  height: auto;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}

.email-contact {
  display: flex;
  flex-direction: column;
}

.email-contact p,
.email-contact a {
  font-size: 0.75rem;
  display: block;
  color: #b0adcc;
}

.email-contact a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.email-contact a:hover,
.email-contact a:focus-visible {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-line {
  width: 100%;
  height: 1px;
  background: #3c289d;
  margin: 2.5rem 0 4rem 0;
}

.footer-copyright {
  text-align: center;
  margin: 0;
}

.footer-copyright small {
  font-size: 10px;
  color: #7a7795;
}

.footer-copyright a {
  color: #7a7795;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: #b0adcc;
}

@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    margin: 0 auto;
  }
}

@media (max-width: 436px) {
  .btn-back {
    display: none;
  }
}


