/* assets/landing/style.css */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --text: #f5f0e8;
  --text-muted: rgba(245, 240, 232, 0.42);
  --accent: #c87941;
  --accent-hover: #d98c52;
  --accent-active: #b86c30;
  --accent-glow: rgba(200, 121, 65, 0.28);
  --border: rgba(245, 240, 232, 0.1);
  --input-bg: rgba(255, 255, 255, 0.035);
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle radial spotlight that slowly pulses */
  background-image: radial-gradient(
    ellipse 70% 55% at 50% 48%,
    rgba(200, 121, 65, 0.055) 0%,
    transparent 70%
  );
  animation: pulse-bg 8s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
  from {
    background-image: radial-gradient(
      ellipse 70% 55% at 50% 48%,
      rgba(200, 121, 65, 0.055) 0%,
      transparent 70%
    );
  }
  to {
    background-image: radial-gradient(
      ellipse 80% 65% at 50% 48%,
      rgba(200, 121, 65, 0.085) 0%,
      transparent 72%
    );
  }
}

/* Particle canvas */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

/* Logo */
.logo-wrap {
  margin-bottom: 2.75rem;
}

.logo {
  height: 100px;
  width: auto;
  opacity: 0.88;
  /* Lift logo off dark background — inner white halo traces the stroke, outer amber glow ties to accent */
  filter: drop-shadow(0 0 2px rgba(245, 240, 232, 0.6)) drop-shadow(0 0 16px rgba(200, 121, 65, 0.45));
}

/* Headline */
h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.8rem;
}

/* Tagline */
.tagline {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Form */
.form {
  width: 100%;
  max-width: 440px;
}

.input-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--input-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
  border-color: rgba(200, 121, 65, 0.55);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  caret-color: var(--accent);
}

input[type='email']::placeholder {
  color: var(--text-muted);
}

button[type='submit'] {
  flex-shrink: 0;
  padding: 0.875rem 1.4rem;
  background: var(--accent);
  border: none;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
  /* Slight left border to visually separate from input */
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

button[type='submit']:hover {
  background: var(--accent-hover);
}

button[type='submit']:active {
  background: var(--accent-active);
}

button[type='submit']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form status message */
.form-msg {
  min-height: 1.3rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.form-msg.success {
  color: #7fc98b;
}

.form-msg.error {
  color: #e07a7a;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: rgba(245, 240, 232, 0.72);
}

/* Mobile */
@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
    border-radius: 9px;
  }

  input[type='email'] {
    border-bottom: 1px solid var(--border);
  }

  button[type='submit'] {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    width: 100%;
    padding: 0.9rem 1.1rem;
  }

  .logo {
    height: 100px;
  }

  main {
    padding-top: 3rem;
  }
}
