/* ==========================================================================
   Galeo & Co - "Opening Soon" Landing Page Stylesheet
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-color: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-subtle: #9ca3af;
  
  /* Brand Navy Accent from Screenshot */
  --input-bg: #1c2646;
  --input-text: #ffffff;
  --input-placeholder: rgba(255, 255, 255, 0.6);
  --btn-border: #1c2646;
  --btn-hover-bg: #1c2646;
  --btn-hover-text: #ffffff;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  z-index: 1;
}

/* Brand Logo */
.logo-wrapper {
  margin-bottom: 2.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Hero Content */
.hero-content {
  margin-bottom: 2.25rem;
}

.title {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* Form Styles */
.newsletter-form {
  width: 100%;
  max-width: 640px;
}

.form-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.email-input {
  flex: 1;
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid transparent;
  padding: 16px 20px;
  font-family: var(--font-primary);
  font-size: 0.925rem;
  font-weight: 400;
  border-radius: 2px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.email-input::placeholder {
  color: var(--input-placeholder);
  font-weight: 300;
}

.email-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.email-input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Submit Button */
.submit-btn {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--btn-border);
  padding: 16px 28px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background-color: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  outline: none;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* Form Validation Message */
.form-message {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.25rem;
  color: #ef4444;
  text-align: left;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form-message.visible {
  opacity: 1;
}

/* Success State View */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
  animation: fadeIn var(--transition-smooth);
}

.success-container.hidden {
  display: none;
}

.success-icon {
  width: 44px;
  height: 44px;
  background-color: var(--input-bg);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-primary);
}

.reset-btn:hover {
  color: var(--text-main);
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.footer p {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.shopify-badge {
  font-weight: 500;
  color: #94a3b8;
}

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

/* Responsive Mobile Layout */
@media (max-width: 540px) {
  .brand-logo {
    max-width: 180px;
  }
  
  .title {
    font-size: 1.85rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }

  .form-group {
    flex-direction: column;
    gap: 10px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
  }
}
