/* Design Tokens - Premium Web3 Aesthetic (matching Landing page) */
:root {
  --primary-violet: 99, 102, 241;
  --primary-blue: 67, 56, 202;
  --primary-indigo: 55, 48, 163;
  --accent-cyan: 37, 99, 235;
  --card-padding: 2.5rem;
  --card-radius: 24px;
  --bg-color: #faf8ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  color: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ambient Background Gradient */
.ambient-gradient {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(67, 56, 202, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(55, 48, 163, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(37, 99, 235, 0.10), transparent);
  animation: ambientPulse 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Grid Lines */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  animation: gridFlow 20s linear infinite, gridPulse 6s ease-in-out infinite;
  background-position: 0 0;
}

@keyframes gridFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 80px;
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
}

/* Floating Particles */
.floating-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
  animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translate(40px, -60px) scale(1.15) rotate(90deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-30px, 40px) scale(0.95) rotate(180deg);
    opacity: 0.35;
  }
  75% {
    transform: translate(50px, 20px) scale(1.1) rotate(270deg);
    opacity: 0.45;
  }
}

/* Noise Texture */
.noise-texture {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Decorative Elements */
.decorative-circle {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  animation: decorativeFloat 15s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes decorativeFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translate(20px, -30px) rotate(120deg);
    opacity: 0.4;
  }
  66% {
    transform: translate(-15px, 20px) rotate(240deg);
    opacity: 0.5;
  }
}

/* Header */
.header {
  padding: 2rem 0;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-mark {
  height: 3rem;
  width: auto;
  object-fit: contain;
  display: block;
  align-self: flex-start;
  transform: translateY(-0.25rem);
  margin-left: 0.5rem;
}

.logo > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.logo-title {
  height: 2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: rgba(10, 10, 10, 0.6);
  font-weight: 500;
}

/* Typography */
.premium-headline {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0a0a0a;
}

.premium-description {
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.65);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 3rem;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  overflow: visible;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.3;
  background: linear-gradient(to right, #0a0a0a, #0a0a0a, rgb(99, 102, 241));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
}

.hero-content p {
  font-size: 1.25rem;
}

/* Form Section */
.form-section {
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 10;
}

.form-container {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(67, 56, 202, 0.08));
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: visible;
}

.premium-card {
  position: relative;
}

/* Form Fields */
.field-group {
  margin-bottom: 2rem;
}

.field-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}


.field-input,
.field-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  color: #0a0a0a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(10, 10, 10, 0.4);
}

.field-input:focus,
.field-textarea:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgb(99, 102, 241);
  box-shadow: 
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 8px 24px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(99, 102, 241, 0.05);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
  background: rgb(99, 102, 241);
  border-color: rgb(99, 102, 241);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.checkbox-label span:last-child {
  flex: 1;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.8);
}

/* Form Message */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* Form Actions */
.form-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, rgb(99, 102, 241), rgb(67, 56, 202));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
  animation: buttonGlow 2s ease-in-out infinite;
}

.submit-button:active {
  transform: translateY(0) scale(0.98);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5), 
                0 0 60px rgba(99, 102, 241, 0.6),
                0 0 100px rgba(99, 102, 241, 0.3);
  }
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(10, 10, 10, 0.6);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  margin-top: 2rem;
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(10, 10, 10, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.125rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .field-group {
    margin-bottom: 1.5rem;
  }

  .header {
    padding: 1.5rem 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(250, 248, 255, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.4));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(99, 102, 241, 0.6));
}
