/* ============================================
   Truvo Coming Soon — Styles
   Dark Premium + Clean Minimal
   ============================================ */

:root {
  --color-bg: #0a0a0f;
  --color-bg-subtle: #12121a;
  --color-text: #e8e8ed;
  --color-text-muted: #8888a0;
  --color-accent: #6c5ce7;
  --color-accent-hover: #7c6ff0;
  --color-accent-glow: rgba(108, 92, 231, 0.3);
  --color-success: #00b894;
  --color-error: #ff6b6b;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f0a1a 50%, #0a0a0f 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Landing Container */
.landing {
  max-width: 680px;
  width: 100%;
  padding: 20vh 2.5rem 4rem;
  text-align: center;
  flex: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Footer */
footer {
  max-width: 680px;
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-text);
  text-shadow: 0 0 40px var(--color-accent-glow);
  margin-right: -0.3em; /* Compensate trailing letter-spacing */
}

/* Tagline */
.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.sub-tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Coming Soon Badge */
.coming-soon-badge {
  display: inline-block;
  padding: 0.4em 1.2em;
  border: 1.5px solid var(--color-accent);
  border-radius: 2em;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2rem;
}

/* Signup Section */
.signup {
  margin-top: 2.5rem;
}

#signup-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 1em 1.25em;
  border-radius: 0.5em 0 0 0.5em;
  background: var(--color-bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input[type="email"]::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-row input[type="email"]:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* Honeypot — invisible to users */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Submit Button */
#submit-btn {
  padding: 1em 2em;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0 0.5em 0.5em 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#submit-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

#submit-btn:active {
  transform: scale(0.98);
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

/* Success State */
#signup-success {
  max-width: 500px;
  margin: 0 auto;
}

.success-message {
  color: var(--color-success);
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interest Capture */
.interest-capture {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  animation: fadeIn 0.5s ease 0.3s both;
}

#interest-dropdown {
  padding: 0.75em 1em;
  background: var(--color-bg-subtle);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5em;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 260px;
}

#interest-dropdown:focus {
  border-color: var(--color-accent);
}

#interest-dropdown option {
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

#interest-submit {
  padding: 0.75em 1.5em;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0.5em;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeIn 0.3s ease;
}

#interest-submit:hover {
  filter: brightness(1.15);
}

.interest-thanks {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease;
}

/* Error State */
.error-message {
  color: var(--color-error);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

/* Footer */
footer {
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.attribution {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.attribution strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.legal a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.legal a:hover {
  color: var(--color-accent);
}

.separator {
  color: var(--color-text-muted);
  opacity: 0.4;
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .landing {
    padding: 15vh 1.5rem 2rem;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .sub-tagline {
    font-size: 0.9rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-row input[type="email"] {
    border-radius: 0.5em;
  }

  #submit-btn {
    border-radius: 0.5em;
    width: 100%;
  }

  .interest-capture {
    flex-direction: column;
    align-items: center;
  }

  #interest-dropdown {
    width: 100%;
    min-width: unset;
  }

  #interest-submit {
    width: 100%;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

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

  body {
    background-size: 100% 100%;
  }
}
