/* Landing page: hero, signup, features, up-next, scroll cue. Shared shell lives in ../base.css */

html, body { height: 100%; }

.page {
  position: relative;
  min-height: 100vh;
  background: #6f55e0 url("../../assets/bg.jpg") 0% 0% / cover no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

nav, .hero, .features, .up-next, .scroll-cue { position: relative; z-index: 1; }

/* ---- Decorative scrim: purple wash, strongest at left edge & bottom-left where text lives ---- */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(101, 74, 222, 0.62) 0%, rgba(101, 74, 222, 0.34) 40%, rgba(101, 74, 222, 0) 68%),
    linear-gradient(90deg, rgba(101, 74, 222, 0.72) 0%, rgba(101, 74, 222, 0.52) 25%, rgba(101, 74, 222, 0.24) 50%, rgba(101, 74, 222, 0) 72%),
    linear-gradient(0deg, rgba(101, 74, 222, 0.55) 0%, rgba(101, 74, 222, 0.28) 20%, rgba(101, 74, 222, 0) 42%);
}

.nav-links a:hover { text-decoration: underline; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.theme-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.3rem;
  border: 1px solid rgba(236, 229, 211, 0.8);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

/* Rocker switch: knob highlights the active side, icons color-invert off it */
.theme-toggle .side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
}

.theme-toggle .knob {
  position: absolute;
  z-index: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  background: var(--cream);
  border-radius: 999px;
  transition: transform 0.25s ease;
}

/* Day: knob (white) sits left over the sun; moon floats inverted */
.theme-toggle .side-sun { color: var(--ink); }
.theme-toggle .side-moon { color: var(--cream); }

body.night .theme-toggle .knob { transform: translateX(100%); }
body.night .theme-toggle .side-sun { color: var(--cream); }
body.night .theme-toggle .side-moon { color: var(--ink); }

/* ---- Hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.3rem 3rem 1rem 5.6rem;
  max-width: 900px;
}

h1 {
  font-size: clamp(5rem, 10.8vw, 10.2rem);
}

.hero p {
  margin-top: 1.5rem;
  max-width: 32rem;
}

.signup {
  margin-top: 1.7rem;
  position: relative;
  width: fit-content;
}

.signup-field {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid rgba(242, 235, 216, 0.9);
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 1.4rem;
  width: min(27rem, 100%);
}

.signup-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--cream);
}

.signup-field input::placeholder {
  color: rgba(244, 238, 222, 0.95);
  text-shadow: 0 1px 8px rgba(42, 34, 51, 0.55);
}

.signup-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  color: #4c3ac9;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.signup-btn:hover { background: var(--purple-deep); color: var(--cream); }

.its-free {
  position: absolute;
  left: 1.2rem;
  bottom: -2.9rem;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #f4eede;
  text-shadow:
    0 0 2px rgba(42, 34, 51, 0.8),
    0 1px 6px rgba(42, 34, 51, 0.75),
    0 2px 14px rgba(42, 34, 51, 0.6);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transform: rotate(-6deg);
}

.its-free svg {
  filter: drop-shadow(0 1px 5px rgba(42, 34, 51, 0.75));
  stroke-width: 2.4;
}

/* ---- Feature row ---- */
.features {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0 3rem 4.2rem 5.6rem;
  max-width: 900px;
}

.feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: #f4eede;
  flex: 1;
  text-shadow:
    0 1px 3px rgba(42, 34, 51, 0.5),
    0 1px 8px rgba(42, 34, 51, 0.55);
}

.feature + .feature {
  border-left: 1px solid rgba(236, 229, 211, 0.45);
  padding-left: 2.6rem;
}

.feature svg { flex-shrink: 0; margin-top: 0.2rem; }

.feature h3 { font-size: 1rem; font-weight: 700; }

.feature p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(244, 238, 222, 0.95);
  margin-top: 0.3rem;
  max-width: 11rem;
}

/* ---- Up Next card ---- */
.up-next {
  position: absolute;
  right: 4.8rem;
  bottom: 4rem;
  width: 215px;
  background: #8465ea;
  border: 1px solid rgba(42, 34, 51, 0.25);
  border-radius: 1.2rem;
  padding: 1.45rem 1.3rem;
  box-shadow: 0 14px 34px rgba(42, 34, 51, 0.35);
  color: var(--cream);
}

.up-next .eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(236, 229, 211, 0.8);
}

.up-next h3 {
  font-family: "Anton", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.45rem;
  line-height: 1;
}

.up-next .date { font-size: 0.78rem; margin-top: 0.4rem; }

.attendees {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.avatars { display: flex; }

.avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 2px solid #8465ea;
  background-size: cover;
  display: flex;
}

.avatar + .avatar { margin-left: -0.45rem; }

.attendees .more {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  border: 1px solid rgba(236, 229, 211, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.view-invite {
  margin-top: 1.1rem;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--cream);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.view-invite:hover { background: #fff; }

/* ---- Scroll cue ---- */
.scroll-cue {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  filter: drop-shadow(0 1px 6px rgba(42, 34, 51, 0.6));
  z-index: 5;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---- Night theme: same background image, multiplied by deep indigo ---- */
body.night .page {
  background:
    linear-gradient(180deg,
      rgba(10, 8, 36, 0.60) 0%,
      rgba(10, 8, 36, 0.30) 35%,
      rgba(6, 5, 26, 0.35) 70%,
      rgba(4, 3, 18, 0.55) 100%),
    radial-gradient(90% 70% at 46% 42%,
      rgba(20, 16, 60, 0.00) 0%,
      rgba(20, 16, 60, 0.38) 62%,
      rgba(8, 6, 30, 0.45) 100%),
    #44378c url("../../assets/bg.jpg")
      0% 0% / cover no-repeat;
  background-blend-mode: normal, normal, multiply;
}

body.night .page::before {
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(23, 16, 64, 0.72) 0%, rgba(23, 16, 64, 0.42) 40%, rgba(23, 16, 64, 0) 68%),
    linear-gradient(90deg, rgba(23, 16, 64, 0.80) 0%, rgba(23, 16, 64, 0.58) 25%, rgba(23, 16, 64, 0.26) 50%, rgba(23, 16, 64, 0) 72%),
    linear-gradient(0deg, rgba(23, 16, 64, 0.62) 0%, rgba(23, 16, 64, 0.32) 20%, rgba(23, 16, 64, 0) 42%);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .up-next { position: static; margin: 0 3rem 2rem auto; }
  .hero, .features { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  .hero, .features { padding-left: 1.5rem; padding-right: 1.5rem; }
  .features { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .feature + .feature { border-left: none; padding-left: 0; }
  .up-next { margin: 0 1.5rem 2rem auto; }
  .its-free { display: none; }
}
