/* ==========================================
   ROOTS AGRICULTURAL INVESTMENT
   Coming Soon - Process Storyteller Edition
   ========================================== */

/* Font Definitions */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Lato:wght@300;400&display=swap');

/* CSS Variables */
:root {
  --color-overlay: rgba(28, 33, 22, 0.4); /* Dark olive overlay */
  --color-glass: rgba(255, 255, 255, 0.15); 
  --color-glass-border: rgba(255, 255, 255, 0.2);
  --color-text: #FFFFFF;
  --color-accent: #D4AF37; /* Rustic Gold */
  
  --font-heading: 'Cinzel', serif; /* Cinematic, rustic serif */
  --font-body: 'Lato', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background Video/Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Filter to soften the video for text readability */
  filter: brightness(0.8) contrast(1.1);
}

.bg-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 40s infinite alternate;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: -1;
  backdrop-filter: blur(2px); /* Slight blur for focus on content */
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.15) translate(-2%, -2%); }
}

/* Layout Container */
.container {
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  align-items: center;
  justify-content: center;
  text-align: center; /* Ensure text is centered */
  min-height: 100vh;
}

/* Glass Panel (Email Signup) */
.glass-panel {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: 8px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  margin-top: 2rem;
}

/* Typography */
.logo {
  max-width: 140px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1); /* All white logo */
}

h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.time-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Input Form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.input-group-vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #333;
  resize: vertical;
  border-radius: 4px;
}

button {
  padding: 1rem 2rem;
  background: var(--color-accent);
  border: none;
  color: #1a1a1a;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 4px;
}

button:hover {
  background: #E5C565; /* Lighter gold */
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem; /* Reduce padding on mobile */
    justify-content: center; /* Ensure vertical center */
    min-height: 100vh;
  }

  h1 { 
    font-size: 2rem; /* Smaller heading */
    line-height: 1.3;
  }
  
  h2 {
    font-size: 0.9rem;
    margin-bottom: .5rem;
    line-height: 1.4;
  }

  .logo {
    max-width: 100px;
    margin-bottom: .5rem;
  }

  /* Countdown Grid on Mobile */
  .countdown { 
    gap: 1rem; 
    margin: 1rem 0;
    flex-wrap: wrap; /* Allow wrapping */
  }
  
  .time-block {
    min-width: 60px; /* Ensure touch targets aren't too small */
  }

  .time-val { 
    font-size: 1.75rem; 
  }
  
  .time-label {
    font-size: 0.65rem;
  }

  /* Glass Panel & Form */
  .glass-panel { 
    padding: 2rem 1.25rem; 
    margin-top: 1rem;
  }
  
  .input-group { 
    flex-direction: column; 
    gap: 0.75rem; 
  }
  
  input[type="email"] {
    width: 100%;
    /* text-align: center; Removed to keep placeholder left-aligned */
  }
  
  button {
    width: 100%; /* Full width button */
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem; /* Further reduce padding */
  }

  h1 { 
    font-size: 1.75rem; 
    word-wrap: break-word; /* Ensure text wraps */
  }

  .glass-panel {
    padding: 1.5rem 1rem; /* Tighter padding for mobile */
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .signup-form {
    max-width: 100%;
  }

  .countdown { 
    margin: 1.5rem 0; 
    gap: 0.75rem; 
  }
  
  .time-val { font-size: 1.5rem; }
}
