/* Reelisma — landing page styles */

:root {
  --bg: #0a0710;
  --bg-2: #12121d;
  --ink: #e8e8f0;
  --ink-dim: #9a9ab0;
  --pink: #ff4d8d;
  --purple: #a855f7;
  --orange: #ff7a59;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* --- atmosphere: "projector room" background --------------------------- */
/* Only the dust motes are random; everything else is still or moves
   slowly on purpose (see design review). */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* L1 — ambient wash (static) */
.aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 22% 8%, rgba(139, 61, 240, 0.16), transparent 65%),
    radial-gradient(ellipse 65% 50% at 82% 92%, rgba(232, 67, 147, 0.10), transparent 62%);
}

/* L2 — projector beam: the one moving layer. Centered via margin, NOT
   translateX — transform is reserved for the sway rotation. */
.beam {
  position: absolute;
  top: -10vh;
  left: 50%;
  width: 140vmax;
  height: 130vh;
  margin-left: -70vmax;
  transform-origin: 50% 0;
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 41%,
    rgba(196, 160, 255, 0.045) 47%,
    rgba(232, 190, 255, 0.075) 50%,
    rgba(196, 160, 255, 0.045) 53%,
    transparent 59%
  );
  animation: sway 64s ease-in-out infinite;
}
@keyframes sway {
  0%   { transform: rotate(-2.5deg); }
  50%  { transform: rotate(2.5deg); }
  100% { transform: rotate(-2.5deg); }
}

/* L3 — dust motes (canvas, driven by /js/bg.js) */
#dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* L4 — film grain (static; also prevents banding in dark gradients) */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* L5 — vignette (static) */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 75% at 50% 42%, transparent 55%, rgba(5, 3, 10, 0.75) 100%);
}

/* --- layout ------------------------------------------------------------ */

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
}

/* Dark-text logo on a dark page: invert lightness, restore hue. */
.logo {
  height: 120px;
  margin: -34px 0 -34px -28px;
  filter: invert(1) hue-rotate(180deg) saturate(1.4);
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  flex: 1;
  padding: 6vh 0 8vh;
  text-align: center;
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
}

.accent {
  background: linear-gradient(100deg, var(--purple), var(--pink) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  color: var(--ink-dim);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto 3rem;
}

/* --- signup card --------------------------------------------------------- */

.card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem clamp(1.2rem, 4vw, 2.2rem);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.card h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.card-sub {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.field { display: block; margin-bottom: 1.1rem; }

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}
.field-label em { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field-label .req { color: #ff7a8d; }
.field-label .optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.7; }

.char-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.char-count-icon { display: none; }
.char-count.over { color: #ff7a8d; }
.char-count.over .char-count-icon { display: inline-block; }

input[type="email"],
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}
::placeholder { color: rgba(154, 154, 176, 0.55); }

button[type="submit"] {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font: 600 1rem "Inter", sans-serif;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(100deg, var(--purple), var(--pink) 60%, var(--orange));
  background-size: 160% 100%;
  transition: background-position 0.35s, transform 0.15s, box-shadow 0.25s;
}
button[type="submit"]:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 77, 141, 0.35);
}
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-msg {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-msg.ok { color: #6ee7a8; }
.form-msg.err { color: #ff7a8d; }

/* --- footer ---------------------------------------------------------------- */

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .logo { height: 92px; margin: -26px 0 -26px -20px; }
  .hero { padding-top: 3vh; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker { animation: none; }
  .beam { animation: none; transform: rotate(0deg); }
  #dust { display: none; }
}
