/* ---------- Base ---------- */
:root {
  --bg: #fdfdfd;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #f97362;
  --accent-soft: rgba(249, 115, 98, 0.1);
  --border: #e5e7eb;
  --radius-lg: 999px;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.1);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f9fafb 40%, #f3f4f6 100%);
  color: var(--text);
  min-height: 100vh;
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 40px 40px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #fb923c);
  box-shadow: 0 8px 16px rgba(248, 113, 113, 0.55);
}

.beta-pill {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.beta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.bulb-explosion {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 400px; /* slightly taller so bulbs can rise more */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.idea-box {
  position: absolute;
  bottom: 16px;
  width: 140px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.idea-box::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 18px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.6);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(229, 231, 235, 0.9);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-eyebrow span {
  font-weight: 500;
  color: var(--accent);
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ---------- Email CTA ---------- */
.cta-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cta-card label {
  display: none;
}

.cta-input {
  border: none;
  outline: none;
  padding: 10px 8px;
  font-size: 14px;
  min-width: min(260px, 70vw);
  background: transparent;
}

.cta-input::placeholder {
  color: #9ca3af;
}

.cta-button {
  border: none;
  outline: none;
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  background: radial-gradient(circle at 30% 0, #fed7aa, #fb7185);
  color: #fff;
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 113, 113, 0.7);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.5);
}

.cta-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Lightbulbs (floating + glowing) ---------- */
.bulb {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-origin: center;

  /* warm yellow/white bulb shell */
  background: radial-gradient(circle at 30% 20%, #fff9c4, #ffd54f);
  box-shadow: 0 8px 24px rgba(255, 215, 100, 0.35);
  opacity: 0.65;

  animation: glow 3s ease-in-out infinite;
}

.bulb::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 24px;
  height: 18px;
  border-radius: 8px;
  background: #e5e7eb;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.7);
}

.bulb-inner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 15%, #fffde7, #ffecb3);
  box-shadow: 0 0 14px rgba(255,223,120,0.6);
  opacity: 0.6;
  animation: glow-core 3s ease-in-out infinite;
}



.bulb--burst-1 {
  bottom: 74px;
  left: 18%;
  animation: glow 3s ease-in-out infinite, burst-left 3.1s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bulb--burst-2 {
  bottom: 96px;
  right: 16%;
  animation: glow 3s ease-in-out infinite, burst-right 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bulb--burst-3 {
  bottom: 150px;
  left: 50%;
  animation: glow 3s ease-in-out infinite, burst-up 3.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bulb--burst-4 {
  bottom: 120px;
  left: 32%;
  animation: glow 3s ease-in-out infinite, burst-up-left 3.3s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bulb--burst-5 {
  bottom: 132px;
  right: 30%;
  animation: glow 3s ease-in-out infinite, burst-up-right 3.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

/* spark trails for burst bulbs */
.bulb--burst-1::before,
.bulb--burst-2::before,
.bulb--burst-3::before,
.bulb--burst-4::before,
.bulb--burst-5::before {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, 0) scaleY(0);
  transform-origin: center bottom;
  width: 6px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 248, 210, 0.9), rgba(255, 215, 120, 0.2) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: spark-trail 3.4s ease-out infinite;
}

/* float motion */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-4px) translateX(3px);
  }
  50% {
    transform: translateY(3px) translateX(-2px);
  }
  75% {
    transform: translateY(-2px) translateX(1px);
  }
}

@keyframes burst-up {
  0%   { transform: translate(0, 10px) scale(0.5); }
  55%  { transform: translate(0, -260px) scale(1.05); }
  100% { transform: translate(0, -230px) scale(0.92); }
}

@keyframes burst-left {
  0%   { transform: translate(10px, 5px) scale(0.45); }
  55%  { transform: translate(-110px, -240px) scale(1.06); }
  100% { transform: translate(-85px, -210px) scale(0.92); }
}

@keyframes burst-right {
  0%   { transform: translate(-10px, 10px) scale(0.45); }
  55%  { transform: translate(110px, -240px) scale(1.08); }
  100% { transform: translate(85px, -210px) scale(0.92); }
}

@keyframes burst-up-left {
  0%   { transform: translate(0, 0) scale(0.5); }
  55%  { transform: translate(-90px, -260px) scale(1.06); }
  100% { transform: translate(-70px, -225px) scale(0.92); }
}

@keyframes burst-up-right {
  0%   { transform: translate(0, 0) scale(0.5); }
  55%  { transform: translate(90px, -260px) scale(1.06); }
  100% { transform: translate(70px, -225px) scale(0.92); }
}

@keyframes spark-trail {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scaleY(0.1);
    filter: blur(2px);
  }
  25% {
    opacity: 0.9;
    transform: translate(-50%, -10px) scaleY(1);
    filter: blur(1px);
  }
  60% {
    opacity: 0.4;
    transform: translate(-50%, -26px) scaleY(0.9);
    filter: blur(1.5px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -40px) scaleY(0.3);
    filter: blur(3px);
  }
}

/* outer glow: dim -> lit loop */
@keyframes glow {
  0% {
    opacity: 0.15;
    box-shadow: 0 4px 10px rgba(255, 215, 100, 0.15);
    filter: brightness(0.55);
  }
  50% {
    opacity: 1;
    box-shadow: 0 22px 60px rgba(255, 230, 140, 0.95);
    filter: brightness(1.25);
  }
  100% {
    opacity: 0.3;
    box-shadow: 0 12px 26px rgba(255, 215, 100, 0.25);
    filter: brightness(0.85);
  }
}

/* inner core pulse */
@keyframes glow-core {
  0% {
    opacity: 0.2;
    box-shadow: 0 0 4px rgba(255,223,140,0.25);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 40px rgba(255,240,180,1);
  }
  100% {
    opacity: 0.35;
    box-shadow: 0 0 10px rgba(255,220,130,0.4);
  }
}

@keyframes drift-random {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(6px, -4px) scale(1.03); }
  50%  { transform: translate(-5px, 5px) scale(0.97); }
  75%  { transform: translate(4px, 3px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ---------- Footer ---------- */
footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  header {
    margin-bottom: 24px;
  }

  .beta-pill {
    display: none;
  }

  .page {
    padding-inline: 16px;
  }

  .cta-card {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-input {
    min-width: 0;
    width: 100%;
    border-radius: 999px;
    padding-inline: 12px;
    background: #f9fafb;
  }

  .cta-button {
    justify-content: center;
    width: 100%;
  }

  .bulb {
    opacity: 0.55;
    width: 52px;
    height: 52px;
  }
}

/* Edge bulb positioning */
.bulb--edge-1 {
  top: 6%;
  left: 4%;
  animation-delay: -1.2s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}

.bulb--edge-2 {
  top: 10%;
  right: 5%;
  animation-delay: -0.8s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}

.bulb--edge-3 {
  bottom: 12%;
  left: 6%;
  animation-delay: -2s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}

.bulb--edge-4 {
  bottom: 8%;
  right: 8%;
  animation-delay: -1.6s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}

.bulb--edge-5 {
  top: 45%;
  left: -10px;
  animation-delay: -0.4s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}

.bulb--edge-6 {
  top: 52%;
  right: -12px;
  animation-delay: -1.1s;
  animation: float 8s ease-in-out infinite, glow 3s ease-in-out infinite, drift-random 6s ease-in-out infinite;
}