/* ============================================
   Fabric Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
  --font-primary: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-text: rgba(255, 255, 255, 0.97);
  --color-text-muted: rgba(255, 255, 255, 0.82);
  --glass-bg: rgba(15, 15, 25, 0.22);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 12px;
  --transition-smooth: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text);
  background: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient Canvas */
#gradient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Noise Overlay - subtle grain texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.contrast-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.25) 100%);
}

/* Content Layer */
.content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 100%;
  /* Subtle dark gradient behind content for consistent contrast */
  padding: 3rem 2rem;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 72%);
}

/* Wordmark */
.wordmark {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.28);
}

/* Tagline */
.tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.54), 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Form - Glassmorphism */
.interest-form {
  width: 100%;
  max-width: 400px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.form-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.form-textarea {
  resize: none;
  min-height: 80px;
}

.form-button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.form-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.02);
}

.form-button:active {
  transform: scale(0.98);
}

/* Success Message */
.success-message {
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.success-message p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-smooth);
}

.footer a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #gradient-canvas {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .content {
    padding: 1.5rem;
  }

  .form-fields {
    padding: 1.25rem;
  }

  .form-input {
    padding: 0.875rem 1rem;
  }

  .footer {
    bottom: 1rem;
  }
}
