* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d0d14;
  --surface: #13131e;
  --border: #1e1e30;
  --text: #ffffff;
  --dim: #ffffff;
  --accent: #5b7cf6;
  --green: #4ec9a0;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 124, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 124, 246, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 124, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Nav + step indicator ── */
.flow-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.step-indicator__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.step-indicator__item:hover {
  border-color: rgba(91, 124, 246, 0.45);
}

.step-indicator__item.is-active {
  border-color: var(--accent);
  background: rgba(91, 124, 246, 0.1);
}

.step-indicator__item.is-done {
  border-color: rgba(78, 201, 160, 0.35);
}

.step-indicator__num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.step-indicator__item.is-done .step-indicator__num {
  color: var(--green);
}

.step-indicator__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dim);
}

.step-indicator__item.is-active .step-indicator__label {
  color: var(--text);
}

/* ── Horizontal scroll-snap viewport ── */
.flow-viewport {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100vh;
  padding-top: var(--nav-h);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.flow-step {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: calc(100vh - var(--nav-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
  overflow-x: hidden;
}

.flow-step__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  text-align: center;
}

.flow-step__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 48px);
}

/* ── Typography ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub,
.step-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
}

/* ── Video trigger + modal ── */
.video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -12px auto 24px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.video-trigger:hover {
  border-color: rgba(91, 124, 246, 0.5);
  background: rgba(91, 124, 246, 0.06);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.video-modal__close:hover {
  border-color: var(--accent);
}

.video-modal__player {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.step-title {
  font-family: var(--mono);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-hint,
.step-note {
  font-family: var(--mono);
  font-size: 11px;
  color: #aaaaaa;
  line-height: 1.55;
  margin: 16px 0;
}

.step-note a {
  color: var(--green);
  text-decoration: none;
}

.step-note a:hover {
  text-decoration: underline;
}

/* ── Compare strip ── */
.compare-strip {
  list-style: none;
  text-align: left;
  margin: 28px auto 28px;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.65;
  color: #aaaaaa;
}

.compare-strip li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.compare-strip li:last-child {
  border-bottom: none;
}

.compare-strip__cepho {
  color: var(--green);
  margin-top: 4px;
}

/* ── FAQ accordion ── */
.faq {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 440px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  font-size: 14px;
  line-height: 1.65;
  color: #aaaaaa;
  padding-bottom: 14px;
}

/* ── Waitlist form (from waitlist.html) ── */
.signup-block {
  margin-bottom: 8px;
}

.waitlist-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 16px;
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--accent);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
}

.waitlist-input::placeholder {
  color: #aaaaaa;
}

.waitlist-btn {
  background: var(--accent);
  border: none;
  padding: 14px 22px;
  color: white;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 8px 8px 0;
}

.waitlist-btn:hover {
  background: #4a6be0;
}

.waitlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-note span {
  color: var(--green);
}

.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  background: rgba(78, 201, 160, 0.08);
  border: 1px solid rgba(78, 201, 160, 0.2);
  border-radius: 8px;
  padding: 14px 20px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 16px;
}

.success-msg.visible {
  display: flex;
}

.form-error {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  color: #f87171;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.form-error.visible {
  display: block;
}

.counter-wrap {
  margin-top: 24px;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.counter-card {
  width: 100%;
  background: #11161d;
  border: 1px solid #232b35;
  border-radius: 10px;
  padding: 20px 24px 22px;
  text-align: center;
}

.counter-card__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.counter-card__value {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.counter-card__value.counter-bump {
  animation: counterBump 0.35s ease-out;
}

@keyframes counterBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.founder-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  line-height: 1.5;
}

.founder-status .founder-remaining {
  font-weight: 700;
}

.founder-status--locked {
  opacity: 0.85;
}

/* ── Buttons ── */
.flow-continue,
.flow-back {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 8px;
  padding: 14px 24px;
  margin-top: 24px;
  transition: background 0.15s, border-color 0.15s;
}

.flow-continue {
  display: block;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  background: var(--green);
  color: #0d0d14;
  border: 1px solid var(--green);
}

.flow-continue:hover {
  background: #5fdcb3;
  border-color: #5fdcb3;
}

.flow-back {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-top: 12px;
}

.flow-back:hover {
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #4a6be0;
}

.btn-meta {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

/* ── APK QR ── */
.apk-qr {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 8px;
}

#apkQrBlock {
  margin-bottom: 16px;
}

/* ── Mini steps + install cmd ── */
.mini-steps {
  text-align: left;
  max-width: 440px;
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: #aaaaaa;
  padding-left: 20px;
}

.install-cmd {
  text-align: left;
  max-width: 440px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.install-cmd__label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.install-cmd pre {
  overflow-x: auto;
  margin-bottom: 10px;
}

.install-cmd code {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: #cccccc;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
}

/* ── Ready step ── */
.ready-list {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.75;
  color: #aaaaaa;
}

.ready-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.ready-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ── Footer ── */
.flow-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  background: rgba(13, 13, 20, 0.9);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  color: #aaaaaa;
}

.flow-footer__links {
  display: flex;
  gap: 16px;
  margin-left: 16px;
}

.flow-footer__links a {
  color: var(--accent);
  text-decoration: none;
}

.flow-footer__links a:hover {
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .apk-desktop-only {
    display: none !important;
  }

  .flow-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
  }

  :root {
    --nav-h: 108px;
  }

  .step-indicator__label {
    display: none;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 8px;
  }

  .waitlist-input {
    border-radius: 8px;
    border-right: 1px solid var(--accent);
  }

  .waitlist-btn {
    border-radius: 8px;
    padding: 12px;
  }

  .flow-step__inner {
    padding-bottom: 80px;
  }
}

@media (max-width: 600px) {
  .flow-footer {
    flex-direction: column;
    gap: 8px;
  }

  .flow-footer__links {
    margin-left: 0;
  }
}
