/* Global styles for Eternal Ember */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--parchment);
  background: var(--ocean);
  overflow-x: hidden;
}

/* Brand Colors */
:root {
  --ocean: #142632;
  --iron: #3E3E3B;
  --denim: #4C586F;
  --ice: #62ABBD;
  --french-blue: #A2AAB0;
  --parchment: #e3dace;
  --error: #ff4444;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(98, 171, 189, 0.3);
  color: var(--parchment);
}

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

::-webkit-scrollbar-track {
  background: var(--ocean);
}

::-webkit-scrollbar-thumb {
  background: var(--denim);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ice);
}

/* Main App Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--iron) 50%, var(--denim) 100%);
  color: var(--parchment);
  padding: 2rem;
  overflow: hidden;
}

.background-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/hero-bg.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  filter: blur(1px);
}

.content {
  max-width: 700px;
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--ice);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--french-blue);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.story {
  margin-bottom: 2rem;
}

.story p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--parchment);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.story strong {
  color: var(--ice);
  font-weight: 600;
}

.success {
  background: rgba(98, 171, 189, 0.1);
  border: 1px solid var(--ice);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.success h3 {
  color: var(--ice);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.success p {
  color: var(--parchment);
  margin: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 1rem;
  }
  
  .content {
    max-width: 100%;
  }
  
  .story p {
    font-size: 1rem;
  }
}

/* Email Capture Component Styles */
.email-capture {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(20, 38, 50, 0.8);
  border: 1px solid rgba(98, 171, 189, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.email-capture .input-group {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.email-capture input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(98, 171, 189, 0.3);
  background: rgba(20, 38, 50, 0.6);
  color: var(--parchment);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.email-capture input:focus {
  outline: none;
  border-color: var(--ice);
  background: rgba(20, 38, 50, 0.8);
}

.email-capture input::placeholder {
  color: rgba(227, 218, 206, 0.6);
}

.email-capture button {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--ice), var(--denim));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-capture button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(98, 171, 189, 0.4);
}

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

.email-capture .error {
  color: var(--error);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.email-capture .privacy {
  font-size: 0.9rem;
  color: rgba(227, 218, 206, 0.7);
  margin-top: 1rem;
}

.email-capture h3 {
  color: var(--parchment);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.email-capture p {
  color: rgba(227, 218, 206, 0.8);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .email-capture .input-group {
    flex-direction: column;
  }
  
  .email-capture {
    padding: 1.5rem;
  }
}

.privacy {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--ocean);
}

.privacy p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
}

.privacy ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.privacy li {
  margin: 0.25rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.privacy em {
  color: var(--ice);
  font-style: normal;
  font-weight: 500;
}
