:root {
  --bg-top: #0e2a16;
  --bg-bottom: #06140a;
  --green: #2fbe5c;
  --green-soft: rgba(47, 190, 92, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.12);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      120% 90% at 50% 0%,
      var(--bg-top) 0%,
      var(--bg-bottom) 62%
    ),
    var(--bg-bottom);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}

/* Soft green glow behind the hero. */
.glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--green-soft) 0%, transparent 62%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

.stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo svg {
  width: clamp(180px, 46vw, 280px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
}

.tagline {
  font-size: clamp(1.5rem, 5.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.subline {
  font-size: clamp(0.98rem, 3.6vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(47, 190, 92, 0.4);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: default;
}

.cta .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 190, 92, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 190, 92, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(47, 190, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 190, 92, 0);
  }
}

.footer {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer a,
.linklike {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover,
.linklike:hover {
  color: var(--text);
}

/* Button styled to look like a footer text link. */
.linklike {
  font: inherit;
  font-size: 0.82rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.footer .sep {
  opacity: 0.5;
}

.footer .copy {
  color: rgba(255, 255, 255, 0.4);
}

/* Support form modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #0c1f12;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-sub {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

#supportForm {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#supportForm textarea,
#supportForm input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}

#supportForm textarea::placeholder,
#supportForm input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#supportForm textarea:focus,
#supportForm input:focus {
  outline: none;
  border-color: rgba(47, 190, 92, 0.6);
}

/* Honeypot — visually hidden, off-screen, not announced. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.modal-send {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #06140a;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.modal-send:hover {
  opacity: 0.9;
}

.modal-send:disabled {
  opacity: 0.55;
  cursor: default;
}

.modal-status {
  min-height: 1em;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-status.ok {
  color: var(--green);
}

.modal-status.err {
  color: #ff6b6b;
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .stack,
  .cta .dot,
  .modal-card {
    animation: none;
  }
}
