/* Signal Forge landing — signalforge.click */

:root {
  --bg: #06080f;
  --bg-elevated: rgba(15, 20, 32, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #06b6d4;
  --success: #34d399;
  --error: #f87171;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(249, 115, 22, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand strong {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 0%, #fbbf24 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.subscribe-card {
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
}

.subscribe-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.subscribe-card p.sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  #waitlist-form {
    flex-direction: row;
  }
}

#waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#waitlist-form input[type="email"]:focus {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

#waitlist-form button {
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #0a0e17;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}

#waitlist-form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

#waitlist-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-msg {
  min-height: 1.25rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-msg.ok {
  color: var(--success);
}

.form-msg.err {
  color: var(--error);
}

.form-legal {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.about-blurb {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.55);
  margin-bottom: 1.5rem;
}

.about-blurb h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--accent-2);
  font-weight: 600;
}

.about-blurb p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.about-blurb p:last-child {
  margin-bottom: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}

.legal-sep {
  color: var(--border);
  user-select: none;
}

.legal-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--accent-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(6, 182, 212, 0.45);
}

.legal-link:hover {
  color: #67e8f9;
  text-decoration-color: currentColor;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-root[hidden] {
  display: none;
}

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

.modal {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(85vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0c1019;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  animation: modal-in 0.22s ease-out;
}

.modal[hidden] {
  display: none;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-2);
  font-weight: 600;
  line-height: 1.35;
  padding-right: 0.5rem;
}

.modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: rgba(148, 163, 184, 0.22);
  color: var(--text);
}

.modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.modal-body p {
  margin: 0 0 0.75rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.modal-body li + li {
  margin-top: 0.35rem;
}

.modal-body a {
  color: var(--accent-2);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

footer a {
  color: var(--accent-2);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
