/* ============================================================
   RECON GUIDE — Coming Soon Page
   Color Palette:
     Background:   #0d1117  (deep slate, almost black)
     Surface:      #161c27  (slightly lighter slate)
     Accent:       #d4851a  (warm amber)
     Accent Light: #f0a832  (golden)
     Text:         #f0ebe0  (warm white)
     Muted:        #8492a6  (cool gray)
     Subtle:       #2a3347  (border/divider)
   ============================================================ */

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

:root {
  --bg:           #0d1117;
  --surface:      #161c27;
  --accent:       #d4851a;
  --accent-light: #f0a832;
  --text:         #f0ebe0;
  --muted:        #8492a6;
  --subtle:       #2a3347;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background Effects ---------- */

/* Topographic line pattern via SVG data URI */
.topo-bg {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cpath d='M0 200 Q50 140 100 200 Q150 260 200 200 Q250 140 300 200 Q350 260 400 200' fill='none' stroke='%232a3347' stroke-width='1' opacity='0.6'/%3E%3Cpath d='M0 240 Q50 180 100 240 Q150 300 200 240 Q250 180 300 240 Q350 300 400 240' fill='none' stroke='%232a3347' stroke-width='1' opacity='0.5'/%3E%3Cpath d='M0 280 Q50 220 100 280 Q150 340 200 280 Q250 220 300 280 Q350 340 400 280' fill='none' stroke='%232a3347' stroke-width='0.75' opacity='0.4'/%3E%3Cpath d='M0 160 Q50 100 100 160 Q150 220 200 160 Q250 100 300 160 Q350 220 400 160' fill='none' stroke='%232a3347' stroke-width='1' opacity='0.5'/%3E%3Cpath d='M0 120 Q50 60 100 120 Q150 180 200 120 Q250 60 300 120 Q350 180 400 120' fill='none' stroke='%232a3347' stroke-width='0.75' opacity='0.35'/%3E%3Cpath d='M0 320 Q50 260 100 320 Q150 380 200 320 Q250 260 300 320 Q350 380 400 320' fill='none' stroke='%232a3347' stroke-width='0.75' opacity='0.35'/%3E%3Cpath d='M0 80 Q50 20 100 80 Q150 140 200 80 Q250 20 300 80 Q350 140 400 80' fill='none' stroke='%232a3347' stroke-width='0.5' opacity='0.25'/%3E%3Cpath d='M0 360 Q50 300 100 360 Q150 420 200 360 Q250 300 300 360 Q350 420 400 360' fill='none' stroke='%232a3347' stroke-width='0.5' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Warm golden glow from below-center — trailhead golden hour light */
.glow-orb {
  position: fixed;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 700px;
  height: 60vh;
  background: radial-gradient(ellipse at center bottom, rgba(212, 133, 26, 0.12) 0%, rgba(212, 133, 26, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Main Layout ---------- */

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 6vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ---------- Coming Soon Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 133, 26, 0.1);
  border: 1px solid rgba(212, 133, 26, 0.3);
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 2.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ---------- Logo / Compass ---------- */

.logo-mark {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.compass-icon {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 16px rgba(212, 133, 26, 0.35));
}

/* ---------- Brand Name ---------- */

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.brand-recon {
  font-size: clamp(4rem, 16vw, 7.5rem);
  color: var(--text);
  display: block;
}

.brand-guide {
  font-size: clamp(1.6rem, 6.5vw, 3rem);
  color: var(--accent);
  display: block;
  letter-spacing: 0.35em;
  font-weight: 600;
}

/* ---------- Tagline ---------- */

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

/* ---------- Description ---------- */

.description {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* ---------- Divider ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(212, 133, 26, 0.35);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 320px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.divider svg {
  flex-shrink: 0;
  color: rgba(212, 133, 26, 0.4);
}

/* ---------- Signup Section ---------- */

.signup-section {
  width: 100%;
  max-width: 480px;
  margin-bottom: 3rem;
}

.signup-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.025em;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
}

.signup-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.email-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--subtle);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.email-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.email-input:focus {
  border-color: rgba(212, 133, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 133, 26, 0.12);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.submit-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px rgba(212, 133, 26, 0.35);
}

.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform 0.2s;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-note {
  margin-top: 0.625rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

/* Success State */
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(212, 133, 26, 0.08);
  border: 1px solid rgba(212, 133, 26, 0.25);
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  color: var(--accent-light);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--subtle);
  padding-top: 1.75rem;
}

.creator-credit {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 420px;
  text-align: left;
}

.play-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.trail-recon-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(240, 168, 50, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.trail-recon-link:hover {
  color: var(--text);
  border-color: rgba(240, 168, 50, 0.7);
}

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

/* ---------- Accessibility ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus-visible rings */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Responsive Tweaks ---------- */

/* Stack the form on small screens */
@media (max-width: 420px) {
  .form-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .brand-recon {
    font-size: clamp(3.25rem, 20vw, 4.5rem);
  }
}

/* Wider screens: a touch more breathing room */
@media (min-width: 768px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .badge-dot {
    animation: none;
  }

  .submit-btn,
  .btn-arrow,
  .email-input,
  .trail-recon-link {
    transition: none;
  }
}
