/* beacon.energy — holding page
   Faithful port of the design reference. Flat, dark, lit only by a soft glow. */

:root {
  --navy: #0b1e3a;
  --navy-deep: #081428;
  --teal: #0f5e7a;
  --teal-bright: #2a93b8;
  --orange: #ed7d31;
  --orange-soft: #f0935a;
  --ink: #fff;
  --muted: rgba(233, 240, 250, 0.62);
  --muted-2: rgba(233, 240, 250, 0.4);
  --hairline: rgba(233, 240, 250, 0.14);
  --wordmark: "Poppins", system-ui, sans-serif;
  --ui: "Plus Jakarta Sans", system-ui, sans-serif;
  /* one knob drives the whole lockup size, responsively */
  --mark-h: clamp(58px, 8.2vw, 82px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--ui);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* faint engineering grid — a quiet nod to "grid connections" */
.grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 42%, #000 0%, transparent 75%);
  mask-image: radial-gradient(120% 100% at 50% 42%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* the beacon's light — a soft glow that breathes */
.aura {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(760px, 120vw);
  height: min(760px, 120vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(237, 125, 49, 0.16) 0%,
    rgba(237, 125, 49, 0.06) 32%,
    rgba(15, 94, 122, 0.05) 55%,
    transparent 72%
  );
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: aura 7.2s ease-in-out infinite;
}
@keyframes aura {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.98);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: clamp(28px, 6vw, 64px);
  width: 100%;
}

/* ── brand lockup ───────────────────────────────── */
.lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--mark-h) * 0.34);
  margin-bottom: clamp(26px, 4vw, 42px);
}
.mark {
  display: block;
  height: var(--mark-h);
  width: auto;
  overflow: visible;
}
.tri.teal {
  fill: var(--teal);
}
.tri.orange {
  fill: var(--orange);
}
.word {
  font-family: var(--wordmark);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 0.9;
  font-size: calc(var(--mark-h) * 1.18);
  margin: 0;
}

/* orange flame: lifts fully clear of the teal, turns 120°, settles.
   The equilateral form makes 0° and 120° identical — seamless loop. */
.flame {
  transform-box: view-box;
  transform-origin: 159px 27.7px;
  animation: flame 7.2s cubic-bezier(0.65, 0, 0.35, 1) infinite,
    flameGlow 7.2s ease-in-out infinite;
}
@keyframes flame {
  0%,
  46% {
    transform: translateY(0) rotate(0deg);
  }
  60% {
    transform: translateY(-38px) rotate(0deg);
  } /* lift clear */
  78% {
    transform: translateY(-38px) rotate(120deg);
  } /* turn while lifted */
  92%,
  100% {
    transform: translateY(0) rotate(120deg);
  } /* settle back into notch */
}
@keyframes flameGlow {
  0%,
  46%,
  100% {
    filter: drop-shadow(0 0 0 rgba(237, 125, 49, 0));
  }
  68% {
    filter: drop-shadow(0 1px 12px rgba(237, 125, 49, 0.6));
  }
}

/* ── tagline ────────────────────────────────────── */
.tag {
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0 0 clamp(30px, 4.5vw, 48px);
  font-size: clamp(22px, 3.4vw, 34px);
  max-width: 18ch;
  text-wrap: balance;
}
.tag b {
  font-weight: 600;
}

/* ── email signup ───────────────────────────────── */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: min(420px, 100%);
}
.signup-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
}
.mailto {
  color: var(--teal-bright);
}
form {
  width: 100%;
}
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.field:focus-within {
  border-color: rgba(42, 147, 184, 0.7);
  background: rgba(255, 255, 255, 0.07);
}
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 450;
  height: 40px;
}
.field input::placeholder {
  color: var(--muted-2);
}
.btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #1a1208;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
.btn:hover {
  background: var(--orange-soft);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.error {
  font-size: 12.5px;
  color: var(--orange-soft);
  min-height: 16px;
  align-self: flex-start;
  padding-left: 4px;
}

.success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  animation: fade 0.5s ease both;
}
.success .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(42, 147, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0 clamp(20px, 4vw, 30px);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

@media (prefers-reduced-motion: reduce) {
  .flame,
  .aura {
    animation: none !important;
  }
}

/* small screens: stack the field so the button is full-width & tappable */
@media (max-width: 420px) {
  .lockup {
    gap: calc(var(--mark-h) * 0.28);
  }
  .field {
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 14px;
  }
  .field input {
    width: 100%;
    flex: 1 1 100%;
    height: 38px;
    padding: 0 8px;
  }
  .btn {
    flex: 1 1 100%;
    width: 100%;
    height: 44px;
  }
}
