/* 0xWills — shared theme + waitlist modal */

html[data-theme="light"] {
  color-scheme: light;
  --black: #f4f6fb;
  --deep: #e8edf5;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --accent: #00a876;
  --accent2: #0077cc;
  --text: #141824;
  --muted: #5c6378;
  --danger: #d93658;
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 168, 118, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 118, 0.07) 1px, transparent 1px);
}

html[data-theme="light"] nav {
  background: rgba(244, 246, 251, 0.92) !important;
}

html[data-theme="light"] .hero-tag,
html[data-theme="light"] .nav-badge {
  background: rgba(0, 168, 118, 0.08);
}

html[data-theme="light"] .orb {
  opacity: 0.35;
}

html[data-theme="light"] .code-window,
html[data-theme="light"] .tech-card,
html[data-theme="light"] .how-card,
html[data-theme="light"] .roadmap-item,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .post-card,
html[data-theme="light"] .founder-card,
html[data-theme="light"] .highlight-box,
html[data-theme="light"] .callout,
html[data-theme="light"] .cta-box,
html[data-theme="light"] .waitlist-form,
html[data-theme="light"] .waitlist-modal-dialog {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .waitlist-form button,
html[data-theme="light"] .cta-btn,
html[data-theme="light"] .waitlist-modal-form button {
  color: #ffffff;
}

html[data-theme="light"] .cursor,
html[data-theme="light"] .cursor-ring {
  mix-blend-mode: normal;
}

.theme-toggle {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.35);
}

html[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(0, 168, 118, 0.35);
}

body.waitlist-open {
  overflow: hidden;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.waitlist-modal.is-open {
  display: flex;
}

.waitlist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 15, 0.72);
  backdrop-filter: blur(6px);
}

html[data-theme="light"] .waitlist-modal-backdrop {
  background: rgba(20, 24, 36, 0.45);
}

.waitlist-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 24px;
}

.waitlist-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.waitlist-modal-close:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.35);
}

.waitlist-modal-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.waitlist-modal-dialog h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.waitlist-modal-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.waitlist-modal-lead strong {
  color: var(--text);
}

.waitlist-modal-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--deep);
}

.waitlist-modal-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
}

.waitlist-modal-form input::placeholder {
  color: var(--muted);
}

.waitlist-modal-form button {
  border: none;
  background: var(--accent);
  color: var(--black);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist-modal-form button:hover {
  filter: brightness(1.05);
}

.waitlist-modal-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.waitlist-modal-success {
  padding: 14px 16px;
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 8px;
  background: rgba(0, 229, 160, 0.08);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
}

.waitlist-modal-note {
  margin-top: 12px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .waitlist-modal-form {
    flex-direction: column;
  }

  .waitlist-modal-form input {
    font-size: 16px;
  }

  .waitlist-modal-form button {
    width: 100%;
  }
}
