/* Landing page styles inspired by slide.html palette */
:root {
  --primary-color: #3e705d;
  --secondary-color: #4dfa9c;
  --accent-color: #cb496e;
  --dark-color: #2C3E50;
  --light-color: #F8F8F8;
  --bg-start: #14302a;
  --bg-mid: #081a1e;
  --bg-end: #000000;
  --muted: rgba(248,248,248,0.7);
  --card: rgba(255,255,255,0.03);
  --ring: rgba(203,73,110,0.16);
  --max-width: 960px;
}

/* Basic reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Raleway', 'Work Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--light-color);
  background: radial-gradient(circle at 75% 5%, var(--bg-start) 0%, var(--bg-mid) 25%, #051015 50%, #020a0f 75%, var(--bg-end) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Page container */
.landing {
  width: 100%;
  max-width: var(--max-width);
  padding: 4rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 540px;
  max-width: 72%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
  transition: transform 220ms ease, filter 220ms ease;
  border-radius: 0;
  background: none;
  padding: 0;
  display: block;
  align-self: center;
  margin-bottom: 3rem;
  order: 0;
}

.logo:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 18px 32px rgba(0,0,0,0.7)); }

.title {
  margin: 0;
  margin-top: 0;
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.05;
  color: rgba(248,248,248,0.65);
  letter-spacing: -0.2px;
  order: 3;
}

.title .accent { color: var(--accent-color); font-weight: 500; }

.subtitle {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 300;
  color: var(--light-color);
  letter-spacing: -0.6px;
  line-height: 1.05;
  order: 1;
}
.lead {
  margin: 0;
  color: rgba(248,248,248,0.72);
  font-size: 2rem;
  line-height: 1.05;
  max-width: 56ch;
  text-align: center;
  order: 2;
}

/* Signup card */
.signup {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* Inline form */
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.inline-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--light-color);
  outline: none;
  font-size: 0.98rem;
}

.inline-form input::placeholder { color: rgba(248,248,248,0.5); }

.inline-form input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 6px rgba(77,218,156,0.06);
}

.inline-form button {
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, var(--accent-color), #b53a5d);
  color: var(--dark-color);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.inline-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(203,73,110,0.18); }
.inline-form button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* Status & footer */
.status { margin-top: 0.6rem; min-height: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.footer { margin-top: 1.5rem; text-align: center; color: rgba(248,248,248,0.65); font-size: 0.95rem; }
.footer a { color: var(--muted); text-decoration: underline; opacity: 0.85; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .landing { padding: 2rem 1rem; gap: 1.25rem; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form button { width: 100%; }
  .logo { width: 320px; max-width: 72vw; }
  .title { font-size: clamp(0.95rem, 3vw + 0.4rem, 1.2rem); }
  .subtitle { font-size: clamp(1.25rem, 5vw + 0.5rem, 1.8rem); }
}

/* Subtle decorative glow (inspired by slide example) */
.glow {
  pointer-events: none;
  position: absolute;
  width: 420px;
  height: 420px;
  left: 60%;
  top: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(77,218,156,0.12), transparent 35%),
              radial-gradient(circle at 70% 70%, rgba(203,73,110,0.06), transparent 40%);
  filter: blur(30px);
  transform: translateX(-50%);
  z-index: 0;
  mix-blend-mode: screen;
}

/* Particles canvas sits behind content */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Keep content above decorative elements */
.landing > * { position: relative; z-index: 1; }

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