:root {
  --bg: #0a0a1a;
  --purple: #6d28d9;
  --purple-mid: #8b5cf6;
  --purple-light: #ede9fe;
  --purple-light-2: #c4b5fd;
  --teal: #4ecca3;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --counter-pulse-duration: 0.7s;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: var(--purple-mid);
}
#starfield {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg);
}
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 28px;
}
.hero-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.wordmark {
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple-light-2);
  margin-bottom: 18px;
  padding-left: 4px;
}
.tm {
  font-size: 0.4em;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--text-secondary);
}
.headline {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}
.subheadline {
  font-size: clamp(15px, 4vw, 17px);
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.supporting {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
}
.signup-form {
  margin-bottom: 14px;
}
.input-row {
  display: flex;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#email-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
}
#email-input::placeholder {
  color: var(--text-secondary);
}
#submit-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple));
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
#submit-btn:active {
  transform: scale(0.97);
}
#submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-message {
  min-height: 18px;
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-secondary);
}
.form-message.error {
  color: #ff6b8a;
}
.form-message.success {
  color: var(--teal);
}
.counter {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px;
}
.counter:before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
.counter.counter-pulse {
  animation: counter-pulse-scale var(--counter-pulse-duration) ease;
}
.counter.counter-pulse:before {
  animation: counter-pulse-glow var(--counter-pulse-duration) ease;
}
@keyframes counter-pulse-scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes counter-pulse-glow {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
  to {
    opacity: 0;
    transform: scale(1.3);
  }
}
.counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  flex-shrink: 0;
}
#counter-text strong {
  color: var(--text-primary);
}
@media (max-height: 700px) {
  .wordmark {
    margin-bottom: 10px;
  }
  .headline {
    margin-bottom: 8px;
  }
  .subheadline {
    margin-bottom: 6px;
  }
  .supporting {
    margin-bottom: 14px;
    font-size: 12px;
  }
  .hero {
    padding-top: 12px;
    padding-bottom: 16px;
  }
}
section:not(.hero) {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
}
section h2 {
  text-align: center;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  margin-bottom: 32px;
}
.phone-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.phone-frame {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%);
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff26;
}
.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.phone-glyph {
  font-size: 40px;
  color: var(--purple-mid);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.phone-caption {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.screenshots-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 20px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.why-glyph {
  display: block;
  font-size: 26px;
  color: var(--purple-mid);
  margin-bottom: 10px;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.invite {
  text-align: center;
}
.invite-copy {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.invite-locked,
.invite-unlocked {
  max-width: 420px;
  margin: 0 auto;
}
.referral-panel-mount:not(:empty) {
  margin-top: 14px;
  margin-bottom: 14px;
}
.invite-locked p {
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}
.invite-link-row {
  display: flex;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.referral-link-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
}
.copy-link-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple));
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.invite-count {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.invite-count strong {
  color: var(--teal);
}
.hidden {
  display: none !important;
}
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 20px 40px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.footer-wordmark {
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-fine {
  font-size: 12px;
  color: var(--text-secondary);
}
@media (min-width: 720px) {
  .phone-row {
    flex-direction: row;
    justify-content: center;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
