:root {
  --bg: #08090c;
  --bg-elevated: #111319;
  --border: #22252d;
  --text: #f4f4f6;
  --text-dim: #9a9ca6;
  --accent: #6d5efc;
  --accent-bright: #8b7bff;
  --accent-text: #0a0a0d;
  --radius: 14px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --border: #e6e6ea;
    --text: #121218;
    --text-dim: #63656f;
    --accent: #5b4bf0;
    --accent-bright: #4a3ae0;
    --accent-text: #ffffff;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; }

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(109,94,252,0.25) 0%, rgba(109,94,252,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

main { position: relative; z-index: 1; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 110px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  background: var(--bg-elevated);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 560px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.form-message.error {
  color: #ff6b6b;
}

.social-proof {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

#waitlist-count, #waitlist-count-footer {
  font-weight: 700;
  color: var(--text);
}

.features, .how, .faq {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.features h2, .how h2, .faq h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0 0 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.demo-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 64px;
  font-size: 1.05rem;
}

.workflow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 4px 12px;
}

.workflow-step {
  flex: 0 0 128px;
  width: 128px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.workflow-step.in-view {
  opacity: 1;
  transform: translateY(0);
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 0 0 rgba(109, 94, 252, 0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.workflow-step.in-view .step-icon-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.workflow-step h3 {
  font-size: 0.92rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.workflow-step p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.workflow-connector {
  flex: 1 1 40px;
  min-width: 24px;
  max-width: 64px;
  height: 56px;
  align-self: flex-start;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.workflow-connector.in-view {
  opacity: 1;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.connector-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: flow-horizontal 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

@keyframes flow-horizontal {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes flow-vertical {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .connector-dot {
    animation: none;
    opacity: 0.9;
    left: 50%;
    top: 50%;
  }
}

.demo-cta {
  text-align: center;
  margin-top: 64px;
}

.demo-cta p {
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .workflow {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
  }

  .workflow-step {
    width: 100%;
    max-width: 260px;
    flex: none;
  }

  .workflow-connector {
    width: 56px;
    height: 36px;
    flex: none;
    align-self: center;
    justify-content: center;
  }

  .connector-line {
    width: 2px;
    height: 100%;
    margin: 0 auto;
  }

  .connector-dot {
    left: 50%;
    top: 0%;
    animation-name: flow-vertical;
  }
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  float: right;
  color: var(--text-dim);
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 14px 0 2px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cta {
  padding: 100px 0 110px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cta-inner > p {
  color: var(--text-dim);
  margin: 0 0 32px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}
